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 | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1445 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1446 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1447 | --with-cxx-include-32bit-dir |
| 1448 | 32 bit multilib dir. |
| 1449 | --with-cxx-include-64bit-dir |
| 1450 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1451 | --with-binutils-include Specify path to binutils/include/ containing |
| 1452 | plugin-api.h file for gold plugin. |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1453 | --with-bug-report-url Specify the URL where bug reports should be |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1454 | submitted (default=http://llvm.org/bugs/) |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1455 | --with-internal-prefix Installation directory for internal files |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1456 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1457 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1458 | --with-oprofile=<prefix> |
| 1459 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 | |
| 1461 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1462 | CC C compiler command |
| 1463 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1465 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1466 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1467 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1468 | CXX C++ compiler command |
| 1469 | CXXFLAGS C++ compiler flags |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1470 | CPP C preprocessor |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | |
| 1472 | Use these variables to override the choices made by `configure' or to help |
| 1473 | it to find libraries and programs with nonstandard names/locations. |
| 1474 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1475 | Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1476 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | fi |
| 1479 | |
| 1480 | if test "$ac_init_help" = "recursive"; then |
| 1481 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1483 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | ac_builddir=. |
| 1485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1486 | case "$ac_dir" in |
| 1487 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1488 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1489 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1491 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | case $ac_top_builddir_sub in |
| 1493 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1494 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1495 | esac ;; |
| 1496 | esac |
| 1497 | ac_abs_top_builddir=$ac_pwd |
| 1498 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1499 | # for backward compatibility: |
| 1500 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1501 | |
| 1502 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | ac_top_srcdir=$ac_top_builddir_sub |
| 1506 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1507 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1508 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | ac_top_srcdir=$srcdir |
| 1510 | ac_abs_top_srcdir=$srcdir ;; |
| 1511 | *) # Relative name. |
| 1512 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1513 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1514 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1515 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1519 | # Check for guested configure. |
| 1520 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1521 | echo && |
| 1522 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1523 | elif test -f "$ac_srcdir/configure"; then |
| 1524 | echo && |
| 1525 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1527 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | fi || ac_status=$? |
| 1529 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | done |
| 1531 | fi |
| 1532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | if $ac_init_version; then |
| 1535 | cat <<\_ACEOF |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1536 | LLVM configure 3.1svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1537 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1539 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1540 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | This configure script is free software; the Free Software Foundation |
| 1542 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1543 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1544 | Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | This file contains any messages produced by compilers while |
| 1550 | running configure, to aid debugging if configure makes a mistake. |
| 1551 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1552 | It was created by LLVM $as_me 3.1svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | |
| 1555 | $ $0 $@ |
| 1556 | |
| 1557 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | { |
| 1560 | cat <<_ASUNAME |
| 1561 | ## --------- ## |
| 1562 | ## Platform. ## |
| 1563 | ## --------- ## |
| 1564 | |
| 1565 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1566 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1567 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1568 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1569 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1570 | |
| 1571 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1572 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1573 | |
| 1574 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1575 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1576 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1579 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1580 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1581 | |
| 1582 | _ASUNAME |
| 1583 | |
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1585 | for as_dir in $PATH |
| 1586 | do |
| 1587 | IFS=$as_save_IFS |
| 1588 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1589 | echo "PATH: $as_dir" |
| 1590 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1591 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1592 | |
| 1593 | } >&5 |
| 1594 | |
| 1595 | cat >&5 <<_ACEOF |
| 1596 | |
| 1597 | |
| 1598 | ## ----------- ## |
| 1599 | ## Core tests. ## |
| 1600 | ## ----------- ## |
| 1601 | |
| 1602 | _ACEOF |
| 1603 | |
| 1604 | |
| 1605 | # Keep a trace of the command line. |
| 1606 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | ac_configure_args0= |
| 1612 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false |
| 1614 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | for ac_arg |
| 1617 | do |
| 1618 | case $ac_arg in |
| 1619 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1621 | | -silent | --silent | --silen | --sile | --sil) |
| 1622 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | esac |
| 1626 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1629 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1633 | case $ac_arg in |
| 1634 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1635 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1636 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1637 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1638 | case "$ac_configure_args0 " in |
| 1639 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1640 | esac |
| 1641 | ;; |
| 1642 | -* ) ac_must_keep_next=true ;; |
| 1643 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
| 1648 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1650 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1651 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | |
| 1653 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1654 | # config.log. We remove comments because anyway the quotes in there |
| 1655 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1657 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | trap 'exit_status=$? |
| 1659 | # Save into config.log some information that might help in debugging. |
| 1660 | { |
| 1661 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1663 | cat <<\_ASBOX |
| 1664 | ## ---------------- ## |
| 1665 | ## Cache variables. ## |
| 1666 | ## ---------------- ## |
| 1667 | _ASBOX |
| 1668 | echo |
| 1669 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1670 | ( |
| 1671 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1672 | eval ac_val=\$$ac_var |
| 1673 | case $ac_val in #( |
| 1674 | *${as_nl}*) |
| 1675 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1677 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | esac |
| 1679 | case $ac_var in #( |
| 1680 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1681 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | esac ;; |
| 1683 | esac |
| 1684 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1687 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1690 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1691 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1693 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac | |
| 1696 | sort |
| 1697 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1699 | |
| 1700 | cat <<\_ASBOX |
| 1701 | ## ----------------- ## |
| 1702 | ## Output variables. ## |
| 1703 | ## ----------------- ## |
| 1704 | _ASBOX |
| 1705 | echo |
| 1706 | for ac_var in $ac_subst_vars |
| 1707 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | eval ac_val=\$$ac_var |
| 1709 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1710 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1712 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1713 | done | sort |
| 1714 | echo |
| 1715 | |
| 1716 | if test -n "$ac_subst_files"; then |
| 1717 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1718 | ## ------------------- ## |
| 1719 | ## File substitutions. ## |
| 1720 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | _ASBOX |
| 1722 | echo |
| 1723 | for ac_var in $ac_subst_files |
| 1724 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | eval ac_val=\$$ac_var |
| 1726 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1729 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | done | sort |
| 1731 | echo |
| 1732 | fi |
| 1733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1734 | if test -s confdefs.h; then |
| 1735 | cat <<\_ASBOX |
| 1736 | ## ----------- ## |
| 1737 | ## confdefs.h. ## |
| 1738 | ## ----------- ## |
| 1739 | _ASBOX |
| 1740 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | echo |
| 1743 | fi |
| 1744 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1745 | echo "$as_me: caught signal $ac_signal" |
| 1746 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1748 | rm -f core *.core core.conftest.* && |
| 1749 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | done |
| 1755 | ac_signal=0 |
| 1756 | |
| 1757 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | |
| 1760 | # Predefined preprocessor variables. |
| 1761 | |
| 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1764 | _ACEOF |
| 1765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | cat >>confdefs.h <<_ACEOF |
| 1768 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1769 | _ACEOF |
| 1770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1774 | _ACEOF |
| 1775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1779 | _ACEOF |
| 1780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1784 | _ACEOF |
| 1785 | |
| 1786 | |
| 1787 | # Let the site file select an alternate cache file if it wants to. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1794 | set x "$ac_default_prefix/share/config.site" \ |
| 1795 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1797 | shift |
| 1798 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | if test -r "$ac_site_file"; then |
| 1801 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1802 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1803 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1804 | . "$ac_site_file" |
| 1805 | fi |
| 1806 | done |
| 1807 | |
| 1808 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1809 | # Some versions of bash will fail to source /dev/null (special |
| 1810 | # files actually), so we avoid doing that. |
| 1811 | if test -f "$cache_file"; then |
| 1812 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1813 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1816 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | esac |
| 1818 | fi |
| 1819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1820 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1821 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1822 | >$cache_file |
| 1823 | fi |
| 1824 | |
| 1825 | # Check that the precious variables saved in the cache have kept the same |
| 1826 | # value. |
| 1827 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1828 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1830 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1831 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1832 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | case $ac_old_set,$ac_new_set in |
| 1834 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1835 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1836 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | ac_cache_corrupted=: ;; |
| 1838 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1839 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1840 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | ac_cache_corrupted=: ;; |
| 1842 | ,);; |
| 1843 | *) |
| 1844 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1845 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1846 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1847 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1848 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1849 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1850 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1851 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 | fi;; |
| 1853 | esac |
| 1854 | # Pass precious variables to config.status. |
| 1855 | if test "$ac_new_set" = set; then |
| 1856 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1859 | esac |
| 1860 | case " $ac_configure_args " in |
| 1861 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | esac |
| 1864 | fi |
| 1865 | done |
| 1866 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1867 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1868 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1869 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1870 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1871 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1898 | ac_ext=c |
| 1899 | ac_cpp='$CPP $CPPFLAGS' |
| 1900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1903 | |
| 1904 | |
| 1905 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1906 | LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1916 | if test -f "$ac_dir/install-sh"; then |
| 1917 | ac_aux_dir=$ac_dir |
| 1918 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1919 | break |
| 1920 | elif test -f "$ac_dir/install.sh"; then |
| 1921 | ac_aux_dir=$ac_dir |
| 1922 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1923 | break |
| 1924 | elif test -f "$ac_dir/shtool"; then |
| 1925 | ac_aux_dir=$ac_dir |
| 1926 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1927 | break |
| 1928 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | done |
| 1930 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1931 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1932 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1933 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | |
| 1936 | # These three variables are undocumented and unsupported, |
| 1937 | # and are intended to be withdrawn in a future Autoconf release. |
| 1938 | # They can cause serious problems if a builder's source tree is in a directory |
| 1939 | # whose full name contains unusual characters. |
| 1940 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1941 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1942 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1945 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1947 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1948 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1949 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1950 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1951 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1954 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1955 | ac_cpp='$CPP $CPPFLAGS' |
| 1956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1959 | if test -n "$ac_tool_prefix"; then |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1960 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1961 | do |
| 1962 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1963 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1964 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1966 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1968 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1969 | if test -n "$CC"; then |
| 1970 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1971 | else |
| 1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1973 | for as_dir in $PATH |
| 1974 | do |
| 1975 | IFS=$as_save_IFS |
| 1976 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1978 | 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] | 1979 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1980 | 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] | 1981 | break 2 |
| 1982 | fi |
| 1983 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1984 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1985 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1986 | |
| 1987 | fi |
| 1988 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1989 | CC=$ac_cv_prog_CC |
| 1990 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1991 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1992 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1993 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1994 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1995 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1996 | fi |
| 1997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1998 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1999 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2000 | done |
| 2001 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2002 | if test -z "$CC"; then |
| 2003 | ac_ct_CC=$CC |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2004 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2005 | do |
| 2006 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2007 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2008 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2010 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2012 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2013 | if test -n "$ac_ct_CC"; then |
| 2014 | 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] | 2015 | else |
| 2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2017 | for as_dir in $PATH |
| 2018 | do |
| 2019 | IFS=$as_save_IFS |
| 2020 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2022 | 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] | 2023 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2024 | 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] | 2025 | break 2 |
| 2026 | fi |
| 2027 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2028 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2029 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2030 | |
| 2031 | fi |
| 2032 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2033 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2034 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2035 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2036 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2038 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2039 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | fi |
| 2041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2043 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2046 | if test "x$ac_ct_CC" = x; then |
| 2047 | CC="" |
| 2048 | else |
| 2049 | case $cross_compiling:$ac_tool_warned in |
| 2050 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2051 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2052 | whose name does not start with the host triplet. If you think this |
| 2053 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2054 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2055 | whose name does not start with the host triplet. If you think this |
| 2056 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2057 | ac_tool_warned=yes ;; |
| 2058 | esac |
| 2059 | CC=$ac_ct_CC |
| 2060 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2061 | fi |
| 2062 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2063 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2064 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2065 | See \`config.log' for more details." >&5 |
| 2066 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2067 | See \`config.log' for more details." >&2;} |
| 2068 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2071 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2072 | ac_compiler=`set X $ac_compile; echo $2` |
| 2073 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2074 | case "(($ac_try" in |
| 2075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2076 | *) ac_try_echo=$ac_try;; |
| 2077 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2079 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2080 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2082 | (exit $ac_status); } |
| 2083 | { (ac_try="$ac_compiler -v >&5" |
| 2084 | case "(($ac_try" in |
| 2085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2086 | *) ac_try_echo=$ac_try;; |
| 2087 | esac |
| 2088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2089 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2090 | ac_status=$? |
| 2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2092 | (exit $ac_status); } |
| 2093 | { (ac_try="$ac_compiler -V >&5" |
| 2094 | case "(($ac_try" in |
| 2095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2096 | *) ac_try_echo=$ac_try;; |
| 2097 | esac |
| 2098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2099 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2100 | ac_status=$? |
| 2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2102 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2103 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2104 | cat >conftest.$ac_ext <<_ACEOF |
| 2105 | /* confdefs.h. */ |
| 2106 | _ACEOF |
| 2107 | cat confdefs.h >>conftest.$ac_ext |
| 2108 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2109 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2111 | int |
| 2112 | main () |
| 2113 | { |
| 2114 | |
| 2115 | ; |
| 2116 | return 0; |
| 2117 | } |
| 2118 | _ACEOF |
| 2119 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2120 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | # Try to create an executable without -o first, disregard a.out. |
| 2122 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2123 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2124 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2125 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2126 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2127 | # |
| 2128 | # List of possible output files, starting from the most likely. |
| 2129 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2130 | # only as a last resort. b.out is created by i960 compilers. |
| 2131 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2132 | # |
| 2133 | # The IRIX 6 linker writes into existing files which may not be |
| 2134 | # executable, retaining their permissions. Remove them first so a |
| 2135 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2136 | ac_rmfiles= |
| 2137 | for ac_file in $ac_files |
| 2138 | do |
| 2139 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2140 | *.$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] | 2141 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2142 | esac |
| 2143 | done |
| 2144 | rm -f $ac_rmfiles |
| 2145 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2146 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2147 | case "(($ac_try" in |
| 2148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2149 | *) ac_try_echo=$ac_try;; |
| 2150 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2152 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2155 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2156 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2157 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2158 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2159 | # so that the user can short-circuit this test for compilers unknown to |
| 2160 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2161 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | do |
| 2163 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2164 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2165 | *.$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] | 2166 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2167 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2168 | # We found the default executable, but exeext='' is most |
| 2169 | # certainly right. |
| 2170 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2171 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2172 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 | then :; else |
| 2174 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2175 | fi |
| 2176 | # We set ac_cv_exeext here because the later test for it is not |
| 2177 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2178 | # argument, so we may need to know it at that point already. |
| 2179 | # Even if this section looks crufty: it has the advantage of |
| 2180 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2181 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2182 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2183 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2184 | esac |
| 2185 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2187 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2188 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2189 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2191 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2192 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2193 | See \`config.log' for more details." >&5 |
| 2194 | echo "$as_me: error: C compiler cannot create executables |
| 2195 | See \`config.log' for more details." >&2;} |
| 2196 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2197 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2199 | ac_exeext=$ac_cv_exeext |
| 2200 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2201 | echo "${ECHO_T}$ac_file" >&6; } |
| 2202 | |
| 2203 | # Check that the compiler produces executables we can run. If not, either |
| 2204 | # the compiler is broken, or we cross compile. |
| 2205 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2206 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2207 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2208 | # If not cross compiling, check that we can run a simple program. |
| 2209 | if test "$cross_compiling" != yes; then |
| 2210 | if { ac_try='./$ac_file' |
| 2211 | { (case "(($ac_try" in |
| 2212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2213 | *) ac_try_echo=$ac_try;; |
| 2214 | esac |
| 2215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2216 | (eval "$ac_try") 2>&5 |
| 2217 | ac_status=$? |
| 2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2219 | (exit $ac_status); }; }; then |
| 2220 | cross_compiling=no |
| 2221 | else |
| 2222 | if test "$cross_compiling" = maybe; then |
| 2223 | cross_compiling=yes |
| 2224 | else |
| 2225 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2226 | If you meant to cross compile, use \`--host'. |
| 2227 | See \`config.log' for more details." >&5 |
| 2228 | echo "$as_me: error: cannot run C compiled programs. |
| 2229 | If you meant to cross compile, use \`--host'. |
| 2230 | See \`config.log' for more details." >&2;} |
| 2231 | { (exit 1); exit 1; }; } |
| 2232 | fi |
| 2233 | fi |
| 2234 | fi |
| 2235 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2236 | echo "${ECHO_T}yes" >&6; } |
| 2237 | |
| 2238 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2239 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2240 | # Check that the compiler produces executables we can run. If not, either |
| 2241 | # the compiler is broken, or we cross compile. |
| 2242 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2243 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2244 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2245 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2246 | |
| 2247 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2248 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2249 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2250 | case "(($ac_try" in |
| 2251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2252 | *) ac_try_echo=$ac_try;; |
| 2253 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2255 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2256 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2258 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2259 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2260 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2261 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2262 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2263 | for ac_file in conftest.exe conftest conftest.*; do |
| 2264 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2265 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2266 | *.$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] | 2267 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2268 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2269 | * ) break;; |
| 2270 | esac |
| 2271 | done |
| 2272 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2273 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2274 | See \`config.log' for more details." >&5 |
| 2275 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2276 | See \`config.log' for more details." >&2;} |
| 2277 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2279 | |
| 2280 | rm -f conftest$ac_cv_exeext |
| 2281 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2282 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2283 | |
| 2284 | rm -f conftest.$ac_ext |
| 2285 | EXEEXT=$ac_cv_exeext |
| 2286 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2287 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2288 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2289 | if test "${ac_cv_objext+set}" = set; then |
| 2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2291 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2292 | cat >conftest.$ac_ext <<_ACEOF |
| 2293 | /* confdefs.h. */ |
| 2294 | _ACEOF |
| 2295 | cat confdefs.h >>conftest.$ac_ext |
| 2296 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2297 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2299 | int |
| 2300 | main () |
| 2301 | { |
| 2302 | |
| 2303 | ; |
| 2304 | return 0; |
| 2305 | } |
| 2306 | _ACEOF |
| 2307 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2308 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2309 | case "(($ac_try" in |
| 2310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2311 | *) ac_try_echo=$ac_try;; |
| 2312 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2314 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2315 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2317 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2318 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2319 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2320 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2322 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2323 | break;; |
| 2324 | esac |
| 2325 | done |
| 2326 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2327 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2329 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2330 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2331 | See \`config.log' for more details." >&5 |
| 2332 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2333 | See \`config.log' for more details." >&2;} |
| 2334 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2337 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2339 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2340 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2341 | OBJEXT=$ac_cv_objext |
| 2342 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2343 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2344 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2345 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2348 | cat >conftest.$ac_ext <<_ACEOF |
| 2349 | /* confdefs.h. */ |
| 2350 | _ACEOF |
| 2351 | cat confdefs.h >>conftest.$ac_ext |
| 2352 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2353 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2354 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2355 | int |
| 2356 | main () |
| 2357 | { |
| 2358 | #ifndef __GNUC__ |
| 2359 | choke me |
| 2360 | #endif |
| 2361 | |
| 2362 | ; |
| 2363 | return 0; |
| 2364 | } |
| 2365 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2366 | rm -f conftest.$ac_objext |
| 2367 | if { (ac_try="$ac_compile" |
| 2368 | case "(($ac_try" in |
| 2369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2370 | *) ac_try_echo=$ac_try;; |
| 2371 | esac |
| 2372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2373 | (eval "$ac_compile") 2>conftest.er1 |
| 2374 | ac_status=$? |
| 2375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2376 | rm -f conftest.er1 |
| 2377 | cat conftest.err >&5 |
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2379 | (exit $ac_status); } && |
| 2380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2381 | { (case "(($ac_try" in |
| 2382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2383 | *) ac_try_echo=$ac_try;; |
| 2384 | esac |
| 2385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2386 | (eval "$ac_try") 2>&5 |
| 2387 | ac_status=$? |
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2389 | (exit $ac_status); }; } && |
| 2390 | { ac_try='test -s conftest.$ac_objext' |
| 2391 | { (case "(($ac_try" in |
| 2392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2393 | *) ac_try_echo=$ac_try;; |
| 2394 | esac |
| 2395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2396 | (eval "$ac_try") 2>&5 |
| 2397 | ac_status=$? |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2400 | ac_compiler_gnu=yes |
| 2401 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2402 | echo "$as_me: failed program was:" >&5 |
| 2403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2404 | |
| 2405 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 | |
| 2411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2413 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2414 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | ac_test_CFLAGS=${CFLAGS+set} |
| 2416 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2417 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2418 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2419 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2421 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2422 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2423 | ac_c_werror_flag=yes |
| 2424 | ac_cv_prog_cc_g=no |
| 2425 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2426 | cat >conftest.$ac_ext <<_ACEOF |
| 2427 | /* confdefs.h. */ |
| 2428 | _ACEOF |
| 2429 | cat confdefs.h >>conftest.$ac_ext |
| 2430 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2431 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2432 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2433 | int |
| 2434 | main () |
| 2435 | { |
| 2436 | |
| 2437 | ; |
| 2438 | return 0; |
| 2439 | } |
| 2440 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2441 | rm -f conftest.$ac_objext |
| 2442 | if { (ac_try="$ac_compile" |
| 2443 | case "(($ac_try" in |
| 2444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2445 | *) ac_try_echo=$ac_try;; |
| 2446 | esac |
| 2447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2448 | (eval "$ac_compile") 2>conftest.er1 |
| 2449 | ac_status=$? |
| 2450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2451 | rm -f conftest.er1 |
| 2452 | cat conftest.err >&5 |
| 2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2454 | (exit $ac_status); } && |
| 2455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2456 | { (case "(($ac_try" in |
| 2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2458 | *) ac_try_echo=$ac_try;; |
| 2459 | esac |
| 2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2461 | (eval "$ac_try") 2>&5 |
| 2462 | ac_status=$? |
| 2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2464 | (exit $ac_status); }; } && |
| 2465 | { ac_try='test -s conftest.$ac_objext' |
| 2466 | { (case "(($ac_try" in |
| 2467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2468 | *) ac_try_echo=$ac_try;; |
| 2469 | esac |
| 2470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2471 | (eval "$ac_try") 2>&5 |
| 2472 | ac_status=$? |
| 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2474 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2475 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2476 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2477 | echo "$as_me: failed program was:" >&5 |
| 2478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2479 | |
| 2480 | CFLAGS="" |
| 2481 | cat >conftest.$ac_ext <<_ACEOF |
| 2482 | /* confdefs.h. */ |
| 2483 | _ACEOF |
| 2484 | cat confdefs.h >>conftest.$ac_ext |
| 2485 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2486 | /* end confdefs.h. */ |
| 2487 | |
| 2488 | int |
| 2489 | main () |
| 2490 | { |
| 2491 | |
| 2492 | ; |
| 2493 | return 0; |
| 2494 | } |
| 2495 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2496 | rm -f conftest.$ac_objext |
| 2497 | if { (ac_try="$ac_compile" |
| 2498 | case "(($ac_try" in |
| 2499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2500 | *) ac_try_echo=$ac_try;; |
| 2501 | esac |
| 2502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2503 | (eval "$ac_compile") 2>conftest.er1 |
| 2504 | ac_status=$? |
| 2505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2506 | rm -f conftest.er1 |
| 2507 | cat conftest.err >&5 |
| 2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2509 | (exit $ac_status); } && |
| 2510 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2511 | { (case "(($ac_try" in |
| 2512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2513 | *) ac_try_echo=$ac_try;; |
| 2514 | esac |
| 2515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2516 | (eval "$ac_try") 2>&5 |
| 2517 | ac_status=$? |
| 2518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2519 | (exit $ac_status); }; } && |
| 2520 | { ac_try='test -s conftest.$ac_objext' |
| 2521 | { (case "(($ac_try" in |
| 2522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2523 | *) ac_try_echo=$ac_try;; |
| 2524 | esac |
| 2525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2526 | (eval "$ac_try") 2>&5 |
| 2527 | ac_status=$? |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2529 | (exit $ac_status); }; }; then |
| 2530 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2531 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2532 | echo "$as_me: failed program was:" >&5 |
| 2533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2534 | |
| 2535 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2536 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2537 | cat >conftest.$ac_ext <<_ACEOF |
| 2538 | /* confdefs.h. */ |
| 2539 | _ACEOF |
| 2540 | cat confdefs.h >>conftest.$ac_ext |
| 2541 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2542 | /* end confdefs.h. */ |
| 2543 | |
| 2544 | int |
| 2545 | main () |
| 2546 | { |
| 2547 | |
| 2548 | ; |
| 2549 | return 0; |
| 2550 | } |
| 2551 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2552 | rm -f conftest.$ac_objext |
| 2553 | if { (ac_try="$ac_compile" |
| 2554 | case "(($ac_try" in |
| 2555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2556 | *) ac_try_echo=$ac_try;; |
| 2557 | esac |
| 2558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2559 | (eval "$ac_compile") 2>conftest.er1 |
| 2560 | ac_status=$? |
| 2561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2562 | rm -f conftest.er1 |
| 2563 | cat conftest.err >&5 |
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2565 | (exit $ac_status); } && |
| 2566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2567 | { (case "(($ac_try" in |
| 2568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2569 | *) ac_try_echo=$ac_try;; |
| 2570 | esac |
| 2571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2572 | (eval "$ac_try") 2>&5 |
| 2573 | ac_status=$? |
| 2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2575 | (exit $ac_status); }; } && |
| 2576 | { ac_try='test -s conftest.$ac_objext' |
| 2577 | { (case "(($ac_try" in |
| 2578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2579 | *) ac_try_echo=$ac_try;; |
| 2580 | esac |
| 2581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2582 | (eval "$ac_try") 2>&5 |
| 2583 | ac_status=$? |
| 2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2585 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2586 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2587 | else |
| 2588 | echo "$as_me: failed program was:" >&5 |
| 2589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2590 | |
| 2591 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2592 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2595 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2598 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2601 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2602 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2604 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | if test "$ac_test_CFLAGS" = set; then |
| 2606 | CFLAGS=$ac_save_CFLAGS |
| 2607 | elif test $ac_cv_prog_cc_g = yes; then |
| 2608 | if test "$GCC" = yes; then |
| 2609 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2610 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2611 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2612 | fi |
| 2613 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2614 | if test "$GCC" = yes; then |
| 2615 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2616 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2617 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | fi |
| 2619 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2620 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2621 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2622 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2627 | cat >conftest.$ac_ext <<_ACEOF |
| 2628 | /* confdefs.h. */ |
| 2629 | _ACEOF |
| 2630 | cat confdefs.h >>conftest.$ac_ext |
| 2631 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2632 | /* end confdefs.h. */ |
| 2633 | #include <stdarg.h> |
| 2634 | #include <stdio.h> |
| 2635 | #include <sys/types.h> |
| 2636 | #include <sys/stat.h> |
| 2637 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2638 | struct buf { int x; }; |
| 2639 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2640 | static char *e (p, i) |
| 2641 | char **p; |
| 2642 | int i; |
| 2643 | { |
| 2644 | return p[i]; |
| 2645 | } |
| 2646 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2647 | { |
| 2648 | char *s; |
| 2649 | va_list v; |
| 2650 | va_start (v,p); |
| 2651 | s = g (p, va_arg (v,int)); |
| 2652 | va_end (v); |
| 2653 | return s; |
| 2654 | } |
| 2655 | |
| 2656 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2657 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2658 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2659 | 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] | 2660 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2661 | 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] | 2662 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2663 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2665 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2666 | inside strings and character constants. */ |
| 2667 | #define FOO(x) 'x' |
| 2668 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2669 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2670 | int test (int i, double x); |
| 2671 | struct s1 {int (*f) (int a);}; |
| 2672 | struct s2 {int (*f) (double a);}; |
| 2673 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2674 | int argc; |
| 2675 | char **argv; |
| 2676 | int |
| 2677 | main () |
| 2678 | { |
| 2679 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2680 | ; |
| 2681 | return 0; |
| 2682 | } |
| 2683 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2684 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2685 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2686 | do |
| 2687 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2688 | rm -f conftest.$ac_objext |
| 2689 | if { (ac_try="$ac_compile" |
| 2690 | case "(($ac_try" in |
| 2691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2692 | *) ac_try_echo=$ac_try;; |
| 2693 | esac |
| 2694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2695 | (eval "$ac_compile") 2>conftest.er1 |
| 2696 | ac_status=$? |
| 2697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2698 | rm -f conftest.er1 |
| 2699 | cat conftest.err >&5 |
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); } && |
| 2702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2703 | { (case "(($ac_try" in |
| 2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2705 | *) ac_try_echo=$ac_try;; |
| 2706 | esac |
| 2707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2708 | (eval "$ac_try") 2>&5 |
| 2709 | ac_status=$? |
| 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2711 | (exit $ac_status); }; } && |
| 2712 | { ac_try='test -s conftest.$ac_objext' |
| 2713 | { (case "(($ac_try" in |
| 2714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2715 | *) ac_try_echo=$ac_try;; |
| 2716 | esac |
| 2717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2718 | (eval "$ac_try") 2>&5 |
| 2719 | ac_status=$? |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2722 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2723 | else |
| 2724 | echo "$as_me: failed program was:" >&5 |
| 2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2726 | |
| 2727 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2728 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2730 | rm -f core conftest.err conftest.$ac_objext |
| 2731 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2733 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2734 | CC=$ac_save_CC |
| 2735 | |
| 2736 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2737 | # AC_CACHE_VAL |
| 2738 | case "x$ac_cv_prog_cc_c89" in |
| 2739 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2740 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2741 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2742 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2743 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2744 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2745 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2747 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2748 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2749 | esac |
| 2750 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2751 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2752 | ac_ext=c |
| 2753 | ac_cpp='$CPP $CPPFLAGS' |
| 2754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2757 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2758 | ac_ext=cpp |
| 2759 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2760 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2761 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2762 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2763 | if test -z "$CXX"; then |
| 2764 | if test -n "$CCC"; then |
| 2765 | CXX=$CCC |
| 2766 | else |
| 2767 | if test -n "$ac_tool_prefix"; then |
| 2768 | for ac_prog in clang++ llvm-g++ g++ |
| 2769 | do |
| 2770 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2771 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2774 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2776 | else |
| 2777 | if test -n "$CXX"; then |
| 2778 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2779 | else |
| 2780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2781 | for as_dir in $PATH |
| 2782 | do |
| 2783 | IFS=$as_save_IFS |
| 2784 | test -z "$as_dir" && as_dir=. |
| 2785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2787 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2789 | break 2 |
| 2790 | fi |
| 2791 | done |
| 2792 | done |
| 2793 | IFS=$as_save_IFS |
| 2794 | |
| 2795 | fi |
| 2796 | fi |
| 2797 | CXX=$ac_cv_prog_CXX |
| 2798 | if test -n "$CXX"; then |
| 2799 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2800 | echo "${ECHO_T}$CXX" >&6; } |
| 2801 | else |
| 2802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2803 | echo "${ECHO_T}no" >&6; } |
| 2804 | fi |
| 2805 | |
| 2806 | |
| 2807 | test -n "$CXX" && break |
| 2808 | done |
| 2809 | fi |
| 2810 | if test -z "$CXX"; then |
| 2811 | ac_ct_CXX=$CXX |
| 2812 | for ac_prog in clang++ llvm-g++ g++ |
| 2813 | do |
| 2814 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2815 | set dummy $ac_prog; ac_word=$2 |
| 2816 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2818 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2820 | else |
| 2821 | if test -n "$ac_ct_CXX"; then |
| 2822 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2823 | else |
| 2824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2825 | for as_dir in $PATH |
| 2826 | do |
| 2827 | IFS=$as_save_IFS |
| 2828 | test -z "$as_dir" && as_dir=. |
| 2829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2831 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2833 | break 2 |
| 2834 | fi |
| 2835 | done |
| 2836 | done |
| 2837 | IFS=$as_save_IFS |
| 2838 | |
| 2839 | fi |
| 2840 | fi |
| 2841 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2842 | if test -n "$ac_ct_CXX"; then |
| 2843 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2844 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2845 | else |
| 2846 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2847 | echo "${ECHO_T}no" >&6; } |
| 2848 | fi |
| 2849 | |
| 2850 | |
| 2851 | test -n "$ac_ct_CXX" && break |
| 2852 | done |
| 2853 | |
| 2854 | if test "x$ac_ct_CXX" = x; then |
| 2855 | CXX="g++" |
| 2856 | else |
| 2857 | case $cross_compiling:$ac_tool_warned in |
| 2858 | yes:) |
| 2859 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2860 | whose name does not start with the host triplet. If you think this |
| 2861 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2862 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2863 | whose name does not start with the host triplet. If you think this |
| 2864 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2865 | ac_tool_warned=yes ;; |
| 2866 | esac |
| 2867 | CXX=$ac_ct_CXX |
| 2868 | fi |
| 2869 | fi |
| 2870 | |
| 2871 | fi |
| 2872 | fi |
| 2873 | # Provide some information about the compiler. |
| 2874 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2875 | ac_compiler=`set X $ac_compile; echo $2` |
| 2876 | { (ac_try="$ac_compiler --version >&5" |
| 2877 | case "(($ac_try" in |
| 2878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2879 | *) ac_try_echo=$ac_try;; |
| 2880 | esac |
| 2881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2882 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2883 | ac_status=$? |
| 2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2885 | (exit $ac_status); } |
| 2886 | { (ac_try="$ac_compiler -v >&5" |
| 2887 | case "(($ac_try" in |
| 2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2889 | *) ac_try_echo=$ac_try;; |
| 2890 | esac |
| 2891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2892 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2893 | ac_status=$? |
| 2894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2895 | (exit $ac_status); } |
| 2896 | { (ac_try="$ac_compiler -V >&5" |
| 2897 | case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
| 2901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2902 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2903 | ac_status=$? |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2905 | (exit $ac_status); } |
| 2906 | |
| 2907 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2908 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2909 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2911 | else |
| 2912 | cat >conftest.$ac_ext <<_ACEOF |
| 2913 | /* confdefs.h. */ |
| 2914 | _ACEOF |
| 2915 | cat confdefs.h >>conftest.$ac_ext |
| 2916 | cat >>conftest.$ac_ext <<_ACEOF |
| 2917 | /* end confdefs.h. */ |
| 2918 | |
| 2919 | int |
| 2920 | main () |
| 2921 | { |
| 2922 | #ifndef __GNUC__ |
| 2923 | choke me |
| 2924 | #endif |
| 2925 | |
| 2926 | ; |
| 2927 | return 0; |
| 2928 | } |
| 2929 | _ACEOF |
| 2930 | rm -f conftest.$ac_objext |
| 2931 | if { (ac_try="$ac_compile" |
| 2932 | case "(($ac_try" in |
| 2933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2934 | *) ac_try_echo=$ac_try;; |
| 2935 | esac |
| 2936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2937 | (eval "$ac_compile") 2>conftest.er1 |
| 2938 | ac_status=$? |
| 2939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2940 | rm -f conftest.er1 |
| 2941 | cat conftest.err >&5 |
| 2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2943 | (exit $ac_status); } && |
| 2944 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2945 | { (case "(($ac_try" in |
| 2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2947 | *) ac_try_echo=$ac_try;; |
| 2948 | esac |
| 2949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2950 | (eval "$ac_try") 2>&5 |
| 2951 | ac_status=$? |
| 2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2953 | (exit $ac_status); }; } && |
| 2954 | { ac_try='test -s conftest.$ac_objext' |
| 2955 | { (case "(($ac_try" in |
| 2956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2957 | *) ac_try_echo=$ac_try;; |
| 2958 | esac |
| 2959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2960 | (eval "$ac_try") 2>&5 |
| 2961 | ac_status=$? |
| 2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2963 | (exit $ac_status); }; }; then |
| 2964 | ac_compiler_gnu=yes |
| 2965 | else |
| 2966 | echo "$as_me: failed program was:" >&5 |
| 2967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2968 | |
| 2969 | ac_compiler_gnu=no |
| 2970 | fi |
| 2971 | |
| 2972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2973 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2974 | |
| 2975 | fi |
| 2976 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2977 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2978 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2979 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2980 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2981 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2982 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 2983 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2985 | else |
| 2986 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 2987 | ac_cxx_werror_flag=yes |
| 2988 | ac_cv_prog_cxx_g=no |
| 2989 | CXXFLAGS="-g" |
| 2990 | cat >conftest.$ac_ext <<_ACEOF |
| 2991 | /* confdefs.h. */ |
| 2992 | _ACEOF |
| 2993 | cat confdefs.h >>conftest.$ac_ext |
| 2994 | cat >>conftest.$ac_ext <<_ACEOF |
| 2995 | /* end confdefs.h. */ |
| 2996 | |
| 2997 | int |
| 2998 | main () |
| 2999 | { |
| 3000 | |
| 3001 | ; |
| 3002 | return 0; |
| 3003 | } |
| 3004 | _ACEOF |
| 3005 | rm -f conftest.$ac_objext |
| 3006 | if { (ac_try="$ac_compile" |
| 3007 | case "(($ac_try" in |
| 3008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3009 | *) ac_try_echo=$ac_try;; |
| 3010 | esac |
| 3011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3012 | (eval "$ac_compile") 2>conftest.er1 |
| 3013 | ac_status=$? |
| 3014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3015 | rm -f conftest.er1 |
| 3016 | cat conftest.err >&5 |
| 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); } && |
| 3019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3020 | { (case "(($ac_try" in |
| 3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3022 | *) ac_try_echo=$ac_try;; |
| 3023 | esac |
| 3024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3025 | (eval "$ac_try") 2>&5 |
| 3026 | ac_status=$? |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); }; } && |
| 3029 | { ac_try='test -s conftest.$ac_objext' |
| 3030 | { (case "(($ac_try" in |
| 3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3032 | *) ac_try_echo=$ac_try;; |
| 3033 | esac |
| 3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3035 | (eval "$ac_try") 2>&5 |
| 3036 | ac_status=$? |
| 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3038 | (exit $ac_status); }; }; then |
| 3039 | ac_cv_prog_cxx_g=yes |
| 3040 | else |
| 3041 | echo "$as_me: failed program was:" >&5 |
| 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
| 3044 | CXXFLAGS="" |
| 3045 | cat >conftest.$ac_ext <<_ACEOF |
| 3046 | /* confdefs.h. */ |
| 3047 | _ACEOF |
| 3048 | cat confdefs.h >>conftest.$ac_ext |
| 3049 | cat >>conftest.$ac_ext <<_ACEOF |
| 3050 | /* end confdefs.h. */ |
| 3051 | |
| 3052 | int |
| 3053 | main () |
| 3054 | { |
| 3055 | |
| 3056 | ; |
| 3057 | return 0; |
| 3058 | } |
| 3059 | _ACEOF |
| 3060 | rm -f conftest.$ac_objext |
| 3061 | if { (ac_try="$ac_compile" |
| 3062 | case "(($ac_try" in |
| 3063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3064 | *) ac_try_echo=$ac_try;; |
| 3065 | esac |
| 3066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3067 | (eval "$ac_compile") 2>conftest.er1 |
| 3068 | ac_status=$? |
| 3069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3070 | rm -f conftest.er1 |
| 3071 | cat conftest.err >&5 |
| 3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3073 | (exit $ac_status); } && |
| 3074 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3075 | { (case "(($ac_try" in |
| 3076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3077 | *) ac_try_echo=$ac_try;; |
| 3078 | esac |
| 3079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3080 | (eval "$ac_try") 2>&5 |
| 3081 | ac_status=$? |
| 3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3083 | (exit $ac_status); }; } && |
| 3084 | { ac_try='test -s conftest.$ac_objext' |
| 3085 | { (case "(($ac_try" in |
| 3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3087 | *) ac_try_echo=$ac_try;; |
| 3088 | esac |
| 3089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3090 | (eval "$ac_try") 2>&5 |
| 3091 | ac_status=$? |
| 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3093 | (exit $ac_status); }; }; then |
| 3094 | : |
| 3095 | else |
| 3096 | echo "$as_me: failed program was:" >&5 |
| 3097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3098 | |
| 3099 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3100 | CXXFLAGS="-g" |
| 3101 | cat >conftest.$ac_ext <<_ACEOF |
| 3102 | /* confdefs.h. */ |
| 3103 | _ACEOF |
| 3104 | cat confdefs.h >>conftest.$ac_ext |
| 3105 | cat >>conftest.$ac_ext <<_ACEOF |
| 3106 | /* end confdefs.h. */ |
| 3107 | |
| 3108 | int |
| 3109 | main () |
| 3110 | { |
| 3111 | |
| 3112 | ; |
| 3113 | return 0; |
| 3114 | } |
| 3115 | _ACEOF |
| 3116 | rm -f conftest.$ac_objext |
| 3117 | if { (ac_try="$ac_compile" |
| 3118 | case "(($ac_try" in |
| 3119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3120 | *) ac_try_echo=$ac_try;; |
| 3121 | esac |
| 3122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3123 | (eval "$ac_compile") 2>conftest.er1 |
| 3124 | ac_status=$? |
| 3125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3126 | rm -f conftest.er1 |
| 3127 | cat conftest.err >&5 |
| 3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3129 | (exit $ac_status); } && |
| 3130 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3131 | { (case "(($ac_try" in |
| 3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3133 | *) ac_try_echo=$ac_try;; |
| 3134 | esac |
| 3135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3136 | (eval "$ac_try") 2>&5 |
| 3137 | ac_status=$? |
| 3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3139 | (exit $ac_status); }; } && |
| 3140 | { ac_try='test -s conftest.$ac_objext' |
| 3141 | { (case "(($ac_try" in |
| 3142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3143 | *) ac_try_echo=$ac_try;; |
| 3144 | esac |
| 3145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3146 | (eval "$ac_try") 2>&5 |
| 3147 | ac_status=$? |
| 3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3149 | (exit $ac_status); }; }; then |
| 3150 | ac_cv_prog_cxx_g=yes |
| 3151 | else |
| 3152 | echo "$as_me: failed program was:" >&5 |
| 3153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3154 | |
| 3155 | |
| 3156 | fi |
| 3157 | |
| 3158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3159 | fi |
| 3160 | |
| 3161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3162 | fi |
| 3163 | |
| 3164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3165 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3166 | fi |
| 3167 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3168 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3169 | if test "$ac_test_CXXFLAGS" = set; then |
| 3170 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3171 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3172 | if test "$GXX" = yes; then |
| 3173 | CXXFLAGS="-g -O2" |
| 3174 | else |
| 3175 | CXXFLAGS="-g" |
| 3176 | fi |
| 3177 | else |
| 3178 | if test "$GXX" = yes; then |
| 3179 | CXXFLAGS="-O2" |
| 3180 | else |
| 3181 | CXXFLAGS= |
| 3182 | fi |
| 3183 | fi |
| 3184 | ac_ext=c |
| 3185 | ac_cpp='$CPP $CPPFLAGS' |
| 3186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3189 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3190 | ac_ext=c |
| 3191 | ac_cpp='$CPP $CPPFLAGS' |
| 3192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3195 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3196 | 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] | 3197 | # On Suns, sometimes $CPP names a directory. |
| 3198 | if test -n "$CPP" && test -d "$CPP"; then |
| 3199 | CPP= |
| 3200 | fi |
| 3201 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3202 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3204 | else |
| 3205 | # Double quotes because CPP needs to be expanded |
| 3206 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3207 | do |
| 3208 | ac_preproc_ok=false |
| 3209 | for ac_c_preproc_warn_flag in '' yes |
| 3210 | do |
| 3211 | # Use a header file that comes with gcc, so configuring glibc |
| 3212 | # with a fresh cross-compiler works. |
| 3213 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3214 | # <limits.h> exists even on freestanding compilers. |
| 3215 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3216 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3217 | cat >conftest.$ac_ext <<_ACEOF |
| 3218 | /* confdefs.h. */ |
| 3219 | _ACEOF |
| 3220 | cat confdefs.h >>conftest.$ac_ext |
| 3221 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3222 | /* end confdefs.h. */ |
| 3223 | #ifdef __STDC__ |
| 3224 | # include <limits.h> |
| 3225 | #else |
| 3226 | # include <assert.h> |
| 3227 | #endif |
| 3228 | Syntax error |
| 3229 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3230 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3231 | case "(($ac_try" in |
| 3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3233 | *) ac_try_echo=$ac_try;; |
| 3234 | esac |
| 3235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3236 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3237 | ac_status=$? |
| 3238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3239 | rm -f conftest.er1 |
| 3240 | cat conftest.err >&5 |
| 3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3242 | (exit $ac_status); } >/dev/null; then |
| 3243 | if test -s conftest.err; then |
| 3244 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3246 | else |
| 3247 | ac_cpp_err= |
| 3248 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3249 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3250 | ac_cpp_err=yes |
| 3251 | fi |
| 3252 | if test -z "$ac_cpp_err"; then |
| 3253 | : |
| 3254 | else |
| 3255 | echo "$as_me: failed program was:" >&5 |
| 3256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3257 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3258 | # Broken: fails on valid input. |
| 3259 | continue |
| 3260 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3261 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3262 | rm -f conftest.err conftest.$ac_ext |
| 3263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3264 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3265 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3266 | cat >conftest.$ac_ext <<_ACEOF |
| 3267 | /* confdefs.h. */ |
| 3268 | _ACEOF |
| 3269 | cat confdefs.h >>conftest.$ac_ext |
| 3270 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3271 | /* end confdefs.h. */ |
| 3272 | #include <ac_nonexistent.h> |
| 3273 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3274 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3275 | case "(($ac_try" in |
| 3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3277 | *) ac_try_echo=$ac_try;; |
| 3278 | esac |
| 3279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3280 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3281 | ac_status=$? |
| 3282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3283 | rm -f conftest.er1 |
| 3284 | cat conftest.err >&5 |
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3286 | (exit $ac_status); } >/dev/null; then |
| 3287 | if test -s conftest.err; then |
| 3288 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3289 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3290 | else |
| 3291 | ac_cpp_err= |
| 3292 | fi |
| 3293 | else |
| 3294 | ac_cpp_err=yes |
| 3295 | fi |
| 3296 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | # Broken: success on invalid input. |
| 3298 | continue |
| 3299 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3300 | echo "$as_me: failed program was:" >&5 |
| 3301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | # Passes both tests. |
| 3304 | ac_preproc_ok=: |
| 3305 | break |
| 3306 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3307 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3308 | rm -f conftest.err conftest.$ac_ext |
| 3309 | |
| 3310 | done |
| 3311 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3312 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3313 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3314 | break |
| 3315 | fi |
| 3316 | |
| 3317 | done |
| 3318 | ac_cv_prog_CPP=$CPP |
| 3319 | |
| 3320 | fi |
| 3321 | CPP=$ac_cv_prog_CPP |
| 3322 | else |
| 3323 | ac_cv_prog_CPP=$CPP |
| 3324 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3325 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3326 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3327 | ac_preproc_ok=false |
| 3328 | for ac_c_preproc_warn_flag in '' yes |
| 3329 | do |
| 3330 | # Use a header file that comes with gcc, so configuring glibc |
| 3331 | # with a fresh cross-compiler works. |
| 3332 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3333 | # <limits.h> exists even on freestanding compilers. |
| 3334 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3335 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3336 | cat >conftest.$ac_ext <<_ACEOF |
| 3337 | /* confdefs.h. */ |
| 3338 | _ACEOF |
| 3339 | cat confdefs.h >>conftest.$ac_ext |
| 3340 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3341 | /* end confdefs.h. */ |
| 3342 | #ifdef __STDC__ |
| 3343 | # include <limits.h> |
| 3344 | #else |
| 3345 | # include <assert.h> |
| 3346 | #endif |
| 3347 | Syntax error |
| 3348 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3349 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3350 | case "(($ac_try" in |
| 3351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3352 | *) ac_try_echo=$ac_try;; |
| 3353 | esac |
| 3354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3355 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3356 | ac_status=$? |
| 3357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3358 | rm -f conftest.er1 |
| 3359 | cat conftest.err >&5 |
| 3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3361 | (exit $ac_status); } >/dev/null; then |
| 3362 | if test -s conftest.err; then |
| 3363 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3365 | else |
| 3366 | ac_cpp_err= |
| 3367 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3368 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3369 | ac_cpp_err=yes |
| 3370 | fi |
| 3371 | if test -z "$ac_cpp_err"; then |
| 3372 | : |
| 3373 | else |
| 3374 | echo "$as_me: failed program was:" >&5 |
| 3375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3376 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3377 | # Broken: fails on valid input. |
| 3378 | continue |
| 3379 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3380 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3381 | rm -f conftest.err conftest.$ac_ext |
| 3382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3383 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3384 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3385 | cat >conftest.$ac_ext <<_ACEOF |
| 3386 | /* confdefs.h. */ |
| 3387 | _ACEOF |
| 3388 | cat confdefs.h >>conftest.$ac_ext |
| 3389 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | /* end confdefs.h. */ |
| 3391 | #include <ac_nonexistent.h> |
| 3392 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3393 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3394 | case "(($ac_try" in |
| 3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3396 | *) ac_try_echo=$ac_try;; |
| 3397 | esac |
| 3398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3400 | ac_status=$? |
| 3401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3402 | rm -f conftest.er1 |
| 3403 | cat conftest.err >&5 |
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3405 | (exit $ac_status); } >/dev/null; then |
| 3406 | if test -s conftest.err; then |
| 3407 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3409 | else |
| 3410 | ac_cpp_err= |
| 3411 | fi |
| 3412 | else |
| 3413 | ac_cpp_err=yes |
| 3414 | fi |
| 3415 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3416 | # Broken: success on invalid input. |
| 3417 | continue |
| 3418 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3419 | echo "$as_me: failed program was:" >&5 |
| 3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3421 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3422 | # Passes both tests. |
| 3423 | ac_preproc_ok=: |
| 3424 | break |
| 3425 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3426 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3427 | rm -f conftest.err conftest.$ac_ext |
| 3428 | |
| 3429 | done |
| 3430 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3431 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3432 | if $ac_preproc_ok; then |
| 3433 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3434 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3435 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3436 | See \`config.log' for more details." >&5 |
| 3437 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3438 | See \`config.log' for more details." >&2;} |
| 3439 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3440 | fi |
| 3441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3442 | ac_ext=c |
| 3443 | ac_cpp='$CPP $CPPFLAGS' |
| 3444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3447 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3448 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3449 | |
| 3450 | |
| 3451 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 3452 | subdirs="$subdirs projects/llvm-gcc" |
| 3453 | |
| 3454 | fi |
| 3455 | |
| 3456 | if test -d ${srcdir}/projects/test-suite ; then |
| 3457 | subdirs="$subdirs projects/test-suite" |
| 3458 | |
| 3459 | fi |
| 3460 | |
| 3461 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3462 | subdirs="$subdirs projects/llvm-test" |
| 3463 | |
| 3464 | fi |
| 3465 | |
| 3466 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3467 | subdirs="$subdirs projects/poolalloc" |
| 3468 | |
| 3469 | fi |
| 3470 | |
| 3471 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3472 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3473 | |
| 3474 | fi |
| 3475 | |
| 3476 | for i in `ls ${srcdir}/projects` |
| 3477 | do |
| 3478 | if test -d ${srcdir}/projects/${i} ; then |
| 3479 | case ${i} in |
| 3480 | sample) subdirs="$subdirs projects/sample" |
| 3481 | ;; |
| 3482 | privbracket) subdirs="$subdirs projects/privbracket" |
| 3483 | ;; |
| 3484 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
| 3485 | ;; |
| 3486 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
| 3487 | ;; |
| 3488 | llvm-java) subdirs="$subdirs projects/llvm-java" |
| 3489 | ;; |
| 3490 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
| 3491 | ;; |
| 3492 | safecode) subdirs="$subdirs projects/safecode" |
| 3493 | ;; |
| 3494 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
| 3495 | ;; |
Daniel Dunbar | d45162b | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3496 | compiler-rt) ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3497 | llvm-gcc) ;; |
| 3498 | test-suite) ;; |
| 3499 | llvm-test) ;; |
| 3500 | poolalloc) ;; |
| 3501 | llvm-poolalloc) ;; |
| 3502 | *) |
| 3503 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3504 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3505 | ;; |
| 3506 | esac |
| 3507 | fi |
| 3508 | done |
| 3509 | |
| 3510 | # Check whether --enable-polly was given. |
| 3511 | if test "${enable_polly+set}" = set; then |
| 3512 | enableval=$enable_polly; |
| 3513 | else |
| 3514 | enableval=default |
| 3515 | fi |
| 3516 | |
| 3517 | case "$enableval" in |
| 3518 | yes) ENABLE_POLLY=1 |
| 3519 | ;; |
| 3520 | no) ENABLE_POLLY=0 |
| 3521 | ;; |
| 3522 | default) ENABLE_POLLY=1 |
| 3523 | ;; |
| 3524 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3525 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3526 | { (exit 1); exit 1; }; } ;; |
| 3527 | esac |
| 3528 | |
| 3529 | |
| 3530 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3531 | LLVM_HAS_POLLY=1 |
| 3532 | |
| 3533 | subdirs="$subdirs tools/polly" |
| 3534 | |
| 3535 | fi |
| 3536 | |
| 3537 | |
| 3538 | # Make sure we can run config.sub. |
| 3539 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3540 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3541 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3542 | { (exit 1); exit 1; }; } |
| 3543 | |
| 3544 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3545 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3546 | if test "${ac_cv_build+set}" = set; then |
| 3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3548 | else |
| 3549 | ac_build_alias=$build_alias |
| 3550 | test "x$ac_build_alias" = x && |
| 3551 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3552 | test "x$ac_build_alias" = x && |
| 3553 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3554 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3555 | { (exit 1); exit 1; }; } |
| 3556 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3557 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3558 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3559 | { (exit 1); exit 1; }; } |
| 3560 | |
| 3561 | fi |
| 3562 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3563 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3564 | case $ac_cv_build in |
| 3565 | *-*-*) ;; |
| 3566 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3567 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3568 | { (exit 1); exit 1; }; };; |
| 3569 | esac |
| 3570 | build=$ac_cv_build |
| 3571 | ac_save_IFS=$IFS; IFS='-' |
| 3572 | set x $ac_cv_build |
| 3573 | shift |
| 3574 | build_cpu=$1 |
| 3575 | build_vendor=$2 |
| 3576 | shift; shift |
| 3577 | # Remember, the first character of IFS is used to create $*, |
| 3578 | # except with old shells: |
| 3579 | build_os=$* |
| 3580 | IFS=$ac_save_IFS |
| 3581 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3582 | |
| 3583 | |
| 3584 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3585 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3586 | if test "${ac_cv_host+set}" = set; then |
| 3587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3588 | else |
| 3589 | if test "x$host_alias" = x; then |
| 3590 | ac_cv_host=$ac_cv_build |
| 3591 | else |
| 3592 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3593 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3594 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3595 | { (exit 1); exit 1; }; } |
| 3596 | fi |
| 3597 | |
| 3598 | fi |
| 3599 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3600 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3601 | case $ac_cv_host in |
| 3602 | *-*-*) ;; |
| 3603 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3604 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3605 | { (exit 1); exit 1; }; };; |
| 3606 | esac |
| 3607 | host=$ac_cv_host |
| 3608 | ac_save_IFS=$IFS; IFS='-' |
| 3609 | set x $ac_cv_host |
| 3610 | shift |
| 3611 | host_cpu=$1 |
| 3612 | host_vendor=$2 |
| 3613 | shift; shift |
| 3614 | # Remember, the first character of IFS is used to create $*, |
| 3615 | # except with old shells: |
| 3616 | host_os=$* |
| 3617 | IFS=$ac_save_IFS |
| 3618 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3619 | |
| 3620 | |
| 3621 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3622 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3623 | if test "${ac_cv_target+set}" = set; then |
| 3624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3625 | else |
| 3626 | if test "x$target_alias" = x; then |
| 3627 | ac_cv_target=$ac_cv_host |
| 3628 | else |
| 3629 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3630 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3631 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3632 | { (exit 1); exit 1; }; } |
| 3633 | fi |
| 3634 | |
| 3635 | fi |
| 3636 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3637 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3638 | case $ac_cv_target in |
| 3639 | *-*-*) ;; |
| 3640 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3641 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3642 | { (exit 1); exit 1; }; };; |
| 3643 | esac |
| 3644 | target=$ac_cv_target |
| 3645 | ac_save_IFS=$IFS; IFS='-' |
| 3646 | set x $ac_cv_target |
| 3647 | shift |
| 3648 | target_cpu=$1 |
| 3649 | target_vendor=$2 |
| 3650 | shift; shift |
| 3651 | # Remember, the first character of IFS is used to create $*, |
| 3652 | # except with old shells: |
| 3653 | target_os=$* |
| 3654 | IFS=$ac_save_IFS |
| 3655 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3656 | |
| 3657 | |
| 3658 | # The aliases save the names the user supplied, while $host etc. |
| 3659 | # will get canonicalized. |
| 3660 | test -n "$target_alias" && |
| 3661 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3662 | NONENONEs,x,x, && |
| 3663 | program_prefix=${target_alias}- |
| 3664 | |
| 3665 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3666 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3667 | if test "${llvm_cv_os_type+set}" = set; then |
| 3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3669 | else |
| 3670 | case $host in |
| 3671 | *-*-aix*) |
| 3672 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3673 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3674 | llvm_cv_os_type="AIX" |
| 3675 | llvm_cv_platform_type="Unix" ;; |
| 3676 | *-*-irix*) |
| 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="IRIX" |
| 3680 | llvm_cv_platform_type="Unix" ;; |
| 3681 | *-*-cygwin*) |
| 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="Cygwin" |
| 3685 | llvm_cv_platform_type="Unix" ;; |
| 3686 | *-*-darwin*) |
| 3687 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3688 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3689 | llvm_cv_os_type="Darwin" |
| 3690 | llvm_cv_platform_type="Unix" ;; |
| 3691 | *-*-minix*) |
| 3692 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3693 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3694 | llvm_cv_os_type="Minix" |
| 3695 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3696 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3697 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3698 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3699 | llvm_cv_os_type="FreeBSD" |
| 3700 | llvm_cv_platform_type="Unix" ;; |
| 3701 | *-*-openbsd*) |
| 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="OpenBSD" |
| 3705 | llvm_cv_platform_type="Unix" ;; |
| 3706 | *-*-netbsd*) |
| 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="NetBSD" |
| 3710 | llvm_cv_platform_type="Unix" ;; |
| 3711 | *-*-dragonfly*) |
| 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="DragonFly" |
| 3715 | llvm_cv_platform_type="Unix" ;; |
| 3716 | *-*-hpux*) |
| 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="HP-UX" |
| 3720 | llvm_cv_platform_type="Unix" ;; |
| 3721 | *-*-interix*) |
| 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="Interix" |
| 3725 | llvm_cv_platform_type="Unix" ;; |
| 3726 | *-*-linux*) |
| 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="Linux" |
| 3730 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3731 | *-*-gnu*) |
| 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="GNU" |
| 3735 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3736 | *-*-solaris*) |
| 3737 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3738 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3739 | llvm_cv_os_type="SunOS" |
| 3740 | llvm_cv_platform_type="Unix" ;; |
| 3741 | *-*-auroraux*) |
| 3742 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3743 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3744 | llvm_cv_os_type="AuroraUX" |
| 3745 | llvm_cv_platform_type="Unix" ;; |
| 3746 | *-*-win32*) |
| 3747 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3748 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3749 | llvm_cv_os_type="Win32" |
| 3750 | llvm_cv_platform_type="Win32" ;; |
| 3751 | *-*-mingw*) |
| 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="MingW" |
| 3755 | llvm_cv_platform_type="Win32" ;; |
| 3756 | *-*-haiku*) |
| 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="Haiku" |
| 3760 | llvm_cv_platform_type="Unix" ;; |
| 3761 | *-unknown-eabi*) |
| 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="Freestanding" |
| 3765 | llvm_cv_platform_type="Unix" ;; |
| 3766 | *-unknown-elf*) |
| 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 | *) |
| 3772 | llvm_cv_link_all_option="" |
| 3773 | llvm_cv_no_link_all_option="" |
| 3774 | llvm_cv_os_type="Unknown" |
| 3775 | llvm_cv_platform_type="Unknown" ;; |
| 3776 | esac |
| 3777 | fi |
| 3778 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3779 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3780 | |
| 3781 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3782 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3783 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3785 | else |
| 3786 | case $target in |
| 3787 | *-*-aix*) |
| 3788 | llvm_cv_target_os_type="AIX" ;; |
| 3789 | *-*-irix*) |
| 3790 | llvm_cv_target_os_type="IRIX" ;; |
| 3791 | *-*-cygwin*) |
| 3792 | llvm_cv_target_os_type="Cygwin" ;; |
| 3793 | *-*-darwin*) |
| 3794 | llvm_cv_target_os_type="Darwin" ;; |
| 3795 | *-*-minix*) |
| 3796 | llvm_cv_target_os_type="Minix" ;; |
| 3797 | *-*-freebsd*) |
| 3798 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3799 | *-*-openbsd*) |
| 3800 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3801 | *-*-netbsd*) |
| 3802 | llvm_cv_target_os_type="NetBSD" ;; |
| 3803 | *-*-dragonfly*) |
| 3804 | llvm_cv_target_os_type="DragonFly" ;; |
| 3805 | *-*-hpux*) |
| 3806 | llvm_cv_target_os_type="HP-UX" ;; |
| 3807 | *-*-interix*) |
| 3808 | llvm_cv_target_os_type="Interix" ;; |
| 3809 | *-*-linux*) |
| 3810 | llvm_cv_target_os_type="Linux" ;; |
| 3811 | *-*-solaris*) |
| 3812 | llvm_cv_target_os_type="SunOS" ;; |
| 3813 | *-*-auroraux*) |
| 3814 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3815 | *-*-win32*) |
| 3816 | llvm_cv_target_os_type="Win32" ;; |
| 3817 | *-*-mingw*) |
| 3818 | llvm_cv_target_os_type="MingW" ;; |
| 3819 | *-*-haiku*) |
| 3820 | llvm_cv_target_os_type="Haiku" ;; |
| 3821 | *-*-rtems*) |
| 3822 | llvm_cv_target_os_type="RTEMS" ;; |
| 3823 | *-*-nacl*) |
| 3824 | llvm_cv_target_os_type="NativeClient" ;; |
| 3825 | *-unknown-eabi*) |
| 3826 | llvm_cv_target_os_type="Freestanding" ;; |
| 3827 | *) |
| 3828 | llvm_cv_target_os_type="Unknown" ;; |
| 3829 | esac |
| 3830 | fi |
| 3831 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3832 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3833 | |
| 3834 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3835 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3836 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3837 | { (exit 1); exit 1; }; } |
| 3838 | fi |
| 3839 | |
| 3840 | OS=$llvm_cv_os_type |
| 3841 | |
| 3842 | HOST_OS=$llvm_cv_os_type |
| 3843 | |
| 3844 | TARGET_OS=$llvm_cv_target_os_type |
| 3845 | |
| 3846 | |
| 3847 | LINKALL=$llvm_cv_link_all_option |
| 3848 | |
| 3849 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3850 | |
| 3851 | |
| 3852 | case $llvm_cv_platform_type in |
| 3853 | Unix) |
| 3854 | |
| 3855 | cat >>confdefs.h <<\_ACEOF |
| 3856 | #define LLVM_ON_UNIX 1 |
| 3857 | _ACEOF |
| 3858 | |
| 3859 | LLVM_ON_UNIX=1 |
| 3860 | |
| 3861 | LLVM_ON_WIN32=0 |
| 3862 | |
| 3863 | ;; |
| 3864 | Win32) |
| 3865 | |
| 3866 | cat >>confdefs.h <<\_ACEOF |
| 3867 | #define LLVM_ON_WIN32 1 |
| 3868 | _ACEOF |
| 3869 | |
| 3870 | LLVM_ON_UNIX=0 |
| 3871 | |
| 3872 | LLVM_ON_WIN32=1 |
| 3873 | |
| 3874 | ;; |
| 3875 | esac |
| 3876 | |
| 3877 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3878 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3879 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3881 | else |
| 3882 | case $target in |
| 3883 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3884 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3885 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3886 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3887 | arm*-*) llvm_cv_target_arch="ARM" ;; |
| 3888 | mips-*) llvm_cv_target_arch="Mips" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 3889 | mipsel-*) llvm_cv_target_arch="Mips" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3890 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3891 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3892 | hexagon-*) llvm_cv_target_arch="Hexagon" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3893 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
| 3894 | ptx-*) llvm_cv_target_arch="PTX" ;; |
| 3895 | *) llvm_cv_target_arch="Unknown" ;; |
| 3896 | esac |
| 3897 | fi |
| 3898 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3899 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3900 | |
| 3901 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3902 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3903 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3904 | fi |
| 3905 | |
| 3906 | # Determine the LLVM native architecture for the target |
| 3907 | case "$llvm_cv_target_arch" in |
| 3908 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3909 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3910 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3911 | esac |
| 3912 | |
| 3913 | ARCH=$llvm_cv_target_arch |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3918 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3919 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3920 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3923 | # Extract the first word of "grep ggrep" to use in msg output |
| 3924 | if test -z "$GREP"; then |
| 3925 | set dummy grep ggrep; ac_prog_name=$2 |
| 3926 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3928 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3929 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3930 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3932 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3933 | do |
| 3934 | IFS=$as_save_IFS |
| 3935 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3936 | for ac_prog in grep ggrep; do |
| 3937 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3938 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3939 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3940 | # 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] | 3941 | # Check for GNU $ac_path_GREP |
| 3942 | case `"$ac_path_GREP" --version 2>&1` in |
| 3943 | *GNU*) |
| 3944 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3945 | *) |
| 3946 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3947 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3948 | while : |
| 3949 | do |
| 3950 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3951 | mv "conftest.tmp" "conftest.in" |
| 3952 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3953 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3954 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3955 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3956 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3957 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3958 | # Best one so far, save it but keep looking for a better one |
| 3959 | ac_cv_path_GREP="$ac_path_GREP" |
| 3960 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3962 | # 10*(2^10) chars as input seems more than enough |
| 3963 | test $ac_count -gt 10 && break |
| 3964 | done |
| 3965 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3966 | esac |
| 3967 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3968 | |
| 3969 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3970 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3971 | done |
| 3972 | |
| 3973 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3974 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3975 | |
| 3976 | |
| 3977 | fi |
| 3978 | |
| 3979 | GREP="$ac_cv_path_GREP" |
| 3980 | if test -z "$GREP"; then |
| 3981 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3982 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3983 | { (exit 1); exit 1; }; } |
| 3984 | fi |
| 3985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3986 | else |
| 3987 | ac_cv_path_GREP=$GREP |
| 3988 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3991 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3992 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3993 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3994 | GREP="$ac_cv_path_GREP" |
| 3995 | |
| 3996 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3997 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3998 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3999 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4001 | else |
| 4002 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4003 | then ac_cv_path_EGREP="$GREP -E" |
| 4004 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4005 | # Extract the first word of "egrep" to use in msg output |
| 4006 | if test -z "$EGREP"; then |
| 4007 | set dummy egrep; ac_prog_name=$2 |
| 4008 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4010 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4011 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4012 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4014 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4015 | do |
| 4016 | IFS=$as_save_IFS |
| 4017 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4018 | for ac_prog in egrep; do |
| 4019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4020 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4021 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4022 | # 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] | 4023 | # Check for GNU $ac_path_EGREP |
| 4024 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4025 | *GNU*) |
| 4026 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4027 | *) |
| 4028 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4029 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4030 | while : |
| 4031 | do |
| 4032 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4033 | mv "conftest.tmp" "conftest.in" |
| 4034 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4035 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4036 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4037 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4038 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4039 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4040 | # Best one so far, save it but keep looking for a better one |
| 4041 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4042 | ac_path_EGREP_max=$ac_count |
| 4043 | fi |
| 4044 | # 10*(2^10) chars as input seems more than enough |
| 4045 | test $ac_count -gt 10 && break |
| 4046 | done |
| 4047 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4048 | esac |
| 4049 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4050 | |
| 4051 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4052 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4053 | done |
| 4054 | |
| 4055 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4056 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4057 | |
| 4058 | |
| 4059 | fi |
| 4060 | |
| 4061 | EGREP="$ac_cv_path_EGREP" |
| 4062 | if test -z "$EGREP"; then |
| 4063 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4064 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4065 | { (exit 1); exit 1; }; } |
| 4066 | fi |
| 4067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4068 | else |
| 4069 | ac_cv_path_EGREP=$EGREP |
| 4070 | fi |
| 4071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4073 | fi |
| 4074 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4075 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4076 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4077 | EGREP="$ac_cv_path_EGREP" |
| 4078 | |
| 4079 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4080 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4081 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4082 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4084 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4085 | cat >conftest.$ac_ext <<_ACEOF |
| 4086 | /* confdefs.h. */ |
| 4087 | _ACEOF |
| 4088 | cat confdefs.h >>conftest.$ac_ext |
| 4089 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4090 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4091 | #include <stdlib.h> |
| 4092 | #include <stdarg.h> |
| 4093 | #include <string.h> |
| 4094 | #include <float.h> |
| 4095 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4096 | int |
| 4097 | main () |
| 4098 | { |
| 4099 | |
| 4100 | ; |
| 4101 | return 0; |
| 4102 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4103 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4104 | rm -f conftest.$ac_objext |
| 4105 | if { (ac_try="$ac_compile" |
| 4106 | case "(($ac_try" in |
| 4107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4108 | *) ac_try_echo=$ac_try;; |
| 4109 | esac |
| 4110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4111 | (eval "$ac_compile") 2>conftest.er1 |
| 4112 | ac_status=$? |
| 4113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4114 | rm -f conftest.er1 |
| 4115 | cat conftest.err >&5 |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); } && |
| 4118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4119 | { (case "(($ac_try" in |
| 4120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4121 | *) ac_try_echo=$ac_try;; |
| 4122 | esac |
| 4123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4124 | (eval "$ac_try") 2>&5 |
| 4125 | ac_status=$? |
| 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4127 | (exit $ac_status); }; } && |
| 4128 | { ac_try='test -s conftest.$ac_objext' |
| 4129 | { (case "(($ac_try" in |
| 4130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4131 | *) ac_try_echo=$ac_try;; |
| 4132 | esac |
| 4133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4134 | (eval "$ac_try") 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4138 | ac_cv_header_stdc=yes |
| 4139 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4140 | echo "$as_me: failed program was:" >&5 |
| 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4142 | |
| 4143 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4147 | |
| 4148 | if test $ac_cv_header_stdc = yes; then |
| 4149 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4150 | cat >conftest.$ac_ext <<_ACEOF |
| 4151 | /* confdefs.h. */ |
| 4152 | _ACEOF |
| 4153 | cat confdefs.h >>conftest.$ac_ext |
| 4154 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4155 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4156 | #include <string.h> |
| 4157 | |
| 4158 | _ACEOF |
| 4159 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4160 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4161 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4162 | else |
| 4163 | ac_cv_header_stdc=no |
| 4164 | fi |
| 4165 | rm -f conftest* |
| 4166 | |
| 4167 | fi |
| 4168 | |
| 4169 | if test $ac_cv_header_stdc = yes; then |
| 4170 | # 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] | 4171 | cat >conftest.$ac_ext <<_ACEOF |
| 4172 | /* confdefs.h. */ |
| 4173 | _ACEOF |
| 4174 | cat confdefs.h >>conftest.$ac_ext |
| 4175 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4176 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4177 | #include <stdlib.h> |
| 4178 | |
| 4179 | _ACEOF |
| 4180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4181 | $EGREP "free" >/dev/null 2>&1; then |
| 4182 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4183 | else |
| 4184 | ac_cv_header_stdc=no |
| 4185 | fi |
| 4186 | rm -f conftest* |
| 4187 | |
| 4188 | fi |
| 4189 | |
| 4190 | if test $ac_cv_header_stdc = yes; then |
| 4191 | # /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] | 4192 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4193 | : |
| 4194 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4195 | cat >conftest.$ac_ext <<_ACEOF |
| 4196 | /* confdefs.h. */ |
| 4197 | _ACEOF |
| 4198 | cat confdefs.h >>conftest.$ac_ext |
| 4199 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4200 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4201 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4202 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4203 | #if ((' ' & 0x0FF) == 0x020) |
| 4204 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4205 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4206 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4207 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4208 | (('a' <= (c) && (c) <= 'i') \ |
| 4209 | || ('j' <= (c) && (c) <= 'r') \ |
| 4210 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4211 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4212 | #endif |
| 4213 | |
| 4214 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4215 | int |
| 4216 | main () |
| 4217 | { |
| 4218 | int i; |
| 4219 | for (i = 0; i < 256; i++) |
| 4220 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4221 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4222 | return 2; |
| 4223 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4224 | } |
| 4225 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4226 | rm -f conftest$ac_exeext |
| 4227 | if { (ac_try="$ac_link" |
| 4228 | case "(($ac_try" in |
| 4229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4230 | *) ac_try_echo=$ac_try;; |
| 4231 | esac |
| 4232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4233 | (eval "$ac_link") 2>&5 |
| 4234 | ac_status=$? |
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4237 | { (case "(($ac_try" in |
| 4238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4239 | *) ac_try_echo=$ac_try;; |
| 4240 | esac |
| 4241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4242 | (eval "$ac_try") 2>&5 |
| 4243 | ac_status=$? |
| 4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4245 | (exit $ac_status); }; }; then |
| 4246 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4248 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4249 | echo "$as_me: failed program was:" >&5 |
| 4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4251 | |
| 4252 | ( exit $ac_status ) |
| 4253 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4254 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4255 | 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] | 4256 | fi |
| 4257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4259 | fi |
| 4260 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4261 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4262 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4263 | if test $ac_cv_header_stdc = yes; then |
| 4264 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4265 | cat >>confdefs.h <<\_ACEOF |
| 4266 | #define STDC_HEADERS 1 |
| 4267 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4268 | |
| 4269 | fi |
| 4270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4272 | |
| 4273 | |
| 4274 | |
| 4275 | |
| 4276 | |
| 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4281 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4282 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4283 | do |
| 4284 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4285 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4287 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4289 | else |
| 4290 | cat >conftest.$ac_ext <<_ACEOF |
| 4291 | /* confdefs.h. */ |
| 4292 | _ACEOF |
| 4293 | cat confdefs.h >>conftest.$ac_ext |
| 4294 | cat >>conftest.$ac_ext <<_ACEOF |
| 4295 | /* end confdefs.h. */ |
| 4296 | $ac_includes_default |
| 4297 | |
| 4298 | #include <$ac_header> |
| 4299 | _ACEOF |
| 4300 | rm -f conftest.$ac_objext |
| 4301 | if { (ac_try="$ac_compile" |
| 4302 | case "(($ac_try" in |
| 4303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4304 | *) ac_try_echo=$ac_try;; |
| 4305 | esac |
| 4306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4307 | (eval "$ac_compile") 2>conftest.er1 |
| 4308 | ac_status=$? |
| 4309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4310 | rm -f conftest.er1 |
| 4311 | cat conftest.err >&5 |
| 4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4313 | (exit $ac_status); } && |
| 4314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4315 | { (case "(($ac_try" in |
| 4316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4317 | *) ac_try_echo=$ac_try;; |
| 4318 | esac |
| 4319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4320 | (eval "$ac_try") 2>&5 |
| 4321 | ac_status=$? |
| 4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4323 | (exit $ac_status); }; } && |
| 4324 | { ac_try='test -s conftest.$ac_objext' |
| 4325 | { (case "(($ac_try" in |
| 4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4327 | *) ac_try_echo=$ac_try;; |
| 4328 | esac |
| 4329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4330 | (eval "$ac_try") 2>&5 |
| 4331 | ac_status=$? |
| 4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4333 | (exit $ac_status); }; }; then |
| 4334 | eval "$as_ac_Header=yes" |
| 4335 | else |
| 4336 | echo "$as_me: failed program was:" >&5 |
| 4337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4338 | |
| 4339 | eval "$as_ac_Header=no" |
| 4340 | fi |
| 4341 | |
| 4342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4343 | fi |
| 4344 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4345 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4346 | echo "${ECHO_T}$ac_res" >&6; } |
| 4347 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4348 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4349 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4350 | _ACEOF |
| 4351 | |
| 4352 | fi |
| 4353 | |
| 4354 | done |
| 4355 | |
| 4356 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4357 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4358 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4359 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4361 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4362 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4363 | cat >conftest.$ac_ext <<_ACEOF |
| 4364 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4365 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4366 | cat confdefs.h >>conftest.$ac_ext |
| 4367 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4368 | /* end confdefs.h. */ |
| 4369 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4370 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4371 | |
| 4372 | int |
| 4373 | main () |
| 4374 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4375 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4376 | bogus endian macros |
| 4377 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4378 | |
| 4379 | ; |
| 4380 | return 0; |
| 4381 | } |
| 4382 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4383 | rm -f conftest.$ac_objext |
| 4384 | if { (ac_try="$ac_compile" |
| 4385 | case "(($ac_try" in |
| 4386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4387 | *) ac_try_echo=$ac_try;; |
| 4388 | esac |
| 4389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4390 | (eval "$ac_compile") 2>conftest.er1 |
| 4391 | ac_status=$? |
| 4392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4393 | rm -f conftest.er1 |
| 4394 | cat conftest.err >&5 |
| 4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4396 | (exit $ac_status); } && |
| 4397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4398 | { (case "(($ac_try" in |
| 4399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4400 | *) ac_try_echo=$ac_try;; |
| 4401 | esac |
| 4402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4403 | (eval "$ac_try") 2>&5 |
| 4404 | ac_status=$? |
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4406 | (exit $ac_status); }; } && |
| 4407 | { ac_try='test -s conftest.$ac_objext' |
| 4408 | { (case "(($ac_try" in |
| 4409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4410 | *) ac_try_echo=$ac_try;; |
| 4411 | esac |
| 4412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4413 | (eval "$ac_try") 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4417 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4418 | cat >conftest.$ac_ext <<_ACEOF |
| 4419 | /* confdefs.h. */ |
| 4420 | _ACEOF |
| 4421 | cat confdefs.h >>conftest.$ac_ext |
| 4422 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4423 | /* end confdefs.h. */ |
| 4424 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4425 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4426 | |
| 4427 | int |
| 4428 | main () |
| 4429 | { |
| 4430 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4431 | not big endian |
| 4432 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4433 | |
| 4434 | ; |
| 4435 | return 0; |
| 4436 | } |
| 4437 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4438 | rm -f conftest.$ac_objext |
| 4439 | if { (ac_try="$ac_compile" |
| 4440 | case "(($ac_try" in |
| 4441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4442 | *) ac_try_echo=$ac_try;; |
| 4443 | esac |
| 4444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4445 | (eval "$ac_compile") 2>conftest.er1 |
| 4446 | ac_status=$? |
| 4447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4448 | rm -f conftest.er1 |
| 4449 | cat conftest.err >&5 |
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4451 | (exit $ac_status); } && |
| 4452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4453 | { (case "(($ac_try" in |
| 4454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4455 | *) ac_try_echo=$ac_try;; |
| 4456 | esac |
| 4457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4458 | (eval "$ac_try") 2>&5 |
| 4459 | ac_status=$? |
| 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4461 | (exit $ac_status); }; } && |
| 4462 | { ac_try='test -s conftest.$ac_objext' |
| 4463 | { (case "(($ac_try" in |
| 4464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4465 | *) ac_try_echo=$ac_try;; |
| 4466 | esac |
| 4467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4468 | (eval "$ac_try") 2>&5 |
| 4469 | ac_status=$? |
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4471 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4472 | ac_cv_c_bigendian=yes |
| 4473 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4474 | echo "$as_me: failed program was:" >&5 |
| 4475 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4476 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4477 | ac_cv_c_bigendian=no |
| 4478 | fi |
| 4479 | |
| 4480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4481 | else |
| 4482 | echo "$as_me: failed program was:" >&5 |
| 4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4484 | |
| 4485 | # It does not; compile a test program. |
| 4486 | if test "$cross_compiling" = yes; then |
| 4487 | # try to guess the endianness by grepping values into an object file |
| 4488 | ac_cv_c_bigendian=unknown |
| 4489 | cat >conftest.$ac_ext <<_ACEOF |
| 4490 | /* confdefs.h. */ |
| 4491 | _ACEOF |
| 4492 | cat confdefs.h >>conftest.$ac_ext |
| 4493 | cat >>conftest.$ac_ext <<_ACEOF |
| 4494 | /* end confdefs.h. */ |
| 4495 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4496 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4497 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4498 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4499 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4500 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4501 | int |
| 4502 | main () |
| 4503 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4504 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4505 | ; |
| 4506 | return 0; |
| 4507 | } |
| 4508 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4509 | rm -f conftest.$ac_objext |
| 4510 | if { (ac_try="$ac_compile" |
| 4511 | case "(($ac_try" in |
| 4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4513 | *) ac_try_echo=$ac_try;; |
| 4514 | esac |
| 4515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4516 | (eval "$ac_compile") 2>conftest.er1 |
| 4517 | ac_status=$? |
| 4518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4519 | rm -f conftest.er1 |
| 4520 | cat conftest.err >&5 |
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4522 | (exit $ac_status); } && |
| 4523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4524 | { (case "(($ac_try" in |
| 4525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4526 | *) ac_try_echo=$ac_try;; |
| 4527 | esac |
| 4528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4529 | (eval "$ac_try") 2>&5 |
| 4530 | ac_status=$? |
| 4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4532 | (exit $ac_status); }; } && |
| 4533 | { ac_try='test -s conftest.$ac_objext' |
| 4534 | { (case "(($ac_try" in |
| 4535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4536 | *) ac_try_echo=$ac_try;; |
| 4537 | esac |
| 4538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4539 | (eval "$ac_try") 2>&5 |
| 4540 | ac_status=$? |
| 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4542 | (exit $ac_status); }; }; then |
| 4543 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4544 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4545 | fi |
| 4546 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4547 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4548 | ac_cv_c_bigendian=no |
| 4549 | else |
| 4550 | # finding both strings is unlikely to happen, but who knows? |
| 4551 | ac_cv_c_bigendian=unknown |
| 4552 | fi |
| 4553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4554 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4555 | echo "$as_me: failed program was:" >&5 |
| 4556 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4557 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4558 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4562 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4563 | cat >conftest.$ac_ext <<_ACEOF |
| 4564 | /* confdefs.h. */ |
| 4565 | _ACEOF |
| 4566 | cat confdefs.h >>conftest.$ac_ext |
| 4567 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4568 | /* end confdefs.h. */ |
| 4569 | $ac_includes_default |
| 4570 | int |
| 4571 | main () |
| 4572 | { |
| 4573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4574 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4575 | union |
| 4576 | { |
| 4577 | long int l; |
| 4578 | char c[sizeof (long int)]; |
| 4579 | } u; |
| 4580 | u.l = 1; |
| 4581 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4582 | |
| 4583 | ; |
| 4584 | return 0; |
| 4585 | } |
| 4586 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4587 | rm -f conftest$ac_exeext |
| 4588 | if { (ac_try="$ac_link" |
| 4589 | case "(($ac_try" in |
| 4590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4591 | *) ac_try_echo=$ac_try;; |
| 4592 | esac |
| 4593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4594 | (eval "$ac_link") 2>&5 |
| 4595 | ac_status=$? |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4597 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4598 | { (case "(($ac_try" in |
| 4599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4600 | *) ac_try_echo=$ac_try;; |
| 4601 | esac |
| 4602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4603 | (eval "$ac_try") 2>&5 |
| 4604 | ac_status=$? |
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4606 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4607 | ac_cv_c_bigendian=no |
| 4608 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4609 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4610 | echo "$as_me: failed program was:" >&5 |
| 4611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4612 | |
| 4613 | ( exit $ac_status ) |
| 4614 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4615 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4616 | 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] | 4617 | fi |
| 4618 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4620 | fi |
| 4621 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4623 | fi |
| 4624 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4625 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4626 | case $ac_cv_c_bigendian in |
| 4627 | yes) |
| 4628 | ENDIAN=big |
| 4629 | ;; |
| 4630 | no) |
| 4631 | ENDIAN=little |
| 4632 | ;; |
| 4633 | *) |
| 4634 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4635 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4636 | echo "$as_me: error: unknown endianness |
| 4637 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4638 | { (exit 1); exit 1; }; } ;; |
| 4639 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4640 | |
| 4641 | |
| 4642 | if test "$cross_compiling" = yes; then |
| 4643 | LLVM_CROSS_COMPILING=1 |
| 4644 | |
| 4645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4646 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4647 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4648 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4650 | else |
| 4651 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4652 | ac_cv_build_exeext=.exe |
| 4653 | else |
| 4654 | ac_build_prefix=${build_alias}- |
| 4655 | |
| 4656 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4657 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4658 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4660 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4662 | else |
| 4663 | if test -n "$BUILD_CC"; then |
| 4664 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4665 | else |
| 4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4667 | for as_dir in $PATH |
| 4668 | do |
| 4669 | IFS=$as_save_IFS |
| 4670 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4671 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4672 | 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] | 4673 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4674 | 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] | 4675 | break 2 |
| 4676 | fi |
| 4677 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4678 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4679 | IFS=$as_save_IFS |
| 4680 | |
| 4681 | fi |
| 4682 | fi |
| 4683 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4684 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4685 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4686 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4687 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4688 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4689 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4690 | fi |
| 4691 | |
| 4692 | |
| 4693 | if test -z "$BUILD_CC"; then |
| 4694 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4695 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4696 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4698 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4700 | else |
| 4701 | if test -n "$BUILD_CC"; then |
| 4702 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4703 | else |
| 4704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4705 | for as_dir in $PATH |
| 4706 | do |
| 4707 | IFS=$as_save_IFS |
| 4708 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4710 | 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] | 4711 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4712 | 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] | 4713 | break 2 |
| 4714 | fi |
| 4715 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4716 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4717 | IFS=$as_save_IFS |
| 4718 | |
| 4719 | fi |
| 4720 | fi |
| 4721 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4722 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4723 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4724 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4725 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4726 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4727 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | fi |
| 4729 | |
| 4730 | |
| 4731 | if test -z "$BUILD_CC"; then |
| 4732 | # Extract the first word of "cc", so it can be a program name with args. |
| 4733 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4736 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4738 | else |
| 4739 | if test -n "$BUILD_CC"; then |
| 4740 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4741 | else |
| 4742 | ac_prog_rejected=no |
| 4743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4744 | for as_dir in $PATH |
| 4745 | do |
| 4746 | IFS=$as_save_IFS |
| 4747 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4749 | 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] | 4750 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4751 | ac_prog_rejected=yes |
| 4752 | continue |
| 4753 | fi |
| 4754 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4755 | 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] | 4756 | break 2 |
| 4757 | fi |
| 4758 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4759 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4760 | IFS=$as_save_IFS |
| 4761 | |
| 4762 | if test $ac_prog_rejected = yes; then |
| 4763 | # We found a bogon in the path, so make sure we never use it. |
| 4764 | set dummy $ac_cv_prog_BUILD_CC |
| 4765 | shift |
| 4766 | if test $# != 0; then |
| 4767 | # We chose a different compiler from the bogus one. |
| 4768 | # However, it has the same basename, so the bogon will be chosen |
| 4769 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4770 | shift |
| 4771 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4772 | fi |
| 4773 | fi |
| 4774 | fi |
| 4775 | fi |
| 4776 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4777 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4778 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4779 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4780 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4781 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4782 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4783 | fi |
| 4784 | |
| 4785 | |
| 4786 | fi |
| 4787 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4788 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4789 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4790 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4791 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4792 | rm -f conftest* |
| 4793 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4794 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4795 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4796 | (eval $ac_build_link) 2>&5 |
| 4797 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4799 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4800 | for file in conftest.*; do |
| 4801 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4802 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4803 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4804 | esac |
| 4805 | done |
| 4806 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4807 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4808 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4809 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4810 | fi |
| 4811 | rm -f conftest* |
| 4812 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4813 | fi |
| 4814 | fi |
| 4815 | |
| 4816 | BUILD_EXEEXT="" |
| 4817 | 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] | 4818 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4819 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4820 | ac_build_exeext=$BUILD_EXEEXT |
| 4821 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4822 | ac_build_prefix=${build_alias}- |
| 4823 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4824 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4825 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4827 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4829 | else |
| 4830 | if test -n "$BUILD_CXX"; then |
| 4831 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4832 | else |
| 4833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4834 | for as_dir in $PATH |
| 4835 | do |
| 4836 | IFS=$as_save_IFS |
| 4837 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4838 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4839 | 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] | 4840 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4841 | 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] | 4842 | break 2 |
| 4843 | fi |
| 4844 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4845 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4846 | IFS=$as_save_IFS |
| 4847 | |
| 4848 | fi |
| 4849 | fi |
| 4850 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4851 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4852 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4853 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4854 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4855 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4856 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | |
| 4859 | |
| 4860 | if test -z "$BUILD_CXX"; then |
| 4861 | # Extract the first word of "g++", so it can be a program name with args. |
| 4862 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4865 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4867 | else |
| 4868 | if test -n "$BUILD_CXX"; then |
| 4869 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4870 | else |
| 4871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4872 | for as_dir in $PATH |
| 4873 | do |
| 4874 | IFS=$as_save_IFS |
| 4875 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4877 | 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] | 4878 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4879 | 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] | 4880 | break 2 |
| 4881 | fi |
| 4882 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4883 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4884 | IFS=$as_save_IFS |
| 4885 | |
| 4886 | fi |
| 4887 | fi |
| 4888 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4889 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4890 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4891 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4892 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4893 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4894 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4895 | fi |
| 4896 | |
| 4897 | |
| 4898 | if test -z "$BUILD_CXX"; then |
| 4899 | # Extract the first word of "c++", so it can be a program name with args. |
| 4900 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4901 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4903 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4905 | else |
| 4906 | if test -n "$BUILD_CXX"; then |
| 4907 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4908 | else |
| 4909 | ac_prog_rejected=no |
| 4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4911 | for as_dir in $PATH |
| 4912 | do |
| 4913 | IFS=$as_save_IFS |
| 4914 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4916 | 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] | 4917 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4918 | ac_prog_rejected=yes |
| 4919 | continue |
| 4920 | fi |
| 4921 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4922 | 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] | 4923 | break 2 |
| 4924 | fi |
| 4925 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4926 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4927 | IFS=$as_save_IFS |
| 4928 | |
| 4929 | if test $ac_prog_rejected = yes; then |
| 4930 | # We found a bogon in the path, so make sure we never use it. |
| 4931 | set dummy $ac_cv_prog_BUILD_CXX |
| 4932 | shift |
| 4933 | if test $# != 0; then |
| 4934 | # We chose a different compiler from the bogus one. |
| 4935 | # However, it has the same basename, so the bogon will be chosen |
| 4936 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4937 | shift |
| 4938 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4939 | fi |
| 4940 | fi |
| 4941 | fi |
| 4942 | fi |
| 4943 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4944 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4945 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4946 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4947 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4948 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4949 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4950 | fi |
| 4951 | |
| 4952 | |
| 4953 | fi |
| 4954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4955 | else |
| 4956 | LLVM_CROSS_COMPILING=0 |
| 4957 | |
| 4958 | fi |
| 4959 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4960 | 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] | 4961 | cvsbuild="yes" |
| 4962 | optimize="no" |
| 4963 | CVSBUILD=CVSBUILD=1 |
| 4964 | |
| 4965 | else |
| 4966 | cvsbuild="no" |
| 4967 | optimize="yes" |
| 4968 | fi |
| 4969 | |
| 4970 | |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 4971 | # Check whether --enable-libcpp was given. |
| 4972 | if test "${enable_libcpp+set}" = set; then |
| 4973 | enableval=$enable_libcpp; |
| 4974 | else |
| 4975 | enableval=default |
| 4976 | fi |
| 4977 | |
| 4978 | case "$enableval" in |
| 4979 | yes) ENABLE_LIBCPP=1 |
| 4980 | ;; |
| 4981 | no) ENABLE_LIBCPP=0 |
| 4982 | ;; |
| 4983 | default) ENABLE_LIBCPP=0 |
| 4984 | ;; |
| 4985 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 |
| 4986 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} |
| 4987 | { (exit 1); exit 1; }; } ;; |
| 4988 | esac |
| 4989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4990 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4991 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4992 | enableval=$enable_optimized; |
| 4993 | else |
| 4994 | enableval=$optimize |
| 4995 | fi |
| 4996 | |
| 4997 | if test ${enableval} = "no" ; then |
| 4998 | ENABLE_OPTIMIZED= |
| 4999 | |
| 5000 | else |
| 5001 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 5002 | |
| 5003 | fi |
| 5004 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5005 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5006 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5007 | enableval=$enable_profiling; |
| 5008 | else |
| 5009 | enableval="no" |
| 5010 | fi |
| 5011 | |
| 5012 | if test ${enableval} = "no" ; then |
| 5013 | ENABLE_PROFILING= |
| 5014 | |
| 5015 | else |
| 5016 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 5017 | |
| 5018 | fi |
| 5019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5020 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5021 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5022 | enableval=$enable_assertions; |
| 5023 | else |
| 5024 | enableval="yes" |
| 5025 | fi |
| 5026 | |
| 5027 | if test ${enableval} = "yes" ; then |
| 5028 | DISABLE_ASSERTIONS= |
| 5029 | |
| 5030 | else |
| 5031 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 5032 | |
| 5033 | fi |
| 5034 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5035 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5036 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5037 | enableval=$enable_expensive_checks; |
| 5038 | else |
| 5039 | enableval="no" |
| 5040 | fi |
| 5041 | |
| 5042 | if test ${enableval} = "yes" ; then |
| 5043 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 5044 | |
| 5045 | EXPENSIVE_CHECKS=yes |
| 5046 | |
| 5047 | else |
| 5048 | ENABLE_EXPENSIVE_CHECKS= |
| 5049 | |
| 5050 | EXPENSIVE_CHECKS=no |
| 5051 | |
| 5052 | fi |
| 5053 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5054 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5055 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5056 | enableval=$enable_debug_runtime; |
| 5057 | else |
| 5058 | enableval=no |
| 5059 | fi |
| 5060 | |
| 5061 | if test ${enableval} = "no" ; then |
| 5062 | DEBUG_RUNTIME= |
| 5063 | |
| 5064 | else |
| 5065 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5066 | |
| 5067 | fi |
| 5068 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5069 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5070 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5071 | enableval=$enable_debug_symbols; |
| 5072 | else |
| 5073 | enableval=no |
| 5074 | fi |
| 5075 | |
| 5076 | if test ${enableval} = "no" ; then |
| 5077 | DEBUG_SYMBOLS= |
| 5078 | |
| 5079 | else |
| 5080 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5081 | |
| 5082 | fi |
| 5083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5084 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5085 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5086 | enableval=$enable_jit; |
| 5087 | else |
| 5088 | enableval=default |
| 5089 | fi |
| 5090 | |
| 5091 | if test ${enableval} = "no" |
| 5092 | then |
| 5093 | JIT= |
| 5094 | |
| 5095 | else |
| 5096 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5097 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5098 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5099 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5100 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5101 | PowerPC) 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 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5104 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5105 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5106 | ;; |
Bruno Cardoso Lopes | dca6cdd | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5107 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5108 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5109 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5110 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5111 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5112 | ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5113 | Hexagon) TARGET_HAS_JIT=0 |
| 5114 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5115 | MBlaze) TARGET_HAS_JIT=0 |
| 5116 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5117 | PTX) TARGET_HAS_JIT=0 |
| 5118 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5119 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5120 | ;; |
| 5121 | esac |
| 5122 | fi |
| 5123 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5124 | # Check whether --enable-docs was given. |
| 5125 | if test "${enable_docs+set}" = set; then |
| 5126 | enableval=$enable_docs; |
| 5127 | else |
| 5128 | enableval=default |
| 5129 | fi |
| 5130 | |
| 5131 | case "$enableval" in |
| 5132 | yes) ENABLE_DOCS=1 |
| 5133 | ;; |
| 5134 | no) ENABLE_DOCS=0 |
| 5135 | ;; |
| 5136 | default) ENABLE_DOCS=1 |
| 5137 | ;; |
| 5138 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5139 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5140 | { (exit 1); exit 1; }; } ;; |
| 5141 | esac |
| 5142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5143 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5144 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5145 | enableval=$enable_doxygen; |
| 5146 | else |
| 5147 | enableval=default |
| 5148 | fi |
| 5149 | |
| 5150 | case "$enableval" in |
| 5151 | yes) ENABLE_DOXYGEN=1 |
| 5152 | ;; |
| 5153 | no) ENABLE_DOXYGEN=0 |
| 5154 | ;; |
| 5155 | default) ENABLE_DOXYGEN=0 |
| 5156 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5157 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5158 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5159 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5160 | esac |
| 5161 | |
| 5162 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5163 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5164 | enableval=$enable_threads; |
| 5165 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5166 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5167 | fi |
| 5168 | |
| 5169 | case "$enableval" in |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5170 | yes) LLVM_ENABLE_THREADS=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5171 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5172 | no) LLVM_ENABLE_THREADS=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5173 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5174 | default) LLVM_ENABLE_THREADS=1 |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5175 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5176 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5177 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5178 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5179 | esac |
| 5180 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5181 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5182 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5183 | _ACEOF |
| 5184 | |
| 5185 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5186 | # Check whether --enable-pthreads was given. |
| 5187 | if test "${enable_pthreads+set}" = set; then |
| 5188 | enableval=$enable_pthreads; |
| 5189 | else |
| 5190 | enableval=default |
| 5191 | fi |
| 5192 | |
| 5193 | case "$enableval" in |
| 5194 | yes) ENABLE_PTHREADS=1 |
| 5195 | ;; |
| 5196 | no) ENABLE_PTHREADS=0 |
| 5197 | ;; |
| 5198 | default) ENABLE_PTHREADS=1 |
| 5199 | ;; |
| 5200 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5201 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5202 | { (exit 1); exit 1; }; } ;; |
| 5203 | esac |
| 5204 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5205 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5206 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5207 | enableval=$enable_pic; |
| 5208 | else |
| 5209 | enableval=default |
| 5210 | fi |
| 5211 | |
| 5212 | case "$enableval" in |
| 5213 | yes) ENABLE_PIC=1 |
| 5214 | ;; |
| 5215 | no) ENABLE_PIC=0 |
| 5216 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5217 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5218 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5219 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5220 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5221 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5222 | esac |
| 5223 | |
| 5224 | cat >>confdefs.h <<_ACEOF |
| 5225 | #define ENABLE_PIC $ENABLE_PIC |
| 5226 | _ACEOF |
| 5227 | |
| 5228 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5229 | # Check whether --enable-shared was given. |
| 5230 | if test "${enable_shared+set}" = set; then |
| 5231 | enableval=$enable_shared; |
| 5232 | else |
| 5233 | enableval=default |
| 5234 | fi |
| 5235 | |
| 5236 | case "$enableval" in |
| 5237 | yes) ENABLE_SHARED=1 |
| 5238 | ;; |
| 5239 | no) ENABLE_SHARED=0 |
| 5240 | ;; |
| 5241 | default) ENABLE_SHARED=0 |
| 5242 | ;; |
| 5243 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5244 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5245 | { (exit 1); exit 1; }; } ;; |
| 5246 | esac |
| 5247 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5248 | # Check whether --enable-embed-stdcxx was given. |
| 5249 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5250 | enableval=$enable_embed_stdcxx; |
| 5251 | else |
| 5252 | enableval=default |
| 5253 | fi |
| 5254 | |
| 5255 | case "$enableval" in |
| 5256 | yes) ENABLE_EMBED_STDCXX=1 |
| 5257 | ;; |
| 5258 | no) ENABLE_EMBED_STDCXX=0 |
| 5259 | ;; |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5260 | default) ENABLE_EMBED_STDCXX=0 |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5261 | ;; |
| 5262 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5263 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5264 | { (exit 1); exit 1; }; } ;; |
| 5265 | esac |
| 5266 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5267 | # Check whether --enable-timestamps was given. |
| 5268 | if test "${enable_timestamps+set}" = set; then |
| 5269 | enableval=$enable_timestamps; |
| 5270 | else |
| 5271 | enableval=default |
| 5272 | fi |
| 5273 | |
| 5274 | case "$enableval" in |
| 5275 | yes) ENABLE_TIMESTAMPS=1 |
| 5276 | ;; |
| 5277 | no) ENABLE_TIMESTAMPS=0 |
| 5278 | ;; |
| 5279 | default) ENABLE_TIMESTAMPS=1 |
| 5280 | ;; |
| 5281 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5282 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5283 | { (exit 1); exit 1; }; } ;; |
| 5284 | esac |
| 5285 | |
| 5286 | cat >>confdefs.h <<_ACEOF |
| 5287 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5288 | _ACEOF |
| 5289 | |
| 5290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5291 | TARGETS_TO_BUILD="" |
| 5292 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5293 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5294 | enableval=$enable_targets; |
| 5295 | else |
| 5296 | enableval=all |
| 5297 | fi |
| 5298 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5299 | if test "$enableval" = host-only ; then |
| 5300 | enableval=host |
| 5301 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5302 | case "$enableval" in |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5303 | 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] | 5304 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5305 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5306 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5307 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5308 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5309 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5310 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5311 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5312 | mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5313 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5314 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5315 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5316 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5317 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5318 | hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5319 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5320 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5321 | host) case "$llvm_cv_target_arch" in |
| 5322 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5323 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5324 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5325 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5326 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5327 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5328 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5329 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5330 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5331 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5332 | Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5333 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5334 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5335 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5336 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5337 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5338 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5339 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5340 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5341 | esac |
| 5342 | done |
| 5343 | ;; |
| 5344 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5345 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5346 | |
| 5347 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5348 | # Determine whether we are building LLVM support for the native architecture. |
| 5349 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5350 | for a_target in $TARGETS_TO_BUILD; do |
| 5351 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5352 | |
| 5353 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5354 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5355 | _ACEOF |
| 5356 | |
| 5357 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5358 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5359 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5360 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5361 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5362 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5363 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5364 | |
| 5365 | cat >>confdefs.h <<_ACEOF |
| 5366 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5367 | _ACEOF |
| 5368 | |
| 5369 | |
| 5370 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5371 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5372 | _ACEOF |
| 5373 | |
| 5374 | |
| 5375 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5376 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 4396613 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5377 | _ACEOF |
| 5378 | |
| 5379 | |
| 5380 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5381 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5382 | _ACEOF |
| 5383 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5384 | 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] | 5385 | |
| 5386 | cat >>confdefs.h <<_ACEOF |
| 5387 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5388 | _ACEOF |
| 5389 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5390 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5391 | fi |
| 5392 | done |
| 5393 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5394 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5395 | # target feature def files. |
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 |
| 5543 | -) clang_src_root="" ;; |
| 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 | |
| 5578 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5579 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5580 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5581 | withval=$with_cxx_include_root; |
| 5582 | else |
| 5583 | withval="" |
| 5584 | fi |
| 5585 | |
| 5586 | |
| 5587 | cat >>confdefs.h <<_ACEOF |
| 5588 | #define CXX_INCLUDE_ROOT "$withval" |
| 5589 | _ACEOF |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5594 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5595 | withval=$with_cxx_include_arch; |
| 5596 | else |
| 5597 | withval="" |
| 5598 | fi |
| 5599 | |
| 5600 | |
| 5601 | cat >>confdefs.h <<_ACEOF |
| 5602 | #define CXX_INCLUDE_ARCH "$withval" |
| 5603 | _ACEOF |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5608 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5609 | withval=$with_cxx_include_32bit_dir; |
| 5610 | else |
| 5611 | withval="" |
| 5612 | fi |
| 5613 | |
| 5614 | |
| 5615 | cat >>confdefs.h <<_ACEOF |
| 5616 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5617 | _ACEOF |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5622 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5623 | withval=$with_cxx_include_64bit_dir; |
| 5624 | else |
| 5625 | withval="" |
| 5626 | fi |
| 5627 | |
| 5628 | |
| 5629 | cat >>confdefs.h <<_ACEOF |
| 5630 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5631 | _ACEOF |
| 5632 | |
| 5633 | |
| 5634 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5635 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5636 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5637 | withval=$with_binutils_include; |
| 5638 | else |
| 5639 | withval=default |
| 5640 | fi |
| 5641 | |
| 5642 | case "$withval" in |
| 5643 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5644 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5645 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5646 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5647 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5648 | esac |
| 5649 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5650 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5651 | |
| 5652 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5653 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5654 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5655 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5656 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5657 | fi |
| 5658 | fi |
| 5659 | |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5660 | |
| 5661 | # Check whether --with-bug-report-url was given. |
| 5662 | if test "${with_bug_report_url+set}" = set; then |
| 5663 | withval=$with_bug_report_url; |
| 5664 | else |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5665 | withval="http://llvm.org/bugs/" |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5666 | fi |
| 5667 | |
| 5668 | |
| 5669 | cat >>confdefs.h <<_ACEOF |
| 5670 | #define BUG_REPORT_URL "$withval" |
| 5671 | _ACEOF |
| 5672 | |
| 5673 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5674 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5675 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5676 | enableval=$enable_libffi; case "$enableval" in |
| 5677 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5678 | no) llvm_cv_enable_libffi="no" ;; |
| 5679 | *) { { 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] | 5680 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5681 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5682 | esac |
| 5683 | else |
| 5684 | llvm_cv_enable_libffi=no |
| 5685 | fi |
| 5686 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5687 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5688 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5689 | # Check whether --with-internal-prefix was given. |
| 5690 | if test "${with_internal_prefix+set}" = set; then |
| 5691 | withval=$with_internal_prefix; |
| 5692 | else |
| 5693 | withval="" |
| 5694 | fi |
| 5695 | |
| 5696 | INTERNAL_PREFIX=$withval |
| 5697 | |
| 5698 | |
| 5699 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5700 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5701 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5702 | if test "${lt_cv_path_NM+set}" = set; then |
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5704 | else |
| 5705 | if test -n "$NM"; then |
| 5706 | # Let the user override the test. |
| 5707 | lt_cv_path_NM="$NM" |
| 5708 | else |
| 5709 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5710 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5711 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5712 | fi |
| 5713 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5714 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5715 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5716 | IFS="$lt_save_ifs" |
| 5717 | test -z "$ac_dir" && ac_dir=. |
| 5718 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5719 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5720 | # Check to see if the nm accepts a BSD-compat flag. |
| 5721 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5722 | # nm: unknown option "B" ignored |
| 5723 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5724 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5725 | */dev/null* | *'Invalid file or object type'*) |
| 5726 | lt_cv_path_NM="$tmp_nm -B" |
| 5727 | break |
| 5728 | ;; |
| 5729 | *) |
| 5730 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5731 | */dev/null*) |
| 5732 | lt_cv_path_NM="$tmp_nm -p" |
| 5733 | break |
| 5734 | ;; |
| 5735 | *) |
| 5736 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5737 | continue # so that we can try to find one that supports BSD flags |
| 5738 | ;; |
| 5739 | esac |
| 5740 | ;; |
| 5741 | esac |
| 5742 | fi |
| 5743 | done |
| 5744 | IFS="$lt_save_ifs" |
| 5745 | done |
| 5746 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5747 | fi |
| 5748 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5749 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5750 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5751 | NM="$lt_cv_path_NM" |
| 5752 | |
| 5753 | |
| 5754 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5755 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5756 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5757 | if test "${llvm_cv_gnu_make_command+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 | llvm_cv_gnu_make_command='' |
| 5761 | for a in "$MAKE" make gmake gnumake ; do |
| 5762 | if test -z "$a" ; then continue ; fi ; |
| 5763 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5764 | then |
| 5765 | llvm_cv_gnu_make_command=$a ; |
| 5766 | break; |
| 5767 | fi |
| 5768 | done |
| 5769 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5770 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5771 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5772 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5773 | ifGNUmake='' ; |
| 5774 | else |
| 5775 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5776 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5777 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5778 | fi |
| 5779 | |
| 5780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5781 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5782 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5783 | LN_S=$as_ln_s |
| 5784 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5785 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5786 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5787 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5788 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5789 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5790 | fi |
| 5791 | |
| 5792 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5793 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5794 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5796 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5798 | else |
| 5799 | case $CMP in |
| 5800 | [\\/]* | ?:[\\/]*) |
| 5801 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5802 | ;; |
| 5803 | *) |
| 5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5805 | for as_dir in $PATH |
| 5806 | do |
| 5807 | IFS=$as_save_IFS |
| 5808 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5810 | 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] | 5811 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5812 | 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] | 5813 | break 2 |
| 5814 | fi |
| 5815 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5816 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5817 | IFS=$as_save_IFS |
| 5818 | |
| 5819 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5820 | ;; |
| 5821 | esac |
| 5822 | fi |
| 5823 | CMP=$ac_cv_path_CMP |
| 5824 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5825 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5826 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5827 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5829 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5830 | fi |
| 5831 | |
| 5832 | |
| 5833 | # Extract the first word of "cp", so it can be a program name with args. |
| 5834 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5837 | if test "${ac_cv_path_CP+set}" = set; then |
| 5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5839 | else |
| 5840 | case $CP in |
| 5841 | [\\/]* | ?:[\\/]*) |
| 5842 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5843 | ;; |
| 5844 | *) |
| 5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5846 | for as_dir in $PATH |
| 5847 | do |
| 5848 | IFS=$as_save_IFS |
| 5849 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5851 | 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] | 5852 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5853 | 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] | 5854 | break 2 |
| 5855 | fi |
| 5856 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5858 | IFS=$as_save_IFS |
| 5859 | |
| 5860 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5861 | ;; |
| 5862 | esac |
| 5863 | fi |
| 5864 | CP=$ac_cv_path_CP |
| 5865 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5866 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5867 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5868 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5869 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5870 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5871 | fi |
| 5872 | |
| 5873 | |
| 5874 | # Extract the first word of "date", so it can be a program name with args. |
| 5875 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5876 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5878 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5880 | else |
| 5881 | case $DATE in |
| 5882 | [\\/]* | ?:[\\/]*) |
| 5883 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5884 | ;; |
| 5885 | *) |
| 5886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5887 | for as_dir in $PATH |
| 5888 | do |
| 5889 | IFS=$as_save_IFS |
| 5890 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5892 | 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] | 5893 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5894 | 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] | 5895 | break 2 |
| 5896 | fi |
| 5897 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5898 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5899 | IFS=$as_save_IFS |
| 5900 | |
| 5901 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5902 | ;; |
| 5903 | esac |
| 5904 | fi |
| 5905 | DATE=$ac_cv_path_DATE |
| 5906 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5907 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5908 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5909 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5910 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5911 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5912 | fi |
| 5913 | |
| 5914 | |
| 5915 | # Extract the first word of "find", so it can be a program name with args. |
| 5916 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5917 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5919 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5921 | else |
| 5922 | case $FIND in |
| 5923 | [\\/]* | ?:[\\/]*) |
| 5924 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5925 | ;; |
| 5926 | *) |
| 5927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5928 | for as_dir in $PATH |
| 5929 | do |
| 5930 | IFS=$as_save_IFS |
| 5931 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5932 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5933 | 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] | 5934 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5935 | 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] | 5936 | break 2 |
| 5937 | fi |
| 5938 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5939 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5940 | IFS=$as_save_IFS |
| 5941 | |
| 5942 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5943 | ;; |
| 5944 | esac |
| 5945 | fi |
| 5946 | FIND=$ac_cv_path_FIND |
| 5947 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5948 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5949 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5950 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5951 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5952 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5953 | fi |
| 5954 | |
| 5955 | |
| 5956 | # Extract the first word of "grep", so it can be a program name with args. |
| 5957 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5958 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5960 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5962 | else |
| 5963 | case $GREP in |
| 5964 | [\\/]* | ?:[\\/]*) |
| 5965 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5966 | ;; |
| 5967 | *) |
| 5968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5969 | for as_dir in $PATH |
| 5970 | do |
| 5971 | IFS=$as_save_IFS |
| 5972 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5973 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5974 | 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] | 5975 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5976 | 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] | 5977 | break 2 |
| 5978 | fi |
| 5979 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5980 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5981 | IFS=$as_save_IFS |
| 5982 | |
| 5983 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 5984 | ;; |
| 5985 | esac |
| 5986 | fi |
| 5987 | GREP=$ac_cv_path_GREP |
| 5988 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5989 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 5990 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5991 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5993 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5994 | fi |
| 5995 | |
| 5996 | |
| 5997 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 5998 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5999 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6001 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6003 | else |
| 6004 | case $MKDIR in |
| 6005 | [\\/]* | ?:[\\/]*) |
| 6006 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6007 | ;; |
| 6008 | *) |
| 6009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6010 | for as_dir in $PATH |
| 6011 | do |
| 6012 | IFS=$as_save_IFS |
| 6013 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6014 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6015 | 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] | 6016 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6017 | 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] | 6018 | break 2 |
| 6019 | fi |
| 6020 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6021 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6022 | IFS=$as_save_IFS |
| 6023 | |
| 6024 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6025 | ;; |
| 6026 | esac |
| 6027 | fi |
| 6028 | MKDIR=$ac_cv_path_MKDIR |
| 6029 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6030 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6031 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6032 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6033 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6034 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6035 | fi |
| 6036 | |
| 6037 | |
| 6038 | # Extract the first word of "mv", so it can be a program name with args. |
| 6039 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6040 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6042 | if test "${ac_cv_path_MV+set}" = set; then |
| 6043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6044 | else |
| 6045 | case $MV in |
| 6046 | [\\/]* | ?:[\\/]*) |
| 6047 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6048 | ;; |
| 6049 | *) |
| 6050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6051 | for as_dir in $PATH |
| 6052 | do |
| 6053 | IFS=$as_save_IFS |
| 6054 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6055 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6056 | 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] | 6057 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6058 | 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] | 6059 | break 2 |
| 6060 | fi |
| 6061 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6062 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6063 | IFS=$as_save_IFS |
| 6064 | |
| 6065 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6066 | ;; |
| 6067 | esac |
| 6068 | fi |
| 6069 | MV=$ac_cv_path_MV |
| 6070 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6071 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6072 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6073 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6074 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6075 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6076 | fi |
| 6077 | |
| 6078 | |
| 6079 | if test -n "$ac_tool_prefix"; then |
| 6080 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6081 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6084 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6086 | else |
| 6087 | if test -n "$RANLIB"; then |
| 6088 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6089 | else |
| 6090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6091 | for as_dir in $PATH |
| 6092 | do |
| 6093 | IFS=$as_save_IFS |
| 6094 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6095 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6096 | 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] | 6097 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6098 | 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] | 6099 | break 2 |
| 6100 | fi |
| 6101 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6102 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6103 | IFS=$as_save_IFS |
| 6104 | |
| 6105 | fi |
| 6106 | fi |
| 6107 | RANLIB=$ac_cv_prog_RANLIB |
| 6108 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6109 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6110 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6111 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6112 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6113 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6114 | fi |
| 6115 | |
| 6116 | |
| 6117 | fi |
| 6118 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6119 | ac_ct_RANLIB=$RANLIB |
| 6120 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6121 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6122 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6124 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6126 | else |
| 6127 | if test -n "$ac_ct_RANLIB"; then |
| 6128 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6129 | else |
| 6130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6131 | for as_dir in $PATH |
| 6132 | do |
| 6133 | IFS=$as_save_IFS |
| 6134 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6136 | 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] | 6137 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6138 | 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] | 6139 | break 2 |
| 6140 | fi |
| 6141 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6142 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6143 | IFS=$as_save_IFS |
| 6144 | |
| 6145 | fi |
| 6146 | fi |
| 6147 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6148 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6149 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6150 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6151 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6152 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6153 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6154 | fi |
| 6155 | |
| 6156 | if test "x$ac_ct_RANLIB" = x; then |
| 6157 | RANLIB=":" |
| 6158 | else |
| 6159 | case $cross_compiling:$ac_tool_warned in |
| 6160 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6161 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6162 | whose name does not start with the host triplet. If you think this |
| 6163 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6164 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6165 | whose name does not start with the host triplet. If you think this |
| 6166 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6167 | ac_tool_warned=yes ;; |
| 6168 | esac |
| 6169 | RANLIB=$ac_ct_RANLIB |
| 6170 | fi |
| 6171 | else |
| 6172 | RANLIB="$ac_cv_prog_RANLIB" |
| 6173 | fi |
| 6174 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6175 | if test -n "$ac_tool_prefix"; then |
| 6176 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6177 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6178 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6180 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6182 | else |
| 6183 | if test -n "$AR"; then |
| 6184 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6185 | else |
| 6186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6187 | for as_dir in $PATH |
| 6188 | do |
| 6189 | IFS=$as_save_IFS |
| 6190 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6192 | 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] | 6193 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6194 | 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] | 6195 | break 2 |
| 6196 | fi |
| 6197 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6198 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6199 | IFS=$as_save_IFS |
| 6200 | |
| 6201 | fi |
| 6202 | fi |
| 6203 | AR=$ac_cv_prog_AR |
| 6204 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6205 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6206 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6207 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6208 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6209 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6210 | fi |
| 6211 | |
| 6212 | |
| 6213 | fi |
| 6214 | if test -z "$ac_cv_prog_AR"; then |
| 6215 | ac_ct_AR=$AR |
| 6216 | # Extract the first word of "ar", so it can be a program name with args. |
| 6217 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6218 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6220 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6222 | else |
| 6223 | if test -n "$ac_ct_AR"; then |
| 6224 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6225 | else |
| 6226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6227 | for as_dir in $PATH |
| 6228 | do |
| 6229 | IFS=$as_save_IFS |
| 6230 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6232 | 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] | 6233 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6234 | 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] | 6235 | break 2 |
| 6236 | fi |
| 6237 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6238 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6239 | IFS=$as_save_IFS |
| 6240 | |
| 6241 | fi |
| 6242 | fi |
| 6243 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6244 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6246 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6248 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6249 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6250 | fi |
| 6251 | |
| 6252 | if test "x$ac_ct_AR" = x; then |
| 6253 | AR="false" |
| 6254 | else |
| 6255 | case $cross_compiling:$ac_tool_warned in |
| 6256 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6257 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6258 | whose name does not start with the host triplet. If you think this |
| 6259 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6260 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6261 | whose name does not start with the host triplet. If you think this |
| 6262 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6263 | ac_tool_warned=yes ;; |
| 6264 | esac |
| 6265 | AR=$ac_ct_AR |
| 6266 | fi |
| 6267 | else |
| 6268 | AR="$ac_cv_prog_AR" |
| 6269 | fi |
| 6270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6271 | # Extract the first word of "rm", so it can be a program name with args. |
| 6272 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6273 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6275 | if test "${ac_cv_path_RM+set}" = set; then |
| 6276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6277 | else |
| 6278 | case $RM in |
| 6279 | [\\/]* | ?:[\\/]*) |
| 6280 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6281 | ;; |
| 6282 | *) |
| 6283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6284 | for as_dir in $PATH |
| 6285 | do |
| 6286 | IFS=$as_save_IFS |
| 6287 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6289 | 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] | 6290 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6291 | 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] | 6292 | break 2 |
| 6293 | fi |
| 6294 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6296 | IFS=$as_save_IFS |
| 6297 | |
| 6298 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6299 | ;; |
| 6300 | esac |
| 6301 | fi |
| 6302 | RM=$ac_cv_path_RM |
| 6303 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6304 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6305 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6306 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6308 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6309 | fi |
| 6310 | |
| 6311 | |
| 6312 | # Extract the first word of "sed", so it can be a program name with args. |
| 6313 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6314 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6316 | if test "${ac_cv_path_SED+set}" = set; then |
| 6317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6318 | else |
| 6319 | case $SED in |
| 6320 | [\\/]* | ?:[\\/]*) |
| 6321 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6322 | ;; |
| 6323 | *) |
| 6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6325 | for as_dir in $PATH |
| 6326 | do |
| 6327 | IFS=$as_save_IFS |
| 6328 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6330 | 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] | 6331 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6332 | 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] | 6333 | break 2 |
| 6334 | fi |
| 6335 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6336 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6337 | IFS=$as_save_IFS |
| 6338 | |
| 6339 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6340 | ;; |
| 6341 | esac |
| 6342 | fi |
| 6343 | SED=$ac_cv_path_SED |
| 6344 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6345 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6346 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6347 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6348 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6349 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6350 | fi |
| 6351 | |
| 6352 | |
| 6353 | # Extract the first word of "tar", so it can be a program name with args. |
| 6354 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6355 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6357 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6359 | else |
| 6360 | case $TAR in |
| 6361 | [\\/]* | ?:[\\/]*) |
| 6362 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6363 | ;; |
| 6364 | *) |
| 6365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6366 | for as_dir in $PATH |
| 6367 | do |
| 6368 | IFS=$as_save_IFS |
| 6369 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6371 | 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] | 6372 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6373 | 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] | 6374 | break 2 |
| 6375 | fi |
| 6376 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6377 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6378 | IFS=$as_save_IFS |
| 6379 | |
| 6380 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6381 | ;; |
| 6382 | esac |
| 6383 | fi |
| 6384 | TAR=$ac_cv_path_TAR |
| 6385 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6386 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6387 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6388 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6389 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6390 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6391 | fi |
| 6392 | |
| 6393 | |
| 6394 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6395 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6396 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6398 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6400 | else |
| 6401 | case $BINPWD in |
| 6402 | [\\/]* | ?:[\\/]*) |
| 6403 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6404 | ;; |
| 6405 | *) |
| 6406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6407 | for as_dir in $PATH |
| 6408 | do |
| 6409 | IFS=$as_save_IFS |
| 6410 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6412 | 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] | 6413 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | 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] | 6415 | break 2 |
| 6416 | fi |
| 6417 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6418 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6419 | IFS=$as_save_IFS |
| 6420 | |
| 6421 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6422 | ;; |
| 6423 | esac |
| 6424 | fi |
| 6425 | BINPWD=$ac_cv_path_BINPWD |
| 6426 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6427 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6428 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6429 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6430 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6431 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6432 | fi |
| 6433 | |
| 6434 | |
| 6435 | |
| 6436 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6437 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6440 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6442 | else |
| 6443 | case $GRAPHVIZ in |
| 6444 | [\\/]* | ?:[\\/]*) |
| 6445 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6446 | ;; |
| 6447 | *) |
| 6448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6449 | for as_dir in $PATH |
| 6450 | do |
| 6451 | IFS=$as_save_IFS |
| 6452 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6454 | 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] | 6455 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6456 | 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] | 6457 | break 2 |
| 6458 | fi |
| 6459 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6460 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6461 | IFS=$as_save_IFS |
| 6462 | |
| 6463 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6464 | ;; |
| 6465 | esac |
| 6466 | fi |
| 6467 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6468 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6469 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6470 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6471 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6472 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6473 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6474 | fi |
| 6475 | |
| 6476 | |
| 6477 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6479 | cat >>confdefs.h <<\_ACEOF |
| 6480 | #define HAVE_GRAPHVIZ 1 |
| 6481 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6482 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6483 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6484 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6485 | fi |
| 6486 | |
| 6487 | cat >>confdefs.h <<_ACEOF |
| 6488 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6489 | _ACEOF |
| 6490 | |
| 6491 | fi |
| 6492 | # Extract the first word of "dot", so it can be a program name with args. |
| 6493 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6494 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6496 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6498 | else |
| 6499 | case $DOT in |
| 6500 | [\\/]* | ?:[\\/]*) |
| 6501 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6502 | ;; |
| 6503 | *) |
| 6504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6505 | for as_dir in $PATH |
| 6506 | do |
| 6507 | IFS=$as_save_IFS |
| 6508 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6510 | 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] | 6511 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6512 | 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] | 6513 | break 2 |
| 6514 | fi |
| 6515 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6516 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6517 | IFS=$as_save_IFS |
| 6518 | |
| 6519 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6520 | ;; |
| 6521 | esac |
| 6522 | fi |
| 6523 | DOT=$ac_cv_path_DOT |
| 6524 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6525 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6526 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6527 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6529 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6530 | fi |
| 6531 | |
| 6532 | |
| 6533 | if test "$DOT" != "echo dot" ; then |
| 6534 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6535 | cat >>confdefs.h <<\_ACEOF |
| 6536 | #define HAVE_DOT 1 |
| 6537 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6538 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6539 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6540 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6541 | fi |
| 6542 | |
| 6543 | cat >>confdefs.h <<_ACEOF |
| 6544 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6545 | _ACEOF |
| 6546 | |
| 6547 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6548 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6549 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6550 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6552 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6554 | else |
| 6555 | case $FDP in |
| 6556 | [\\/]* | ?:[\\/]*) |
| 6557 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6558 | ;; |
| 6559 | *) |
| 6560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6561 | for as_dir in $PATH |
| 6562 | do |
| 6563 | IFS=$as_save_IFS |
| 6564 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6566 | 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] | 6567 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6568 | 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] | 6569 | break 2 |
| 6570 | fi |
| 6571 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6572 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6573 | IFS=$as_save_IFS |
| 6574 | |
| 6575 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6576 | ;; |
| 6577 | esac |
| 6578 | fi |
| 6579 | FDP=$ac_cv_path_FDP |
| 6580 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6581 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6582 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6583 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6584 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6585 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6586 | fi |
| 6587 | |
| 6588 | |
| 6589 | if test "$FDP" != "echo fdp" ; then |
| 6590 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6591 | cat >>confdefs.h <<\_ACEOF |
| 6592 | #define HAVE_FDP 1 |
| 6593 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6594 | |
| 6595 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6596 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6597 | fi |
| 6598 | |
| 6599 | cat >>confdefs.h <<_ACEOF |
| 6600 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6601 | _ACEOF |
| 6602 | |
| 6603 | fi |
| 6604 | # Extract the first word of "neato", so it can be a program name with args. |
| 6605 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6606 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6608 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6610 | else |
| 6611 | case $NEATO in |
| 6612 | [\\/]* | ?:[\\/]*) |
| 6613 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6614 | ;; |
| 6615 | *) |
| 6616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6617 | for as_dir in $PATH |
| 6618 | do |
| 6619 | IFS=$as_save_IFS |
| 6620 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6622 | 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] | 6623 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6624 | 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] | 6625 | break 2 |
| 6626 | fi |
| 6627 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6628 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6629 | IFS=$as_save_IFS |
| 6630 | |
| 6631 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6632 | ;; |
| 6633 | esac |
| 6634 | fi |
| 6635 | NEATO=$ac_cv_path_NEATO |
| 6636 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6637 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6638 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6639 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6641 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6642 | fi |
| 6643 | |
| 6644 | |
| 6645 | if test "$NEATO" != "echo neato" ; then |
| 6646 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6647 | cat >>confdefs.h <<\_ACEOF |
| 6648 | #define HAVE_NEATO 1 |
| 6649 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6650 | |
| 6651 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6652 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6653 | fi |
| 6654 | |
| 6655 | cat >>confdefs.h <<_ACEOF |
| 6656 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6657 | _ACEOF |
| 6658 | |
| 6659 | fi |
| 6660 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6661 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6664 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6666 | else |
| 6667 | case $TWOPI in |
| 6668 | [\\/]* | ?:[\\/]*) |
| 6669 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6670 | ;; |
| 6671 | *) |
| 6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6673 | for as_dir in $PATH |
| 6674 | do |
| 6675 | IFS=$as_save_IFS |
| 6676 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6678 | 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] | 6679 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6680 | 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] | 6681 | break 2 |
| 6682 | fi |
| 6683 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6684 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6685 | IFS=$as_save_IFS |
| 6686 | |
| 6687 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6688 | ;; |
| 6689 | esac |
| 6690 | fi |
| 6691 | TWOPI=$ac_cv_path_TWOPI |
| 6692 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6693 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6694 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6695 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6696 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6697 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6698 | fi |
| 6699 | |
| 6700 | |
| 6701 | if test "$TWOPI" != "echo twopi" ; then |
| 6702 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6703 | cat >>confdefs.h <<\_ACEOF |
| 6704 | #define HAVE_TWOPI 1 |
| 6705 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6706 | |
| 6707 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6708 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6709 | fi |
| 6710 | |
| 6711 | cat >>confdefs.h <<_ACEOF |
| 6712 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6713 | _ACEOF |
| 6714 | |
| 6715 | fi |
| 6716 | # Extract the first word of "circo", so it can be a program name with args. |
| 6717 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6718 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6720 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6722 | else |
| 6723 | case $CIRCO in |
| 6724 | [\\/]* | ?:[\\/]*) |
| 6725 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6726 | ;; |
| 6727 | *) |
| 6728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6729 | for as_dir in $PATH |
| 6730 | do |
| 6731 | IFS=$as_save_IFS |
| 6732 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6734 | 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] | 6735 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6736 | 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] | 6737 | break 2 |
| 6738 | fi |
| 6739 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6740 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6741 | IFS=$as_save_IFS |
| 6742 | |
| 6743 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6744 | ;; |
| 6745 | esac |
| 6746 | fi |
| 6747 | CIRCO=$ac_cv_path_CIRCO |
| 6748 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6749 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6750 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6751 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6753 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6754 | fi |
| 6755 | |
| 6756 | |
| 6757 | if test "$CIRCO" != "echo circo" ; then |
| 6758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | cat >>confdefs.h <<\_ACEOF |
| 6760 | #define HAVE_CIRCO 1 |
| 6761 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6762 | |
| 6763 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6764 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6765 | fi |
| 6766 | |
| 6767 | cat >>confdefs.h <<_ACEOF |
| 6768 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6769 | _ACEOF |
| 6770 | |
| 6771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6772 | for ac_prog in gv gsview32 |
| 6773 | do |
| 6774 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6775 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6776 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6778 | if test "${ac_cv_path_GV+set}" = set; then |
| 6779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6780 | else |
| 6781 | case $GV in |
| 6782 | [\\/]* | ?:[\\/]*) |
| 6783 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6784 | ;; |
| 6785 | *) |
| 6786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6787 | for as_dir in $PATH |
| 6788 | do |
| 6789 | IFS=$as_save_IFS |
| 6790 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6792 | 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] | 6793 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6794 | 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] | 6795 | break 2 |
| 6796 | fi |
| 6797 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6798 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6799 | IFS=$as_save_IFS |
| 6800 | |
| 6801 | ;; |
| 6802 | esac |
| 6803 | fi |
| 6804 | GV=$ac_cv_path_GV |
| 6805 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6806 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6807 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6808 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6809 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6810 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6811 | fi |
| 6812 | |
| 6813 | |
| 6814 | test -n "$GV" && break |
| 6815 | done |
| 6816 | test -n "$GV" || GV="echo gv" |
| 6817 | |
| 6818 | if test "$GV" != "echo gv" ; then |
| 6819 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6820 | cat >>confdefs.h <<\_ACEOF |
| 6821 | #define HAVE_GV 1 |
| 6822 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6823 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6824 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6825 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6826 | fi |
| 6827 | |
| 6828 | cat >>confdefs.h <<_ACEOF |
| 6829 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6830 | _ACEOF |
| 6831 | |
| 6832 | fi |
| 6833 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6834 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6837 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6839 | else |
| 6840 | case $DOTTY in |
| 6841 | [\\/]* | ?:[\\/]*) |
| 6842 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6843 | ;; |
| 6844 | *) |
| 6845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6846 | for as_dir in $PATH |
| 6847 | do |
| 6848 | IFS=$as_save_IFS |
| 6849 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6851 | 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] | 6852 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6853 | 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] | 6854 | break 2 |
| 6855 | fi |
| 6856 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6858 | IFS=$as_save_IFS |
| 6859 | |
| 6860 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6861 | ;; |
| 6862 | esac |
| 6863 | fi |
| 6864 | DOTTY=$ac_cv_path_DOTTY |
| 6865 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6867 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6868 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6869 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6870 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6871 | fi |
| 6872 | |
| 6873 | |
| 6874 | if test "$DOTTY" != "echo dotty" ; then |
| 6875 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6876 | cat >>confdefs.h <<\_ACEOF |
| 6877 | #define HAVE_DOTTY 1 |
| 6878 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6879 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6880 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6881 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6882 | fi |
| 6883 | |
| 6884 | cat >>confdefs.h <<_ACEOF |
| 6885 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6886 | _ACEOF |
| 6887 | |
| 6888 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6889 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 6890 | set dummy xdot.py; ac_word=$2 |
| 6891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6893 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 6894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6895 | else |
| 6896 | case $XDOT_PY in |
| 6897 | [\\/]* | ?:[\\/]*) |
| 6898 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 6899 | ;; |
| 6900 | *) |
| 6901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6902 | for as_dir in $PATH |
| 6903 | do |
| 6904 | IFS=$as_save_IFS |
| 6905 | test -z "$as_dir" && as_dir=. |
| 6906 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6908 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 6909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6910 | break 2 |
| 6911 | fi |
| 6912 | done |
| 6913 | done |
| 6914 | IFS=$as_save_IFS |
| 6915 | |
| 6916 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 6917 | ;; |
| 6918 | esac |
| 6919 | fi |
| 6920 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 6921 | if test -n "$XDOT_PY"; then |
| 6922 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 6923 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 6924 | else |
| 6925 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6926 | echo "${ECHO_T}no" >&6; } |
| 6927 | fi |
| 6928 | |
| 6929 | |
| 6930 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 6931 | |
| 6932 | cat >>confdefs.h <<\_ACEOF |
| 6933 | #define HAVE_XDOT_PY 1 |
| 6934 | _ACEOF |
| 6935 | |
| 6936 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6937 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6938 | fi |
| 6939 | |
| 6940 | cat >>confdefs.h <<_ACEOF |
| 6941 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 6942 | _ACEOF |
| 6943 | |
| 6944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6945 | |
| 6946 | |
| 6947 | # Extract the first word of "perl", so it can be a program name with args. |
| 6948 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6949 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6951 | if test "${ac_cv_path_PERL+set}" = set; then |
| 6952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6953 | else |
| 6954 | case $PERL in |
| 6955 | [\\/]* | ?:[\\/]*) |
| 6956 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 6957 | ;; |
| 6958 | *) |
| 6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6960 | for as_dir in $PATH |
| 6961 | do |
| 6962 | IFS=$as_save_IFS |
| 6963 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6965 | 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] | 6966 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6967 | 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] | 6968 | break 2 |
| 6969 | fi |
| 6970 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6971 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6972 | IFS=$as_save_IFS |
| 6973 | |
| 6974 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 6975 | ;; |
| 6976 | esac |
| 6977 | fi |
| 6978 | PERL=$ac_cv_path_PERL |
| 6979 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6980 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 6981 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6982 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6983 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6984 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6985 | fi |
| 6986 | |
| 6987 | |
| 6988 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6989 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 6990 | 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] | 6991 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6992 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6993 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6994 | else |
| 6995 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6996 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 6997 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6998 | fi |
| 6999 | fi |
| 7000 | |
| 7001 | |
| 7002 | if test x"$PERL" = xnone; then |
| 7003 | HAVE_PERL=0 |
| 7004 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7005 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7006 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7007 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7008 | else |
| 7009 | HAVE_PERL=1 |
| 7010 | |
| 7011 | fi |
| 7012 | |
| 7013 | # Find a good install program. We prefer a C program (faster), |
| 7014 | # so one script is as good as another. But avoid the broken or |
| 7015 | # incompatible versions: |
| 7016 | # SysV /etc/install, /usr/sbin/install |
| 7017 | # SunOS /usr/etc/install |
| 7018 | # IRIX /sbin/install |
| 7019 | # AIX /bin/install |
| 7020 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7021 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7022 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7023 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7024 | # OS/2's system install, which has a completely different semantic |
| 7025 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7026 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7027 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7028 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7029 | if test "${ac_cv_path_install+set}" = set; then |
| 7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7031 | else |
| 7032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7033 | for as_dir in $PATH |
| 7034 | do |
| 7035 | IFS=$as_save_IFS |
| 7036 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | # Account for people who put trailing slashes in PATH elements. |
| 7038 | case $as_dir/ in |
| 7039 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7040 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7042 | /usr/ucb/* ) ;; |
| 7043 | *) |
| 7044 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7045 | # Don't use installbsd from OSF since it installs stuff as root |
| 7046 | # by default. |
| 7047 | for ac_prog in ginstall scoinst install; do |
| 7048 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7049 | 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] | 7050 | if test $ac_prog = install && |
| 7051 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7052 | # AIX install. It has an incompatible calling convention. |
| 7053 | : |
| 7054 | elif test $ac_prog = install && |
| 7055 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7056 | # program-specific install script used by HP pwplus--don't use. |
| 7057 | : |
| 7058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7059 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7060 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7061 | fi |
| 7062 | fi |
| 7063 | done |
| 7064 | done |
| 7065 | ;; |
| 7066 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7067 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7068 | IFS=$as_save_IFS |
| 7069 | |
| 7070 | |
| 7071 | fi |
| 7072 | if test "${ac_cv_path_install+set}" = set; then |
| 7073 | INSTALL=$ac_cv_path_install |
| 7074 | else |
| 7075 | # As a last resort, use the slow shell script. Don't cache a |
| 7076 | # value for INSTALL within a source directory, because that will |
| 7077 | # break other packages using the cache if that directory is |
| 7078 | # removed, or if the value is a relative name. |
| 7079 | INSTALL=$ac_install_sh |
| 7080 | fi |
| 7081 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7082 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7083 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7084 | |
| 7085 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7086 | # It thinks the first close brace ends the variable substitution. |
| 7087 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7088 | |
| 7089 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7090 | |
| 7091 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7092 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7093 | case "$INSTALL" in |
| 7094 | [\\/$]* | ?:[\\/]* ) ;; |
| 7095 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7096 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | |
| 7098 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7099 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7100 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7102 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7104 | else |
| 7105 | case $BZIP2 in |
| 7106 | [\\/]* | ?:[\\/]*) |
| 7107 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7108 | ;; |
| 7109 | *) |
| 7110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7111 | for as_dir in $PATH |
| 7112 | do |
| 7113 | IFS=$as_save_IFS |
| 7114 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7115 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7116 | 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] | 7117 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7118 | 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] | 7119 | break 2 |
| 7120 | fi |
| 7121 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7122 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7123 | IFS=$as_save_IFS |
| 7124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7125 | ;; |
| 7126 | esac |
| 7127 | fi |
| 7128 | BZIP2=$ac_cv_path_BZIP2 |
| 7129 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7130 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7131 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7132 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7133 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7134 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7135 | fi |
| 7136 | |
| 7137 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7138 | # Extract the first word of "cat", so it can be a program name with args. |
| 7139 | set dummy cat; ac_word=$2 |
| 7140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7142 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7144 | else |
| 7145 | case $CAT in |
| 7146 | [\\/]* | ?:[\\/]*) |
| 7147 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7148 | ;; |
| 7149 | *) |
| 7150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7151 | for as_dir in $PATH |
| 7152 | do |
| 7153 | IFS=$as_save_IFS |
| 7154 | test -z "$as_dir" && as_dir=. |
| 7155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7157 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7159 | break 2 |
| 7160 | fi |
| 7161 | done |
| 7162 | done |
| 7163 | IFS=$as_save_IFS |
| 7164 | |
| 7165 | ;; |
| 7166 | esac |
| 7167 | fi |
| 7168 | CAT=$ac_cv_path_CAT |
| 7169 | if test -n "$CAT"; then |
| 7170 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7171 | echo "${ECHO_T}$CAT" >&6; } |
| 7172 | else |
| 7173 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7174 | echo "${ECHO_T}no" >&6; } |
| 7175 | fi |
| 7176 | |
| 7177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7178 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7179 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7182 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7184 | else |
| 7185 | case $DOXYGEN in |
| 7186 | [\\/]* | ?:[\\/]*) |
| 7187 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7188 | ;; |
| 7189 | *) |
| 7190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7191 | for as_dir in $PATH |
| 7192 | do |
| 7193 | IFS=$as_save_IFS |
| 7194 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7196 | 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] | 7197 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7198 | 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] | 7199 | break 2 |
| 7200 | fi |
| 7201 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7202 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7203 | IFS=$as_save_IFS |
| 7204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7205 | ;; |
| 7206 | esac |
| 7207 | fi |
| 7208 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7209 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7210 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7211 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7212 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7213 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7214 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7215 | fi |
| 7216 | |
| 7217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7218 | # Extract the first word of "groff", so it can be a program name with args. |
| 7219 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7222 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | else |
| 7225 | case $GROFF in |
| 7226 | [\\/]* | ?:[\\/]*) |
| 7227 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7228 | ;; |
| 7229 | *) |
| 7230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7231 | for as_dir in $PATH |
| 7232 | do |
| 7233 | IFS=$as_save_IFS |
| 7234 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7235 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7236 | 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] | 7237 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7238 | 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] | 7239 | break 2 |
| 7240 | fi |
| 7241 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7242 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7243 | IFS=$as_save_IFS |
| 7244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7245 | ;; |
| 7246 | esac |
| 7247 | fi |
| 7248 | GROFF=$ac_cv_path_GROFF |
| 7249 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7250 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7251 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7253 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7254 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7255 | fi |
| 7256 | |
| 7257 | |
| 7258 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7259 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7262 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7264 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7265 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7266 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7267 | 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] | 7268 | ;; |
| 7269 | *) |
| 7270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7271 | for as_dir in $PATH |
| 7272 | do |
| 7273 | IFS=$as_save_IFS |
| 7274 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7276 | 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] | 7277 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7278 | 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] | 7279 | break 2 |
| 7280 | fi |
| 7281 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7282 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7283 | IFS=$as_save_IFS |
| 7284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7285 | ;; |
| 7286 | esac |
| 7287 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7288 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7289 | if test -n "$GZIPBIN"; then |
| 7290 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7291 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7292 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7293 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7294 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7295 | fi |
| 7296 | |
| 7297 | |
| 7298 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7299 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7302 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7304 | else |
| 7305 | case $POD2HTML in |
| 7306 | [\\/]* | ?:[\\/]*) |
| 7307 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7308 | ;; |
| 7309 | *) |
| 7310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7311 | for as_dir in $PATH |
| 7312 | do |
| 7313 | IFS=$as_save_IFS |
| 7314 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7316 | 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] | 7317 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7318 | 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] | 7319 | break 2 |
| 7320 | fi |
| 7321 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7322 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7323 | IFS=$as_save_IFS |
| 7324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7325 | ;; |
| 7326 | esac |
| 7327 | fi |
| 7328 | POD2HTML=$ac_cv_path_POD2HTML |
| 7329 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7330 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7331 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7332 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7334 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7335 | fi |
| 7336 | |
| 7337 | |
| 7338 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7339 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7340 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7342 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7344 | else |
| 7345 | case $POD2MAN in |
| 7346 | [\\/]* | ?:[\\/]*) |
| 7347 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7348 | ;; |
| 7349 | *) |
| 7350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7351 | for as_dir in $PATH |
| 7352 | do |
| 7353 | IFS=$as_save_IFS |
| 7354 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7356 | 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] | 7357 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7358 | 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] | 7359 | break 2 |
| 7360 | fi |
| 7361 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7362 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | IFS=$as_save_IFS |
| 7364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7365 | ;; |
| 7366 | esac |
| 7367 | fi |
| 7368 | POD2MAN=$ac_cv_path_POD2MAN |
| 7369 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7370 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7371 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7373 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7374 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | fi |
| 7376 | |
| 7377 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7378 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7379 | set dummy pdfroff; ac_word=$2 |
| 7380 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7382 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7384 | else |
| 7385 | case $PDFROFF in |
| 7386 | [\\/]* | ?:[\\/]*) |
| 7387 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7388 | ;; |
| 7389 | *) |
| 7390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7391 | for as_dir in $PATH |
| 7392 | do |
| 7393 | IFS=$as_save_IFS |
| 7394 | test -z "$as_dir" && as_dir=. |
| 7395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7397 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7399 | break 2 |
| 7400 | fi |
| 7401 | done |
| 7402 | done |
| 7403 | IFS=$as_save_IFS |
| 7404 | |
| 7405 | ;; |
| 7406 | esac |
| 7407 | fi |
| 7408 | PDFROFF=$ac_cv_path_PDFROFF |
| 7409 | if test -n "$PDFROFF"; then |
| 7410 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7411 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7412 | else |
| 7413 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7414 | echo "${ECHO_T}no" >&6; } |
| 7415 | fi |
| 7416 | |
| 7417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7418 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7419 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7420 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7422 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7424 | else |
| 7425 | case $RUNTEST in |
| 7426 | [\\/]* | ?:[\\/]*) |
| 7427 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7428 | ;; |
| 7429 | *) |
| 7430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7431 | for as_dir in $PATH |
| 7432 | do |
| 7433 | IFS=$as_save_IFS |
| 7434 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7436 | 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] | 7437 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7438 | 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] | 7439 | break 2 |
| 7440 | fi |
| 7441 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7442 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7443 | IFS=$as_save_IFS |
| 7444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7445 | ;; |
| 7446 | esac |
| 7447 | fi |
| 7448 | RUNTEST=$ac_cv_path_RUNTEST |
| 7449 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7450 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7451 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7452 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7453 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7454 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7455 | fi |
| 7456 | |
| 7457 | |
| 7458 | |
| 7459 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7460 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7461 | 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] | 7462 | |
| 7463 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7464 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7465 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7466 | else |
| 7467 | with_tclinclude='' |
| 7468 | fi |
| 7469 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7470 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7472 | else |
| 7473 | |
| 7474 | if test x"${with_tclinclude}" != x ; then |
| 7475 | if test -f ${with_tclinclude}/tclsh ; then |
| 7476 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7477 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7478 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7479 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7480 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7481 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7482 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7483 | fi |
| 7484 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7485 | fi |
| 7486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7487 | |
| 7488 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7489 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7490 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7491 | 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 |
| 7492 | do |
| 7493 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7494 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7497 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7499 | else |
| 7500 | case $TCLSH in |
| 7501 | [\\/]* | ?:[\\/]*) |
| 7502 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7503 | ;; |
| 7504 | *) |
| 7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7506 | for as_dir in $PATH |
| 7507 | do |
| 7508 | IFS=$as_save_IFS |
| 7509 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7511 | 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] | 7512 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7513 | 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] | 7514 | break 2 |
| 7515 | fi |
| 7516 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7517 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7518 | IFS=$as_save_IFS |
| 7519 | |
| 7520 | ;; |
| 7521 | esac |
| 7522 | fi |
| 7523 | TCLSH=$ac_cv_path_TCLSH |
| 7524 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7525 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7526 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7527 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7529 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7530 | fi |
| 7531 | |
| 7532 | |
| 7533 | test -n "$TCLSH" && break |
| 7534 | done |
| 7535 | |
| 7536 | if test x"${TCLSH}" = x ; then |
| 7537 | ac_cv_path_tclsh=''; |
| 7538 | else |
| 7539 | ac_cv_path_tclsh="${TCLSH}"; |
| 7540 | fi |
| 7541 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7542 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7543 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7544 | TCLSH="${ac_cv_path_tclsh}" |
| 7545 | |
| 7546 | fi |
| 7547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7548 | # Extract the first word of "zip", so it can be a program name with args. |
| 7549 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7550 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7552 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7554 | else |
| 7555 | case $ZIP in |
| 7556 | [\\/]* | ?:[\\/]*) |
| 7557 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7558 | ;; |
| 7559 | *) |
| 7560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7561 | for as_dir in $PATH |
| 7562 | do |
| 7563 | IFS=$as_save_IFS |
| 7564 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7566 | 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] | 7567 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7568 | 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] | 7569 | break 2 |
| 7570 | fi |
| 7571 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7572 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7573 | IFS=$as_save_IFS |
| 7574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7575 | ;; |
| 7576 | esac |
| 7577 | fi |
| 7578 | ZIP=$ac_cv_path_ZIP |
| 7579 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7580 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7581 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7583 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7584 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7585 | fi |
| 7586 | |
| 7587 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7588 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7589 | do |
| 7590 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7591 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7592 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7594 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7596 | else |
| 7597 | case $OCAMLC in |
| 7598 | [\\/]* | ?:[\\/]*) |
| 7599 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7600 | ;; |
| 7601 | *) |
| 7602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7603 | for as_dir in $PATH |
| 7604 | do |
| 7605 | IFS=$as_save_IFS |
| 7606 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7608 | 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] | 7609 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7610 | 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] | 7611 | break 2 |
| 7612 | fi |
| 7613 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7614 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7615 | IFS=$as_save_IFS |
| 7616 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7617 | ;; |
| 7618 | esac |
| 7619 | fi |
| 7620 | OCAMLC=$ac_cv_path_OCAMLC |
| 7621 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7622 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7623 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7624 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7626 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7627 | fi |
| 7628 | |
| 7629 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7630 | test -n "$OCAMLC" && break |
| 7631 | done |
| 7632 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7633 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7634 | do |
| 7635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7636 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7639 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7641 | else |
| 7642 | case $OCAMLOPT in |
| 7643 | [\\/]* | ?:[\\/]*) |
| 7644 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7645 | ;; |
| 7646 | *) |
| 7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7648 | for as_dir in $PATH |
| 7649 | do |
| 7650 | IFS=$as_save_IFS |
| 7651 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7653 | 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] | 7654 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7655 | 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] | 7656 | break 2 |
| 7657 | fi |
| 7658 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7659 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7660 | IFS=$as_save_IFS |
| 7661 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7662 | ;; |
| 7663 | esac |
| 7664 | fi |
| 7665 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7666 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7667 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7668 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7669 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7670 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7671 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7672 | fi |
| 7673 | |
| 7674 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7675 | test -n "$OCAMLOPT" && break |
| 7676 | done |
| 7677 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7678 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7679 | do |
| 7680 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7681 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7682 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7684 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7686 | else |
| 7687 | case $OCAMLDEP in |
| 7688 | [\\/]* | ?:[\\/]*) |
| 7689 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7690 | ;; |
| 7691 | *) |
| 7692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7693 | for as_dir in $PATH |
| 7694 | do |
| 7695 | IFS=$as_save_IFS |
| 7696 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7697 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7698 | 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] | 7699 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7700 | 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] | 7701 | break 2 |
| 7702 | fi |
| 7703 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7704 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7705 | IFS=$as_save_IFS |
| 7706 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7707 | ;; |
| 7708 | esac |
| 7709 | fi |
| 7710 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7711 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7712 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7713 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7714 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7715 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7716 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7717 | fi |
| 7718 | |
| 7719 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7720 | test -n "$OCAMLDEP" && break |
| 7721 | done |
| 7722 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7723 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7724 | do |
| 7725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7726 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7729 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7731 | else |
| 7732 | case $OCAMLDOC in |
| 7733 | [\\/]* | ?:[\\/]*) |
| 7734 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7735 | ;; |
| 7736 | *) |
| 7737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7738 | for as_dir in $PATH |
| 7739 | do |
| 7740 | IFS=$as_save_IFS |
| 7741 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7742 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7743 | 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] | 7744 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7745 | 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] | 7746 | break 2 |
| 7747 | fi |
| 7748 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7749 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7750 | IFS=$as_save_IFS |
| 7751 | |
| 7752 | ;; |
| 7753 | esac |
| 7754 | fi |
| 7755 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7756 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7757 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7758 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7759 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7760 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7761 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7762 | fi |
| 7763 | |
| 7764 | |
| 7765 | test -n "$OCAMLDOC" && break |
| 7766 | done |
| 7767 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7768 | for ac_prog in gas as |
| 7769 | do |
| 7770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7771 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7774 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7776 | else |
| 7777 | case $GAS in |
| 7778 | [\\/]* | ?:[\\/]*) |
| 7779 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7780 | ;; |
| 7781 | *) |
| 7782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7783 | for as_dir in $PATH |
| 7784 | do |
| 7785 | IFS=$as_save_IFS |
| 7786 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7787 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7788 | 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] | 7789 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7790 | 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] | 7791 | break 2 |
| 7792 | fi |
| 7793 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7794 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7795 | IFS=$as_save_IFS |
| 7796 | |
| 7797 | ;; |
| 7798 | esac |
| 7799 | fi |
| 7800 | GAS=$ac_cv_path_GAS |
| 7801 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7802 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7803 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7804 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7805 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7806 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7807 | fi |
| 7808 | |
| 7809 | |
| 7810 | test -n "$GAS" && break |
| 7811 | done |
| 7812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7813 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7814 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7815 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7816 | if test "${llvm_cv_link_version+set}" = set; then |
| 7817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7818 | else |
| 7819 | |
| 7820 | version_string="$(ld -v 2>&1 | head -1)" |
| 7821 | |
| 7822 | # Check for ld64. |
| 7823 | if (echo "$version_string" | grep -q "ld64"); then |
| 7824 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 7825 | else |
| 7826 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7827 | fi |
| 7828 | |
| 7829 | fi |
| 7830 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7831 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7832 | |
| 7833 | cat >>confdefs.h <<_ACEOF |
| 7834 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7835 | _ACEOF |
| 7836 | |
| 7837 | |
| 7838 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7839 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7840 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7841 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7843 | else |
| 7844 | ac_ext=c |
| 7845 | ac_cpp='$CPP $CPPFLAGS' |
| 7846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7849 | |
| 7850 | oldcflags="$CFLAGS" |
| 7851 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7852 | cat >conftest.$ac_ext <<_ACEOF |
| 7853 | /* confdefs.h. */ |
| 7854 | _ACEOF |
| 7855 | cat confdefs.h >>conftest.$ac_ext |
| 7856 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7857 | /* end confdefs.h. */ |
| 7858 | |
| 7859 | int |
| 7860 | main () |
| 7861 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7863 | ; |
| 7864 | return 0; |
| 7865 | } |
| 7866 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7868 | if { (ac_try="$ac_link" |
| 7869 | case "(($ac_try" in |
| 7870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7871 | *) ac_try_echo=$ac_try;; |
| 7872 | esac |
| 7873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7874 | (eval "$ac_link") 2>conftest.er1 |
| 7875 | ac_status=$? |
| 7876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7877 | rm -f conftest.er1 |
| 7878 | cat conftest.err >&5 |
| 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7880 | (exit $ac_status); } && |
| 7881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7882 | { (case "(($ac_try" in |
| 7883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7884 | *) ac_try_echo=$ac_try;; |
| 7885 | esac |
| 7886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7887 | (eval "$ac_try") 2>&5 |
| 7888 | ac_status=$? |
| 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7890 | (exit $ac_status); }; } && |
| 7891 | { ac_try='test -s conftest$ac_exeext' |
| 7892 | { (case "(($ac_try" in |
| 7893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7894 | *) ac_try_echo=$ac_try;; |
| 7895 | esac |
| 7896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7897 | (eval "$ac_try") 2>&5 |
| 7898 | ac_status=$? |
| 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7900 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7901 | llvm_cv_link_use_r=yes |
| 7902 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7903 | echo "$as_me: failed program was:" >&5 |
| 7904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7905 | |
| 7906 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7907 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7908 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7909 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7910 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7911 | CFLAGS="$oldcflags" |
| 7912 | ac_ext=c |
| 7913 | ac_cpp='$CPP $CPPFLAGS' |
| 7914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7917 | |
| 7918 | |
| 7919 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7920 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7921 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7922 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | cat >>confdefs.h <<\_ACEOF |
| 7925 | #define HAVE_LINK_R 1 |
| 7926 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7927 | |
| 7928 | fi |
| 7929 | |
| 7930 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7931 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7932 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7933 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7935 | else |
| 7936 | ac_ext=c |
| 7937 | ac_cpp='$CPP $CPPFLAGS' |
| 7938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7941 | |
| 7942 | oldcflags="$CFLAGS" |
| 7943 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7944 | cat >conftest.$ac_ext <<_ACEOF |
| 7945 | /* confdefs.h. */ |
| 7946 | _ACEOF |
| 7947 | cat confdefs.h >>conftest.$ac_ext |
| 7948 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7949 | /* end confdefs.h. */ |
| 7950 | |
| 7951 | int |
| 7952 | main () |
| 7953 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7954 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7955 | ; |
| 7956 | return 0; |
| 7957 | } |
| 7958 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7960 | if { (ac_try="$ac_link" |
| 7961 | case "(($ac_try" in |
| 7962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7963 | *) ac_try_echo=$ac_try;; |
| 7964 | esac |
| 7965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7966 | (eval "$ac_link") 2>conftest.er1 |
| 7967 | ac_status=$? |
| 7968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7969 | rm -f conftest.er1 |
| 7970 | cat conftest.err >&5 |
| 7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7972 | (exit $ac_status); } && |
| 7973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7974 | { (case "(($ac_try" in |
| 7975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7976 | *) ac_try_echo=$ac_try;; |
| 7977 | esac |
| 7978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7979 | (eval "$ac_try") 2>&5 |
| 7980 | ac_status=$? |
| 7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7982 | (exit $ac_status); }; } && |
| 7983 | { ac_try='test -s conftest$ac_exeext' |
| 7984 | { (case "(($ac_try" in |
| 7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7986 | *) ac_try_echo=$ac_try;; |
| 7987 | esac |
| 7988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7989 | (eval "$ac_try") 2>&5 |
| 7990 | ac_status=$? |
| 7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7992 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7993 | llvm_cv_link_use_export_dynamic=yes |
| 7994 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7995 | echo "$as_me: failed program was:" >&5 |
| 7996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7997 | |
| 7998 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7999 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8000 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8001 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8002 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8003 | CFLAGS="$oldcflags" |
| 8004 | ac_ext=c |
| 8005 | ac_cpp='$CPP $CPPFLAGS' |
| 8006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8009 | |
| 8010 | |
| 8011 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8012 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8013 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8014 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8015 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8016 | cat >>confdefs.h <<\_ACEOF |
| 8017 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8018 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8019 | |
| 8020 | fi |
| 8021 | |
| 8022 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8023 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 8024 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 8025 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8027 | else |
| 8028 | ac_ext=c |
| 8029 | ac_cpp='$CPP $CPPFLAGS' |
| 8030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8033 | |
| 8034 | oldcflags="$CFLAGS" |
| 8035 | |
| 8036 | # The following code is from the autoconf manual, |
| 8037 | # "11.13: Limitations of Usual Tools". |
| 8038 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8039 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8040 | # with $RANDOM to make collisions less likely. |
| 8041 | : ${TMPDIR=/tmp} |
| 8042 | { |
| 8043 | tmp=` |
| 8044 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8045 | ` && |
| 8046 | test -n "$tmp" && test -d "$tmp" |
| 8047 | } || { |
| 8048 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8049 | (umask 077 && mkdir "$tmp") |
| 8050 | } || exit $? |
| 8051 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8052 | echo "{" > "$tmp/export.map" |
| 8053 | echo " global: main;" >> "$tmp/export.map" |
| 8054 | echo " local: *;" >> "$tmp/export.map" |
| 8055 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8056 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8057 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8058 | cat >conftest.$ac_ext <<_ACEOF |
| 8059 | /* confdefs.h. */ |
| 8060 | _ACEOF |
| 8061 | cat confdefs.h >>conftest.$ac_ext |
| 8062 | cat >>conftest.$ac_ext <<_ACEOF |
| 8063 | /* end confdefs.h. */ |
| 8064 | |
| 8065 | int |
| 8066 | main () |
| 8067 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8068 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8069 | ; |
| 8070 | return 0; |
| 8071 | } |
| 8072 | _ACEOF |
| 8073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8074 | if { (ac_try="$ac_link" |
| 8075 | case "(($ac_try" in |
| 8076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8077 | *) ac_try_echo=$ac_try;; |
| 8078 | esac |
| 8079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8080 | (eval "$ac_link") 2>conftest.er1 |
| 8081 | ac_status=$? |
| 8082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8083 | rm -f conftest.er1 |
| 8084 | cat conftest.err >&5 |
| 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8086 | (exit $ac_status); } && |
| 8087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8088 | { (case "(($ac_try" in |
| 8089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8090 | *) ac_try_echo=$ac_try;; |
| 8091 | esac |
| 8092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8093 | (eval "$ac_try") 2>&5 |
| 8094 | ac_status=$? |
| 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8096 | (exit $ac_status); }; } && |
| 8097 | { ac_try='test -s conftest$ac_exeext' |
| 8098 | { (case "(($ac_try" in |
| 8099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8100 | *) ac_try_echo=$ac_try;; |
| 8101 | esac |
| 8102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8103 | (eval "$ac_try") 2>&5 |
| 8104 | ac_status=$? |
| 8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8106 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8107 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8108 | else |
| 8109 | echo "$as_me: failed program was:" >&5 |
| 8110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8111 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8112 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8113 | fi |
| 8114 | |
| 8115 | rm -f core conftest.err conftest.$ac_objext \ |
| 8116 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8117 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8118 | rmdir "$tmp" |
| 8119 | CFLAGS="$oldcflags" |
| 8120 | ac_ext=c |
| 8121 | ac_cpp='$CPP $CPPFLAGS' |
| 8122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8125 | |
| 8126 | |
| 8127 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8128 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 8129 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 8130 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 8131 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8132 | |
| 8133 | fi |
| 8134 | |
| 8135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8136 | |
| 8137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8138 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8139 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8140 | if test "${ac_cv_c_const+set}" = set; then |
| 8141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8142 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8143 | cat >conftest.$ac_ext <<_ACEOF |
| 8144 | /* confdefs.h. */ |
| 8145 | _ACEOF |
| 8146 | cat confdefs.h >>conftest.$ac_ext |
| 8147 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8148 | /* end confdefs.h. */ |
| 8149 | |
| 8150 | int |
| 8151 | main () |
| 8152 | { |
| 8153 | /* FIXME: Include the comments suggested by Paul. */ |
| 8154 | #ifndef __cplusplus |
| 8155 | /* Ultrix mips cc rejects this. */ |
| 8156 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8157 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8158 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8159 | char const *const *ccp; |
| 8160 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8161 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8162 | struct point {int x, y;}; |
| 8163 | static struct point const zero = {0,0}; |
| 8164 | /* AIX XL C 1.02.0.0 rejects this. |
| 8165 | It does not let you subtract one const X* pointer from another in |
| 8166 | an arm of an if-expression whose if-part is not a constant |
| 8167 | expression */ |
| 8168 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8169 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8170 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8171 | ++ccp; |
| 8172 | p = (char**) ccp; |
| 8173 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8174 | { /* SCO 3.2v4 cc rejects this. */ |
| 8175 | char *t; |
| 8176 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8177 | |
| 8178 | *t++ = 0; |
| 8179 | if (s) return 0; |
| 8180 | } |
| 8181 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8182 | int x[] = {25, 17}; |
| 8183 | const int *foo = &x[0]; |
| 8184 | ++foo; |
| 8185 | } |
| 8186 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8187 | typedef const int *iptr; |
| 8188 | iptr p = 0; |
| 8189 | ++p; |
| 8190 | } |
| 8191 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8192 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8193 | struct s { int j; const int *ap[3]; }; |
| 8194 | struct s *b; b->j = 5; |
| 8195 | } |
| 8196 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8197 | const int foo = 10; |
| 8198 | if (!foo) return 0; |
| 8199 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8200 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8201 | #endif |
| 8202 | |
| 8203 | ; |
| 8204 | return 0; |
| 8205 | } |
| 8206 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8207 | rm -f conftest.$ac_objext |
| 8208 | if { (ac_try="$ac_compile" |
| 8209 | case "(($ac_try" in |
| 8210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8211 | *) ac_try_echo=$ac_try;; |
| 8212 | esac |
| 8213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8214 | (eval "$ac_compile") 2>conftest.er1 |
| 8215 | ac_status=$? |
| 8216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8217 | rm -f conftest.er1 |
| 8218 | cat conftest.err >&5 |
| 8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8220 | (exit $ac_status); } && |
| 8221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8222 | { (case "(($ac_try" in |
| 8223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8224 | *) ac_try_echo=$ac_try;; |
| 8225 | esac |
| 8226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8227 | (eval "$ac_try") 2>&5 |
| 8228 | ac_status=$? |
| 8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8230 | (exit $ac_status); }; } && |
| 8231 | { ac_try='test -s conftest.$ac_objext' |
| 8232 | { (case "(($ac_try" in |
| 8233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8234 | *) ac_try_echo=$ac_try;; |
| 8235 | esac |
| 8236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8237 | (eval "$ac_try") 2>&5 |
| 8238 | ac_status=$? |
| 8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8240 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8241 | ac_cv_c_const=yes |
| 8242 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8243 | echo "$as_me: failed program was:" >&5 |
| 8244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8245 | |
| 8246 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8247 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8250 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8251 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8252 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8253 | if test $ac_cv_c_const = no; then |
| 8254 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8255 | cat >>confdefs.h <<\_ACEOF |
| 8256 | #define const |
| 8257 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8258 | |
| 8259 | fi |
| 8260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8261 | |
| 8262 | |
| 8263 | |
| 8264 | |
| 8265 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8266 | ac_header_dirent=no |
| 8267 | 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] | 8268 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8269 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8270 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8271 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8273 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8274 | cat >conftest.$ac_ext <<_ACEOF |
| 8275 | /* confdefs.h. */ |
| 8276 | _ACEOF |
| 8277 | cat confdefs.h >>conftest.$ac_ext |
| 8278 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8279 | /* end confdefs.h. */ |
| 8280 | #include <sys/types.h> |
| 8281 | #include <$ac_hdr> |
| 8282 | |
| 8283 | int |
| 8284 | main () |
| 8285 | { |
| 8286 | if ((DIR *) 0) |
| 8287 | return 0; |
| 8288 | ; |
| 8289 | return 0; |
| 8290 | } |
| 8291 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8292 | rm -f conftest.$ac_objext |
| 8293 | if { (ac_try="$ac_compile" |
| 8294 | case "(($ac_try" in |
| 8295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8296 | *) ac_try_echo=$ac_try;; |
| 8297 | esac |
| 8298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8299 | (eval "$ac_compile") 2>conftest.er1 |
| 8300 | ac_status=$? |
| 8301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8302 | rm -f conftest.er1 |
| 8303 | cat conftest.err >&5 |
| 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8305 | (exit $ac_status); } && |
| 8306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8307 | { (case "(($ac_try" in |
| 8308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8309 | *) ac_try_echo=$ac_try;; |
| 8310 | esac |
| 8311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8312 | (eval "$ac_try") 2>&5 |
| 8313 | ac_status=$? |
| 8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8315 | (exit $ac_status); }; } && |
| 8316 | { ac_try='test -s conftest.$ac_objext' |
| 8317 | { (case "(($ac_try" in |
| 8318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8319 | *) ac_try_echo=$ac_try;; |
| 8320 | esac |
| 8321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8322 | (eval "$ac_try") 2>&5 |
| 8323 | ac_status=$? |
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8325 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8326 | eval "$as_ac_Header=yes" |
| 8327 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8328 | echo "$as_me: failed program was:" >&5 |
| 8329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8330 | |
| 8331 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8332 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8335 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8336 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8337 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8338 | echo "${ECHO_T}$ac_res" >&6; } |
| 8339 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8340 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8341 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8342 | _ACEOF |
| 8343 | |
| 8344 | ac_header_dirent=$ac_hdr; break |
| 8345 | fi |
| 8346 | |
| 8347 | done |
| 8348 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8349 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8350 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8351 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8352 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8354 | else |
| 8355 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8356 | cat >conftest.$ac_ext <<_ACEOF |
| 8357 | /* confdefs.h. */ |
| 8358 | _ACEOF |
| 8359 | cat confdefs.h >>conftest.$ac_ext |
| 8360 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8361 | /* end confdefs.h. */ |
| 8362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8363 | /* Override any GCC internal prototype to avoid an error. |
| 8364 | Use char because int might match the return type of a GCC |
| 8365 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8366 | #ifdef __cplusplus |
| 8367 | extern "C" |
| 8368 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8369 | char opendir (); |
| 8370 | int |
| 8371 | main () |
| 8372 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8373 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8374 | ; |
| 8375 | return 0; |
| 8376 | } |
| 8377 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8378 | for ac_lib in '' dir; do |
| 8379 | if test -z "$ac_lib"; then |
| 8380 | ac_res="none required" |
| 8381 | else |
| 8382 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8383 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8384 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8386 | if { (ac_try="$ac_link" |
| 8387 | case "(($ac_try" in |
| 8388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8389 | *) ac_try_echo=$ac_try;; |
| 8390 | esac |
| 8391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8392 | (eval "$ac_link") 2>conftest.er1 |
| 8393 | ac_status=$? |
| 8394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8395 | rm -f conftest.er1 |
| 8396 | cat conftest.err >&5 |
| 8397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8398 | (exit $ac_status); } && |
| 8399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8400 | { (case "(($ac_try" in |
| 8401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8402 | *) ac_try_echo=$ac_try;; |
| 8403 | esac |
| 8404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8405 | (eval "$ac_try") 2>&5 |
| 8406 | ac_status=$? |
| 8407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8408 | (exit $ac_status); }; } && |
| 8409 | { ac_try='test -s conftest$ac_exeext' |
| 8410 | { (case "(($ac_try" in |
| 8411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8412 | *) ac_try_echo=$ac_try;; |
| 8413 | esac |
| 8414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8415 | (eval "$ac_try") 2>&5 |
| 8416 | ac_status=$? |
| 8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8418 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8419 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8420 | else |
| 8421 | echo "$as_me: failed program was:" >&5 |
| 8422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8423 | |
| 8424 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8425 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8426 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8427 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8428 | conftest$ac_exeext |
| 8429 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8430 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8431 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8432 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8433 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8434 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8435 | else |
| 8436 | ac_cv_search_opendir=no |
| 8437 | fi |
| 8438 | rm conftest.$ac_ext |
| 8439 | LIBS=$ac_func_search_save_LIBS |
| 8440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8441 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8442 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8443 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8444 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8445 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8447 | fi |
| 8448 | |
| 8449 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8450 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8451 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8452 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8454 | else |
| 8455 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8456 | cat >conftest.$ac_ext <<_ACEOF |
| 8457 | /* confdefs.h. */ |
| 8458 | _ACEOF |
| 8459 | cat confdefs.h >>conftest.$ac_ext |
| 8460 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8461 | /* end confdefs.h. */ |
| 8462 | |
| 8463 | /* Override any GCC internal prototype to avoid an error. |
| 8464 | Use char because int might match the return type of a GCC |
| 8465 | builtin and then its argument prototype would still apply. */ |
| 8466 | #ifdef __cplusplus |
| 8467 | extern "C" |
| 8468 | #endif |
| 8469 | char opendir (); |
| 8470 | int |
| 8471 | main () |
| 8472 | { |
| 8473 | return opendir (); |
| 8474 | ; |
| 8475 | return 0; |
| 8476 | } |
| 8477 | _ACEOF |
| 8478 | for ac_lib in '' x; do |
| 8479 | if test -z "$ac_lib"; then |
| 8480 | ac_res="none required" |
| 8481 | else |
| 8482 | ac_res=-l$ac_lib |
| 8483 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8484 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8486 | if { (ac_try="$ac_link" |
| 8487 | case "(($ac_try" in |
| 8488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8489 | *) ac_try_echo=$ac_try;; |
| 8490 | esac |
| 8491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8492 | (eval "$ac_link") 2>conftest.er1 |
| 8493 | ac_status=$? |
| 8494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8495 | rm -f conftest.er1 |
| 8496 | cat conftest.err >&5 |
| 8497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8498 | (exit $ac_status); } && |
| 8499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8500 | { (case "(($ac_try" in |
| 8501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8502 | *) ac_try_echo=$ac_try;; |
| 8503 | esac |
| 8504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8505 | (eval "$ac_try") 2>&5 |
| 8506 | ac_status=$? |
| 8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8508 | (exit $ac_status); }; } && |
| 8509 | { ac_try='test -s conftest$ac_exeext' |
| 8510 | { (case "(($ac_try" in |
| 8511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8512 | *) ac_try_echo=$ac_try;; |
| 8513 | esac |
| 8514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8515 | (eval "$ac_try") 2>&5 |
| 8516 | ac_status=$? |
| 8517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8518 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8519 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8520 | else |
| 8521 | echo "$as_me: failed program was:" >&5 |
| 8522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8523 | |
| 8524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8525 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8526 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8527 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8528 | conftest$ac_exeext |
| 8529 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8530 | break |
| 8531 | fi |
| 8532 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8533 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8534 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8535 | else |
| 8536 | ac_cv_search_opendir=no |
| 8537 | fi |
| 8538 | rm conftest.$ac_ext |
| 8539 | LIBS=$ac_func_search_save_LIBS |
| 8540 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8541 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8542 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8543 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8544 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8545 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8546 | |
| 8547 | fi |
| 8548 | |
| 8549 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8550 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8551 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8552 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8553 | do |
| 8554 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8556 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8557 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8558 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8560 | fi |
| 8561 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8562 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8563 | echo "${ECHO_T}$ac_res" >&6; } |
| 8564 | else |
| 8565 | # Is the header compilable? |
| 8566 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8567 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8568 | cat >conftest.$ac_ext <<_ACEOF |
| 8569 | /* confdefs.h. */ |
| 8570 | _ACEOF |
| 8571 | cat confdefs.h >>conftest.$ac_ext |
| 8572 | cat >>conftest.$ac_ext <<_ACEOF |
| 8573 | /* end confdefs.h. */ |
| 8574 | $ac_includes_default |
| 8575 | #include <$ac_header> |
| 8576 | _ACEOF |
| 8577 | rm -f conftest.$ac_objext |
| 8578 | if { (ac_try="$ac_compile" |
| 8579 | case "(($ac_try" in |
| 8580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8581 | *) ac_try_echo=$ac_try;; |
| 8582 | esac |
| 8583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8584 | (eval "$ac_compile") 2>conftest.er1 |
| 8585 | ac_status=$? |
| 8586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8587 | rm -f conftest.er1 |
| 8588 | cat conftest.err >&5 |
| 8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8590 | (exit $ac_status); } && |
| 8591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8592 | { (case "(($ac_try" in |
| 8593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8594 | *) ac_try_echo=$ac_try;; |
| 8595 | esac |
| 8596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8597 | (eval "$ac_try") 2>&5 |
| 8598 | ac_status=$? |
| 8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8600 | (exit $ac_status); }; } && |
| 8601 | { ac_try='test -s conftest.$ac_objext' |
| 8602 | { (case "(($ac_try" in |
| 8603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8604 | *) ac_try_echo=$ac_try;; |
| 8605 | esac |
| 8606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8607 | (eval "$ac_try") 2>&5 |
| 8608 | ac_status=$? |
| 8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8610 | (exit $ac_status); }; }; then |
| 8611 | ac_header_compiler=yes |
| 8612 | else |
| 8613 | echo "$as_me: failed program was:" >&5 |
| 8614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8615 | |
| 8616 | ac_header_compiler=no |
| 8617 | fi |
| 8618 | |
| 8619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8620 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8621 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8622 | |
| 8623 | # Is the header present? |
| 8624 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8625 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8626 | cat >conftest.$ac_ext <<_ACEOF |
| 8627 | /* confdefs.h. */ |
| 8628 | _ACEOF |
| 8629 | cat confdefs.h >>conftest.$ac_ext |
| 8630 | cat >>conftest.$ac_ext <<_ACEOF |
| 8631 | /* end confdefs.h. */ |
| 8632 | #include <$ac_header> |
| 8633 | _ACEOF |
| 8634 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8635 | case "(($ac_try" in |
| 8636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8637 | *) ac_try_echo=$ac_try;; |
| 8638 | esac |
| 8639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8641 | ac_status=$? |
| 8642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8643 | rm -f conftest.er1 |
| 8644 | cat conftest.err >&5 |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); } >/dev/null; then |
| 8647 | if test -s conftest.err; then |
| 8648 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8650 | else |
| 8651 | ac_cpp_err= |
| 8652 | fi |
| 8653 | else |
| 8654 | ac_cpp_err=yes |
| 8655 | fi |
| 8656 | if test -z "$ac_cpp_err"; then |
| 8657 | ac_header_preproc=yes |
| 8658 | else |
| 8659 | echo "$as_me: failed program was:" >&5 |
| 8660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8661 | |
| 8662 | ac_header_preproc=no |
| 8663 | fi |
| 8664 | |
| 8665 | rm -f conftest.err conftest.$ac_ext |
| 8666 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8667 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8668 | |
| 8669 | # So? What about this header? |
| 8670 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8671 | yes:no: ) |
| 8672 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8673 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8675 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8676 | ac_header_preproc=yes |
| 8677 | ;; |
| 8678 | no:yes:* ) |
| 8679 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8680 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8681 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8682 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8683 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8684 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8685 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8686 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8688 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8689 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8690 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8691 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8692 | ## ------------------------------------ ## |
| 8693 | ## Report this to http://llvm.org/bugs/ ## |
| 8694 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8695 | _ASBOX |
| 8696 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8697 | ;; |
| 8698 | esac |
| 8699 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8703 | else |
| 8704 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8705 | fi |
| 8706 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8707 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8708 | echo "${ECHO_T}$ac_res" >&6; } |
| 8709 | |
| 8710 | fi |
| 8711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8712 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8714 | _ACEOF |
| 8715 | |
| 8716 | fi |
| 8717 | |
| 8718 | done |
| 8719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8720 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8721 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8722 | enableval=$enable_ltdl_install; |
| 8723 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8724 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8725 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8726 | |
| 8727 | |
| 8728 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8729 | INSTALL_LTDL_TRUE= |
| 8730 | INSTALL_LTDL_FALSE='#' |
| 8731 | else |
| 8732 | INSTALL_LTDL_TRUE='#' |
| 8733 | INSTALL_LTDL_FALSE= |
| 8734 | fi |
| 8735 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8736 | |
| 8737 | |
| 8738 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8739 | CONVENIENCE_LTDL_TRUE= |
| 8740 | CONVENIENCE_LTDL_FALSE='#' |
| 8741 | else |
| 8742 | CONVENIENCE_LTDL_TRUE='#' |
| 8743 | CONVENIENCE_LTDL_FALSE= |
| 8744 | fi |
| 8745 | |
| 8746 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8747 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8748 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8749 | library_names_spec= |
| 8750 | libname_spec='lib$name' |
| 8751 | soname_spec= |
| 8752 | shrext_cmds=".so" |
| 8753 | postinstall_cmds= |
| 8754 | postuninstall_cmds= |
| 8755 | finish_cmds= |
| 8756 | finish_eval= |
| 8757 | shlibpath_var= |
| 8758 | shlibpath_overrides_runpath=unknown |
| 8759 | version_type=none |
| 8760 | dynamic_linker="$host_os ld.so" |
| 8761 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8762 | if test "$GCC" = yes; then |
| 8763 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8764 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8765 | # if the path contains ";" then we assume it to be the separator |
| 8766 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8767 | # assumed that no part of a normal pathname contains ";" but that should |
| 8768 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8769 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8770 | else |
| 8771 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8772 | fi |
| 8773 | else |
| 8774 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8775 | fi |
| 8776 | need_lib_prefix=unknown |
| 8777 | hardcode_into_libs=no |
| 8778 | |
| 8779 | # when you set need_version to no, make sure it does not cause -set_version |
| 8780 | # flags to be left without arguments |
| 8781 | need_version=unknown |
| 8782 | |
| 8783 | case $host_os in |
| 8784 | aix3*) |
| 8785 | version_type=linux |
| 8786 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8787 | shlibpath_var=LIBPATH |
| 8788 | |
| 8789 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8790 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8791 | ;; |
| 8792 | |
| 8793 | aix4* | aix5*) |
| 8794 | version_type=linux |
| 8795 | need_lib_prefix=no |
| 8796 | need_version=no |
| 8797 | hardcode_into_libs=yes |
| 8798 | if test "$host_cpu" = ia64; then |
| 8799 | # AIX 5 supports IA64 |
| 8800 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8801 | shlibpath_var=LD_LIBRARY_PATH |
| 8802 | else |
| 8803 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8804 | # for dependence libraries. The import file would start with |
| 8805 | # the line `#! .'. This would cause the generated library to |
| 8806 | # depend on `.', always an invalid library. This was fixed in |
| 8807 | # development snapshots of GCC prior to 3.0. |
| 8808 | case $host_os in |
| 8809 | aix4 | aix4.[01] | aix4.[01].*) |
| 8810 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8811 | echo ' yes ' |
| 8812 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8813 | : |
| 8814 | else |
| 8815 | can_build_shared=no |
| 8816 | fi |
| 8817 | ;; |
| 8818 | esac |
| 8819 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8820 | # soname into executable. Probably we can add versioning support to |
| 8821 | # collect2, so additional links can be useful in future. |
| 8822 | if test "$aix_use_runtimelinking" = yes; then |
| 8823 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8824 | # instead of lib<name>.a to let people know that these are not |
| 8825 | # typical AIX shared libraries. |
| 8826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8827 | else |
| 8828 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8829 | # and later when we are not doing run time linking. |
| 8830 | library_names_spec='${libname}${release}.a $libname.a' |
| 8831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8832 | fi |
| 8833 | shlibpath_var=LIBPATH |
| 8834 | fi |
| 8835 | ;; |
| 8836 | |
| 8837 | amigaos*) |
| 8838 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8839 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8840 | 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' |
| 8841 | ;; |
| 8842 | |
| 8843 | beos*) |
| 8844 | library_names_spec='${libname}${shared_ext}' |
| 8845 | dynamic_linker="$host_os ld.so" |
| 8846 | shlibpath_var=LIBRARY_PATH |
| 8847 | ;; |
| 8848 | |
| 8849 | bsdi[45]*) |
| 8850 | version_type=linux |
| 8851 | need_version=no |
| 8852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8853 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8854 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8855 | shlibpath_var=LD_LIBRARY_PATH |
| 8856 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8857 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8858 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8859 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8860 | # libtool to hard-code these into programs |
| 8861 | ;; |
| 8862 | |
| 8863 | cygwin* | mingw* | pw32*) |
| 8864 | version_type=windows |
| 8865 | shrext_cmds=".dll" |
| 8866 | need_version=no |
| 8867 | need_lib_prefix=no |
| 8868 | |
| 8869 | case $GCC,$host_os in |
| 8870 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8871 | library_names_spec='$libname.dll.a' |
| 8872 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8873 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8874 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8875 | dldir=$destdir/`dirname \$dlpath`~ |
| 8876 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8877 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8878 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8879 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8880 | dlpath=$dir/\$dldll~ |
| 8881 | $rm \$dlpath' |
| 8882 | shlibpath_overrides_runpath=yes |
| 8883 | |
| 8884 | case $host_os in |
| 8885 | cygwin*) |
| 8886 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8887 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8888 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8889 | ;; |
| 8890 | mingw*) |
| 8891 | # MinGW DLLs use traditional 'lib' prefix |
| 8892 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8893 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8894 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8895 | # It is most probably a Windows format PATH printed by |
| 8896 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8897 | # path with ; separators, and with drive letters. We can handle the |
| 8898 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8899 | # especially as we might pass files found there to a mingw objdump, |
| 8900 | # which wouldn't understand a cygwinified path. Ahh. |
| 8901 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8902 | else |
| 8903 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8904 | fi |
| 8905 | ;; |
| 8906 | pw32*) |
| 8907 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8908 | 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] | 8909 | ;; |
| 8910 | esac |
| 8911 | ;; |
| 8912 | |
| 8913 | *) |
| 8914 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8915 | ;; |
| 8916 | esac |
| 8917 | dynamic_linker='Win32 ld.exe' |
| 8918 | # FIXME: first we should search . and the directory the executable is in |
| 8919 | shlibpath_var=PATH |
| 8920 | ;; |
| 8921 | |
| 8922 | darwin* | rhapsody*) |
| 8923 | dynamic_linker="$host_os dyld" |
| 8924 | version_type=darwin |
| 8925 | need_lib_prefix=no |
| 8926 | need_version=no |
| 8927 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8928 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8929 | shlibpath_overrides_runpath=yes |
| 8930 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8931 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8932 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8933 | if test "$GCC" = yes; then |
| 8934 | 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"` |
| 8935 | else |
| 8936 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8937 | fi |
| 8938 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8939 | ;; |
| 8940 | |
| 8941 | dgux*) |
| 8942 | version_type=linux |
| 8943 | need_lib_prefix=no |
| 8944 | need_version=no |
| 8945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8946 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8947 | shlibpath_var=LD_LIBRARY_PATH |
| 8948 | ;; |
| 8949 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8950 | freebsd1.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8951 | dynamic_linker=no |
| 8952 | ;; |
| 8953 | |
| 8954 | kfreebsd*-gnu) |
| 8955 | version_type=linux |
| 8956 | need_lib_prefix=no |
| 8957 | need_version=no |
| 8958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8960 | shlibpath_var=LD_LIBRARY_PATH |
| 8961 | shlibpath_overrides_runpath=no |
| 8962 | hardcode_into_libs=yes |
| 8963 | dynamic_linker='GNU ld.so' |
| 8964 | ;; |
| 8965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8966 | freebsd* | dragonfly*) |
| 8967 | # DragonFly does not have aout. When/if they implement a new |
| 8968 | # versioning mechanism, adjust this. |
| 8969 | if test -x /usr/bin/objformat; then |
| 8970 | objformat=`/usr/bin/objformat` |
| 8971 | else |
| 8972 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8973 | freebsd[123].*) objformat=aout ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8974 | *) objformat=elf ;; |
| 8975 | esac |
| 8976 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8977 | version_type=freebsd-$objformat |
| 8978 | case $version_type in |
| 8979 | freebsd-elf*) |
| 8980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8981 | need_version=no |
| 8982 | need_lib_prefix=no |
| 8983 | ;; |
| 8984 | freebsd-*) |
| 8985 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8986 | need_version=yes |
| 8987 | ;; |
| 8988 | esac |
| 8989 | shlibpath_var=LD_LIBRARY_PATH |
| 8990 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8991 | freebsd2.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8992 | shlibpath_overrides_runpath=yes |
| 8993 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8994 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8995 | shlibpath_overrides_runpath=yes |
| 8996 | hardcode_into_libs=yes |
| 8997 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8998 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8999 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9000 | shlibpath_overrides_runpath=no |
| 9001 | hardcode_into_libs=yes |
| 9002 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9003 | freebsd*) # from 4.6 on |
| 9004 | shlibpath_overrides_runpath=yes |
| 9005 | hardcode_into_libs=yes |
| 9006 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9007 | esac |
| 9008 | ;; |
| 9009 | |
| 9010 | gnu*) |
| 9011 | version_type=linux |
| 9012 | need_lib_prefix=no |
| 9013 | need_version=no |
| 9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9015 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9016 | shlibpath_var=LD_LIBRARY_PATH |
| 9017 | hardcode_into_libs=yes |
| 9018 | ;; |
| 9019 | |
| 9020 | hpux9* | hpux10* | hpux11*) |
| 9021 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9022 | # link against other versions. |
| 9023 | version_type=sunos |
| 9024 | need_lib_prefix=no |
| 9025 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9026 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9027 | ia64*) |
| 9028 | shrext_cmds='.so' |
| 9029 | hardcode_into_libs=yes |
| 9030 | dynamic_linker="$host_os dld.so" |
| 9031 | shlibpath_var=LD_LIBRARY_PATH |
| 9032 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9034 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9035 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9036 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9037 | else |
| 9038 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9039 | fi |
| 9040 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9041 | ;; |
| 9042 | hppa*64*) |
| 9043 | shrext_cmds='.sl' |
| 9044 | hardcode_into_libs=yes |
| 9045 | dynamic_linker="$host_os dld.sl" |
| 9046 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9047 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9050 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9051 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9052 | ;; |
| 9053 | *) |
| 9054 | shrext_cmds='.sl' |
| 9055 | dynamic_linker="$host_os dld.sl" |
| 9056 | shlibpath_var=SHLIB_PATH |
| 9057 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9059 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9060 | ;; |
| 9061 | esac |
| 9062 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9063 | postinstall_cmds='chmod 555 $lib' |
| 9064 | ;; |
| 9065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9066 | interix3*) |
| 9067 | version_type=linux |
| 9068 | need_lib_prefix=no |
| 9069 | need_version=no |
| 9070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9071 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9072 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9073 | shlibpath_var=LD_LIBRARY_PATH |
| 9074 | shlibpath_overrides_runpath=no |
| 9075 | hardcode_into_libs=yes |
| 9076 | ;; |
| 9077 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9078 | irix5* | irix6* | nonstopux*) |
| 9079 | case $host_os in |
| 9080 | nonstopux*) version_type=nonstopux ;; |
| 9081 | *) |
| 9082 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9083 | version_type=linux |
| 9084 | else |
| 9085 | version_type=irix |
| 9086 | fi ;; |
| 9087 | esac |
| 9088 | need_lib_prefix=no |
| 9089 | need_version=no |
| 9090 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9092 | case $host_os in |
| 9093 | irix5* | nonstopux*) |
| 9094 | libsuff= shlibsuff= |
| 9095 | ;; |
| 9096 | *) |
| 9097 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9098 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9099 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9100 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9101 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9102 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9103 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9104 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9105 | esac |
| 9106 | ;; |
| 9107 | esac |
| 9108 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9109 | shlibpath_overrides_runpath=no |
| 9110 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9111 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9112 | hardcode_into_libs=yes |
| 9113 | ;; |
| 9114 | |
| 9115 | # No shared lib support for Linux oldld, aout, or coff. |
| 9116 | linux*oldld* | linux*aout* | linux*coff*) |
| 9117 | dynamic_linker=no |
| 9118 | ;; |
| 9119 | |
| 9120 | # This must be Linux ELF. |
| 9121 | linux*) |
| 9122 | version_type=linux |
| 9123 | need_lib_prefix=no |
| 9124 | need_version=no |
| 9125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9126 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9127 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9128 | shlibpath_var=LD_LIBRARY_PATH |
| 9129 | shlibpath_overrides_runpath=no |
| 9130 | # This implies no fast_install, which is unacceptable. |
| 9131 | # Some rework will be needed to allow for fast_install |
| 9132 | # before this can be enabled. |
| 9133 | hardcode_into_libs=yes |
| 9134 | |
| 9135 | # Append ld.so.conf contents to the search path |
| 9136 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9137 | 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] | 9138 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9139 | fi |
| 9140 | |
| 9141 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9142 | # powerpc, because MkLinux only supported shared libraries with the |
| 9143 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9144 | # most powerpc-linux boxes support dynamic linking these days and |
| 9145 | # people can always --disable-shared, the test was removed, and we |
| 9146 | # assume the GNU/Linux dynamic linker is in use. |
| 9147 | dynamic_linker='GNU/Linux ld.so' |
| 9148 | ;; |
| 9149 | |
| 9150 | knetbsd*-gnu) |
| 9151 | version_type=linux |
| 9152 | need_lib_prefix=no |
| 9153 | need_version=no |
| 9154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9155 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9156 | shlibpath_var=LD_LIBRARY_PATH |
| 9157 | shlibpath_overrides_runpath=no |
| 9158 | hardcode_into_libs=yes |
| 9159 | dynamic_linker='GNU ld.so' |
| 9160 | ;; |
| 9161 | |
| 9162 | netbsd*) |
| 9163 | version_type=sunos |
| 9164 | need_lib_prefix=no |
| 9165 | need_version=no |
| 9166 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9168 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9169 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9170 | else |
| 9171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9172 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9173 | dynamic_linker='NetBSD ld.elf_so' |
| 9174 | fi |
| 9175 | shlibpath_var=LD_LIBRARY_PATH |
| 9176 | shlibpath_overrides_runpath=yes |
| 9177 | hardcode_into_libs=yes |
| 9178 | ;; |
| 9179 | |
| 9180 | newsos6) |
| 9181 | version_type=linux |
| 9182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9183 | shlibpath_var=LD_LIBRARY_PATH |
| 9184 | shlibpath_overrides_runpath=yes |
| 9185 | ;; |
| 9186 | |
| 9187 | nto-qnx*) |
| 9188 | version_type=linux |
| 9189 | need_lib_prefix=no |
| 9190 | need_version=no |
| 9191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9192 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9193 | shlibpath_var=LD_LIBRARY_PATH |
| 9194 | shlibpath_overrides_runpath=yes |
| 9195 | ;; |
| 9196 | |
| 9197 | openbsd*) |
| 9198 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9199 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9200 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9201 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9202 | case $host_os in |
| 9203 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9204 | *) need_version=no ;; |
| 9205 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9207 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9208 | shlibpath_var=LD_LIBRARY_PATH |
| 9209 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9210 | case $host_os in |
| 9211 | openbsd2.[89] | openbsd2.[89].*) |
| 9212 | shlibpath_overrides_runpath=no |
| 9213 | ;; |
| 9214 | *) |
| 9215 | shlibpath_overrides_runpath=yes |
| 9216 | ;; |
| 9217 | esac |
| 9218 | else |
| 9219 | shlibpath_overrides_runpath=yes |
| 9220 | fi |
| 9221 | ;; |
| 9222 | |
| 9223 | os2*) |
| 9224 | libname_spec='$name' |
| 9225 | shrext_cmds=".dll" |
| 9226 | need_lib_prefix=no |
| 9227 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9228 | dynamic_linker='OS/2 ld.exe' |
| 9229 | shlibpath_var=LIBPATH |
| 9230 | ;; |
| 9231 | |
| 9232 | osf3* | osf4* | osf5*) |
| 9233 | version_type=osf |
| 9234 | need_lib_prefix=no |
| 9235 | need_version=no |
| 9236 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9238 | shlibpath_var=LD_LIBRARY_PATH |
| 9239 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9240 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9241 | ;; |
| 9242 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9243 | solaris*) |
| 9244 | version_type=linux |
| 9245 | need_lib_prefix=no |
| 9246 | need_version=no |
| 9247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9248 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9249 | shlibpath_var=LD_LIBRARY_PATH |
| 9250 | shlibpath_overrides_runpath=yes |
| 9251 | hardcode_into_libs=yes |
| 9252 | # ldd complains unless libraries are executable |
| 9253 | postinstall_cmds='chmod +x $lib' |
| 9254 | ;; |
| 9255 | |
| 9256 | sunos4*) |
| 9257 | version_type=sunos |
| 9258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9259 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9260 | shlibpath_var=LD_LIBRARY_PATH |
| 9261 | shlibpath_overrides_runpath=yes |
| 9262 | if test "$with_gnu_ld" = yes; then |
| 9263 | need_lib_prefix=no |
| 9264 | fi |
| 9265 | need_version=yes |
| 9266 | ;; |
| 9267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9268 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9269 | version_type=linux |
| 9270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9271 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9272 | shlibpath_var=LD_LIBRARY_PATH |
| 9273 | case $host_vendor in |
| 9274 | sni) |
| 9275 | shlibpath_overrides_runpath=no |
| 9276 | need_lib_prefix=no |
| 9277 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9278 | runpath_var=LD_RUN_PATH |
| 9279 | ;; |
| 9280 | siemens) |
| 9281 | need_lib_prefix=no |
| 9282 | ;; |
| 9283 | motorola) |
| 9284 | need_lib_prefix=no |
| 9285 | need_version=no |
| 9286 | shlibpath_overrides_runpath=no |
| 9287 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9288 | ;; |
| 9289 | esac |
| 9290 | ;; |
| 9291 | |
| 9292 | sysv4*MP*) |
| 9293 | if test -d /usr/nec ;then |
| 9294 | version_type=linux |
| 9295 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9296 | soname_spec='$libname${shared_ext}.$major' |
| 9297 | shlibpath_var=LD_LIBRARY_PATH |
| 9298 | fi |
| 9299 | ;; |
| 9300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9301 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9302 | version_type=freebsd-elf |
| 9303 | need_lib_prefix=no |
| 9304 | need_version=no |
| 9305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9306 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9307 | shlibpath_var=LD_LIBRARY_PATH |
| 9308 | hardcode_into_libs=yes |
| 9309 | if test "$with_gnu_ld" = yes; then |
| 9310 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9311 | shlibpath_overrides_runpath=no |
| 9312 | else |
| 9313 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9314 | shlibpath_overrides_runpath=yes |
| 9315 | case $host_os in |
| 9316 | sco3.2v5*) |
| 9317 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9318 | ;; |
| 9319 | esac |
| 9320 | fi |
| 9321 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9322 | ;; |
| 9323 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9324 | uts4*) |
| 9325 | version_type=linux |
| 9326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9327 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9328 | shlibpath_var=LD_LIBRARY_PATH |
| 9329 | ;; |
| 9330 | |
| 9331 | *) |
| 9332 | dynamic_linker=no |
| 9333 | ;; |
| 9334 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9335 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9336 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9337 | test "$dynamic_linker" = no && can_build_shared=no |
| 9338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9339 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9340 | if test "$GCC" = yes; then |
| 9341 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9342 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9345 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9346 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9347 | if test "${libltdl_cv_shlibext+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 | |
| 9351 | module=yes |
| 9352 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9353 | |
| 9354 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9355 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9356 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9357 | if test -n "$libltdl_cv_shlibext"; then |
| 9358 | |
| 9359 | cat >>confdefs.h <<_ACEOF |
| 9360 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9361 | _ACEOF |
| 9362 | |
| 9363 | fi |
| 9364 | |
| 9365 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9366 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9367 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9368 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9370 | else |
| 9371 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9372 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9373 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9374 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9375 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9376 | |
| 9377 | cat >>confdefs.h <<_ACEOF |
| 9378 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9379 | _ACEOF |
| 9380 | |
| 9381 | fi |
| 9382 | |
| 9383 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9384 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9385 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9386 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9388 | else |
| 9389 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9390 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9391 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9392 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9393 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9394 | sys_search_path= |
| 9395 | for dir in $libltdl_cv_sys_search_path; do |
| 9396 | if test -z "$sys_search_path"; then |
| 9397 | sys_search_path="$dir" |
| 9398 | else |
| 9399 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9400 | fi |
| 9401 | done |
| 9402 | |
| 9403 | cat >>confdefs.h <<_ACEOF |
| 9404 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9405 | _ACEOF |
| 9406 | |
| 9407 | fi |
| 9408 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9409 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9410 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9411 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9413 | else |
| 9414 | libltdl_cv_objdir="$objdir" |
| 9415 | if test -n "$objdir"; then |
| 9416 | : |
| 9417 | else |
| 9418 | rm -f .libs 2>/dev/null |
| 9419 | mkdir .libs 2>/dev/null |
| 9420 | if test -d .libs; then |
| 9421 | libltdl_cv_objdir=.libs |
| 9422 | else |
| 9423 | # MS-DOS does not allow filenames that begin with a dot. |
| 9424 | libltdl_cv_objdir=_libs |
| 9425 | fi |
| 9426 | rmdir .libs 2>/dev/null |
| 9427 | fi |
| 9428 | |
| 9429 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9430 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9431 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9432 | |
| 9433 | cat >>confdefs.h <<_ACEOF |
| 9434 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9435 | _ACEOF |
| 9436 | |
| 9437 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9438 | |
| 9439 | |
| 9440 | |
| 9441 | |
| 9442 | # 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] | 9443 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9444 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9445 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9447 | else |
| 9448 | |
| 9449 | # These are sane defaults that work on at least a few old systems. |
| 9450 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9451 | |
| 9452 | # Character class describing NM global symbol codes. |
| 9453 | symcode='[BCDEGRST]' |
| 9454 | |
| 9455 | # Regexp to match symbols that can be accessed directly from C. |
| 9456 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9457 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9458 | # Transform an extracted symbol line into a proper C declaration |
| 9459 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9460 | |
| 9461 | # Transform an extracted symbol line into symbol name and symbol address |
| 9462 | 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'" |
| 9463 | |
| 9464 | # Define system-specific variables. |
| 9465 | case $host_os in |
| 9466 | aix*) |
| 9467 | symcode='[BCDT]' |
| 9468 | ;; |
| 9469 | cygwin* | mingw* | pw32*) |
| 9470 | symcode='[ABCDGISTW]' |
| 9471 | ;; |
| 9472 | hpux*) # Its linker distinguishes data from code symbols |
| 9473 | if test "$host_cpu" = ia64; then |
| 9474 | symcode='[ABCDEGRST]' |
| 9475 | fi |
| 9476 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9477 | 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'" |
| 9478 | ;; |
| 9479 | linux*) |
| 9480 | if test "$host_cpu" = ia64; then |
| 9481 | symcode='[ABCDGIRSTW]' |
| 9482 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9483 | 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'" |
| 9484 | fi |
| 9485 | ;; |
| 9486 | irix* | nonstopux*) |
| 9487 | symcode='[BCDEGRST]' |
| 9488 | ;; |
| 9489 | osf*) |
| 9490 | symcode='[BCDEGQRST]' |
| 9491 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9492 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9493 | symcode='[BDRT]' |
| 9494 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9495 | sco3.2v5*) |
| 9496 | symcode='[DT]' |
| 9497 | ;; |
| 9498 | sysv4.2uw2*) |
| 9499 | symcode='[DT]' |
| 9500 | ;; |
| 9501 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9502 | symcode='[ABDT]' |
| 9503 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9504 | sysv4) |
| 9505 | symcode='[DFNSTU]' |
| 9506 | ;; |
| 9507 | esac |
| 9508 | |
| 9509 | # Handle CRLF in mingw tool chain |
| 9510 | opt_cr= |
| 9511 | case $build_os in |
| 9512 | mingw*) |
| 9513 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9514 | ;; |
| 9515 | esac |
| 9516 | |
| 9517 | # If we're using GNU nm, then use its standard symbol codes. |
| 9518 | case `$NM -V 2>&1` in |
| 9519 | *GNU* | *'with BFD'*) |
| 9520 | symcode='[ABCDGIRSTW]' ;; |
| 9521 | esac |
| 9522 | |
| 9523 | # Try without a prefix undercore, then with it. |
| 9524 | for ac_symprfx in "" "_"; do |
| 9525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9526 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9527 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9528 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9529 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9530 | 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] | 9531 | |
| 9532 | # Check to see that the pipe works correctly. |
| 9533 | pipe_works=no |
| 9534 | |
| 9535 | rm -f conftest* |
| 9536 | cat > conftest.$ac_ext <<EOF |
| 9537 | #ifdef __cplusplus |
| 9538 | extern "C" { |
| 9539 | #endif |
| 9540 | char nm_test_var; |
| 9541 | void nm_test_func(){} |
| 9542 | #ifdef __cplusplus |
| 9543 | } |
| 9544 | #endif |
| 9545 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9546 | EOF |
| 9547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9549 | (eval $ac_compile) 2>&5 |
| 9550 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9552 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9553 | # Now try to grab the symbols. |
| 9554 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9555 | 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] | 9556 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9557 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9559 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9560 | # Try sorting and uniquifying the output. |
| 9561 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9562 | mv -f "$nlist"T "$nlist" |
| 9563 | else |
| 9564 | rm -f "$nlist"T |
| 9565 | fi |
| 9566 | |
| 9567 | # Make sure that we snagged all the symbols we need. |
| 9568 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9569 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9570 | cat <<EOF > conftest.$ac_ext |
| 9571 | #ifdef __cplusplus |
| 9572 | extern "C" { |
| 9573 | #endif |
| 9574 | |
| 9575 | EOF |
| 9576 | # Now generate the symbol file. |
| 9577 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9578 | |
| 9579 | cat <<EOF >> conftest.$ac_ext |
| 9580 | #if defined (__STDC__) && __STDC__ |
| 9581 | # define lt_ptr_t void * |
| 9582 | #else |
| 9583 | # define lt_ptr_t char * |
| 9584 | # define const |
| 9585 | #endif |
| 9586 | |
| 9587 | /* The mapping between symbol names and symbols. */ |
| 9588 | const struct { |
| 9589 | const char *name; |
| 9590 | lt_ptr_t address; |
| 9591 | } |
| 9592 | lt_preloaded_symbols[] = |
| 9593 | { |
| 9594 | EOF |
| 9595 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9596 | cat <<\EOF >> conftest.$ac_ext |
| 9597 | {0, (lt_ptr_t) 0} |
| 9598 | }; |
| 9599 | |
| 9600 | #ifdef __cplusplus |
| 9601 | } |
| 9602 | #endif |
| 9603 | EOF |
| 9604 | # Now try linking the two files. |
| 9605 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9606 | lt_save_LIBS="$LIBS" |
| 9607 | lt_save_CFLAGS="$CFLAGS" |
| 9608 | LIBS="conftstm.$ac_objext" |
| 9609 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | (eval $ac_link) 2>&5 |
| 9612 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9614 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9615 | pipe_works=yes |
| 9616 | fi |
| 9617 | LIBS="$lt_save_LIBS" |
| 9618 | CFLAGS="$lt_save_CFLAGS" |
| 9619 | else |
| 9620 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9621 | fi |
| 9622 | else |
| 9623 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9624 | fi |
| 9625 | else |
| 9626 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9627 | fi |
| 9628 | else |
| 9629 | echo "$progname: failed program was:" >&5 |
| 9630 | cat conftest.$ac_ext >&5 |
| 9631 | fi |
| 9632 | rm -f conftest* conftst* |
| 9633 | |
| 9634 | # Do not use the global_symbol_pipe unless it works. |
| 9635 | if test "$pipe_works" = yes; then |
| 9636 | break |
| 9637 | else |
| 9638 | lt_cv_sys_global_symbol_pipe= |
| 9639 | fi |
| 9640 | done |
| 9641 | |
| 9642 | fi |
| 9643 | |
| 9644 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9645 | lt_cv_sys_global_symbol_to_cdecl= |
| 9646 | fi |
| 9647 | 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] | 9648 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9649 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9650 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9651 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9652 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9653 | fi |
| 9654 | |
| 9655 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9656 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9657 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9658 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9660 | else |
| 9661 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9662 | libltdl_cv_preloaded_symbols=yes |
| 9663 | else |
| 9664 | libltdl_cv_preloaded_symbols=no |
| 9665 | fi |
| 9666 | |
| 9667 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9668 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9669 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9670 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9671 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9672 | cat >>confdefs.h <<\_ACEOF |
| 9673 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9674 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9675 | |
| 9676 | fi |
| 9677 | |
| 9678 | LIBADD_DL= |
| 9679 | |
| 9680 | ac_ext=c |
| 9681 | ac_cpp='$CPP $CPPFLAGS' |
| 9682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9685 | |
| 9686 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9687 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9688 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9689 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9691 | else |
| 9692 | cat >conftest.$ac_ext <<_ACEOF |
| 9693 | /* confdefs.h. */ |
| 9694 | _ACEOF |
| 9695 | cat confdefs.h >>conftest.$ac_ext |
| 9696 | cat >>conftest.$ac_ext <<_ACEOF |
| 9697 | /* end confdefs.h. */ |
| 9698 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9699 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9700 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9702 | /* System header to define __stub macros and hopefully few prototypes, |
| 9703 | which can conflict with char shl_load (); below. |
| 9704 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9705 | <limits.h> exists even on freestanding compilers. */ |
| 9706 | |
| 9707 | #ifdef __STDC__ |
| 9708 | # include <limits.h> |
| 9709 | #else |
| 9710 | # include <assert.h> |
| 9711 | #endif |
| 9712 | |
| 9713 | #undef shl_load |
| 9714 | |
| 9715 | /* Override any GCC internal prototype to avoid an error. |
| 9716 | Use char because int might match the return type of a GCC |
| 9717 | builtin and then its argument prototype would still apply. */ |
| 9718 | #ifdef __cplusplus |
| 9719 | extern "C" |
| 9720 | #endif |
| 9721 | char shl_load (); |
| 9722 | /* The GNU C library defines this for functions which it implements |
| 9723 | to always fail with ENOSYS. Some functions are actually named |
| 9724 | something starting with __ and the normal name is an alias. */ |
| 9725 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9726 | choke me |
| 9727 | #endif |
| 9728 | |
| 9729 | int |
| 9730 | main () |
| 9731 | { |
| 9732 | return shl_load (); |
| 9733 | ; |
| 9734 | return 0; |
| 9735 | } |
| 9736 | _ACEOF |
| 9737 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9738 | if { (ac_try="$ac_link" |
| 9739 | case "(($ac_try" in |
| 9740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9741 | *) ac_try_echo=$ac_try;; |
| 9742 | esac |
| 9743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9744 | (eval "$ac_link") 2>conftest.er1 |
| 9745 | ac_status=$? |
| 9746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9747 | rm -f conftest.er1 |
| 9748 | cat conftest.err >&5 |
| 9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9750 | (exit $ac_status); } && |
| 9751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9752 | { (case "(($ac_try" in |
| 9753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9754 | *) ac_try_echo=$ac_try;; |
| 9755 | esac |
| 9756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9757 | (eval "$ac_try") 2>&5 |
| 9758 | ac_status=$? |
| 9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9760 | (exit $ac_status); }; } && |
| 9761 | { ac_try='test -s conftest$ac_exeext' |
| 9762 | { (case "(($ac_try" in |
| 9763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9764 | *) ac_try_echo=$ac_try;; |
| 9765 | esac |
| 9766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9767 | (eval "$ac_try") 2>&5 |
| 9768 | ac_status=$? |
| 9769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9770 | (exit $ac_status); }; }; then |
| 9771 | ac_cv_func_shl_load=yes |
| 9772 | else |
| 9773 | echo "$as_me: failed program was:" >&5 |
| 9774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9775 | |
| 9776 | ac_cv_func_shl_load=no |
| 9777 | fi |
| 9778 | |
| 9779 | rm -f core conftest.err conftest.$ac_objext \ |
| 9780 | conftest$ac_exeext conftest.$ac_ext |
| 9781 | fi |
| 9782 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9783 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9784 | if test $ac_cv_func_shl_load = yes; then |
| 9785 | |
| 9786 | cat >>confdefs.h <<\_ACEOF |
| 9787 | #define HAVE_SHL_LOAD 1 |
| 9788 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9789 | |
| 9790 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9791 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9792 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9793 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9795 | else |
| 9796 | ac_check_lib_save_LIBS=$LIBS |
| 9797 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9798 | cat >conftest.$ac_ext <<_ACEOF |
| 9799 | /* confdefs.h. */ |
| 9800 | _ACEOF |
| 9801 | cat confdefs.h >>conftest.$ac_ext |
| 9802 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9803 | /* end confdefs.h. */ |
| 9804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9805 | /* Override any GCC internal prototype to avoid an error. |
| 9806 | Use char because int might match the return type of a GCC |
| 9807 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9808 | #ifdef __cplusplus |
| 9809 | extern "C" |
| 9810 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9811 | char shl_load (); |
| 9812 | int |
| 9813 | main () |
| 9814 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9815 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9816 | ; |
| 9817 | return 0; |
| 9818 | } |
| 9819 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9820 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9821 | if { (ac_try="$ac_link" |
| 9822 | case "(($ac_try" in |
| 9823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9824 | *) ac_try_echo=$ac_try;; |
| 9825 | esac |
| 9826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9827 | (eval "$ac_link") 2>conftest.er1 |
| 9828 | ac_status=$? |
| 9829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9830 | rm -f conftest.er1 |
| 9831 | cat conftest.err >&5 |
| 9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9833 | (exit $ac_status); } && |
| 9834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9835 | { (case "(($ac_try" in |
| 9836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9837 | *) ac_try_echo=$ac_try;; |
| 9838 | esac |
| 9839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9840 | (eval "$ac_try") 2>&5 |
| 9841 | ac_status=$? |
| 9842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9843 | (exit $ac_status); }; } && |
| 9844 | { ac_try='test -s conftest$ac_exeext' |
| 9845 | { (case "(($ac_try" in |
| 9846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9847 | *) ac_try_echo=$ac_try;; |
| 9848 | esac |
| 9849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9850 | (eval "$ac_try") 2>&5 |
| 9851 | ac_status=$? |
| 9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9853 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9854 | ac_cv_lib_dld_shl_load=yes |
| 9855 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9856 | echo "$as_me: failed program was:" >&5 |
| 9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9858 | |
| 9859 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9860 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9861 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9862 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9863 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9864 | LIBS=$ac_check_lib_save_LIBS |
| 9865 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9866 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9867 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9868 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9869 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9870 | cat >>confdefs.h <<\_ACEOF |
| 9871 | #define HAVE_SHL_LOAD 1 |
| 9872 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9873 | |
| 9874 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9875 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9876 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9877 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9878 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9880 | else |
| 9881 | ac_check_lib_save_LIBS=$LIBS |
| 9882 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9883 | cat >conftest.$ac_ext <<_ACEOF |
| 9884 | /* confdefs.h. */ |
| 9885 | _ACEOF |
| 9886 | cat confdefs.h >>conftest.$ac_ext |
| 9887 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9888 | /* end confdefs.h. */ |
| 9889 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9890 | /* Override any GCC internal prototype to avoid an error. |
| 9891 | Use char because int might match the return type of a GCC |
| 9892 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9893 | #ifdef __cplusplus |
| 9894 | extern "C" |
| 9895 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9896 | char dlopen (); |
| 9897 | int |
| 9898 | main () |
| 9899 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9900 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9901 | ; |
| 9902 | return 0; |
| 9903 | } |
| 9904 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9905 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9906 | if { (ac_try="$ac_link" |
| 9907 | case "(($ac_try" in |
| 9908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9909 | *) ac_try_echo=$ac_try;; |
| 9910 | esac |
| 9911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9912 | (eval "$ac_link") 2>conftest.er1 |
| 9913 | ac_status=$? |
| 9914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9915 | rm -f conftest.er1 |
| 9916 | cat conftest.err >&5 |
| 9917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9918 | (exit $ac_status); } && |
| 9919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9920 | { (case "(($ac_try" in |
| 9921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9922 | *) ac_try_echo=$ac_try;; |
| 9923 | esac |
| 9924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9925 | (eval "$ac_try") 2>&5 |
| 9926 | ac_status=$? |
| 9927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9928 | (exit $ac_status); }; } && |
| 9929 | { ac_try='test -s conftest$ac_exeext' |
| 9930 | { (case "(($ac_try" in |
| 9931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9932 | *) ac_try_echo=$ac_try;; |
| 9933 | esac |
| 9934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9935 | (eval "$ac_try") 2>&5 |
| 9936 | ac_status=$? |
| 9937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9938 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9939 | ac_cv_lib_dl_dlopen=yes |
| 9940 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9941 | echo "$as_me: failed program was:" >&5 |
| 9942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9943 | |
| 9944 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9945 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9946 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9947 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9948 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9949 | LIBS=$ac_check_lib_save_LIBS |
| 9950 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9951 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9952 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9953 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9954 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9955 | cat >>confdefs.h <<\_ACEOF |
| 9956 | #define HAVE_LIBDL 1 |
| 9957 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9958 | |
| 9959 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9960 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9961 | cat >conftest.$ac_ext <<_ACEOF |
| 9962 | /* confdefs.h. */ |
| 9963 | _ACEOF |
| 9964 | cat confdefs.h >>conftest.$ac_ext |
| 9965 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9966 | /* end confdefs.h. */ |
| 9967 | #if HAVE_DLFCN_H |
| 9968 | # include <dlfcn.h> |
| 9969 | #endif |
| 9970 | |
| 9971 | int |
| 9972 | main () |
| 9973 | { |
| 9974 | dlopen(0, 0); |
| 9975 | ; |
| 9976 | return 0; |
| 9977 | } |
| 9978 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9980 | if { (ac_try="$ac_link" |
| 9981 | case "(($ac_try" in |
| 9982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9983 | *) ac_try_echo=$ac_try;; |
| 9984 | esac |
| 9985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9986 | (eval "$ac_link") 2>conftest.er1 |
| 9987 | ac_status=$? |
| 9988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9989 | rm -f conftest.er1 |
| 9990 | cat conftest.err >&5 |
| 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9992 | (exit $ac_status); } && |
| 9993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9994 | { (case "(($ac_try" in |
| 9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9996 | *) ac_try_echo=$ac_try;; |
| 9997 | esac |
| 9998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9999 | (eval "$ac_try") 2>&5 |
| 10000 | ac_status=$? |
| 10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10002 | (exit $ac_status); }; } && |
| 10003 | { ac_try='test -s conftest$ac_exeext' |
| 10004 | { (case "(($ac_try" in |
| 10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10006 | *) ac_try_echo=$ac_try;; |
| 10007 | esac |
| 10008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10009 | (eval "$ac_try") 2>&5 |
| 10010 | ac_status=$? |
| 10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10012 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10013 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10014 | cat >>confdefs.h <<\_ACEOF |
| 10015 | #define HAVE_LIBDL 1 |
| 10016 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10017 | libltdl_cv_func_dlopen="yes" |
| 10018 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10019 | echo "$as_me: failed program was:" >&5 |
| 10020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10021 | |
| 10022 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10023 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10024 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10026 | else |
| 10027 | ac_check_lib_save_LIBS=$LIBS |
| 10028 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10029 | cat >conftest.$ac_ext <<_ACEOF |
| 10030 | /* confdefs.h. */ |
| 10031 | _ACEOF |
| 10032 | cat confdefs.h >>conftest.$ac_ext |
| 10033 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10034 | /* end confdefs.h. */ |
| 10035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10036 | /* Override any GCC internal prototype to avoid an error. |
| 10037 | Use char because int might match the return type of a GCC |
| 10038 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10039 | #ifdef __cplusplus |
| 10040 | extern "C" |
| 10041 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10042 | char dlopen (); |
| 10043 | int |
| 10044 | main () |
| 10045 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10046 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10047 | ; |
| 10048 | return 0; |
| 10049 | } |
| 10050 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10052 | if { (ac_try="$ac_link" |
| 10053 | case "(($ac_try" in |
| 10054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10055 | *) ac_try_echo=$ac_try;; |
| 10056 | esac |
| 10057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10058 | (eval "$ac_link") 2>conftest.er1 |
| 10059 | ac_status=$? |
| 10060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10061 | rm -f conftest.er1 |
| 10062 | cat conftest.err >&5 |
| 10063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10064 | (exit $ac_status); } && |
| 10065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10066 | { (case "(($ac_try" in |
| 10067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10068 | *) ac_try_echo=$ac_try;; |
| 10069 | esac |
| 10070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10071 | (eval "$ac_try") 2>&5 |
| 10072 | ac_status=$? |
| 10073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10074 | (exit $ac_status); }; } && |
| 10075 | { ac_try='test -s conftest$ac_exeext' |
| 10076 | { (case "(($ac_try" in |
| 10077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10078 | *) ac_try_echo=$ac_try;; |
| 10079 | esac |
| 10080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10081 | (eval "$ac_try") 2>&5 |
| 10082 | ac_status=$? |
| 10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10084 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10085 | ac_cv_lib_svld_dlopen=yes |
| 10086 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10087 | echo "$as_me: failed program was:" >&5 |
| 10088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10089 | |
| 10090 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10091 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10092 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10093 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10094 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10095 | LIBS=$ac_check_lib_save_LIBS |
| 10096 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10097 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10098 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10099 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10100 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10101 | cat >>confdefs.h <<\_ACEOF |
| 10102 | #define HAVE_LIBDL 1 |
| 10103 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10104 | |
| 10105 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10106 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10107 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10108 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10109 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10111 | else |
| 10112 | ac_check_lib_save_LIBS=$LIBS |
| 10113 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10114 | cat >conftest.$ac_ext <<_ACEOF |
| 10115 | /* confdefs.h. */ |
| 10116 | _ACEOF |
| 10117 | cat confdefs.h >>conftest.$ac_ext |
| 10118 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10119 | /* end confdefs.h. */ |
| 10120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10121 | /* Override any GCC internal prototype to avoid an error. |
| 10122 | Use char because int might match the return type of a GCC |
| 10123 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10124 | #ifdef __cplusplus |
| 10125 | extern "C" |
| 10126 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10127 | char dld_link (); |
| 10128 | int |
| 10129 | main () |
| 10130 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10131 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | ; |
| 10133 | return 0; |
| 10134 | } |
| 10135 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10137 | if { (ac_try="$ac_link" |
| 10138 | case "(($ac_try" in |
| 10139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10140 | *) ac_try_echo=$ac_try;; |
| 10141 | esac |
| 10142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10143 | (eval "$ac_link") 2>conftest.er1 |
| 10144 | ac_status=$? |
| 10145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10146 | rm -f conftest.er1 |
| 10147 | cat conftest.err >&5 |
| 10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10149 | (exit $ac_status); } && |
| 10150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10151 | { (case "(($ac_try" in |
| 10152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10153 | *) ac_try_echo=$ac_try;; |
| 10154 | esac |
| 10155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10156 | (eval "$ac_try") 2>&5 |
| 10157 | ac_status=$? |
| 10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10159 | (exit $ac_status); }; } && |
| 10160 | { ac_try='test -s conftest$ac_exeext' |
| 10161 | { (case "(($ac_try" in |
| 10162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10163 | *) ac_try_echo=$ac_try;; |
| 10164 | esac |
| 10165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10166 | (eval "$ac_try") 2>&5 |
| 10167 | ac_status=$? |
| 10168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10169 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10170 | ac_cv_lib_dld_dld_link=yes |
| 10171 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10172 | echo "$as_me: failed program was:" >&5 |
| 10173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10174 | |
| 10175 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10176 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10177 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10178 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10179 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10180 | LIBS=$ac_check_lib_save_LIBS |
| 10181 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10182 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10183 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10184 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10185 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10186 | cat >>confdefs.h <<\_ACEOF |
| 10187 | #define HAVE_DLD 1 |
| 10188 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10189 | |
| 10190 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10191 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10192 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10193 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10194 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10196 | else |
| 10197 | cat >conftest.$ac_ext <<_ACEOF |
| 10198 | /* confdefs.h. */ |
| 10199 | _ACEOF |
| 10200 | cat confdefs.h >>conftest.$ac_ext |
| 10201 | cat >>conftest.$ac_ext <<_ACEOF |
| 10202 | /* end confdefs.h. */ |
| 10203 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10204 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10205 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10206 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10207 | /* System header to define __stub macros and hopefully few prototypes, |
| 10208 | which can conflict with char _dyld_func_lookup (); below. |
| 10209 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10210 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10212 | #ifdef __STDC__ |
| 10213 | # include <limits.h> |
| 10214 | #else |
| 10215 | # include <assert.h> |
| 10216 | #endif |
| 10217 | |
| 10218 | #undef _dyld_func_lookup |
| 10219 | |
| 10220 | /* Override any GCC internal prototype to avoid an error. |
| 10221 | Use char because int might match the return type of a GCC |
| 10222 | builtin and then its argument prototype would still apply. */ |
| 10223 | #ifdef __cplusplus |
| 10224 | extern "C" |
| 10225 | #endif |
| 10226 | char _dyld_func_lookup (); |
| 10227 | /* The GNU C library defines this for functions which it implements |
| 10228 | to always fail with ENOSYS. Some functions are actually named |
| 10229 | something starting with __ and the normal name is an alias. */ |
| 10230 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10231 | choke me |
| 10232 | #endif |
| 10233 | |
| 10234 | int |
| 10235 | main () |
| 10236 | { |
| 10237 | return _dyld_func_lookup (); |
| 10238 | ; |
| 10239 | return 0; |
| 10240 | } |
| 10241 | _ACEOF |
| 10242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10243 | if { (ac_try="$ac_link" |
| 10244 | case "(($ac_try" in |
| 10245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10246 | *) ac_try_echo=$ac_try;; |
| 10247 | esac |
| 10248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10249 | (eval "$ac_link") 2>conftest.er1 |
| 10250 | ac_status=$? |
| 10251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10252 | rm -f conftest.er1 |
| 10253 | cat conftest.err >&5 |
| 10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10255 | (exit $ac_status); } && |
| 10256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10257 | { (case "(($ac_try" in |
| 10258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10259 | *) ac_try_echo=$ac_try;; |
| 10260 | esac |
| 10261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10262 | (eval "$ac_try") 2>&5 |
| 10263 | ac_status=$? |
| 10264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10265 | (exit $ac_status); }; } && |
| 10266 | { ac_try='test -s conftest$ac_exeext' |
| 10267 | { (case "(($ac_try" in |
| 10268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10269 | *) ac_try_echo=$ac_try;; |
| 10270 | esac |
| 10271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10272 | (eval "$ac_try") 2>&5 |
| 10273 | ac_status=$? |
| 10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10275 | (exit $ac_status); }; }; then |
| 10276 | ac_cv_func__dyld_func_lookup=yes |
| 10277 | else |
| 10278 | echo "$as_me: failed program was:" >&5 |
| 10279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10280 | |
| 10281 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10283 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10284 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10285 | conftest$ac_exeext conftest.$ac_ext |
| 10286 | fi |
| 10287 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10288 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10289 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10290 | |
| 10291 | cat >>confdefs.h <<\_ACEOF |
| 10292 | #define HAVE_DYLD 1 |
| 10293 | _ACEOF |
| 10294 | |
| 10295 | fi |
| 10296 | |
| 10297 | |
| 10298 | fi |
| 10299 | |
| 10300 | |
| 10301 | fi |
| 10302 | |
| 10303 | |
| 10304 | fi |
| 10305 | |
| 10306 | rm -f core conftest.err conftest.$ac_objext \ |
| 10307 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10308 | |
| 10309 | fi |
| 10310 | |
| 10311 | |
| 10312 | fi |
| 10313 | |
| 10314 | |
| 10315 | fi |
| 10316 | |
| 10317 | |
| 10318 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10319 | then |
| 10320 | lt_save_LIBS="$LIBS" |
| 10321 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10322 | |
| 10323 | for ac_func in dlerror |
| 10324 | do |
| 10325 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10326 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10327 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10328 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10330 | else |
| 10331 | cat >conftest.$ac_ext <<_ACEOF |
| 10332 | /* confdefs.h. */ |
| 10333 | _ACEOF |
| 10334 | cat confdefs.h >>conftest.$ac_ext |
| 10335 | cat >>conftest.$ac_ext <<_ACEOF |
| 10336 | /* end confdefs.h. */ |
| 10337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10339 | #define $ac_func innocuous_$ac_func |
| 10340 | |
| 10341 | /* System header to define __stub macros and hopefully few prototypes, |
| 10342 | which can conflict with char $ac_func (); below. |
| 10343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10344 | <limits.h> exists even on freestanding compilers. */ |
| 10345 | |
| 10346 | #ifdef __STDC__ |
| 10347 | # include <limits.h> |
| 10348 | #else |
| 10349 | # include <assert.h> |
| 10350 | #endif |
| 10351 | |
| 10352 | #undef $ac_func |
| 10353 | |
| 10354 | /* Override any GCC internal prototype to avoid an error. |
| 10355 | Use char because int might match the return type of a GCC |
| 10356 | builtin and then its argument prototype would still apply. */ |
| 10357 | #ifdef __cplusplus |
| 10358 | extern "C" |
| 10359 | #endif |
| 10360 | char $ac_func (); |
| 10361 | /* The GNU C library defines this for functions which it implements |
| 10362 | to always fail with ENOSYS. Some functions are actually named |
| 10363 | something starting with __ and the normal name is an alias. */ |
| 10364 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10365 | choke me |
| 10366 | #endif |
| 10367 | |
| 10368 | int |
| 10369 | main () |
| 10370 | { |
| 10371 | return $ac_func (); |
| 10372 | ; |
| 10373 | return 0; |
| 10374 | } |
| 10375 | _ACEOF |
| 10376 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10377 | if { (ac_try="$ac_link" |
| 10378 | case "(($ac_try" in |
| 10379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10380 | *) ac_try_echo=$ac_try;; |
| 10381 | esac |
| 10382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10383 | (eval "$ac_link") 2>conftest.er1 |
| 10384 | ac_status=$? |
| 10385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10386 | rm -f conftest.er1 |
| 10387 | cat conftest.err >&5 |
| 10388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10389 | (exit $ac_status); } && |
| 10390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10391 | { (case "(($ac_try" in |
| 10392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10393 | *) ac_try_echo=$ac_try;; |
| 10394 | esac |
| 10395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10396 | (eval "$ac_try") 2>&5 |
| 10397 | ac_status=$? |
| 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10399 | (exit $ac_status); }; } && |
| 10400 | { ac_try='test -s conftest$ac_exeext' |
| 10401 | { (case "(($ac_try" in |
| 10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10403 | *) ac_try_echo=$ac_try;; |
| 10404 | esac |
| 10405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10406 | (eval "$ac_try") 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); }; }; then |
| 10410 | eval "$as_ac_var=yes" |
| 10411 | else |
| 10412 | echo "$as_me: failed program was:" >&5 |
| 10413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10414 | |
| 10415 | eval "$as_ac_var=no" |
| 10416 | fi |
| 10417 | |
| 10418 | rm -f core conftest.err conftest.$ac_objext \ |
| 10419 | conftest$ac_exeext conftest.$ac_ext |
| 10420 | fi |
| 10421 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10423 | echo "${ECHO_T}$ac_res" >&6; } |
| 10424 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10425 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10427 | _ACEOF |
| 10428 | |
| 10429 | fi |
| 10430 | done |
| 10431 | |
| 10432 | LIBS="$lt_save_LIBS" |
| 10433 | fi |
| 10434 | ac_ext=c |
| 10435 | ac_cpp='$CPP $CPPFLAGS' |
| 10436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10439 | |
| 10440 | |
| 10441 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10442 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10443 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10444 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10446 | else |
| 10447 | ac_cv_sys_symbol_underscore=no |
| 10448 | cat > conftest.$ac_ext <<EOF |
| 10449 | void nm_test_func(){} |
| 10450 | int main(){nm_test_func;return 0;} |
| 10451 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10453 | (eval $ac_compile) 2>&5 |
| 10454 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10456 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | # Now try to grab the symbols. |
| 10458 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10459 | 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] | 10460 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10461 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10463 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10464 | # See whether the symbols have a leading underscore. |
| 10465 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10466 | ac_cv_sys_symbol_underscore=yes |
| 10467 | else |
| 10468 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10469 | : |
| 10470 | else |
| 10471 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10472 | fi |
| 10473 | fi |
| 10474 | else |
| 10475 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10476 | fi |
| 10477 | else |
| 10478 | echo "configure: failed program was:" >&5 |
| 10479 | cat conftest.c >&5 |
| 10480 | fi |
| 10481 | rm -rf conftest* |
| 10482 | |
| 10483 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10484 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10485 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10486 | |
| 10487 | |
| 10488 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10489 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10490 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10491 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10492 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10493 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10495 | else |
| 10496 | libltdl_cv_need_uscore=unknown |
| 10497 | save_LIBS="$LIBS" |
| 10498 | LIBS="$LIBS $LIBADD_DL" |
| 10499 | if test "$cross_compiling" = yes; then : |
| 10500 | libltdl_cv_need_uscore=cross |
| 10501 | else |
| 10502 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10503 | lt_status=$lt_dlunknown |
| 10504 | cat > conftest.$ac_ext <<EOF |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 10505 | #line 10505 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10506 | #include "confdefs.h" |
| 10507 | |
| 10508 | #if HAVE_DLFCN_H |
| 10509 | #include <dlfcn.h> |
| 10510 | #endif |
| 10511 | |
| 10512 | #include <stdio.h> |
| 10513 | |
| 10514 | #ifdef RTLD_GLOBAL |
| 10515 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10516 | #else |
| 10517 | # ifdef DL_GLOBAL |
| 10518 | # define LT_DLGLOBAL DL_GLOBAL |
| 10519 | # else |
| 10520 | # define LT_DLGLOBAL 0 |
| 10521 | # endif |
| 10522 | #endif |
| 10523 | |
| 10524 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10525 | find out it does not work in some platform. */ |
| 10526 | #ifndef LT_DLLAZY_OR_NOW |
| 10527 | # ifdef RTLD_LAZY |
| 10528 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10529 | # else |
| 10530 | # ifdef DL_LAZY |
| 10531 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10532 | # else |
| 10533 | # ifdef RTLD_NOW |
| 10534 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10535 | # else |
| 10536 | # ifdef DL_NOW |
| 10537 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10538 | # else |
| 10539 | # define LT_DLLAZY_OR_NOW 0 |
| 10540 | # endif |
| 10541 | # endif |
| 10542 | # endif |
| 10543 | # endif |
| 10544 | #endif |
| 10545 | |
| 10546 | #ifdef __cplusplus |
| 10547 | extern "C" void exit (int); |
| 10548 | #endif |
| 10549 | |
| 10550 | void fnord() { int i=42;} |
| 10551 | int main () |
| 10552 | { |
| 10553 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10554 | int status = $lt_dlunknown; |
| 10555 | |
| 10556 | if (self) |
| 10557 | { |
| 10558 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10559 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10560 | /* dlclose (self); */ |
| 10561 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10562 | else |
| 10563 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10564 | |
| 10565 | exit (status); |
| 10566 | } |
| 10567 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | (eval $ac_link) 2>&5 |
| 10570 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10572 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10573 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10574 | lt_status=$? |
| 10575 | case x$lt_status in |
| 10576 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10577 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10578 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | esac |
| 10580 | else : |
| 10581 | # compilation failed |
| 10582 | |
| 10583 | fi |
| 10584 | fi |
| 10585 | rm -fr conftest* |
| 10586 | |
| 10587 | LIBS="$save_LIBS" |
| 10588 | |
| 10589 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10590 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10591 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10592 | fi |
| 10593 | fi |
| 10594 | |
| 10595 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10596 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10597 | cat >>confdefs.h <<\_ACEOF |
| 10598 | #define NEED_USCORE 1 |
| 10599 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10600 | |
| 10601 | fi |
| 10602 | |
| 10603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10604 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10605 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10606 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10608 | else |
| 10609 | # PORTME does your system automatically load deplibs for dlopen? |
| 10610 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10611 | # For now, we just catch OSes we know something about -- in the |
| 10612 | # future, we'll try test this programmatically. |
| 10613 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10614 | case "$host_os" in |
| 10615 | aix3*|aix4.1.*|aix4.2.*) |
| 10616 | # Unknown whether this is true for these versions of AIX, but |
| 10617 | # we want this `case' here to explicitly catch those versions. |
| 10618 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10619 | ;; |
| 10620 | aix[45]*) |
| 10621 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10622 | ;; |
| 10623 | darwin*) |
| 10624 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10625 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10626 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10627 | ;; |
| 10628 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10629 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10630 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10631 | ;; |
| 10632 | hpux10*|hpux11*) |
| 10633 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10634 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10635 | interix*) |
| 10636 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10637 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10638 | irix[12345]*|irix6.[01]*) |
| 10639 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10640 | # know how it worked for any of those versions. |
| 10641 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10642 | ;; |
| 10643 | irix*) |
| 10644 | # The case above catches anything before 6.2, and it's known that |
| 10645 | # at 6.2 and later dlopen does load deplibs. |
| 10646 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10647 | ;; |
| 10648 | netbsd*) |
| 10649 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10650 | ;; |
| 10651 | openbsd*) |
| 10652 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10653 | ;; |
| 10654 | osf[1234]*) |
| 10655 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10656 | # 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] | 10657 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10658 | libltdl_cv_sys_dlopen_deplibs=no |
| 10659 | ;; |
| 10660 | osf5.0|osf5.0a|osf5.1) |
| 10661 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10662 | # it even uses RPATH in a shared library to search for shared objects |
| 10663 | # that the library depends on, but there's no easy way to know if that |
| 10664 | # patch is installed. Since this is the case, all we can really |
| 10665 | # say is unknown -- it depends on the patch being installed. If |
| 10666 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10667 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10668 | ;; |
| 10669 | osf*) |
| 10670 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10671 | # the comments above for what we know about them. |
| 10672 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10673 | # is used to find them so we can finally say `yes'. |
| 10674 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10675 | ;; |
| 10676 | solaris*) |
| 10677 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10678 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10679 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10680 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10681 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10682 | esac |
| 10683 | |
| 10684 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10685 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10686 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10687 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10689 | cat >>confdefs.h <<\_ACEOF |
| 10690 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10691 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10692 | |
| 10693 | fi |
| 10694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10695 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10696 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10697 | do |
| 10698 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10699 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10700 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10704 | fi |
| 10705 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10706 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10707 | echo "${ECHO_T}$ac_res" >&6; } |
| 10708 | else |
| 10709 | # Is the header compilable? |
| 10710 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10711 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10712 | cat >conftest.$ac_ext <<_ACEOF |
| 10713 | /* confdefs.h. */ |
| 10714 | _ACEOF |
| 10715 | cat confdefs.h >>conftest.$ac_ext |
| 10716 | cat >>conftest.$ac_ext <<_ACEOF |
| 10717 | /* end confdefs.h. */ |
| 10718 | $ac_includes_default |
| 10719 | #include <$ac_header> |
| 10720 | _ACEOF |
| 10721 | rm -f conftest.$ac_objext |
| 10722 | if { (ac_try="$ac_compile" |
| 10723 | case "(($ac_try" in |
| 10724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10725 | *) ac_try_echo=$ac_try;; |
| 10726 | esac |
| 10727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10728 | (eval "$ac_compile") 2>conftest.er1 |
| 10729 | ac_status=$? |
| 10730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10731 | rm -f conftest.er1 |
| 10732 | cat conftest.err >&5 |
| 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10734 | (exit $ac_status); } && |
| 10735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10736 | { (case "(($ac_try" in |
| 10737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10738 | *) ac_try_echo=$ac_try;; |
| 10739 | esac |
| 10740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10741 | (eval "$ac_try") 2>&5 |
| 10742 | ac_status=$? |
| 10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10744 | (exit $ac_status); }; } && |
| 10745 | { ac_try='test -s conftest.$ac_objext' |
| 10746 | { (case "(($ac_try" in |
| 10747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10748 | *) ac_try_echo=$ac_try;; |
| 10749 | esac |
| 10750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10751 | (eval "$ac_try") 2>&5 |
| 10752 | ac_status=$? |
| 10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10754 | (exit $ac_status); }; }; then |
| 10755 | ac_header_compiler=yes |
| 10756 | else |
| 10757 | echo "$as_me: failed program was:" >&5 |
| 10758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10759 | |
| 10760 | ac_header_compiler=no |
| 10761 | fi |
| 10762 | |
| 10763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10764 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10765 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10766 | |
| 10767 | # Is the header present? |
| 10768 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10769 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10770 | cat >conftest.$ac_ext <<_ACEOF |
| 10771 | /* confdefs.h. */ |
| 10772 | _ACEOF |
| 10773 | cat confdefs.h >>conftest.$ac_ext |
| 10774 | cat >>conftest.$ac_ext <<_ACEOF |
| 10775 | /* end confdefs.h. */ |
| 10776 | #include <$ac_header> |
| 10777 | _ACEOF |
| 10778 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10779 | case "(($ac_try" in |
| 10780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10781 | *) ac_try_echo=$ac_try;; |
| 10782 | esac |
| 10783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10784 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10785 | ac_status=$? |
| 10786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10787 | rm -f conftest.er1 |
| 10788 | cat conftest.err >&5 |
| 10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10790 | (exit $ac_status); } >/dev/null; then |
| 10791 | if test -s conftest.err; then |
| 10792 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10793 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10794 | else |
| 10795 | ac_cpp_err= |
| 10796 | fi |
| 10797 | else |
| 10798 | ac_cpp_err=yes |
| 10799 | fi |
| 10800 | if test -z "$ac_cpp_err"; then |
| 10801 | ac_header_preproc=yes |
| 10802 | else |
| 10803 | echo "$as_me: failed program was:" >&5 |
| 10804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10805 | |
| 10806 | ac_header_preproc=no |
| 10807 | fi |
| 10808 | |
| 10809 | rm -f conftest.err conftest.$ac_ext |
| 10810 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10811 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10812 | |
| 10813 | # So? What about this header? |
| 10814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10815 | yes:no: ) |
| 10816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10817 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10820 | ac_header_preproc=yes |
| 10821 | ;; |
| 10822 | no:yes:* ) |
| 10823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10830 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10832 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10834 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10835 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10836 | ## ------------------------------------ ## |
| 10837 | ## Report this to http://llvm.org/bugs/ ## |
| 10838 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10839 | _ASBOX |
| 10840 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10841 | ;; |
| 10842 | esac |
| 10843 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10844 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10845 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10847 | else |
| 10848 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10849 | fi |
| 10850 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10851 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10852 | echo "${ECHO_T}$ac_res" >&6; } |
| 10853 | |
| 10854 | fi |
| 10855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10856 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10858 | _ACEOF |
| 10859 | |
| 10860 | fi |
| 10861 | |
| 10862 | done |
| 10863 | |
| 10864 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10865 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10866 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10867 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10869 | else |
| 10870 | cat >conftest.$ac_ext <<_ACEOF |
| 10871 | /* confdefs.h. */ |
| 10872 | _ACEOF |
| 10873 | cat confdefs.h >>conftest.$ac_ext |
| 10874 | cat >>conftest.$ac_ext <<_ACEOF |
| 10875 | /* end confdefs.h. */ |
| 10876 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10877 | # include <argz.h> |
| 10878 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10879 | |
| 10880 | typedef error_t ac__type_new_; |
| 10881 | int |
| 10882 | main () |
| 10883 | { |
| 10884 | if ((ac__type_new_ *) 0) |
| 10885 | return 0; |
| 10886 | if (sizeof (ac__type_new_)) |
| 10887 | return 0; |
| 10888 | ; |
| 10889 | return 0; |
| 10890 | } |
| 10891 | _ACEOF |
| 10892 | rm -f conftest.$ac_objext |
| 10893 | if { (ac_try="$ac_compile" |
| 10894 | case "(($ac_try" in |
| 10895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10896 | *) ac_try_echo=$ac_try;; |
| 10897 | esac |
| 10898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10899 | (eval "$ac_compile") 2>conftest.er1 |
| 10900 | ac_status=$? |
| 10901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10902 | rm -f conftest.er1 |
| 10903 | cat conftest.err >&5 |
| 10904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10905 | (exit $ac_status); } && |
| 10906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10907 | { (case "(($ac_try" in |
| 10908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10909 | *) ac_try_echo=$ac_try;; |
| 10910 | esac |
| 10911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10912 | (eval "$ac_try") 2>&5 |
| 10913 | ac_status=$? |
| 10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10915 | (exit $ac_status); }; } && |
| 10916 | { ac_try='test -s conftest.$ac_objext' |
| 10917 | { (case "(($ac_try" in |
| 10918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10919 | *) ac_try_echo=$ac_try;; |
| 10920 | esac |
| 10921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10922 | (eval "$ac_try") 2>&5 |
| 10923 | ac_status=$? |
| 10924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10925 | (exit $ac_status); }; }; then |
| 10926 | ac_cv_type_error_t=yes |
| 10927 | else |
| 10928 | echo "$as_me: failed program was:" >&5 |
| 10929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10930 | |
| 10931 | ac_cv_type_error_t=no |
| 10932 | fi |
| 10933 | |
| 10934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10935 | fi |
| 10936 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10937 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10938 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10939 | |
| 10940 | cat >>confdefs.h <<_ACEOF |
| 10941 | #define HAVE_ERROR_T 1 |
| 10942 | _ACEOF |
| 10943 | |
| 10944 | |
| 10945 | else |
| 10946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10947 | cat >>confdefs.h <<\_ACEOF |
| 10948 | #define error_t int |
| 10949 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10950 | |
| 10951 | fi |
| 10952 | |
| 10953 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10954 | |
| 10955 | |
| 10956 | |
| 10957 | |
| 10958 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10959 | 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] | 10960 | do |
| 10961 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10962 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10963 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10964 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10966 | else |
| 10967 | cat >conftest.$ac_ext <<_ACEOF |
| 10968 | /* confdefs.h. */ |
| 10969 | _ACEOF |
| 10970 | cat confdefs.h >>conftest.$ac_ext |
| 10971 | cat >>conftest.$ac_ext <<_ACEOF |
| 10972 | /* end confdefs.h. */ |
| 10973 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10975 | #define $ac_func innocuous_$ac_func |
| 10976 | |
| 10977 | /* System header to define __stub macros and hopefully few prototypes, |
| 10978 | which can conflict with char $ac_func (); below. |
| 10979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10980 | <limits.h> exists even on freestanding compilers. */ |
| 10981 | |
| 10982 | #ifdef __STDC__ |
| 10983 | # include <limits.h> |
| 10984 | #else |
| 10985 | # include <assert.h> |
| 10986 | #endif |
| 10987 | |
| 10988 | #undef $ac_func |
| 10989 | |
| 10990 | /* Override any GCC internal prototype to avoid an error. |
| 10991 | Use char because int might match the return type of a GCC |
| 10992 | builtin and then its argument prototype would still apply. */ |
| 10993 | #ifdef __cplusplus |
| 10994 | extern "C" |
| 10995 | #endif |
| 10996 | char $ac_func (); |
| 10997 | /* The GNU C library defines this for functions which it implements |
| 10998 | to always fail with ENOSYS. Some functions are actually named |
| 10999 | something starting with __ and the normal name is an alias. */ |
| 11000 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11001 | choke me |
| 11002 | #endif |
| 11003 | |
| 11004 | int |
| 11005 | main () |
| 11006 | { |
| 11007 | return $ac_func (); |
| 11008 | ; |
| 11009 | return 0; |
| 11010 | } |
| 11011 | _ACEOF |
| 11012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11013 | if { (ac_try="$ac_link" |
| 11014 | case "(($ac_try" in |
| 11015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11016 | *) ac_try_echo=$ac_try;; |
| 11017 | esac |
| 11018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11019 | (eval "$ac_link") 2>conftest.er1 |
| 11020 | ac_status=$? |
| 11021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11022 | rm -f conftest.er1 |
| 11023 | cat conftest.err >&5 |
| 11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11025 | (exit $ac_status); } && |
| 11026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11027 | { (case "(($ac_try" in |
| 11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11029 | *) ac_try_echo=$ac_try;; |
| 11030 | esac |
| 11031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11032 | (eval "$ac_try") 2>&5 |
| 11033 | ac_status=$? |
| 11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11035 | (exit $ac_status); }; } && |
| 11036 | { ac_try='test -s conftest$ac_exeext' |
| 11037 | { (case "(($ac_try" in |
| 11038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11039 | *) ac_try_echo=$ac_try;; |
| 11040 | esac |
| 11041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11042 | (eval "$ac_try") 2>&5 |
| 11043 | ac_status=$? |
| 11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11045 | (exit $ac_status); }; }; then |
| 11046 | eval "$as_ac_var=yes" |
| 11047 | else |
| 11048 | echo "$as_me: failed program was:" >&5 |
| 11049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11050 | |
| 11051 | eval "$as_ac_var=no" |
| 11052 | fi |
| 11053 | |
| 11054 | rm -f core conftest.err conftest.$ac_objext \ |
| 11055 | conftest$ac_exeext conftest.$ac_ext |
| 11056 | fi |
| 11057 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11059 | echo "${ECHO_T}$ac_res" >&6; } |
| 11060 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11061 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11062 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11063 | _ACEOF |
| 11064 | |
| 11065 | fi |
| 11066 | done |
| 11067 | |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | |
| 11072 | |
| 11073 | |
| 11074 | |
| 11075 | |
| 11076 | |
| 11077 | |
| 11078 | |
| 11079 | |
| 11080 | |
| 11081 | |
| 11082 | |
| 11083 | |
| 11084 | |
| 11085 | |
| 11086 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11087 | |
| 11088 | |
| 11089 | |
| 11090 | |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11095 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11096 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11097 | do |
| 11098 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11100 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11104 | fi |
| 11105 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11106 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11107 | echo "${ECHO_T}$ac_res" >&6; } |
| 11108 | else |
| 11109 | # Is the header compilable? |
| 11110 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11111 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11112 | cat >conftest.$ac_ext <<_ACEOF |
| 11113 | /* confdefs.h. */ |
| 11114 | _ACEOF |
| 11115 | cat confdefs.h >>conftest.$ac_ext |
| 11116 | cat >>conftest.$ac_ext <<_ACEOF |
| 11117 | /* end confdefs.h. */ |
| 11118 | $ac_includes_default |
| 11119 | #include <$ac_header> |
| 11120 | _ACEOF |
| 11121 | rm -f conftest.$ac_objext |
| 11122 | if { (ac_try="$ac_compile" |
| 11123 | case "(($ac_try" in |
| 11124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11125 | *) ac_try_echo=$ac_try;; |
| 11126 | esac |
| 11127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11128 | (eval "$ac_compile") 2>conftest.er1 |
| 11129 | ac_status=$? |
| 11130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11131 | rm -f conftest.er1 |
| 11132 | cat conftest.err >&5 |
| 11133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11134 | (exit $ac_status); } && |
| 11135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11136 | { (case "(($ac_try" in |
| 11137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11138 | *) ac_try_echo=$ac_try;; |
| 11139 | esac |
| 11140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11141 | (eval "$ac_try") 2>&5 |
| 11142 | ac_status=$? |
| 11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11144 | (exit $ac_status); }; } && |
| 11145 | { ac_try='test -s conftest.$ac_objext' |
| 11146 | { (case "(($ac_try" in |
| 11147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11148 | *) ac_try_echo=$ac_try;; |
| 11149 | esac |
| 11150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11151 | (eval "$ac_try") 2>&5 |
| 11152 | ac_status=$? |
| 11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11154 | (exit $ac_status); }; }; then |
| 11155 | ac_header_compiler=yes |
| 11156 | else |
| 11157 | echo "$as_me: failed program was:" >&5 |
| 11158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11159 | |
| 11160 | ac_header_compiler=no |
| 11161 | fi |
| 11162 | |
| 11163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11164 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11165 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11166 | |
| 11167 | # Is the header present? |
| 11168 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11169 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11170 | cat >conftest.$ac_ext <<_ACEOF |
| 11171 | /* confdefs.h. */ |
| 11172 | _ACEOF |
| 11173 | cat confdefs.h >>conftest.$ac_ext |
| 11174 | cat >>conftest.$ac_ext <<_ACEOF |
| 11175 | /* end confdefs.h. */ |
| 11176 | #include <$ac_header> |
| 11177 | _ACEOF |
| 11178 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11179 | case "(($ac_try" in |
| 11180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11181 | *) ac_try_echo=$ac_try;; |
| 11182 | esac |
| 11183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11184 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11185 | ac_status=$? |
| 11186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11187 | rm -f conftest.er1 |
| 11188 | cat conftest.err >&5 |
| 11189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11190 | (exit $ac_status); } >/dev/null; then |
| 11191 | if test -s conftest.err; then |
| 11192 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11193 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11194 | else |
| 11195 | ac_cpp_err= |
| 11196 | fi |
| 11197 | else |
| 11198 | ac_cpp_err=yes |
| 11199 | fi |
| 11200 | if test -z "$ac_cpp_err"; then |
| 11201 | ac_header_preproc=yes |
| 11202 | else |
| 11203 | echo "$as_me: failed program was:" >&5 |
| 11204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11205 | |
| 11206 | ac_header_preproc=no |
| 11207 | fi |
| 11208 | |
| 11209 | rm -f conftest.err conftest.$ac_ext |
| 11210 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11211 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11212 | |
| 11213 | # So? What about this header? |
| 11214 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11215 | yes:no: ) |
| 11216 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11217 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11219 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11220 | ac_header_preproc=yes |
| 11221 | ;; |
| 11222 | no:yes:* ) |
| 11223 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11224 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11225 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11226 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11227 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11228 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11229 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11230 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11232 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11233 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11234 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11235 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11236 | ## ------------------------------------ ## |
| 11237 | ## Report this to http://llvm.org/bugs/ ## |
| 11238 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11239 | _ASBOX |
| 11240 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11241 | ;; |
| 11242 | esac |
| 11243 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11245 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11247 | else |
| 11248 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11249 | fi |
| 11250 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11251 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11252 | echo "${ECHO_T}$ac_res" >&6; } |
| 11253 | |
| 11254 | fi |
| 11255 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11256 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11257 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11258 | _ACEOF |
| 11259 | |
| 11260 | fi |
| 11261 | |
| 11262 | done |
| 11263 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11264 | |
| 11265 | |
| 11266 | |
| 11267 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11268 | 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] | 11269 | do |
| 11270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11271 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11272 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11274 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11276 | fi |
| 11277 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11279 | echo "${ECHO_T}$ac_res" >&6; } |
| 11280 | else |
| 11281 | # Is the header compilable? |
| 11282 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11283 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11284 | cat >conftest.$ac_ext <<_ACEOF |
| 11285 | /* confdefs.h. */ |
| 11286 | _ACEOF |
| 11287 | cat confdefs.h >>conftest.$ac_ext |
| 11288 | cat >>conftest.$ac_ext <<_ACEOF |
| 11289 | /* end confdefs.h. */ |
| 11290 | $ac_includes_default |
| 11291 | #include <$ac_header> |
| 11292 | _ACEOF |
| 11293 | rm -f conftest.$ac_objext |
| 11294 | if { (ac_try="$ac_compile" |
| 11295 | case "(($ac_try" in |
| 11296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11297 | *) ac_try_echo=$ac_try;; |
| 11298 | esac |
| 11299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11300 | (eval "$ac_compile") 2>conftest.er1 |
| 11301 | ac_status=$? |
| 11302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11303 | rm -f conftest.er1 |
| 11304 | cat conftest.err >&5 |
| 11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11306 | (exit $ac_status); } && |
| 11307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11308 | { (case "(($ac_try" in |
| 11309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11310 | *) ac_try_echo=$ac_try;; |
| 11311 | esac |
| 11312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11313 | (eval "$ac_try") 2>&5 |
| 11314 | ac_status=$? |
| 11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11316 | (exit $ac_status); }; } && |
| 11317 | { ac_try='test -s conftest.$ac_objext' |
| 11318 | { (case "(($ac_try" in |
| 11319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11320 | *) ac_try_echo=$ac_try;; |
| 11321 | esac |
| 11322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11323 | (eval "$ac_try") 2>&5 |
| 11324 | ac_status=$? |
| 11325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11326 | (exit $ac_status); }; }; then |
| 11327 | ac_header_compiler=yes |
| 11328 | else |
| 11329 | echo "$as_me: failed program was:" >&5 |
| 11330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11331 | |
| 11332 | ac_header_compiler=no |
| 11333 | fi |
| 11334 | |
| 11335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11336 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11337 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11338 | |
| 11339 | # Is the header present? |
| 11340 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11341 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11342 | cat >conftest.$ac_ext <<_ACEOF |
| 11343 | /* confdefs.h. */ |
| 11344 | _ACEOF |
| 11345 | cat confdefs.h >>conftest.$ac_ext |
| 11346 | cat >>conftest.$ac_ext <<_ACEOF |
| 11347 | /* end confdefs.h. */ |
| 11348 | #include <$ac_header> |
| 11349 | _ACEOF |
| 11350 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11351 | case "(($ac_try" in |
| 11352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11353 | *) ac_try_echo=$ac_try;; |
| 11354 | esac |
| 11355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11356 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11357 | ac_status=$? |
| 11358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11359 | rm -f conftest.er1 |
| 11360 | cat conftest.err >&5 |
| 11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11362 | (exit $ac_status); } >/dev/null; then |
| 11363 | if test -s conftest.err; then |
| 11364 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11366 | else |
| 11367 | ac_cpp_err= |
| 11368 | fi |
| 11369 | else |
| 11370 | ac_cpp_err=yes |
| 11371 | fi |
| 11372 | if test -z "$ac_cpp_err"; then |
| 11373 | ac_header_preproc=yes |
| 11374 | else |
| 11375 | echo "$as_me: failed program was:" >&5 |
| 11376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11377 | |
| 11378 | ac_header_preproc=no |
| 11379 | fi |
| 11380 | |
| 11381 | rm -f conftest.err conftest.$ac_ext |
| 11382 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11383 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11384 | |
| 11385 | # So? What about this header? |
| 11386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11387 | yes:no: ) |
| 11388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11391 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11392 | ac_header_preproc=yes |
| 11393 | ;; |
| 11394 | no:yes:* ) |
| 11395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11399 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11400 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11401 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11402 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11405 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11406 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11407 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11408 | ## ------------------------------------ ## |
| 11409 | ## Report this to http://llvm.org/bugs/ ## |
| 11410 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11411 | _ASBOX |
| 11412 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11413 | ;; |
| 11414 | esac |
| 11415 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11417 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11419 | else |
| 11420 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11421 | fi |
| 11422 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11423 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11424 | echo "${ECHO_T}$ac_res" >&6; } |
| 11425 | |
| 11426 | fi |
| 11427 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11428 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11429 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11430 | _ACEOF |
| 11431 | |
| 11432 | fi |
| 11433 | |
| 11434 | done |
| 11435 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11436 | |
| 11437 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11438 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11439 | do |
| 11440 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11441 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11442 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11446 | fi |
| 11447 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11449 | echo "${ECHO_T}$ac_res" >&6; } |
| 11450 | else |
| 11451 | # Is the header compilable? |
| 11452 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11453 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11454 | cat >conftest.$ac_ext <<_ACEOF |
| 11455 | /* confdefs.h. */ |
| 11456 | _ACEOF |
| 11457 | cat confdefs.h >>conftest.$ac_ext |
| 11458 | cat >>conftest.$ac_ext <<_ACEOF |
| 11459 | /* end confdefs.h. */ |
| 11460 | $ac_includes_default |
| 11461 | #include <$ac_header> |
| 11462 | _ACEOF |
| 11463 | rm -f conftest.$ac_objext |
| 11464 | if { (ac_try="$ac_compile" |
| 11465 | case "(($ac_try" in |
| 11466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11467 | *) ac_try_echo=$ac_try;; |
| 11468 | esac |
| 11469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11470 | (eval "$ac_compile") 2>conftest.er1 |
| 11471 | ac_status=$? |
| 11472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11473 | rm -f conftest.er1 |
| 11474 | cat conftest.err >&5 |
| 11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11476 | (exit $ac_status); } && |
| 11477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11478 | { (case "(($ac_try" in |
| 11479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11480 | *) ac_try_echo=$ac_try;; |
| 11481 | esac |
| 11482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11483 | (eval "$ac_try") 2>&5 |
| 11484 | ac_status=$? |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); }; } && |
| 11487 | { ac_try='test -s conftest.$ac_objext' |
| 11488 | { (case "(($ac_try" in |
| 11489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11490 | *) ac_try_echo=$ac_try;; |
| 11491 | esac |
| 11492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11493 | (eval "$ac_try") 2>&5 |
| 11494 | ac_status=$? |
| 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11496 | (exit $ac_status); }; }; then |
| 11497 | ac_header_compiler=yes |
| 11498 | else |
| 11499 | echo "$as_me: failed program was:" >&5 |
| 11500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11501 | |
| 11502 | ac_header_compiler=no |
| 11503 | fi |
| 11504 | |
| 11505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11506 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11507 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11508 | |
| 11509 | # Is the header present? |
| 11510 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11512 | cat >conftest.$ac_ext <<_ACEOF |
| 11513 | /* confdefs.h. */ |
| 11514 | _ACEOF |
| 11515 | cat confdefs.h >>conftest.$ac_ext |
| 11516 | cat >>conftest.$ac_ext <<_ACEOF |
| 11517 | /* end confdefs.h. */ |
| 11518 | #include <$ac_header> |
| 11519 | _ACEOF |
| 11520 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11521 | case "(($ac_try" in |
| 11522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11523 | *) ac_try_echo=$ac_try;; |
| 11524 | esac |
| 11525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11527 | ac_status=$? |
| 11528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11529 | rm -f conftest.er1 |
| 11530 | cat conftest.err >&5 |
| 11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11532 | (exit $ac_status); } >/dev/null; then |
| 11533 | if test -s conftest.err; then |
| 11534 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11535 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11536 | else |
| 11537 | ac_cpp_err= |
| 11538 | fi |
| 11539 | else |
| 11540 | ac_cpp_err=yes |
| 11541 | fi |
| 11542 | if test -z "$ac_cpp_err"; then |
| 11543 | ac_header_preproc=yes |
| 11544 | else |
| 11545 | echo "$as_me: failed program was:" >&5 |
| 11546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11547 | |
| 11548 | ac_header_preproc=no |
| 11549 | fi |
| 11550 | |
| 11551 | rm -f conftest.err conftest.$ac_ext |
| 11552 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11553 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11554 | |
| 11555 | # So? What about this header? |
| 11556 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11557 | yes:no: ) |
| 11558 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11559 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11561 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11562 | ac_header_preproc=yes |
| 11563 | ;; |
| 11564 | no:yes:* ) |
| 11565 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11566 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11567 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11568 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11569 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11570 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11571 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11572 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11574 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11575 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11576 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11577 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11578 | ## ------------------------------------ ## |
| 11579 | ## Report this to http://llvm.org/bugs/ ## |
| 11580 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11581 | _ASBOX |
| 11582 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11583 | ;; |
| 11584 | esac |
| 11585 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11589 | else |
| 11590 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11591 | fi |
| 11592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11594 | echo "${ECHO_T}$ac_res" >&6; } |
| 11595 | |
| 11596 | fi |
| 11597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11598 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11600 | _ACEOF |
| 11601 | break |
| 11602 | fi |
| 11603 | |
| 11604 | done |
| 11605 | |
| 11606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11607 | |
| 11608 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11609 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11610 | do |
| 11611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11612 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11614 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11616 | else |
| 11617 | cat >conftest.$ac_ext <<_ACEOF |
| 11618 | /* confdefs.h. */ |
| 11619 | _ACEOF |
| 11620 | cat confdefs.h >>conftest.$ac_ext |
| 11621 | cat >>conftest.$ac_ext <<_ACEOF |
| 11622 | /* end confdefs.h. */ |
| 11623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11625 | #define $ac_func innocuous_$ac_func |
| 11626 | |
| 11627 | /* System header to define __stub macros and hopefully few prototypes, |
| 11628 | which can conflict with char $ac_func (); below. |
| 11629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11630 | <limits.h> exists even on freestanding compilers. */ |
| 11631 | |
| 11632 | #ifdef __STDC__ |
| 11633 | # include <limits.h> |
| 11634 | #else |
| 11635 | # include <assert.h> |
| 11636 | #endif |
| 11637 | |
| 11638 | #undef $ac_func |
| 11639 | |
| 11640 | /* Override any GCC internal prototype to avoid an error. |
| 11641 | Use char because int might match the return type of a GCC |
| 11642 | builtin and then its argument prototype would still apply. */ |
| 11643 | #ifdef __cplusplus |
| 11644 | extern "C" |
| 11645 | #endif |
| 11646 | char $ac_func (); |
| 11647 | /* The GNU C library defines this for functions which it implements |
| 11648 | to always fail with ENOSYS. Some functions are actually named |
| 11649 | something starting with __ and the normal name is an alias. */ |
| 11650 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11651 | choke me |
| 11652 | #endif |
| 11653 | |
| 11654 | int |
| 11655 | main () |
| 11656 | { |
| 11657 | return $ac_func (); |
| 11658 | ; |
| 11659 | return 0; |
| 11660 | } |
| 11661 | _ACEOF |
| 11662 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11663 | if { (ac_try="$ac_link" |
| 11664 | case "(($ac_try" in |
| 11665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11666 | *) ac_try_echo=$ac_try;; |
| 11667 | esac |
| 11668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11669 | (eval "$ac_link") 2>conftest.er1 |
| 11670 | ac_status=$? |
| 11671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11672 | rm -f conftest.er1 |
| 11673 | cat conftest.err >&5 |
| 11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11675 | (exit $ac_status); } && |
| 11676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11677 | { (case "(($ac_try" in |
| 11678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11679 | *) ac_try_echo=$ac_try;; |
| 11680 | esac |
| 11681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11682 | (eval "$ac_try") 2>&5 |
| 11683 | ac_status=$? |
| 11684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11685 | (exit $ac_status); }; } && |
| 11686 | { ac_try='test -s conftest$ac_exeext' |
| 11687 | { (case "(($ac_try" in |
| 11688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11689 | *) ac_try_echo=$ac_try;; |
| 11690 | esac |
| 11691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11692 | (eval "$ac_try") 2>&5 |
| 11693 | ac_status=$? |
| 11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11695 | (exit $ac_status); }; }; then |
| 11696 | eval "$as_ac_var=yes" |
| 11697 | else |
| 11698 | echo "$as_me: failed program was:" >&5 |
| 11699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11700 | |
| 11701 | eval "$as_ac_var=no" |
| 11702 | fi |
| 11703 | |
| 11704 | rm -f core conftest.err conftest.$ac_objext \ |
| 11705 | conftest$ac_exeext conftest.$ac_ext |
| 11706 | fi |
| 11707 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11709 | echo "${ECHO_T}$ac_res" >&6; } |
| 11710 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11711 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11713 | _ACEOF |
| 11714 | break |
| 11715 | fi |
| 11716 | done |
| 11717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11718 | |
| 11719 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11720 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11721 | do |
| 11722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11723 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11725 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11727 | else |
| 11728 | cat >conftest.$ac_ext <<_ACEOF |
| 11729 | /* confdefs.h. */ |
| 11730 | _ACEOF |
| 11731 | cat confdefs.h >>conftest.$ac_ext |
| 11732 | cat >>conftest.$ac_ext <<_ACEOF |
| 11733 | /* end confdefs.h. */ |
| 11734 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11736 | #define $ac_func innocuous_$ac_func |
| 11737 | |
| 11738 | /* System header to define __stub macros and hopefully few prototypes, |
| 11739 | which can conflict with char $ac_func (); below. |
| 11740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11741 | <limits.h> exists even on freestanding compilers. */ |
| 11742 | |
| 11743 | #ifdef __STDC__ |
| 11744 | # include <limits.h> |
| 11745 | #else |
| 11746 | # include <assert.h> |
| 11747 | #endif |
| 11748 | |
| 11749 | #undef $ac_func |
| 11750 | |
| 11751 | /* Override any GCC internal prototype to avoid an error. |
| 11752 | Use char because int might match the return type of a GCC |
| 11753 | builtin and then its argument prototype would still apply. */ |
| 11754 | #ifdef __cplusplus |
| 11755 | extern "C" |
| 11756 | #endif |
| 11757 | char $ac_func (); |
| 11758 | /* The GNU C library defines this for functions which it implements |
| 11759 | to always fail with ENOSYS. Some functions are actually named |
| 11760 | something starting with __ and the normal name is an alias. */ |
| 11761 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11762 | choke me |
| 11763 | #endif |
| 11764 | |
| 11765 | int |
| 11766 | main () |
| 11767 | { |
| 11768 | return $ac_func (); |
| 11769 | ; |
| 11770 | return 0; |
| 11771 | } |
| 11772 | _ACEOF |
| 11773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11774 | if { (ac_try="$ac_link" |
| 11775 | case "(($ac_try" in |
| 11776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11777 | *) ac_try_echo=$ac_try;; |
| 11778 | esac |
| 11779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11780 | (eval "$ac_link") 2>conftest.er1 |
| 11781 | ac_status=$? |
| 11782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11783 | rm -f conftest.er1 |
| 11784 | cat conftest.err >&5 |
| 11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11786 | (exit $ac_status); } && |
| 11787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11788 | { (case "(($ac_try" in |
| 11789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11790 | *) ac_try_echo=$ac_try;; |
| 11791 | esac |
| 11792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11793 | (eval "$ac_try") 2>&5 |
| 11794 | ac_status=$? |
| 11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11796 | (exit $ac_status); }; } && |
| 11797 | { ac_try='test -s conftest$ac_exeext' |
| 11798 | { (case "(($ac_try" in |
| 11799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11800 | *) ac_try_echo=$ac_try;; |
| 11801 | esac |
| 11802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11803 | (eval "$ac_try") 2>&5 |
| 11804 | ac_status=$? |
| 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11806 | (exit $ac_status); }; }; then |
| 11807 | eval "$as_ac_var=yes" |
| 11808 | else |
| 11809 | echo "$as_me: failed program was:" >&5 |
| 11810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11811 | |
| 11812 | eval "$as_ac_var=no" |
| 11813 | fi |
| 11814 | |
| 11815 | rm -f core conftest.err conftest.$ac_objext \ |
| 11816 | conftest$ac_exeext conftest.$ac_ext |
| 11817 | fi |
| 11818 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11820 | echo "${ECHO_T}$ac_res" >&6; } |
| 11821 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11822 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11824 | _ACEOF |
| 11825 | break |
| 11826 | fi |
| 11827 | done |
| 11828 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11829 | |
| 11830 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11831 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11832 | do |
| 11833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11834 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11836 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11838 | else |
| 11839 | cat >conftest.$ac_ext <<_ACEOF |
| 11840 | /* confdefs.h. */ |
| 11841 | _ACEOF |
| 11842 | cat confdefs.h >>conftest.$ac_ext |
| 11843 | cat >>conftest.$ac_ext <<_ACEOF |
| 11844 | /* end confdefs.h. */ |
| 11845 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11847 | #define $ac_func innocuous_$ac_func |
| 11848 | |
| 11849 | /* System header to define __stub macros and hopefully few prototypes, |
| 11850 | which can conflict with char $ac_func (); below. |
| 11851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11852 | <limits.h> exists even on freestanding compilers. */ |
| 11853 | |
| 11854 | #ifdef __STDC__ |
| 11855 | # include <limits.h> |
| 11856 | #else |
| 11857 | # include <assert.h> |
| 11858 | #endif |
| 11859 | |
| 11860 | #undef $ac_func |
| 11861 | |
| 11862 | /* Override any GCC internal prototype to avoid an error. |
| 11863 | Use char because int might match the return type of a GCC |
| 11864 | builtin and then its argument prototype would still apply. */ |
| 11865 | #ifdef __cplusplus |
| 11866 | extern "C" |
| 11867 | #endif |
| 11868 | char $ac_func (); |
| 11869 | /* The GNU C library defines this for functions which it implements |
| 11870 | to always fail with ENOSYS. Some functions are actually named |
| 11871 | something starting with __ and the normal name is an alias. */ |
| 11872 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11873 | choke me |
| 11874 | #endif |
| 11875 | |
| 11876 | int |
| 11877 | main () |
| 11878 | { |
| 11879 | return $ac_func (); |
| 11880 | ; |
| 11881 | return 0; |
| 11882 | } |
| 11883 | _ACEOF |
| 11884 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11885 | if { (ac_try="$ac_link" |
| 11886 | case "(($ac_try" in |
| 11887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11888 | *) ac_try_echo=$ac_try;; |
| 11889 | esac |
| 11890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11891 | (eval "$ac_link") 2>conftest.er1 |
| 11892 | ac_status=$? |
| 11893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11894 | rm -f conftest.er1 |
| 11895 | cat conftest.err >&5 |
| 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11897 | (exit $ac_status); } && |
| 11898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11899 | { (case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
| 11903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11904 | (eval "$ac_try") 2>&5 |
| 11905 | ac_status=$? |
| 11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11907 | (exit $ac_status); }; } && |
| 11908 | { ac_try='test -s conftest$ac_exeext' |
| 11909 | { (case "(($ac_try" in |
| 11910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11911 | *) ac_try_echo=$ac_try;; |
| 11912 | esac |
| 11913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11914 | (eval "$ac_try") 2>&5 |
| 11915 | ac_status=$? |
| 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); }; }; then |
| 11918 | eval "$as_ac_var=yes" |
| 11919 | else |
| 11920 | echo "$as_me: failed program was:" >&5 |
| 11921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11922 | |
| 11923 | eval "$as_ac_var=no" |
| 11924 | fi |
| 11925 | |
| 11926 | rm -f core conftest.err conftest.$ac_objext \ |
| 11927 | conftest$ac_exeext conftest.$ac_ext |
| 11928 | fi |
| 11929 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11930 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11931 | echo "${ECHO_T}$ac_res" >&6; } |
| 11932 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11933 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11934 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11935 | _ACEOF |
| 11936 | break |
| 11937 | fi |
| 11938 | done |
| 11939 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11940 | |
| 11941 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11942 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11943 | do |
| 11944 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11945 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11946 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11947 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11949 | else |
| 11950 | cat >conftest.$ac_ext <<_ACEOF |
| 11951 | /* confdefs.h. */ |
| 11952 | _ACEOF |
| 11953 | cat confdefs.h >>conftest.$ac_ext |
| 11954 | cat >>conftest.$ac_ext <<_ACEOF |
| 11955 | /* end confdefs.h. */ |
| 11956 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11958 | #define $ac_func innocuous_$ac_func |
| 11959 | |
| 11960 | /* System header to define __stub macros and hopefully few prototypes, |
| 11961 | which can conflict with char $ac_func (); below. |
| 11962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11963 | <limits.h> exists even on freestanding compilers. */ |
| 11964 | |
| 11965 | #ifdef __STDC__ |
| 11966 | # include <limits.h> |
| 11967 | #else |
| 11968 | # include <assert.h> |
| 11969 | #endif |
| 11970 | |
| 11971 | #undef $ac_func |
| 11972 | |
| 11973 | /* Override any GCC internal prototype to avoid an error. |
| 11974 | Use char because int might match the return type of a GCC |
| 11975 | builtin and then its argument prototype would still apply. */ |
| 11976 | #ifdef __cplusplus |
| 11977 | extern "C" |
| 11978 | #endif |
| 11979 | char $ac_func (); |
| 11980 | /* The GNU C library defines this for functions which it implements |
| 11981 | to always fail with ENOSYS. Some functions are actually named |
| 11982 | something starting with __ and the normal name is an alias. */ |
| 11983 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11984 | choke me |
| 11985 | #endif |
| 11986 | |
| 11987 | int |
| 11988 | main () |
| 11989 | { |
| 11990 | return $ac_func (); |
| 11991 | ; |
| 11992 | return 0; |
| 11993 | } |
| 11994 | _ACEOF |
| 11995 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11996 | if { (ac_try="$ac_link" |
| 11997 | case "(($ac_try" in |
| 11998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11999 | *) ac_try_echo=$ac_try;; |
| 12000 | esac |
| 12001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12002 | (eval "$ac_link") 2>conftest.er1 |
| 12003 | ac_status=$? |
| 12004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12005 | rm -f conftest.er1 |
| 12006 | cat conftest.err >&5 |
| 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); } && |
| 12009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12010 | { (case "(($ac_try" in |
| 12011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12012 | *) ac_try_echo=$ac_try;; |
| 12013 | esac |
| 12014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12015 | (eval "$ac_try") 2>&5 |
| 12016 | ac_status=$? |
| 12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12018 | (exit $ac_status); }; } && |
| 12019 | { ac_try='test -s conftest$ac_exeext' |
| 12020 | { (case "(($ac_try" in |
| 12021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12022 | *) ac_try_echo=$ac_try;; |
| 12023 | esac |
| 12024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12025 | (eval "$ac_try") 2>&5 |
| 12026 | ac_status=$? |
| 12027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12028 | (exit $ac_status); }; }; then |
| 12029 | eval "$as_ac_var=yes" |
| 12030 | else |
| 12031 | echo "$as_me: failed program was:" >&5 |
| 12032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12033 | |
| 12034 | eval "$as_ac_var=no" |
| 12035 | fi |
| 12036 | |
| 12037 | rm -f core conftest.err conftest.$ac_objext \ |
| 12038 | conftest$ac_exeext conftest.$ac_ext |
| 12039 | fi |
| 12040 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12041 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12042 | echo "${ECHO_T}$ac_res" >&6; } |
| 12043 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12044 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12045 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12046 | _ACEOF |
| 12047 | |
| 12048 | fi |
| 12049 | done |
| 12050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12051 | |
| 12052 | |
| 12053 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12054 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12055 | do |
| 12056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12057 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12059 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12061 | else |
| 12062 | cat >conftest.$ac_ext <<_ACEOF |
| 12063 | /* confdefs.h. */ |
| 12064 | _ACEOF |
| 12065 | cat confdefs.h >>conftest.$ac_ext |
| 12066 | cat >>conftest.$ac_ext <<_ACEOF |
| 12067 | /* end confdefs.h. */ |
| 12068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12070 | #define $ac_func innocuous_$ac_func |
| 12071 | |
| 12072 | /* System header to define __stub macros and hopefully few prototypes, |
| 12073 | which can conflict with char $ac_func (); below. |
| 12074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12075 | <limits.h> exists even on freestanding compilers. */ |
| 12076 | |
| 12077 | #ifdef __STDC__ |
| 12078 | # include <limits.h> |
| 12079 | #else |
| 12080 | # include <assert.h> |
| 12081 | #endif |
| 12082 | |
| 12083 | #undef $ac_func |
| 12084 | |
| 12085 | /* Override any GCC internal prototype to avoid an error. |
| 12086 | Use char because int might match the return type of a GCC |
| 12087 | builtin and then its argument prototype would still apply. */ |
| 12088 | #ifdef __cplusplus |
| 12089 | extern "C" |
| 12090 | #endif |
| 12091 | char $ac_func (); |
| 12092 | /* The GNU C library defines this for functions which it implements |
| 12093 | to always fail with ENOSYS. Some functions are actually named |
| 12094 | something starting with __ and the normal name is an alias. */ |
| 12095 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12096 | choke me |
| 12097 | #endif |
| 12098 | |
| 12099 | int |
| 12100 | main () |
| 12101 | { |
| 12102 | return $ac_func (); |
| 12103 | ; |
| 12104 | return 0; |
| 12105 | } |
| 12106 | _ACEOF |
| 12107 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12108 | if { (ac_try="$ac_link" |
| 12109 | case "(($ac_try" in |
| 12110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12111 | *) ac_try_echo=$ac_try;; |
| 12112 | esac |
| 12113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12114 | (eval "$ac_link") 2>conftest.er1 |
| 12115 | ac_status=$? |
| 12116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12117 | rm -f conftest.er1 |
| 12118 | cat conftest.err >&5 |
| 12119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12120 | (exit $ac_status); } && |
| 12121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12122 | { (case "(($ac_try" in |
| 12123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12124 | *) ac_try_echo=$ac_try;; |
| 12125 | esac |
| 12126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12127 | (eval "$ac_try") 2>&5 |
| 12128 | ac_status=$? |
| 12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12130 | (exit $ac_status); }; } && |
| 12131 | { ac_try='test -s conftest$ac_exeext' |
| 12132 | { (case "(($ac_try" in |
| 12133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12134 | *) ac_try_echo=$ac_try;; |
| 12135 | esac |
| 12136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12137 | (eval "$ac_try") 2>&5 |
| 12138 | ac_status=$? |
| 12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12140 | (exit $ac_status); }; }; then |
| 12141 | eval "$as_ac_var=yes" |
| 12142 | else |
| 12143 | echo "$as_me: failed program was:" >&5 |
| 12144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12145 | |
| 12146 | eval "$as_ac_var=no" |
| 12147 | fi |
| 12148 | |
| 12149 | rm -f core conftest.err conftest.$ac_objext \ |
| 12150 | conftest$ac_exeext conftest.$ac_ext |
| 12151 | fi |
| 12152 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12153 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12154 | echo "${ECHO_T}$ac_res" >&6; } |
| 12155 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12156 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12157 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12158 | _ACEOF |
| 12159 | |
| 12160 | fi |
| 12161 | done |
| 12162 | |
| 12163 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12164 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12165 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12166 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12167 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12168 | ICC=no |
| 12169 | IXX=no |
| 12170 | case $CC in |
| 12171 | icc*|icpc*) |
| 12172 | ICC=yes |
| 12173 | IXX=yes |
| 12174 | ;; |
| 12175 | *) |
| 12176 | ;; |
| 12177 | esac |
| 12178 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12179 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12180 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12181 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12182 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12183 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12184 | fi |
| 12185 | |
| 12186 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12187 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12188 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 12189 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12190 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12191 | fi |
| 12192 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12193 | if test "$GCC" = "yes" |
| 12194 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12195 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12196 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12197 | #error Unsupported GCC version |
| 12198 | #endif |
| 12199 | |
| 12200 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12201 | rm -f conftest.$ac_objext |
| 12202 | if { (ac_try="$ac_compile" |
| 12203 | case "(($ac_try" in |
| 12204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12205 | *) ac_try_echo=$ac_try;; |
| 12206 | esac |
| 12207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12208 | (eval "$ac_compile") 2>conftest.er1 |
| 12209 | ac_status=$? |
| 12210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12211 | rm -f conftest.er1 |
| 12212 | cat conftest.err >&5 |
| 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); } && |
| 12215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12216 | { (case "(($ac_try" in |
| 12217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12218 | *) ac_try_echo=$ac_try;; |
| 12219 | esac |
| 12220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12221 | (eval "$ac_try") 2>&5 |
| 12222 | ac_status=$? |
| 12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12224 | (exit $ac_status); }; } && |
| 12225 | { ac_try='test -s conftest.$ac_objext' |
| 12226 | { (case "(($ac_try" in |
| 12227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12228 | *) ac_try_echo=$ac_try;; |
| 12229 | esac |
| 12230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12231 | (eval "$ac_try") 2>&5 |
| 12232 | ac_status=$? |
| 12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12234 | (exit $ac_status); }; }; then |
| 12235 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12236 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12237 | echo "$as_me: failed program was:" >&5 |
| 12238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12239 | |
| 12240 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12241 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12242 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12243 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12244 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12246 | fi |
| 12247 | |
| 12248 | if test -z "$llvm_cv_gnu_make_command" |
| 12249 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12250 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12251 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12252 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12253 | fi |
| 12254 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12255 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12256 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12258 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12259 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12260 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 12261 | |
| 12262 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 12263 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12264 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 12265 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12266 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12268 | |
| 12269 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12270 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12271 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12273 | else |
| 12274 | ac_check_lib_save_LIBS=$LIBS |
| 12275 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12276 | cat >conftest.$ac_ext <<_ACEOF |
| 12277 | /* confdefs.h. */ |
| 12278 | _ACEOF |
| 12279 | cat confdefs.h >>conftest.$ac_ext |
| 12280 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12281 | /* end confdefs.h. */ |
| 12282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12283 | /* Override any GCC internal prototype to avoid an error. |
| 12284 | Use char because int might match the return type of a GCC |
| 12285 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12286 | #ifdef __cplusplus |
| 12287 | extern "C" |
| 12288 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12289 | char sin (); |
| 12290 | int |
| 12291 | main () |
| 12292 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12293 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12294 | ; |
| 12295 | return 0; |
| 12296 | } |
| 12297 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12299 | if { (ac_try="$ac_link" |
| 12300 | case "(($ac_try" in |
| 12301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12302 | *) ac_try_echo=$ac_try;; |
| 12303 | esac |
| 12304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12305 | (eval "$ac_link") 2>conftest.er1 |
| 12306 | ac_status=$? |
| 12307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12308 | rm -f conftest.er1 |
| 12309 | cat conftest.err >&5 |
| 12310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12311 | (exit $ac_status); } && |
| 12312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12313 | { (case "(($ac_try" in |
| 12314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12315 | *) ac_try_echo=$ac_try;; |
| 12316 | esac |
| 12317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12318 | (eval "$ac_try") 2>&5 |
| 12319 | ac_status=$? |
| 12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12321 | (exit $ac_status); }; } && |
| 12322 | { ac_try='test -s conftest$ac_exeext' |
| 12323 | { (case "(($ac_try" in |
| 12324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12325 | *) ac_try_echo=$ac_try;; |
| 12326 | esac |
| 12327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12328 | (eval "$ac_try") 2>&5 |
| 12329 | ac_status=$? |
| 12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12331 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12332 | ac_cv_lib_m_sin=yes |
| 12333 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12334 | echo "$as_me: failed program was:" >&5 |
| 12335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12336 | |
| 12337 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12339 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12340 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12341 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12342 | LIBS=$ac_check_lib_save_LIBS |
| 12343 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12344 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12345 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12346 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12347 | cat >>confdefs.h <<_ACEOF |
| 12348 | #define HAVE_LIBM 1 |
| 12349 | _ACEOF |
| 12350 | |
| 12351 | LIBS="-lm $LIBS" |
| 12352 | |
| 12353 | fi |
| 12354 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12355 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12356 | |
| 12357 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12358 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12359 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12361 | else |
| 12362 | ac_check_lib_save_LIBS=$LIBS |
| 12363 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12364 | cat >conftest.$ac_ext <<_ACEOF |
| 12365 | /* confdefs.h. */ |
| 12366 | _ACEOF |
| 12367 | cat confdefs.h >>conftest.$ac_ext |
| 12368 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12369 | /* end confdefs.h. */ |
| 12370 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12371 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12372 | int |
| 12373 | main () |
| 12374 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12375 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12376 | ; |
| 12377 | return 0; |
| 12378 | } |
| 12379 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12381 | if { (ac_try="$ac_link" |
| 12382 | case "(($ac_try" in |
| 12383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12384 | *) ac_try_echo=$ac_try;; |
| 12385 | esac |
| 12386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12387 | (eval "$ac_link") 2>conftest.er1 |
| 12388 | ac_status=$? |
| 12389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12390 | rm -f conftest.er1 |
| 12391 | cat conftest.err >&5 |
| 12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12393 | (exit $ac_status); } && |
| 12394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12395 | { (case "(($ac_try" in |
| 12396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12397 | *) ac_try_echo=$ac_try;; |
| 12398 | esac |
| 12399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12400 | (eval "$ac_try") 2>&5 |
| 12401 | ac_status=$? |
| 12402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12403 | (exit $ac_status); }; } && |
| 12404 | { ac_try='test -s conftest$ac_exeext' |
| 12405 | { (case "(($ac_try" in |
| 12406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12407 | *) ac_try_echo=$ac_try;; |
| 12408 | esac |
| 12409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12410 | (eval "$ac_try") 2>&5 |
| 12411 | ac_status=$? |
| 12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12413 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12414 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12415 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12416 | echo "$as_me: failed program was:" >&5 |
| 12417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12418 | |
| 12419 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12420 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12421 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12422 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12423 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12424 | LIBS=$ac_check_lib_save_LIBS |
| 12425 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12426 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12427 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12428 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12429 | cat >>confdefs.h <<_ACEOF |
| 12430 | #define HAVE_LIBIMAGEHLP 1 |
| 12431 | _ACEOF |
| 12432 | |
| 12433 | LIBS="-limagehlp $LIBS" |
| 12434 | |
| 12435 | fi |
| 12436 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12437 | |
| 12438 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12439 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12440 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12442 | else |
| 12443 | ac_check_lib_save_LIBS=$LIBS |
| 12444 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12445 | cat >conftest.$ac_ext <<_ACEOF |
| 12446 | /* confdefs.h. */ |
| 12447 | _ACEOF |
| 12448 | cat confdefs.h >>conftest.$ac_ext |
| 12449 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12450 | /* end confdefs.h. */ |
| 12451 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12452 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12453 | int |
| 12454 | main () |
| 12455 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12456 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12457 | ; |
| 12458 | return 0; |
| 12459 | } |
| 12460 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12461 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12462 | if { (ac_try="$ac_link" |
| 12463 | case "(($ac_try" in |
| 12464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12465 | *) ac_try_echo=$ac_try;; |
| 12466 | esac |
| 12467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12468 | (eval "$ac_link") 2>conftest.er1 |
| 12469 | ac_status=$? |
| 12470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12471 | rm -f conftest.er1 |
| 12472 | cat conftest.err >&5 |
| 12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12474 | (exit $ac_status); } && |
| 12475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12476 | { (case "(($ac_try" in |
| 12477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12478 | *) ac_try_echo=$ac_try;; |
| 12479 | esac |
| 12480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12481 | (eval "$ac_try") 2>&5 |
| 12482 | ac_status=$? |
| 12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12484 | (exit $ac_status); }; } && |
| 12485 | { ac_try='test -s conftest$ac_exeext' |
| 12486 | { (case "(($ac_try" in |
| 12487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12488 | *) ac_try_echo=$ac_try;; |
| 12489 | esac |
| 12490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12491 | (eval "$ac_try") 2>&5 |
| 12492 | ac_status=$? |
| 12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12494 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12495 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12497 | echo "$as_me: failed program was:" >&5 |
| 12498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12499 | |
| 12500 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12501 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12502 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12503 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12504 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12505 | LIBS=$ac_check_lib_save_LIBS |
| 12506 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12507 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12508 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12509 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12510 | cat >>confdefs.h <<_ACEOF |
| 12511 | #define HAVE_LIBPSAPI 1 |
| 12512 | _ACEOF |
| 12513 | |
| 12514 | LIBS="-lpsapi $LIBS" |
| 12515 | |
| 12516 | fi |
| 12517 | |
| 12518 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12519 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12520 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12521 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12522 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12524 | else |
| 12525 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12526 | cat >conftest.$ac_ext <<_ACEOF |
| 12527 | /* confdefs.h. */ |
| 12528 | _ACEOF |
| 12529 | cat confdefs.h >>conftest.$ac_ext |
| 12530 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12531 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12533 | /* Override any GCC internal prototype to avoid an error. |
| 12534 | Use char because int might match the return type of a GCC |
| 12535 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12536 | #ifdef __cplusplus |
| 12537 | extern "C" |
| 12538 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12539 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12540 | int |
| 12541 | main () |
| 12542 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12543 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12544 | ; |
| 12545 | return 0; |
| 12546 | } |
| 12547 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12548 | for ac_lib in '' dl; do |
| 12549 | if test -z "$ac_lib"; then |
| 12550 | ac_res="none required" |
| 12551 | else |
| 12552 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12553 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12555 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12556 | if { (ac_try="$ac_link" |
| 12557 | case "(($ac_try" in |
| 12558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12559 | *) ac_try_echo=$ac_try;; |
| 12560 | esac |
| 12561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12562 | (eval "$ac_link") 2>conftest.er1 |
| 12563 | ac_status=$? |
| 12564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12565 | rm -f conftest.er1 |
| 12566 | cat conftest.err >&5 |
| 12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12568 | (exit $ac_status); } && |
| 12569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12570 | { (case "(($ac_try" in |
| 12571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12572 | *) ac_try_echo=$ac_try;; |
| 12573 | esac |
| 12574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12575 | (eval "$ac_try") 2>&5 |
| 12576 | ac_status=$? |
| 12577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12578 | (exit $ac_status); }; } && |
| 12579 | { ac_try='test -s conftest$ac_exeext' |
| 12580 | { (case "(($ac_try" in |
| 12581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12582 | *) ac_try_echo=$ac_try;; |
| 12583 | esac |
| 12584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12585 | (eval "$ac_try") 2>&5 |
| 12586 | ac_status=$? |
| 12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12588 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12589 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12590 | else |
| 12591 | echo "$as_me: failed program was:" >&5 |
| 12592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12593 | |
| 12594 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12595 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12596 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12597 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12598 | conftest$ac_exeext |
| 12599 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12600 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12602 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12603 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12604 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12605 | else |
| 12606 | ac_cv_search_dlopen=no |
| 12607 | fi |
| 12608 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12609 | LIBS=$ac_func_search_save_LIBS |
| 12610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12611 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12612 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12613 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12614 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12615 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12616 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12617 | cat >>confdefs.h <<\_ACEOF |
| 12618 | #define HAVE_DLOPEN 1 |
| 12619 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12620 | |
| 12621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12622 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12623 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12624 | fi |
| 12625 | |
| 12626 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12627 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12628 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12629 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12630 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12632 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12633 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12634 | cat >conftest.$ac_ext <<_ACEOF |
| 12635 | /* confdefs.h. */ |
| 12636 | _ACEOF |
| 12637 | cat confdefs.h >>conftest.$ac_ext |
| 12638 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12639 | /* end confdefs.h. */ |
| 12640 | |
| 12641 | /* Override any GCC internal prototype to avoid an error. |
| 12642 | Use char because int might match the return type of a GCC |
| 12643 | builtin and then its argument prototype would still apply. */ |
| 12644 | #ifdef __cplusplus |
| 12645 | extern "C" |
| 12646 | #endif |
| 12647 | char ffi_call (); |
| 12648 | int |
| 12649 | main () |
| 12650 | { |
| 12651 | return ffi_call (); |
| 12652 | ; |
| 12653 | return 0; |
| 12654 | } |
| 12655 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12656 | for ac_lib in '' ffi; do |
| 12657 | if test -z "$ac_lib"; then |
| 12658 | ac_res="none required" |
| 12659 | else |
| 12660 | ac_res=-l$ac_lib |
| 12661 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12663 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12664 | if { (ac_try="$ac_link" |
| 12665 | case "(($ac_try" in |
| 12666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12667 | *) ac_try_echo=$ac_try;; |
| 12668 | esac |
| 12669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12670 | (eval "$ac_link") 2>conftest.er1 |
| 12671 | ac_status=$? |
| 12672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12673 | rm -f conftest.er1 |
| 12674 | cat conftest.err >&5 |
| 12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12676 | (exit $ac_status); } && |
| 12677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12678 | { (case "(($ac_try" in |
| 12679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12680 | *) ac_try_echo=$ac_try;; |
| 12681 | esac |
| 12682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12683 | (eval "$ac_try") 2>&5 |
| 12684 | ac_status=$? |
| 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12686 | (exit $ac_status); }; } && |
| 12687 | { ac_try='test -s conftest$ac_exeext' |
| 12688 | { (case "(($ac_try" in |
| 12689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12690 | *) ac_try_echo=$ac_try;; |
| 12691 | esac |
| 12692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12693 | (eval "$ac_try") 2>&5 |
| 12694 | ac_status=$? |
| 12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12696 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12697 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12698 | else |
| 12699 | echo "$as_me: failed program was:" >&5 |
| 12700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12701 | |
| 12702 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12703 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12704 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12705 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12706 | conftest$ac_exeext |
| 12707 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12708 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12709 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12710 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12711 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12712 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12713 | else |
| 12714 | ac_cv_search_ffi_call=no |
| 12715 | fi |
| 12716 | rm conftest.$ac_ext |
| 12717 | LIBS=$ac_func_search_save_LIBS |
| 12718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12719 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12720 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12721 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12722 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12723 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12724 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12725 | cat >>confdefs.h <<\_ACEOF |
| 12726 | #define HAVE_FFI_CALL 1 |
| 12727 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12728 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12729 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12730 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12731 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12732 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12733 | fi |
| 12734 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12735 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12736 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12737 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12738 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12739 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12741 | else |
| 12742 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12743 | cat >conftest.$ac_ext <<_ACEOF |
| 12744 | /* confdefs.h. */ |
| 12745 | _ACEOF |
| 12746 | cat confdefs.h >>conftest.$ac_ext |
| 12747 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12748 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12750 | /* Override any GCC internal prototype to avoid an error. |
| 12751 | Use char because int might match the return type of a GCC |
| 12752 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12753 | #ifdef __cplusplus |
| 12754 | extern "C" |
| 12755 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12756 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12757 | int |
| 12758 | main () |
| 12759 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12760 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12761 | ; |
| 12762 | return 0; |
| 12763 | } |
| 12764 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12765 | for ac_lib in '' malloc; do |
| 12766 | if test -z "$ac_lib"; then |
| 12767 | ac_res="none required" |
| 12768 | else |
| 12769 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12770 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12771 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12773 | if { (ac_try="$ac_link" |
| 12774 | case "(($ac_try" in |
| 12775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12776 | *) ac_try_echo=$ac_try;; |
| 12777 | esac |
| 12778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12779 | (eval "$ac_link") 2>conftest.er1 |
| 12780 | ac_status=$? |
| 12781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12782 | rm -f conftest.er1 |
| 12783 | cat conftest.err >&5 |
| 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12785 | (exit $ac_status); } && |
| 12786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12787 | { (case "(($ac_try" in |
| 12788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12789 | *) ac_try_echo=$ac_try;; |
| 12790 | esac |
| 12791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12792 | (eval "$ac_try") 2>&5 |
| 12793 | ac_status=$? |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12795 | (exit $ac_status); }; } && |
| 12796 | { ac_try='test -s conftest$ac_exeext' |
| 12797 | { (case "(($ac_try" in |
| 12798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12799 | *) ac_try_echo=$ac_try;; |
| 12800 | esac |
| 12801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12802 | (eval "$ac_try") 2>&5 |
| 12803 | ac_status=$? |
| 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12805 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12807 | else |
| 12808 | echo "$as_me: failed program was:" >&5 |
| 12809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12810 | |
| 12811 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12812 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12813 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12814 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12815 | conftest$ac_exeext |
| 12816 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12817 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12818 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12819 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12820 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12821 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12822 | else |
| 12823 | ac_cv_search_mallinfo=no |
| 12824 | fi |
| 12825 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12826 | LIBS=$ac_func_search_save_LIBS |
| 12827 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12828 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12829 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12830 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12831 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12832 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12833 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12834 | cat >>confdefs.h <<\_ACEOF |
| 12835 | #define HAVE_MALLINFO 1 |
| 12836 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12837 | |
| 12838 | fi |
| 12839 | |
| 12840 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12841 | 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] | 12842 | |
| 12843 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12844 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12845 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12847 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12848 | ac_check_lib_save_LIBS=$LIBS |
| 12849 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12850 | cat >conftest.$ac_ext <<_ACEOF |
| 12851 | /* confdefs.h. */ |
| 12852 | _ACEOF |
| 12853 | cat confdefs.h >>conftest.$ac_ext |
| 12854 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12855 | /* end confdefs.h. */ |
| 12856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12857 | /* Override any GCC internal prototype to avoid an error. |
| 12858 | Use char because int might match the return type of a GCC |
| 12859 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12860 | #ifdef __cplusplus |
| 12861 | extern "C" |
| 12862 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12863 | char pthread_mutex_init (); |
| 12864 | int |
| 12865 | main () |
| 12866 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12867 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12868 | ; |
| 12869 | return 0; |
| 12870 | } |
| 12871 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12873 | if { (ac_try="$ac_link" |
| 12874 | case "(($ac_try" in |
| 12875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12876 | *) ac_try_echo=$ac_try;; |
| 12877 | esac |
| 12878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12879 | (eval "$ac_link") 2>conftest.er1 |
| 12880 | ac_status=$? |
| 12881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12882 | rm -f conftest.er1 |
| 12883 | cat conftest.err >&5 |
| 12884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12885 | (exit $ac_status); } && |
| 12886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12887 | { (case "(($ac_try" in |
| 12888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12889 | *) ac_try_echo=$ac_try;; |
| 12890 | esac |
| 12891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12892 | (eval "$ac_try") 2>&5 |
| 12893 | ac_status=$? |
| 12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12895 | (exit $ac_status); }; } && |
| 12896 | { ac_try='test -s conftest$ac_exeext' |
| 12897 | { (case "(($ac_try" in |
| 12898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12899 | *) ac_try_echo=$ac_try;; |
| 12900 | esac |
| 12901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12902 | (eval "$ac_try") 2>&5 |
| 12903 | ac_status=$? |
| 12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12905 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12906 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12907 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12908 | echo "$as_me: failed program was:" >&5 |
| 12909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12910 | |
| 12911 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12913 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12914 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12915 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12916 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12917 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12918 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12919 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12920 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12921 | cat >>confdefs.h <<_ACEOF |
| 12922 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12923 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12924 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12925 | LIBS="-lpthread $LIBS" |
| 12926 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12927 | fi |
| 12928 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12929 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12930 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12931 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12933 | else |
| 12934 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12935 | cat >conftest.$ac_ext <<_ACEOF |
| 12936 | /* confdefs.h. */ |
| 12937 | _ACEOF |
| 12938 | cat confdefs.h >>conftest.$ac_ext |
| 12939 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12940 | /* end confdefs.h. */ |
| 12941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12942 | /* Override any GCC internal prototype to avoid an error. |
| 12943 | Use char because int might match the return type of a GCC |
| 12944 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12945 | #ifdef __cplusplus |
| 12946 | extern "C" |
| 12947 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12948 | char pthread_mutex_lock (); |
| 12949 | int |
| 12950 | main () |
| 12951 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12953 | ; |
| 12954 | return 0; |
| 12955 | } |
| 12956 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12957 | for ac_lib in '' pthread; do |
| 12958 | if test -z "$ac_lib"; then |
| 12959 | ac_res="none required" |
| 12960 | else |
| 12961 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12962 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12963 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12965 | if { (ac_try="$ac_link" |
| 12966 | case "(($ac_try" in |
| 12967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12968 | *) ac_try_echo=$ac_try;; |
| 12969 | esac |
| 12970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12971 | (eval "$ac_link") 2>conftest.er1 |
| 12972 | ac_status=$? |
| 12973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12974 | rm -f conftest.er1 |
| 12975 | cat conftest.err >&5 |
| 12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12977 | (exit $ac_status); } && |
| 12978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12979 | { (case "(($ac_try" in |
| 12980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12981 | *) ac_try_echo=$ac_try;; |
| 12982 | esac |
| 12983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12984 | (eval "$ac_try") 2>&5 |
| 12985 | ac_status=$? |
| 12986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12987 | (exit $ac_status); }; } && |
| 12988 | { ac_try='test -s conftest$ac_exeext' |
| 12989 | { (case "(($ac_try" in |
| 12990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12991 | *) ac_try_echo=$ac_try;; |
| 12992 | esac |
| 12993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12994 | (eval "$ac_try") 2>&5 |
| 12995 | ac_status=$? |
| 12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12997 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12998 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12999 | else |
| 13000 | echo "$as_me: failed program was:" >&5 |
| 13001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13002 | |
| 13003 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13004 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13005 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13006 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13007 | conftest$ac_exeext |
| 13008 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13009 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13011 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13012 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13013 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13014 | else |
| 13015 | ac_cv_search_pthread_mutex_lock=no |
| 13016 | fi |
| 13017 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13018 | LIBS=$ac_func_search_save_LIBS |
| 13019 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13020 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13021 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13022 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13023 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13024 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13025 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13026 | cat >>confdefs.h <<\_ACEOF |
| 13027 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13028 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13029 | |
| 13030 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13032 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13033 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13034 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13036 | else |
| 13037 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13038 | cat >conftest.$ac_ext <<_ACEOF |
| 13039 | /* confdefs.h. */ |
| 13040 | _ACEOF |
| 13041 | cat confdefs.h >>conftest.$ac_ext |
| 13042 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13043 | /* end confdefs.h. */ |
| 13044 | |
| 13045 | /* Override any GCC internal prototype to avoid an error. |
| 13046 | Use char because int might match the return type of a GCC |
| 13047 | builtin and then its argument prototype would still apply. */ |
| 13048 | #ifdef __cplusplus |
| 13049 | extern "C" |
| 13050 | #endif |
| 13051 | char pthread_rwlock_init (); |
| 13052 | int |
| 13053 | main () |
| 13054 | { |
| 13055 | return pthread_rwlock_init (); |
| 13056 | ; |
| 13057 | return 0; |
| 13058 | } |
| 13059 | _ACEOF |
| 13060 | for ac_lib in '' pthread; do |
| 13061 | if test -z "$ac_lib"; then |
| 13062 | ac_res="none required" |
| 13063 | else |
| 13064 | ac_res=-l$ac_lib |
| 13065 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13066 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13068 | if { (ac_try="$ac_link" |
| 13069 | case "(($ac_try" in |
| 13070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13071 | *) ac_try_echo=$ac_try;; |
| 13072 | esac |
| 13073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13074 | (eval "$ac_link") 2>conftest.er1 |
| 13075 | ac_status=$? |
| 13076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13077 | rm -f conftest.er1 |
| 13078 | cat conftest.err >&5 |
| 13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13080 | (exit $ac_status); } && |
| 13081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13082 | { (case "(($ac_try" in |
| 13083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13084 | *) ac_try_echo=$ac_try;; |
| 13085 | esac |
| 13086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13087 | (eval "$ac_try") 2>&5 |
| 13088 | ac_status=$? |
| 13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13090 | (exit $ac_status); }; } && |
| 13091 | { ac_try='test -s conftest$ac_exeext' |
| 13092 | { (case "(($ac_try" in |
| 13093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13094 | *) ac_try_echo=$ac_try;; |
| 13095 | esac |
| 13096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13097 | (eval "$ac_try") 2>&5 |
| 13098 | ac_status=$? |
| 13099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13100 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13101 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13102 | else |
| 13103 | echo "$as_me: failed program was:" >&5 |
| 13104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13105 | |
| 13106 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13107 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13108 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13109 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13110 | conftest$ac_exeext |
| 13111 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13112 | break |
| 13113 | fi |
| 13114 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13115 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13116 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13117 | else |
| 13118 | ac_cv_search_pthread_rwlock_init=no |
| 13119 | fi |
| 13120 | rm conftest.$ac_ext |
| 13121 | LIBS=$ac_func_search_save_LIBS |
| 13122 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13123 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13124 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13125 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13126 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13127 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13129 | cat >>confdefs.h <<\_ACEOF |
| 13130 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13131 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13132 | |
| 13133 | fi |
| 13134 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13135 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13136 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13137 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13139 | else |
| 13140 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13141 | cat >conftest.$ac_ext <<_ACEOF |
| 13142 | /* confdefs.h. */ |
| 13143 | _ACEOF |
| 13144 | cat confdefs.h >>conftest.$ac_ext |
| 13145 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13146 | /* end confdefs.h. */ |
| 13147 | |
| 13148 | /* Override any GCC internal prototype to avoid an error. |
| 13149 | Use char because int might match the return type of a GCC |
| 13150 | builtin and then its argument prototype would still apply. */ |
| 13151 | #ifdef __cplusplus |
| 13152 | extern "C" |
| 13153 | #endif |
| 13154 | char pthread_getspecific (); |
| 13155 | int |
| 13156 | main () |
| 13157 | { |
| 13158 | return pthread_getspecific (); |
| 13159 | ; |
| 13160 | return 0; |
| 13161 | } |
| 13162 | _ACEOF |
| 13163 | for ac_lib in '' pthread; do |
| 13164 | if test -z "$ac_lib"; then |
| 13165 | ac_res="none required" |
| 13166 | else |
| 13167 | ac_res=-l$ac_lib |
| 13168 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13169 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13171 | if { (ac_try="$ac_link" |
| 13172 | case "(($ac_try" in |
| 13173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13174 | *) ac_try_echo=$ac_try;; |
| 13175 | esac |
| 13176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13177 | (eval "$ac_link") 2>conftest.er1 |
| 13178 | ac_status=$? |
| 13179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13180 | rm -f conftest.er1 |
| 13181 | cat conftest.err >&5 |
| 13182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13183 | (exit $ac_status); } && |
| 13184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13185 | { (case "(($ac_try" in |
| 13186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13187 | *) ac_try_echo=$ac_try;; |
| 13188 | esac |
| 13189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13190 | (eval "$ac_try") 2>&5 |
| 13191 | ac_status=$? |
| 13192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13193 | (exit $ac_status); }; } && |
| 13194 | { ac_try='test -s conftest$ac_exeext' |
| 13195 | { (case "(($ac_try" in |
| 13196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13197 | *) ac_try_echo=$ac_try;; |
| 13198 | esac |
| 13199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13200 | (eval "$ac_try") 2>&5 |
| 13201 | ac_status=$? |
| 13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13203 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13204 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13205 | else |
| 13206 | echo "$as_me: failed program was:" >&5 |
| 13207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13208 | |
| 13209 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13210 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13211 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13212 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13213 | conftest$ac_exeext |
| 13214 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13215 | break |
| 13216 | fi |
| 13217 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13218 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13219 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13220 | else |
| 13221 | ac_cv_search_pthread_getspecific=no |
| 13222 | fi |
| 13223 | rm conftest.$ac_ext |
| 13224 | LIBS=$ac_func_search_save_LIBS |
| 13225 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13226 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13227 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13228 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13229 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13230 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13231 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13232 | cat >>confdefs.h <<\_ACEOF |
| 13233 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13234 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13235 | |
| 13236 | fi |
| 13237 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13238 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13239 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13240 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13241 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13242 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13243 | withval=$with_udis86; |
| 13244 | USE_UDIS86=1 |
| 13245 | |
| 13246 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13247 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13248 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13249 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | |
| 13251 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13252 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13253 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13255 | else |
| 13256 | ac_check_lib_save_LIBS=$LIBS |
| 13257 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13258 | cat >conftest.$ac_ext <<_ACEOF |
| 13259 | /* confdefs.h. */ |
| 13260 | _ACEOF |
| 13261 | cat confdefs.h >>conftest.$ac_ext |
| 13262 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13263 | /* end confdefs.h. */ |
| 13264 | |
| 13265 | /* Override any GCC internal prototype to avoid an error. |
| 13266 | Use char because int might match the return type of a GCC |
| 13267 | builtin and then its argument prototype would still apply. */ |
| 13268 | #ifdef __cplusplus |
| 13269 | extern "C" |
| 13270 | #endif |
| 13271 | char ud_init (); |
| 13272 | int |
| 13273 | main () |
| 13274 | { |
| 13275 | return ud_init (); |
| 13276 | ; |
| 13277 | return 0; |
| 13278 | } |
| 13279 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13281 | if { (ac_try="$ac_link" |
| 13282 | case "(($ac_try" in |
| 13283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13284 | *) ac_try_echo=$ac_try;; |
| 13285 | esac |
| 13286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13287 | (eval "$ac_link") 2>conftest.er1 |
| 13288 | ac_status=$? |
| 13289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13290 | rm -f conftest.er1 |
| 13291 | cat conftest.err >&5 |
| 13292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13293 | (exit $ac_status); } && |
| 13294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13295 | { (case "(($ac_try" in |
| 13296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13297 | *) ac_try_echo=$ac_try;; |
| 13298 | esac |
| 13299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13300 | (eval "$ac_try") 2>&5 |
| 13301 | ac_status=$? |
| 13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13303 | (exit $ac_status); }; } && |
| 13304 | { ac_try='test -s conftest$ac_exeext' |
| 13305 | { (case "(($ac_try" in |
| 13306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13307 | *) ac_try_echo=$ac_try;; |
| 13308 | esac |
| 13309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13310 | (eval "$ac_try") 2>&5 |
| 13311 | ac_status=$? |
| 13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13313 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13314 | ac_cv_lib_udis86_ud_init=yes |
| 13315 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13316 | echo "$as_me: failed program was:" >&5 |
| 13317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13318 | |
| 13319 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13320 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13321 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13322 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13323 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13324 | LIBS=$ac_check_lib_save_LIBS |
| 13325 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13326 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13327 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13328 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13329 | cat >>confdefs.h <<_ACEOF |
| 13330 | #define HAVE_LIBUDIS86 1 |
| 13331 | _ACEOF |
| 13332 | |
| 13333 | LIBS="-ludis86 $LIBS" |
| 13334 | |
| 13335 | else |
| 13336 | |
| 13337 | echo "Error! You need to have libudis86 around." |
| 13338 | exit -1 |
| 13339 | |
| 13340 | fi |
| 13341 | |
| 13342 | |
| 13343 | else |
| 13344 | USE_UDIS86=0 |
| 13345 | |
| 13346 | fi |
| 13347 | |
| 13348 | |
| 13349 | cat >>confdefs.h <<_ACEOF |
| 13350 | #define USE_UDIS86 $USE_UDIS86 |
| 13351 | _ACEOF |
| 13352 | |
| 13353 | |
| 13354 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13355 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13356 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13357 | withval=$with_oprofile; |
| 13358 | USE_OPROFILE=1 |
| 13359 | |
| 13360 | case "$withval" in |
| 13361 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13362 | no) llvm_cv_oppath= |
| 13363 | USE_OPROFILE=0 |
| 13364 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13365 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 13366 | CPPFLAGS="-I${withval}/include";; |
| 13367 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13368 | if test -n "$llvm_cv_oppath" ; then |
| 13369 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13370 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 13371 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13372 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13374 | else |
| 13375 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13376 | cat >conftest.$ac_ext <<_ACEOF |
| 13377 | /* confdefs.h. */ |
| 13378 | _ACEOF |
| 13379 | cat confdefs.h >>conftest.$ac_ext |
| 13380 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13381 | /* end confdefs.h. */ |
| 13382 | |
| 13383 | /* Override any GCC internal prototype to avoid an error. |
| 13384 | Use char because int might match the return type of a GCC |
| 13385 | builtin and then its argument prototype would still apply. */ |
| 13386 | #ifdef __cplusplus |
| 13387 | extern "C" |
| 13388 | #endif |
| 13389 | char bfd_init (); |
| 13390 | int |
| 13391 | main () |
| 13392 | { |
| 13393 | return bfd_init (); |
| 13394 | ; |
| 13395 | return 0; |
| 13396 | } |
| 13397 | _ACEOF |
| 13398 | for ac_lib in '' bfd; do |
| 13399 | if test -z "$ac_lib"; then |
| 13400 | ac_res="none required" |
| 13401 | else |
| 13402 | ac_res=-l$ac_lib |
| 13403 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13404 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13406 | if { (ac_try="$ac_link" |
| 13407 | case "(($ac_try" in |
| 13408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13409 | *) ac_try_echo=$ac_try;; |
| 13410 | esac |
| 13411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13412 | (eval "$ac_link") 2>conftest.er1 |
| 13413 | ac_status=$? |
| 13414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13415 | rm -f conftest.er1 |
| 13416 | cat conftest.err >&5 |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); } && |
| 13419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13420 | { (case "(($ac_try" in |
| 13421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13422 | *) ac_try_echo=$ac_try;; |
| 13423 | esac |
| 13424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13425 | (eval "$ac_try") 2>&5 |
| 13426 | ac_status=$? |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); }; } && |
| 13429 | { ac_try='test -s conftest$ac_exeext' |
| 13430 | { (case "(($ac_try" in |
| 13431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13432 | *) ac_try_echo=$ac_try;; |
| 13433 | esac |
| 13434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13435 | (eval "$ac_try") 2>&5 |
| 13436 | ac_status=$? |
| 13437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13438 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13439 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13440 | else |
| 13441 | echo "$as_me: failed program was:" >&5 |
| 13442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13443 | |
| 13444 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13446 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13447 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13448 | conftest$ac_exeext |
| 13449 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13450 | break |
| 13451 | fi |
| 13452 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13453 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13454 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13455 | else |
| 13456 | ac_cv_search_bfd_init=no |
| 13457 | fi |
| 13458 | rm conftest.$ac_ext |
| 13459 | LIBS=$ac_func_search_save_LIBS |
| 13460 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13461 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 13462 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13463 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13464 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13465 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13466 | |
| 13467 | fi |
| 13468 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13469 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 13470 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13471 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13473 | else |
| 13474 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13475 | cat >conftest.$ac_ext <<_ACEOF |
| 13476 | /* confdefs.h. */ |
| 13477 | _ACEOF |
| 13478 | cat confdefs.h >>conftest.$ac_ext |
| 13479 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13480 | /* end confdefs.h. */ |
| 13481 | |
| 13482 | /* Override any GCC internal prototype to avoid an error. |
| 13483 | Use char because int might match the return type of a GCC |
| 13484 | builtin and then its argument prototype would still apply. */ |
| 13485 | #ifdef __cplusplus |
| 13486 | extern "C" |
| 13487 | #endif |
| 13488 | char op_open_agent (); |
| 13489 | int |
| 13490 | main () |
| 13491 | { |
| 13492 | return op_open_agent (); |
| 13493 | ; |
| 13494 | return 0; |
| 13495 | } |
| 13496 | _ACEOF |
| 13497 | for ac_lib in '' opagent; do |
| 13498 | if test -z "$ac_lib"; then |
| 13499 | ac_res="none required" |
| 13500 | else |
| 13501 | ac_res=-l$ac_lib |
| 13502 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13504 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13505 | if { (ac_try="$ac_link" |
| 13506 | case "(($ac_try" in |
| 13507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13508 | *) ac_try_echo=$ac_try;; |
| 13509 | esac |
| 13510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13511 | (eval "$ac_link") 2>conftest.er1 |
| 13512 | ac_status=$? |
| 13513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13514 | rm -f conftest.er1 |
| 13515 | cat conftest.err >&5 |
| 13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13517 | (exit $ac_status); } && |
| 13518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13519 | { (case "(($ac_try" in |
| 13520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13521 | *) ac_try_echo=$ac_try;; |
| 13522 | esac |
| 13523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13524 | (eval "$ac_try") 2>&5 |
| 13525 | ac_status=$? |
| 13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13527 | (exit $ac_status); }; } && |
| 13528 | { ac_try='test -s conftest$ac_exeext' |
| 13529 | { (case "(($ac_try" in |
| 13530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13531 | *) ac_try_echo=$ac_try;; |
| 13532 | esac |
| 13533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13534 | (eval "$ac_try") 2>&5 |
| 13535 | ac_status=$? |
| 13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13537 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13538 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13539 | else |
| 13540 | echo "$as_me: failed program was:" >&5 |
| 13541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13542 | |
| 13543 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13544 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13545 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13546 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13547 | conftest$ac_exeext |
| 13548 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13549 | break |
| 13550 | fi |
| 13551 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13552 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13553 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13554 | else |
| 13555 | ac_cv_search_op_open_agent=no |
| 13556 | fi |
| 13557 | rm conftest.$ac_ext |
| 13558 | LIBS=$ac_func_search_save_LIBS |
| 13559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13560 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13561 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13562 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13563 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13564 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13565 | |
| 13566 | else |
| 13567 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13568 | echo "Error! You need to have libopagent around." |
| 13569 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13570 | |
| 13571 | fi |
| 13572 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13573 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13574 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13575 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13576 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13578 | fi |
| 13579 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13580 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13581 | else |
| 13582 | # Is the header compilable? |
| 13583 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13584 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13585 | cat >conftest.$ac_ext <<_ACEOF |
| 13586 | /* confdefs.h. */ |
| 13587 | _ACEOF |
| 13588 | cat confdefs.h >>conftest.$ac_ext |
| 13589 | cat >>conftest.$ac_ext <<_ACEOF |
| 13590 | /* end confdefs.h. */ |
| 13591 | $ac_includes_default |
| 13592 | #include <opagent.h> |
| 13593 | _ACEOF |
| 13594 | rm -f conftest.$ac_objext |
| 13595 | if { (ac_try="$ac_compile" |
| 13596 | case "(($ac_try" in |
| 13597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13598 | *) ac_try_echo=$ac_try;; |
| 13599 | esac |
| 13600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13601 | (eval "$ac_compile") 2>conftest.er1 |
| 13602 | ac_status=$? |
| 13603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13604 | rm -f conftest.er1 |
| 13605 | cat conftest.err >&5 |
| 13606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13607 | (exit $ac_status); } && |
| 13608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13609 | { (case "(($ac_try" in |
| 13610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13611 | *) ac_try_echo=$ac_try;; |
| 13612 | esac |
| 13613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13614 | (eval "$ac_try") 2>&5 |
| 13615 | ac_status=$? |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); }; } && |
| 13618 | { ac_try='test -s conftest.$ac_objext' |
| 13619 | { (case "(($ac_try" in |
| 13620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13621 | *) ac_try_echo=$ac_try;; |
| 13622 | esac |
| 13623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13624 | (eval "$ac_try") 2>&5 |
| 13625 | ac_status=$? |
| 13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13627 | (exit $ac_status); }; }; then |
| 13628 | ac_header_compiler=yes |
| 13629 | else |
| 13630 | echo "$as_me: failed program was:" >&5 |
| 13631 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13632 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13633 | ac_header_compiler=no |
| 13634 | fi |
| 13635 | |
| 13636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13637 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13638 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13639 | |
| 13640 | # Is the header present? |
| 13641 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13642 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13643 | cat >conftest.$ac_ext <<_ACEOF |
| 13644 | /* confdefs.h. */ |
| 13645 | _ACEOF |
| 13646 | cat confdefs.h >>conftest.$ac_ext |
| 13647 | cat >>conftest.$ac_ext <<_ACEOF |
| 13648 | /* end confdefs.h. */ |
| 13649 | #include <opagent.h> |
| 13650 | _ACEOF |
| 13651 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13652 | case "(($ac_try" in |
| 13653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13654 | *) ac_try_echo=$ac_try;; |
| 13655 | esac |
| 13656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13657 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13658 | ac_status=$? |
| 13659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13660 | rm -f conftest.er1 |
| 13661 | cat conftest.err >&5 |
| 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13663 | (exit $ac_status); } >/dev/null; then |
| 13664 | if test -s conftest.err; then |
| 13665 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13666 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13667 | else |
| 13668 | ac_cpp_err= |
| 13669 | fi |
| 13670 | else |
| 13671 | ac_cpp_err=yes |
| 13672 | fi |
| 13673 | if test -z "$ac_cpp_err"; then |
| 13674 | ac_header_preproc=yes |
| 13675 | else |
| 13676 | echo "$as_me: failed program was:" >&5 |
| 13677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13678 | |
| 13679 | ac_header_preproc=no |
| 13680 | fi |
| 13681 | |
| 13682 | rm -f conftest.err conftest.$ac_ext |
| 13683 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13684 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13685 | |
| 13686 | # So? What about this header? |
| 13687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13688 | yes:no: ) |
| 13689 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13690 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13691 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13692 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13693 | ac_header_preproc=yes |
| 13694 | ;; |
| 13695 | no:yes:* ) |
| 13696 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13697 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13698 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13699 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13700 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13701 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13702 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13703 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13704 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13705 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13706 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13707 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13708 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13709 | ## ------------------------------------ ## |
| 13710 | ## Report this to http://llvm.org/bugs/ ## |
| 13711 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13712 | _ASBOX |
| 13713 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13714 | ;; |
| 13715 | esac |
| 13716 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13717 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13718 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13720 | else |
| 13721 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13722 | fi |
| 13723 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13724 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13725 | |
| 13726 | fi |
| 13727 | if test $ac_cv_header_opagent_h = yes; then |
| 13728 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13729 | else |
| 13730 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13731 | echo "Error! You need to have opagent.h around." |
| 13732 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13733 | |
| 13734 | fi |
| 13735 | |
| 13736 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13737 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13738 | |
| 13739 | else |
| 13740 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13741 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13742 | |
| 13743 | |
| 13744 | fi |
| 13745 | |
| 13746 | |
| 13747 | cat >>confdefs.h <<_ACEOF |
| 13748 | #define USE_OPROFILE $USE_OPROFILE |
| 13749 | _ACEOF |
| 13750 | |
| 13751 | |
| 13752 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13753 | |
| 13754 | |
| 13755 | |
| 13756 | |
| 13757 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13758 | ac_header_dirent=no |
| 13759 | 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] | 13760 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13761 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 13762 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 13763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13765 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13766 | cat >conftest.$ac_ext <<_ACEOF |
| 13767 | /* confdefs.h. */ |
| 13768 | _ACEOF |
| 13769 | cat confdefs.h >>conftest.$ac_ext |
| 13770 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13771 | /* end confdefs.h. */ |
| 13772 | #include <sys/types.h> |
| 13773 | #include <$ac_hdr> |
| 13774 | |
| 13775 | int |
| 13776 | main () |
| 13777 | { |
| 13778 | if ((DIR *) 0) |
| 13779 | return 0; |
| 13780 | ; |
| 13781 | return 0; |
| 13782 | } |
| 13783 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13784 | rm -f conftest.$ac_objext |
| 13785 | if { (ac_try="$ac_compile" |
| 13786 | case "(($ac_try" in |
| 13787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13788 | *) ac_try_echo=$ac_try;; |
| 13789 | esac |
| 13790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13791 | (eval "$ac_compile") 2>conftest.er1 |
| 13792 | ac_status=$? |
| 13793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13794 | rm -f conftest.er1 |
| 13795 | cat conftest.err >&5 |
| 13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && |
| 13798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13799 | { (case "(($ac_try" in |
| 13800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13801 | *) ac_try_echo=$ac_try;; |
| 13802 | esac |
| 13803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13804 | (eval "$ac_try") 2>&5 |
| 13805 | ac_status=$? |
| 13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13807 | (exit $ac_status); }; } && |
| 13808 | { ac_try='test -s conftest.$ac_objext' |
| 13809 | { (case "(($ac_try" in |
| 13810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13811 | *) ac_try_echo=$ac_try;; |
| 13812 | esac |
| 13813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13814 | (eval "$ac_try") 2>&5 |
| 13815 | ac_status=$? |
| 13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13817 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13818 | eval "$as_ac_Header=yes" |
| 13819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13820 | echo "$as_me: failed program was:" >&5 |
| 13821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13822 | |
| 13823 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13824 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13827 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13828 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13830 | echo "${ECHO_T}$ac_res" >&6; } |
| 13831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13832 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13833 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13834 | _ACEOF |
| 13835 | |
| 13836 | ac_header_dirent=$ac_hdr; break |
| 13837 | fi |
| 13838 | |
| 13839 | done |
| 13840 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 13841 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13842 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13843 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13844 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13846 | else |
| 13847 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13848 | cat >conftest.$ac_ext <<_ACEOF |
| 13849 | /* confdefs.h. */ |
| 13850 | _ACEOF |
| 13851 | cat confdefs.h >>conftest.$ac_ext |
| 13852 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13853 | /* end confdefs.h. */ |
| 13854 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13855 | /* Override any GCC internal prototype to avoid an error. |
| 13856 | Use char because int might match the return type of a GCC |
| 13857 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13858 | #ifdef __cplusplus |
| 13859 | extern "C" |
| 13860 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13861 | char opendir (); |
| 13862 | int |
| 13863 | main () |
| 13864 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13865 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13866 | ; |
| 13867 | return 0; |
| 13868 | } |
| 13869 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13870 | for ac_lib in '' dir; do |
| 13871 | if test -z "$ac_lib"; then |
| 13872 | ac_res="none required" |
| 13873 | else |
| 13874 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13875 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13876 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13878 | if { (ac_try="$ac_link" |
| 13879 | case "(($ac_try" in |
| 13880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13881 | *) ac_try_echo=$ac_try;; |
| 13882 | esac |
| 13883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13884 | (eval "$ac_link") 2>conftest.er1 |
| 13885 | ac_status=$? |
| 13886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13887 | rm -f conftest.er1 |
| 13888 | cat conftest.err >&5 |
| 13889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13890 | (exit $ac_status); } && |
| 13891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13892 | { (case "(($ac_try" in |
| 13893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13894 | *) ac_try_echo=$ac_try;; |
| 13895 | esac |
| 13896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13897 | (eval "$ac_try") 2>&5 |
| 13898 | ac_status=$? |
| 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13900 | (exit $ac_status); }; } && |
| 13901 | { ac_try='test -s conftest$ac_exeext' |
| 13902 | { (case "(($ac_try" in |
| 13903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13904 | *) ac_try_echo=$ac_try;; |
| 13905 | esac |
| 13906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13907 | (eval "$ac_try") 2>&5 |
| 13908 | ac_status=$? |
| 13909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13910 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13911 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13912 | else |
| 13913 | echo "$as_me: failed program was:" >&5 |
| 13914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13915 | |
| 13916 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13917 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13918 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13919 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13920 | conftest$ac_exeext |
| 13921 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13922 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13923 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13924 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13925 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13926 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13927 | else |
| 13928 | ac_cv_search_opendir=no |
| 13929 | fi |
| 13930 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13931 | LIBS=$ac_func_search_save_LIBS |
| 13932 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13933 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13934 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13935 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13936 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13937 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13938 | |
| 13939 | fi |
| 13940 | |
| 13941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13942 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13943 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13944 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13946 | else |
| 13947 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13948 | cat >conftest.$ac_ext <<_ACEOF |
| 13949 | /* confdefs.h. */ |
| 13950 | _ACEOF |
| 13951 | cat confdefs.h >>conftest.$ac_ext |
| 13952 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13953 | /* end confdefs.h. */ |
| 13954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13955 | /* Override any GCC internal prototype to avoid an error. |
| 13956 | Use char because int might match the return type of a GCC |
| 13957 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13958 | #ifdef __cplusplus |
| 13959 | extern "C" |
| 13960 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13961 | char opendir (); |
| 13962 | int |
| 13963 | main () |
| 13964 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13965 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13966 | ; |
| 13967 | return 0; |
| 13968 | } |
| 13969 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13970 | for ac_lib in '' x; do |
| 13971 | if test -z "$ac_lib"; then |
| 13972 | ac_res="none required" |
| 13973 | else |
| 13974 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13975 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13976 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13977 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13978 | if { (ac_try="$ac_link" |
| 13979 | case "(($ac_try" in |
| 13980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13981 | *) ac_try_echo=$ac_try;; |
| 13982 | esac |
| 13983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13984 | (eval "$ac_link") 2>conftest.er1 |
| 13985 | ac_status=$? |
| 13986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13987 | rm -f conftest.er1 |
| 13988 | cat conftest.err >&5 |
| 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13990 | (exit $ac_status); } && |
| 13991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13992 | { (case "(($ac_try" in |
| 13993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13994 | *) ac_try_echo=$ac_try;; |
| 13995 | esac |
| 13996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13997 | (eval "$ac_try") 2>&5 |
| 13998 | ac_status=$? |
| 13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14000 | (exit $ac_status); }; } && |
| 14001 | { ac_try='test -s conftest$ac_exeext' |
| 14002 | { (case "(($ac_try" in |
| 14003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14004 | *) ac_try_echo=$ac_try;; |
| 14005 | esac |
| 14006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14007 | (eval "$ac_try") 2>&5 |
| 14008 | ac_status=$? |
| 14009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14010 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14011 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14012 | else |
| 14013 | echo "$as_me: failed program was:" >&5 |
| 14014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14015 | |
| 14016 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14017 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14018 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14019 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14020 | conftest$ac_exeext |
| 14021 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14022 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14024 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14025 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14026 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14027 | else |
| 14028 | ac_cv_search_opendir=no |
| 14029 | fi |
| 14030 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14031 | LIBS=$ac_func_search_save_LIBS |
| 14032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14033 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14034 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14035 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14036 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14037 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14038 | |
| 14039 | fi |
| 14040 | |
| 14041 | fi |
| 14042 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14043 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14044 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14045 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14047 | else |
| 14048 | ac_ext=c |
| 14049 | ac_cpp='$CPP $CPPFLAGS' |
| 14050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14053 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14054 | cat >conftest.$ac_ext <<_ACEOF |
| 14055 | /* confdefs.h. */ |
| 14056 | _ACEOF |
| 14057 | cat confdefs.h >>conftest.$ac_ext |
| 14058 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14059 | /* end confdefs.h. */ |
| 14060 | #include <sys/mman.h> |
| 14061 | #include <unistd.h> |
| 14062 | #include <fcntl.h> |
| 14063 | int |
| 14064 | main () |
| 14065 | { |
| 14066 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14067 | ; |
| 14068 | return 0; |
| 14069 | } |
| 14070 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14071 | rm -f conftest.$ac_objext |
| 14072 | if { (ac_try="$ac_compile" |
| 14073 | case "(($ac_try" in |
| 14074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14075 | *) ac_try_echo=$ac_try;; |
| 14076 | esac |
| 14077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14078 | (eval "$ac_compile") 2>conftest.er1 |
| 14079 | ac_status=$? |
| 14080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14081 | rm -f conftest.er1 |
| 14082 | cat conftest.err >&5 |
| 14083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14084 | (exit $ac_status); } && |
| 14085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14086 | { (case "(($ac_try" in |
| 14087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14088 | *) ac_try_echo=$ac_try;; |
| 14089 | esac |
| 14090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14091 | (eval "$ac_try") 2>&5 |
| 14092 | ac_status=$? |
| 14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14094 | (exit $ac_status); }; } && |
| 14095 | { ac_try='test -s conftest.$ac_objext' |
| 14096 | { (case "(($ac_try" in |
| 14097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14098 | *) ac_try_echo=$ac_try;; |
| 14099 | esac |
| 14100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14101 | (eval "$ac_try") 2>&5 |
| 14102 | ac_status=$? |
| 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14105 | ac_cv_header_mmap_anon=yes |
| 14106 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14107 | echo "$as_me: failed program was:" >&5 |
| 14108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14109 | |
| 14110 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14111 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14114 | ac_ext=c |
| 14115 | ac_cpp='$CPP $CPPFLAGS' |
| 14116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14119 | |
| 14120 | |
| 14121 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14122 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14123 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14124 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14125 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14126 | cat >>confdefs.h <<\_ACEOF |
| 14127 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14128 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14129 | |
| 14130 | fi |
| 14131 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14132 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14133 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14134 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14136 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14137 | cat >conftest.$ac_ext <<_ACEOF |
| 14138 | /* confdefs.h. */ |
| 14139 | _ACEOF |
| 14140 | cat confdefs.h >>conftest.$ac_ext |
| 14141 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14142 | /* end confdefs.h. */ |
| 14143 | #include <sys/types.h> |
| 14144 | #include <sys/stat.h> |
| 14145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14146 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14147 | # if S_ISBLK (S_IFDIR) |
| 14148 | You lose. |
| 14149 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14150 | #endif |
| 14151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14152 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14153 | # if S_ISBLK (S_IFCHR) |
| 14154 | You lose. |
| 14155 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14156 | #endif |
| 14157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14158 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14159 | # if S_ISLNK (S_IFREG) |
| 14160 | You lose. |
| 14161 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14162 | #endif |
| 14163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14164 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14165 | # if S_ISSOCK (S_IFREG) |
| 14166 | You lose. |
| 14167 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14168 | #endif |
| 14169 | |
| 14170 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14171 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14172 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14173 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14174 | else |
| 14175 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14176 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14177 | rm -f conftest* |
| 14178 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14179 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14180 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14181 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14182 | if test $ac_cv_header_stat_broken = yes; then |
| 14183 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14184 | cat >>confdefs.h <<\_ACEOF |
| 14185 | #define STAT_MACROS_BROKEN 1 |
| 14186 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14187 | |
| 14188 | fi |
| 14189 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14190 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14191 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14192 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14194 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14195 | cat >conftest.$ac_ext <<_ACEOF |
| 14196 | /* confdefs.h. */ |
| 14197 | _ACEOF |
| 14198 | cat confdefs.h >>conftest.$ac_ext |
| 14199 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14200 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14201 | #include <sys/types.h> |
| 14202 | #include <sys/wait.h> |
| 14203 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14204 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14205 | #endif |
| 14206 | #ifndef WIFEXITED |
| 14207 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14208 | #endif |
| 14209 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14210 | int |
| 14211 | main () |
| 14212 | { |
| 14213 | int s; |
| 14214 | wait (&s); |
| 14215 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14216 | ; |
| 14217 | return 0; |
| 14218 | } |
| 14219 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14220 | rm -f conftest.$ac_objext |
| 14221 | if { (ac_try="$ac_compile" |
| 14222 | case "(($ac_try" in |
| 14223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14224 | *) ac_try_echo=$ac_try;; |
| 14225 | esac |
| 14226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14227 | (eval "$ac_compile") 2>conftest.er1 |
| 14228 | ac_status=$? |
| 14229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14230 | rm -f conftest.er1 |
| 14231 | cat conftest.err >&5 |
| 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14233 | (exit $ac_status); } && |
| 14234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14235 | { (case "(($ac_try" in |
| 14236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14237 | *) ac_try_echo=$ac_try;; |
| 14238 | esac |
| 14239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14240 | (eval "$ac_try") 2>&5 |
| 14241 | ac_status=$? |
| 14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14243 | (exit $ac_status); }; } && |
| 14244 | { ac_try='test -s conftest.$ac_objext' |
| 14245 | { (case "(($ac_try" in |
| 14246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14247 | *) ac_try_echo=$ac_try;; |
| 14248 | esac |
| 14249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14250 | (eval "$ac_try") 2>&5 |
| 14251 | ac_status=$? |
| 14252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14253 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14254 | ac_cv_header_sys_wait_h=yes |
| 14255 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14256 | echo "$as_me: failed program was:" >&5 |
| 14257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14258 | |
| 14259 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14260 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14263 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14264 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14265 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14266 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14268 | cat >>confdefs.h <<\_ACEOF |
| 14269 | #define HAVE_SYS_WAIT_H 1 |
| 14270 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14271 | |
| 14272 | fi |
| 14273 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14274 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14275 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14276 | if test "${ac_cv_header_time+set}" = set; then |
| 14277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14279 | cat >conftest.$ac_ext <<_ACEOF |
| 14280 | /* confdefs.h. */ |
| 14281 | _ACEOF |
| 14282 | cat confdefs.h >>conftest.$ac_ext |
| 14283 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14284 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14285 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14286 | #include <sys/time.h> |
| 14287 | #include <time.h> |
| 14288 | |
| 14289 | int |
| 14290 | main () |
| 14291 | { |
| 14292 | if ((struct tm *) 0) |
| 14293 | return 0; |
| 14294 | ; |
| 14295 | return 0; |
| 14296 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14297 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14298 | rm -f conftest.$ac_objext |
| 14299 | if { (ac_try="$ac_compile" |
| 14300 | case "(($ac_try" in |
| 14301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14302 | *) ac_try_echo=$ac_try;; |
| 14303 | esac |
| 14304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14305 | (eval "$ac_compile") 2>conftest.er1 |
| 14306 | ac_status=$? |
| 14307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14308 | rm -f conftest.er1 |
| 14309 | cat conftest.err >&5 |
| 14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14311 | (exit $ac_status); } && |
| 14312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14313 | { (case "(($ac_try" in |
| 14314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14315 | *) ac_try_echo=$ac_try;; |
| 14316 | esac |
| 14317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14318 | (eval "$ac_try") 2>&5 |
| 14319 | ac_status=$? |
| 14320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14321 | (exit $ac_status); }; } && |
| 14322 | { ac_try='test -s conftest.$ac_objext' |
| 14323 | { (case "(($ac_try" in |
| 14324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14325 | *) ac_try_echo=$ac_try;; |
| 14326 | esac |
| 14327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14328 | (eval "$ac_try") 2>&5 |
| 14329 | ac_status=$? |
| 14330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14331 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14332 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14333 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14334 | echo "$as_me: failed program was:" >&5 |
| 14335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14336 | |
| 14337 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14339 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14341 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14342 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14343 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14344 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14346 | cat >>confdefs.h <<\_ACEOF |
| 14347 | #define TIME_WITH_SYS_TIME 1 |
| 14348 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14349 | |
| 14350 | fi |
| 14351 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14353 | |
| 14354 | |
| 14355 | |
| 14356 | |
| 14357 | |
| 14358 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14359 | 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] | 14360 | do |
| 14361 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14362 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14363 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14365 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14367 | fi |
| 14368 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14369 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14370 | echo "${ECHO_T}$ac_res" >&6; } |
| 14371 | else |
| 14372 | # Is the header compilable? |
| 14373 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14375 | cat >conftest.$ac_ext <<_ACEOF |
| 14376 | /* confdefs.h. */ |
| 14377 | _ACEOF |
| 14378 | cat confdefs.h >>conftest.$ac_ext |
| 14379 | cat >>conftest.$ac_ext <<_ACEOF |
| 14380 | /* end confdefs.h. */ |
| 14381 | $ac_includes_default |
| 14382 | #include <$ac_header> |
| 14383 | _ACEOF |
| 14384 | rm -f conftest.$ac_objext |
| 14385 | if { (ac_try="$ac_compile" |
| 14386 | case "(($ac_try" in |
| 14387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14388 | *) ac_try_echo=$ac_try;; |
| 14389 | esac |
| 14390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14391 | (eval "$ac_compile") 2>conftest.er1 |
| 14392 | ac_status=$? |
| 14393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14394 | rm -f conftest.er1 |
| 14395 | cat conftest.err >&5 |
| 14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14397 | (exit $ac_status); } && |
| 14398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14399 | { (case "(($ac_try" in |
| 14400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14401 | *) ac_try_echo=$ac_try;; |
| 14402 | esac |
| 14403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14404 | (eval "$ac_try") 2>&5 |
| 14405 | ac_status=$? |
| 14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14407 | (exit $ac_status); }; } && |
| 14408 | { ac_try='test -s conftest.$ac_objext' |
| 14409 | { (case "(($ac_try" in |
| 14410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14411 | *) ac_try_echo=$ac_try;; |
| 14412 | esac |
| 14413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14414 | (eval "$ac_try") 2>&5 |
| 14415 | ac_status=$? |
| 14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14417 | (exit $ac_status); }; }; then |
| 14418 | ac_header_compiler=yes |
| 14419 | else |
| 14420 | echo "$as_me: failed program was:" >&5 |
| 14421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14422 | |
| 14423 | ac_header_compiler=no |
| 14424 | fi |
| 14425 | |
| 14426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14427 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14428 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14429 | |
| 14430 | # Is the header present? |
| 14431 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14432 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14433 | cat >conftest.$ac_ext <<_ACEOF |
| 14434 | /* confdefs.h. */ |
| 14435 | _ACEOF |
| 14436 | cat confdefs.h >>conftest.$ac_ext |
| 14437 | cat >>conftest.$ac_ext <<_ACEOF |
| 14438 | /* end confdefs.h. */ |
| 14439 | #include <$ac_header> |
| 14440 | _ACEOF |
| 14441 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14442 | case "(($ac_try" in |
| 14443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14444 | *) ac_try_echo=$ac_try;; |
| 14445 | esac |
| 14446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14447 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14448 | ac_status=$? |
| 14449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14450 | rm -f conftest.er1 |
| 14451 | cat conftest.err >&5 |
| 14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14453 | (exit $ac_status); } >/dev/null; then |
| 14454 | if test -s conftest.err; then |
| 14455 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14456 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14457 | else |
| 14458 | ac_cpp_err= |
| 14459 | fi |
| 14460 | else |
| 14461 | ac_cpp_err=yes |
| 14462 | fi |
| 14463 | if test -z "$ac_cpp_err"; then |
| 14464 | ac_header_preproc=yes |
| 14465 | else |
| 14466 | echo "$as_me: failed program was:" >&5 |
| 14467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14468 | |
| 14469 | ac_header_preproc=no |
| 14470 | fi |
| 14471 | |
| 14472 | rm -f conftest.err conftest.$ac_ext |
| 14473 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14474 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14475 | |
| 14476 | # So? What about this header? |
| 14477 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14478 | yes:no: ) |
| 14479 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14480 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14482 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14483 | ac_header_preproc=yes |
| 14484 | ;; |
| 14485 | no:yes:* ) |
| 14486 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14487 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14488 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14489 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14490 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14491 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14492 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14493 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14495 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14496 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14497 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14498 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14499 | ## ------------------------------------ ## |
| 14500 | ## Report this to http://llvm.org/bugs/ ## |
| 14501 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14502 | _ASBOX |
| 14503 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14504 | ;; |
| 14505 | esac |
| 14506 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14510 | else |
| 14511 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14512 | fi |
| 14513 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14514 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14515 | echo "${ECHO_T}$ac_res" >&6; } |
| 14516 | |
| 14517 | fi |
| 14518 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14519 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14520 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14521 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14522 | |
| 14523 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14524 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14525 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14526 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14527 | |
| 14528 | |
| 14529 | |
| 14530 | |
| 14531 | |
| 14532 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14533 | 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] | 14534 | do |
| 14535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14536 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14537 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14539 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14541 | fi |
| 14542 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14543 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14544 | echo "${ECHO_T}$ac_res" >&6; } |
| 14545 | else |
| 14546 | # Is the header compilable? |
| 14547 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14549 | cat >conftest.$ac_ext <<_ACEOF |
| 14550 | /* confdefs.h. */ |
| 14551 | _ACEOF |
| 14552 | cat confdefs.h >>conftest.$ac_ext |
| 14553 | cat >>conftest.$ac_ext <<_ACEOF |
| 14554 | /* end confdefs.h. */ |
| 14555 | $ac_includes_default |
| 14556 | #include <$ac_header> |
| 14557 | _ACEOF |
| 14558 | rm -f conftest.$ac_objext |
| 14559 | if { (ac_try="$ac_compile" |
| 14560 | case "(($ac_try" in |
| 14561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14562 | *) ac_try_echo=$ac_try;; |
| 14563 | esac |
| 14564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14565 | (eval "$ac_compile") 2>conftest.er1 |
| 14566 | ac_status=$? |
| 14567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14568 | rm -f conftest.er1 |
| 14569 | cat conftest.err >&5 |
| 14570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14571 | (exit $ac_status); } && |
| 14572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14573 | { (case "(($ac_try" in |
| 14574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14575 | *) ac_try_echo=$ac_try;; |
| 14576 | esac |
| 14577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14578 | (eval "$ac_try") 2>&5 |
| 14579 | ac_status=$? |
| 14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14581 | (exit $ac_status); }; } && |
| 14582 | { ac_try='test -s conftest.$ac_objext' |
| 14583 | { (case "(($ac_try" in |
| 14584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14585 | *) ac_try_echo=$ac_try;; |
| 14586 | esac |
| 14587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14588 | (eval "$ac_try") 2>&5 |
| 14589 | ac_status=$? |
| 14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14591 | (exit $ac_status); }; }; then |
| 14592 | ac_header_compiler=yes |
| 14593 | else |
| 14594 | echo "$as_me: failed program was:" >&5 |
| 14595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14596 | |
| 14597 | ac_header_compiler=no |
| 14598 | fi |
| 14599 | |
| 14600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14601 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14602 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14603 | |
| 14604 | # Is the header present? |
| 14605 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14606 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14607 | cat >conftest.$ac_ext <<_ACEOF |
| 14608 | /* confdefs.h. */ |
| 14609 | _ACEOF |
| 14610 | cat confdefs.h >>conftest.$ac_ext |
| 14611 | cat >>conftest.$ac_ext <<_ACEOF |
| 14612 | /* end confdefs.h. */ |
| 14613 | #include <$ac_header> |
| 14614 | _ACEOF |
| 14615 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14616 | case "(($ac_try" in |
| 14617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14618 | *) ac_try_echo=$ac_try;; |
| 14619 | esac |
| 14620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14622 | ac_status=$? |
| 14623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14624 | rm -f conftest.er1 |
| 14625 | cat conftest.err >&5 |
| 14626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14627 | (exit $ac_status); } >/dev/null; then |
| 14628 | if test -s conftest.err; then |
| 14629 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14630 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14631 | else |
| 14632 | ac_cpp_err= |
| 14633 | fi |
| 14634 | else |
| 14635 | ac_cpp_err=yes |
| 14636 | fi |
| 14637 | if test -z "$ac_cpp_err"; then |
| 14638 | ac_header_preproc=yes |
| 14639 | else |
| 14640 | echo "$as_me: failed program was:" >&5 |
| 14641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14642 | |
| 14643 | ac_header_preproc=no |
| 14644 | fi |
| 14645 | |
| 14646 | rm -f conftest.err conftest.$ac_ext |
| 14647 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14648 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14649 | |
| 14650 | # So? What about this header? |
| 14651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14652 | yes:no: ) |
| 14653 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14654 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14656 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14657 | ac_header_preproc=yes |
| 14658 | ;; |
| 14659 | no:yes:* ) |
| 14660 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14661 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14662 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14663 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14664 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14665 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14666 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14667 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14669 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14670 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14671 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14672 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14673 | ## ------------------------------------ ## |
| 14674 | ## Report this to http://llvm.org/bugs/ ## |
| 14675 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14676 | _ASBOX |
| 14677 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14678 | ;; |
| 14679 | esac |
| 14680 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14682 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14684 | else |
| 14685 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14686 | fi |
| 14687 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14688 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14689 | echo "${ECHO_T}$ac_res" >&6; } |
| 14690 | |
| 14691 | fi |
| 14692 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14693 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14694 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14695 | _ACEOF |
| 14696 | |
| 14697 | fi |
| 14698 | |
| 14699 | done |
| 14700 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14701 | |
| 14702 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14703 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14704 | do |
| 14705 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14707 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14709 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14711 | fi |
| 14712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14714 | echo "${ECHO_T}$ac_res" >&6; } |
| 14715 | else |
| 14716 | # Is the header compilable? |
| 14717 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14718 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14719 | cat >conftest.$ac_ext <<_ACEOF |
| 14720 | /* confdefs.h. */ |
| 14721 | _ACEOF |
| 14722 | cat confdefs.h >>conftest.$ac_ext |
| 14723 | cat >>conftest.$ac_ext <<_ACEOF |
| 14724 | /* end confdefs.h. */ |
| 14725 | $ac_includes_default |
| 14726 | #include <$ac_header> |
| 14727 | _ACEOF |
| 14728 | rm -f conftest.$ac_objext |
| 14729 | if { (ac_try="$ac_compile" |
| 14730 | case "(($ac_try" in |
| 14731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14732 | *) ac_try_echo=$ac_try;; |
| 14733 | esac |
| 14734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14735 | (eval "$ac_compile") 2>conftest.er1 |
| 14736 | ac_status=$? |
| 14737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14738 | rm -f conftest.er1 |
| 14739 | cat conftest.err >&5 |
| 14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14741 | (exit $ac_status); } && |
| 14742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14743 | { (case "(($ac_try" in |
| 14744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14745 | *) ac_try_echo=$ac_try;; |
| 14746 | esac |
| 14747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14748 | (eval "$ac_try") 2>&5 |
| 14749 | ac_status=$? |
| 14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14751 | (exit $ac_status); }; } && |
| 14752 | { ac_try='test -s conftest.$ac_objext' |
| 14753 | { (case "(($ac_try" in |
| 14754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14755 | *) ac_try_echo=$ac_try;; |
| 14756 | esac |
| 14757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14758 | (eval "$ac_try") 2>&5 |
| 14759 | ac_status=$? |
| 14760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14761 | (exit $ac_status); }; }; then |
| 14762 | ac_header_compiler=yes |
| 14763 | else |
| 14764 | echo "$as_me: failed program was:" >&5 |
| 14765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14766 | |
| 14767 | ac_header_compiler=no |
| 14768 | fi |
| 14769 | |
| 14770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14771 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14772 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14773 | |
| 14774 | # Is the header present? |
| 14775 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14776 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14777 | cat >conftest.$ac_ext <<_ACEOF |
| 14778 | /* confdefs.h. */ |
| 14779 | _ACEOF |
| 14780 | cat confdefs.h >>conftest.$ac_ext |
| 14781 | cat >>conftest.$ac_ext <<_ACEOF |
| 14782 | /* end confdefs.h. */ |
| 14783 | #include <$ac_header> |
| 14784 | _ACEOF |
| 14785 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14786 | case "(($ac_try" in |
| 14787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14788 | *) ac_try_echo=$ac_try;; |
| 14789 | esac |
| 14790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14791 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14792 | ac_status=$? |
| 14793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14794 | rm -f conftest.er1 |
| 14795 | cat conftest.err >&5 |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); } >/dev/null; then |
| 14798 | if test -s conftest.err; then |
| 14799 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14800 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14801 | else |
| 14802 | ac_cpp_err= |
| 14803 | fi |
| 14804 | else |
| 14805 | ac_cpp_err=yes |
| 14806 | fi |
| 14807 | if test -z "$ac_cpp_err"; then |
| 14808 | ac_header_preproc=yes |
| 14809 | else |
| 14810 | echo "$as_me: failed program was:" >&5 |
| 14811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14812 | |
| 14813 | ac_header_preproc=no |
| 14814 | fi |
| 14815 | |
| 14816 | rm -f conftest.err conftest.$ac_ext |
| 14817 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14818 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14819 | |
| 14820 | # So? What about this header? |
| 14821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14822 | yes:no: ) |
| 14823 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14824 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14826 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14827 | ac_header_preproc=yes |
| 14828 | ;; |
| 14829 | no:yes:* ) |
| 14830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14834 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14835 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14836 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14837 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14840 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14841 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14842 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14843 | ## ------------------------------------ ## |
| 14844 | ## Report this to http://llvm.org/bugs/ ## |
| 14845 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14846 | _ASBOX |
| 14847 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14848 | ;; |
| 14849 | esac |
| 14850 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14854 | else |
| 14855 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14856 | fi |
| 14857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14859 | echo "${ECHO_T}$ac_res" >&6; } |
| 14860 | |
| 14861 | fi |
| 14862 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14863 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14864 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14865 | _ACEOF |
| 14866 | |
| 14867 | fi |
| 14868 | |
| 14869 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14870 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14871 | |
| 14872 | |
| 14873 | |
| 14874 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 14875 | |
| 14876 | 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] | 14877 | do |
| 14878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14884 | fi |
| 14885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14887 | echo "${ECHO_T}$ac_res" >&6; } |
| 14888 | else |
| 14889 | # Is the header compilable? |
| 14890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14892 | cat >conftest.$ac_ext <<_ACEOF |
| 14893 | /* confdefs.h. */ |
| 14894 | _ACEOF |
| 14895 | cat confdefs.h >>conftest.$ac_ext |
| 14896 | cat >>conftest.$ac_ext <<_ACEOF |
| 14897 | /* end confdefs.h. */ |
| 14898 | $ac_includes_default |
| 14899 | #include <$ac_header> |
| 14900 | _ACEOF |
| 14901 | rm -f conftest.$ac_objext |
| 14902 | if { (ac_try="$ac_compile" |
| 14903 | case "(($ac_try" in |
| 14904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14905 | *) ac_try_echo=$ac_try;; |
| 14906 | esac |
| 14907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14908 | (eval "$ac_compile") 2>conftest.er1 |
| 14909 | ac_status=$? |
| 14910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14911 | rm -f conftest.er1 |
| 14912 | cat conftest.err >&5 |
| 14913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14914 | (exit $ac_status); } && |
| 14915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14916 | { (case "(($ac_try" in |
| 14917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14918 | *) ac_try_echo=$ac_try;; |
| 14919 | esac |
| 14920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14921 | (eval "$ac_try") 2>&5 |
| 14922 | ac_status=$? |
| 14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14924 | (exit $ac_status); }; } && |
| 14925 | { ac_try='test -s conftest.$ac_objext' |
| 14926 | { (case "(($ac_try" in |
| 14927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14928 | *) ac_try_echo=$ac_try;; |
| 14929 | esac |
| 14930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14931 | (eval "$ac_try") 2>&5 |
| 14932 | ac_status=$? |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); }; }; then |
| 14935 | ac_header_compiler=yes |
| 14936 | else |
| 14937 | echo "$as_me: failed program was:" >&5 |
| 14938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14939 | |
| 14940 | ac_header_compiler=no |
| 14941 | fi |
| 14942 | |
| 14943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14944 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14945 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14946 | |
| 14947 | # Is the header present? |
| 14948 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14949 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14950 | cat >conftest.$ac_ext <<_ACEOF |
| 14951 | /* confdefs.h. */ |
| 14952 | _ACEOF |
| 14953 | cat confdefs.h >>conftest.$ac_ext |
| 14954 | cat >>conftest.$ac_ext <<_ACEOF |
| 14955 | /* end confdefs.h. */ |
| 14956 | #include <$ac_header> |
| 14957 | _ACEOF |
| 14958 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14959 | case "(($ac_try" in |
| 14960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14961 | *) ac_try_echo=$ac_try;; |
| 14962 | esac |
| 14963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14964 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14965 | ac_status=$? |
| 14966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14967 | rm -f conftest.er1 |
| 14968 | cat conftest.err >&5 |
| 14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14970 | (exit $ac_status); } >/dev/null; then |
| 14971 | if test -s conftest.err; then |
| 14972 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14974 | else |
| 14975 | ac_cpp_err= |
| 14976 | fi |
| 14977 | else |
| 14978 | ac_cpp_err=yes |
| 14979 | fi |
| 14980 | if test -z "$ac_cpp_err"; then |
| 14981 | ac_header_preproc=yes |
| 14982 | else |
| 14983 | echo "$as_me: failed program was:" >&5 |
| 14984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14985 | |
| 14986 | ac_header_preproc=no |
| 14987 | fi |
| 14988 | |
| 14989 | rm -f conftest.err conftest.$ac_ext |
| 14990 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14991 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14992 | |
| 14993 | # So? What about this header? |
| 14994 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14995 | yes:no: ) |
| 14996 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14997 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14999 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15000 | ac_header_preproc=yes |
| 15001 | ;; |
| 15002 | no:yes:* ) |
| 15003 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15004 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15005 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15006 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15007 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15008 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15009 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15010 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15013 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15014 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15015 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15016 | ## ------------------------------------ ## |
| 15017 | ## Report this to http://llvm.org/bugs/ ## |
| 15018 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15019 | _ASBOX |
| 15020 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15021 | ;; |
| 15022 | esac |
| 15023 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15025 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15027 | else |
| 15028 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15029 | fi |
| 15030 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15031 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15032 | echo "${ECHO_T}$ac_res" >&6; } |
| 15033 | |
| 15034 | fi |
| 15035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15036 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15038 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15039 | |
| 15040 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15041 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15042 | done |
| 15043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15044 | |
| 15045 | |
| 15046 | |
| 15047 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15048 | 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] | 15049 | do |
| 15050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15056 | fi |
| 15057 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15059 | echo "${ECHO_T}$ac_res" >&6; } |
| 15060 | else |
| 15061 | # Is the header compilable? |
| 15062 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15064 | cat >conftest.$ac_ext <<_ACEOF |
| 15065 | /* confdefs.h. */ |
| 15066 | _ACEOF |
| 15067 | cat confdefs.h >>conftest.$ac_ext |
| 15068 | cat >>conftest.$ac_ext <<_ACEOF |
| 15069 | /* end confdefs.h. */ |
| 15070 | $ac_includes_default |
| 15071 | #include <$ac_header> |
| 15072 | _ACEOF |
| 15073 | rm -f conftest.$ac_objext |
| 15074 | if { (ac_try="$ac_compile" |
| 15075 | case "(($ac_try" in |
| 15076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15077 | *) ac_try_echo=$ac_try;; |
| 15078 | esac |
| 15079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15080 | (eval "$ac_compile") 2>conftest.er1 |
| 15081 | ac_status=$? |
| 15082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15083 | rm -f conftest.er1 |
| 15084 | cat conftest.err >&5 |
| 15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 | (exit $ac_status); } && |
| 15087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15088 | { (case "(($ac_try" in |
| 15089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15090 | *) ac_try_echo=$ac_try;; |
| 15091 | esac |
| 15092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15093 | (eval "$ac_try") 2>&5 |
| 15094 | ac_status=$? |
| 15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15096 | (exit $ac_status); }; } && |
| 15097 | { ac_try='test -s conftest.$ac_objext' |
| 15098 | { (case "(($ac_try" in |
| 15099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15100 | *) ac_try_echo=$ac_try;; |
| 15101 | esac |
| 15102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15103 | (eval "$ac_try") 2>&5 |
| 15104 | ac_status=$? |
| 15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15106 | (exit $ac_status); }; }; then |
| 15107 | ac_header_compiler=yes |
| 15108 | else |
| 15109 | echo "$as_me: failed program was:" >&5 |
| 15110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15111 | |
| 15112 | ac_header_compiler=no |
| 15113 | fi |
| 15114 | |
| 15115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15116 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15117 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15118 | |
| 15119 | # Is the header present? |
| 15120 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15121 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15122 | cat >conftest.$ac_ext <<_ACEOF |
| 15123 | /* confdefs.h. */ |
| 15124 | _ACEOF |
| 15125 | cat confdefs.h >>conftest.$ac_ext |
| 15126 | cat >>conftest.$ac_ext <<_ACEOF |
| 15127 | /* end confdefs.h. */ |
| 15128 | #include <$ac_header> |
| 15129 | _ACEOF |
| 15130 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15131 | case "(($ac_try" in |
| 15132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15133 | *) ac_try_echo=$ac_try;; |
| 15134 | esac |
| 15135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15136 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15137 | ac_status=$? |
| 15138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15139 | rm -f conftest.er1 |
| 15140 | cat conftest.err >&5 |
| 15141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15142 | (exit $ac_status); } >/dev/null; then |
| 15143 | if test -s conftest.err; then |
| 15144 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15146 | else |
| 15147 | ac_cpp_err= |
| 15148 | fi |
| 15149 | else |
| 15150 | ac_cpp_err=yes |
| 15151 | fi |
| 15152 | if test -z "$ac_cpp_err"; then |
| 15153 | ac_header_preproc=yes |
| 15154 | else |
| 15155 | echo "$as_me: failed program was:" >&5 |
| 15156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15157 | |
| 15158 | ac_header_preproc=no |
| 15159 | fi |
| 15160 | |
| 15161 | rm -f conftest.err conftest.$ac_ext |
| 15162 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15163 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15164 | |
| 15165 | # So? What about this header? |
| 15166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15167 | yes:no: ) |
| 15168 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15169 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15171 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15172 | ac_header_preproc=yes |
| 15173 | ;; |
| 15174 | no:yes:* ) |
| 15175 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15176 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15177 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15178 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15179 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15180 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15181 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15182 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15184 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15185 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15186 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15187 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15188 | ## ------------------------------------ ## |
| 15189 | ## Report this to http://llvm.org/bugs/ ## |
| 15190 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15191 | _ASBOX |
| 15192 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15193 | ;; |
| 15194 | esac |
| 15195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15199 | else |
| 15200 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15201 | fi |
| 15202 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15203 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15204 | echo "${ECHO_T}$ac_res" >&6; } |
| 15205 | |
| 15206 | fi |
| 15207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15208 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15210 | _ACEOF |
| 15211 | |
| 15212 | fi |
| 15213 | |
| 15214 | done |
| 15215 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15216 | |
| 15217 | for ac_header in valgrind/valgrind.h |
| 15218 | do |
| 15219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15221 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15225 | fi |
| 15226 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15228 | echo "${ECHO_T}$ac_res" >&6; } |
| 15229 | else |
| 15230 | # Is the header compilable? |
| 15231 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15233 | cat >conftest.$ac_ext <<_ACEOF |
| 15234 | /* confdefs.h. */ |
| 15235 | _ACEOF |
| 15236 | cat confdefs.h >>conftest.$ac_ext |
| 15237 | cat >>conftest.$ac_ext <<_ACEOF |
| 15238 | /* end confdefs.h. */ |
| 15239 | $ac_includes_default |
| 15240 | #include <$ac_header> |
| 15241 | _ACEOF |
| 15242 | rm -f conftest.$ac_objext |
| 15243 | if { (ac_try="$ac_compile" |
| 15244 | case "(($ac_try" in |
| 15245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15246 | *) ac_try_echo=$ac_try;; |
| 15247 | esac |
| 15248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15249 | (eval "$ac_compile") 2>conftest.er1 |
| 15250 | ac_status=$? |
| 15251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15252 | rm -f conftest.er1 |
| 15253 | cat conftest.err >&5 |
| 15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15255 | (exit $ac_status); } && |
| 15256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15257 | { (case "(($ac_try" in |
| 15258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15259 | *) ac_try_echo=$ac_try;; |
| 15260 | esac |
| 15261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15262 | (eval "$ac_try") 2>&5 |
| 15263 | ac_status=$? |
| 15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15265 | (exit $ac_status); }; } && |
| 15266 | { ac_try='test -s conftest.$ac_objext' |
| 15267 | { (case "(($ac_try" in |
| 15268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15269 | *) ac_try_echo=$ac_try;; |
| 15270 | esac |
| 15271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15272 | (eval "$ac_try") 2>&5 |
| 15273 | ac_status=$? |
| 15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15275 | (exit $ac_status); }; }; then |
| 15276 | ac_header_compiler=yes |
| 15277 | else |
| 15278 | echo "$as_me: failed program was:" >&5 |
| 15279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15280 | |
| 15281 | ac_header_compiler=no |
| 15282 | fi |
| 15283 | |
| 15284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15285 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15286 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15287 | |
| 15288 | # Is the header present? |
| 15289 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15291 | cat >conftest.$ac_ext <<_ACEOF |
| 15292 | /* confdefs.h. */ |
| 15293 | _ACEOF |
| 15294 | cat confdefs.h >>conftest.$ac_ext |
| 15295 | cat >>conftest.$ac_ext <<_ACEOF |
| 15296 | /* end confdefs.h. */ |
| 15297 | #include <$ac_header> |
| 15298 | _ACEOF |
| 15299 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15300 | case "(($ac_try" in |
| 15301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15302 | *) ac_try_echo=$ac_try;; |
| 15303 | esac |
| 15304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15305 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15306 | ac_status=$? |
| 15307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15308 | rm -f conftest.er1 |
| 15309 | cat conftest.err >&5 |
| 15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15311 | (exit $ac_status); } >/dev/null; then |
| 15312 | if test -s conftest.err; then |
| 15313 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15314 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15315 | else |
| 15316 | ac_cpp_err= |
| 15317 | fi |
| 15318 | else |
| 15319 | ac_cpp_err=yes |
| 15320 | fi |
| 15321 | if test -z "$ac_cpp_err"; then |
| 15322 | ac_header_preproc=yes |
| 15323 | else |
| 15324 | echo "$as_me: failed program was:" >&5 |
| 15325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15326 | |
| 15327 | ac_header_preproc=no |
| 15328 | fi |
| 15329 | |
| 15330 | rm -f conftest.err conftest.$ac_ext |
| 15331 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15332 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15333 | |
| 15334 | # So? What about this header? |
| 15335 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15336 | yes:no: ) |
| 15337 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15338 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15340 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15341 | ac_header_preproc=yes |
| 15342 | ;; |
| 15343 | no:yes:* ) |
| 15344 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15345 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15346 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15347 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15348 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15349 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15350 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15351 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15353 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15354 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15355 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15356 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15357 | ## ------------------------------------ ## |
| 15358 | ## Report this to http://llvm.org/bugs/ ## |
| 15359 | ## ------------------------------------ ## |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15360 | _ASBOX |
| 15361 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15362 | ;; |
| 15363 | esac |
| 15364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15368 | else |
| 15369 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15370 | fi |
| 15371 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15372 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15373 | echo "${ECHO_T}$ac_res" >&6; } |
| 15374 | |
| 15375 | fi |
| 15376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15377 | cat >>confdefs.h <<_ACEOF |
| 15378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15379 | _ACEOF |
| 15380 | |
| 15381 | fi |
| 15382 | |
| 15383 | done |
| 15384 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15385 | |
| 15386 | for ac_header in fenv.h |
| 15387 | do |
| 15388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15390 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15394 | fi |
| 15395 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15396 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15397 | echo "${ECHO_T}$ac_res" >&6; } |
| 15398 | else |
| 15399 | # Is the header compilable? |
| 15400 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15402 | cat >conftest.$ac_ext <<_ACEOF |
| 15403 | /* confdefs.h. */ |
| 15404 | _ACEOF |
| 15405 | cat confdefs.h >>conftest.$ac_ext |
| 15406 | cat >>conftest.$ac_ext <<_ACEOF |
| 15407 | /* end confdefs.h. */ |
| 15408 | $ac_includes_default |
| 15409 | #include <$ac_header> |
| 15410 | _ACEOF |
| 15411 | rm -f conftest.$ac_objext |
| 15412 | if { (ac_try="$ac_compile" |
| 15413 | case "(($ac_try" in |
| 15414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15415 | *) ac_try_echo=$ac_try;; |
| 15416 | esac |
| 15417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15418 | (eval "$ac_compile") 2>conftest.er1 |
| 15419 | ac_status=$? |
| 15420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15421 | rm -f conftest.er1 |
| 15422 | cat conftest.err >&5 |
| 15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15424 | (exit $ac_status); } && |
| 15425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15426 | { (case "(($ac_try" in |
| 15427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15428 | *) ac_try_echo=$ac_try;; |
| 15429 | esac |
| 15430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15431 | (eval "$ac_try") 2>&5 |
| 15432 | ac_status=$? |
| 15433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15434 | (exit $ac_status); }; } && |
| 15435 | { ac_try='test -s conftest.$ac_objext' |
| 15436 | { (case "(($ac_try" in |
| 15437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15438 | *) ac_try_echo=$ac_try;; |
| 15439 | esac |
| 15440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15441 | (eval "$ac_try") 2>&5 |
| 15442 | ac_status=$? |
| 15443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15444 | (exit $ac_status); }; }; then |
| 15445 | ac_header_compiler=yes |
| 15446 | else |
| 15447 | echo "$as_me: failed program was:" >&5 |
| 15448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15449 | |
| 15450 | ac_header_compiler=no |
| 15451 | fi |
| 15452 | |
| 15453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15454 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15455 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15456 | |
| 15457 | # Is the header present? |
| 15458 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15459 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15460 | cat >conftest.$ac_ext <<_ACEOF |
| 15461 | /* confdefs.h. */ |
| 15462 | _ACEOF |
| 15463 | cat confdefs.h >>conftest.$ac_ext |
| 15464 | cat >>conftest.$ac_ext <<_ACEOF |
| 15465 | /* end confdefs.h. */ |
| 15466 | #include <$ac_header> |
| 15467 | _ACEOF |
| 15468 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15469 | case "(($ac_try" in |
| 15470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15471 | *) ac_try_echo=$ac_try;; |
| 15472 | esac |
| 15473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15474 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15475 | ac_status=$? |
| 15476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15477 | rm -f conftest.er1 |
| 15478 | cat conftest.err >&5 |
| 15479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15480 | (exit $ac_status); } >/dev/null; then |
| 15481 | if test -s conftest.err; then |
| 15482 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15483 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15484 | else |
| 15485 | ac_cpp_err= |
| 15486 | fi |
| 15487 | else |
| 15488 | ac_cpp_err=yes |
| 15489 | fi |
| 15490 | if test -z "$ac_cpp_err"; then |
| 15491 | ac_header_preproc=yes |
| 15492 | else |
| 15493 | echo "$as_me: failed program was:" >&5 |
| 15494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15495 | |
| 15496 | ac_header_preproc=no |
| 15497 | fi |
| 15498 | |
| 15499 | rm -f conftest.err conftest.$ac_ext |
| 15500 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15501 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15502 | |
| 15503 | # So? What about this header? |
| 15504 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15505 | yes:no: ) |
| 15506 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15507 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15509 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15510 | ac_header_preproc=yes |
| 15511 | ;; |
| 15512 | no:yes:* ) |
| 15513 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15514 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15515 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15516 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15517 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15518 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15519 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15520 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15521 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15522 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15523 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15524 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15525 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15526 | ## ------------------------------------ ## |
| 15527 | ## Report this to http://llvm.org/bugs/ ## |
| 15528 | ## ------------------------------------ ## |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15529 | _ASBOX |
| 15530 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15531 | ;; |
| 15532 | esac |
| 15533 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15535 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15537 | else |
| 15538 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15539 | fi |
| 15540 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15541 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15542 | echo "${ECHO_T}$ac_res" >&6; } |
| 15543 | |
| 15544 | fi |
| 15545 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15546 | cat >>confdefs.h <<_ACEOF |
| 15547 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15548 | _ACEOF |
| 15549 | |
| 15550 | fi |
| 15551 | |
| 15552 | done |
| 15553 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15554 | 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] | 15555 | |
| 15556 | for ac_header in pthread.h |
| 15557 | do |
| 15558 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15559 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15560 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15564 | fi |
| 15565 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15566 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15567 | echo "${ECHO_T}$ac_res" >&6; } |
| 15568 | else |
| 15569 | # Is the header compilable? |
| 15570 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15571 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15572 | cat >conftest.$ac_ext <<_ACEOF |
| 15573 | /* confdefs.h. */ |
| 15574 | _ACEOF |
| 15575 | cat confdefs.h >>conftest.$ac_ext |
| 15576 | cat >>conftest.$ac_ext <<_ACEOF |
| 15577 | /* end confdefs.h. */ |
| 15578 | $ac_includes_default |
| 15579 | #include <$ac_header> |
| 15580 | _ACEOF |
| 15581 | rm -f conftest.$ac_objext |
| 15582 | if { (ac_try="$ac_compile" |
| 15583 | case "(($ac_try" in |
| 15584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15585 | *) ac_try_echo=$ac_try;; |
| 15586 | esac |
| 15587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15588 | (eval "$ac_compile") 2>conftest.er1 |
| 15589 | ac_status=$? |
| 15590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15591 | rm -f conftest.er1 |
| 15592 | cat conftest.err >&5 |
| 15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15594 | (exit $ac_status); } && |
| 15595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15596 | { (case "(($ac_try" in |
| 15597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15598 | *) ac_try_echo=$ac_try;; |
| 15599 | esac |
| 15600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15601 | (eval "$ac_try") 2>&5 |
| 15602 | ac_status=$? |
| 15603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15604 | (exit $ac_status); }; } && |
| 15605 | { ac_try='test -s conftest.$ac_objext' |
| 15606 | { (case "(($ac_try" in |
| 15607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15608 | *) ac_try_echo=$ac_try;; |
| 15609 | esac |
| 15610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15611 | (eval "$ac_try") 2>&5 |
| 15612 | ac_status=$? |
| 15613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15614 | (exit $ac_status); }; }; then |
| 15615 | ac_header_compiler=yes |
| 15616 | else |
| 15617 | echo "$as_me: failed program was:" >&5 |
| 15618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15619 | |
| 15620 | ac_header_compiler=no |
| 15621 | fi |
| 15622 | |
| 15623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15624 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15625 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15626 | |
| 15627 | # Is the header present? |
| 15628 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15630 | cat >conftest.$ac_ext <<_ACEOF |
| 15631 | /* confdefs.h. */ |
| 15632 | _ACEOF |
| 15633 | cat confdefs.h >>conftest.$ac_ext |
| 15634 | cat >>conftest.$ac_ext <<_ACEOF |
| 15635 | /* end confdefs.h. */ |
| 15636 | #include <$ac_header> |
| 15637 | _ACEOF |
| 15638 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15639 | case "(($ac_try" in |
| 15640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15641 | *) ac_try_echo=$ac_try;; |
| 15642 | esac |
| 15643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15645 | ac_status=$? |
| 15646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15647 | rm -f conftest.er1 |
| 15648 | cat conftest.err >&5 |
| 15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15650 | (exit $ac_status); } >/dev/null; then |
| 15651 | if test -s conftest.err; then |
| 15652 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15653 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15654 | else |
| 15655 | ac_cpp_err= |
| 15656 | fi |
| 15657 | else |
| 15658 | ac_cpp_err=yes |
| 15659 | fi |
| 15660 | if test -z "$ac_cpp_err"; then |
| 15661 | ac_header_preproc=yes |
| 15662 | else |
| 15663 | echo "$as_me: failed program was:" >&5 |
| 15664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15665 | |
| 15666 | ac_header_preproc=no |
| 15667 | fi |
| 15668 | |
| 15669 | rm -f conftest.err conftest.$ac_ext |
| 15670 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15671 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15672 | |
| 15673 | # So? What about this header? |
| 15674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15675 | yes:no: ) |
| 15676 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15677 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15679 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15680 | ac_header_preproc=yes |
| 15681 | ;; |
| 15682 | no:yes:* ) |
| 15683 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15684 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15685 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15686 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15687 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15688 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15689 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15690 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15692 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15693 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15694 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15695 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15696 | ## ------------------------------------ ## |
| 15697 | ## Report this to http://llvm.org/bugs/ ## |
| 15698 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15699 | _ASBOX |
| 15700 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15701 | ;; |
| 15702 | esac |
| 15703 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15707 | else |
| 15708 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15709 | fi |
| 15710 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15711 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15712 | echo "${ECHO_T}$ac_res" >&6; } |
| 15713 | |
| 15714 | fi |
| 15715 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15716 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15717 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15718 | _ACEOF |
| 15719 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15720 | |
| 15721 | else |
| 15722 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15723 | |
| 15724 | fi |
| 15725 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15726 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15727 | |
| 15728 | else |
| 15729 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15730 | |
| 15731 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15732 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15733 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15734 | |
| 15735 | |
| 15736 | for ac_header in ffi.h ffi/ffi.h |
| 15737 | do |
| 15738 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15739 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15740 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15744 | fi |
| 15745 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15746 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15747 | echo "${ECHO_T}$ac_res" >&6; } |
| 15748 | else |
| 15749 | # Is the header compilable? |
| 15750 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15751 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15752 | cat >conftest.$ac_ext <<_ACEOF |
| 15753 | /* confdefs.h. */ |
| 15754 | _ACEOF |
| 15755 | cat confdefs.h >>conftest.$ac_ext |
| 15756 | cat >>conftest.$ac_ext <<_ACEOF |
| 15757 | /* end confdefs.h. */ |
| 15758 | $ac_includes_default |
| 15759 | #include <$ac_header> |
| 15760 | _ACEOF |
| 15761 | rm -f conftest.$ac_objext |
| 15762 | if { (ac_try="$ac_compile" |
| 15763 | case "(($ac_try" in |
| 15764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15765 | *) ac_try_echo=$ac_try;; |
| 15766 | esac |
| 15767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15768 | (eval "$ac_compile") 2>conftest.er1 |
| 15769 | ac_status=$? |
| 15770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15771 | rm -f conftest.er1 |
| 15772 | cat conftest.err >&5 |
| 15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15774 | (exit $ac_status); } && |
| 15775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15776 | { (case "(($ac_try" in |
| 15777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15778 | *) ac_try_echo=$ac_try;; |
| 15779 | esac |
| 15780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15781 | (eval "$ac_try") 2>&5 |
| 15782 | ac_status=$? |
| 15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15784 | (exit $ac_status); }; } && |
| 15785 | { ac_try='test -s conftest.$ac_objext' |
| 15786 | { (case "(($ac_try" in |
| 15787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15788 | *) ac_try_echo=$ac_try;; |
| 15789 | esac |
| 15790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15791 | (eval "$ac_try") 2>&5 |
| 15792 | ac_status=$? |
| 15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15794 | (exit $ac_status); }; }; then |
| 15795 | ac_header_compiler=yes |
| 15796 | else |
| 15797 | echo "$as_me: failed program was:" >&5 |
| 15798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15799 | |
| 15800 | ac_header_compiler=no |
| 15801 | fi |
| 15802 | |
| 15803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15804 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15805 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15806 | |
| 15807 | # Is the header present? |
| 15808 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15809 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15810 | cat >conftest.$ac_ext <<_ACEOF |
| 15811 | /* confdefs.h. */ |
| 15812 | _ACEOF |
| 15813 | cat confdefs.h >>conftest.$ac_ext |
| 15814 | cat >>conftest.$ac_ext <<_ACEOF |
| 15815 | /* end confdefs.h. */ |
| 15816 | #include <$ac_header> |
| 15817 | _ACEOF |
| 15818 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15819 | case "(($ac_try" in |
| 15820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15821 | *) ac_try_echo=$ac_try;; |
| 15822 | esac |
| 15823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15824 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15825 | ac_status=$? |
| 15826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15827 | rm -f conftest.er1 |
| 15828 | cat conftest.err >&5 |
| 15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15830 | (exit $ac_status); } >/dev/null; then |
| 15831 | if test -s conftest.err; then |
| 15832 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15833 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15834 | else |
| 15835 | ac_cpp_err= |
| 15836 | fi |
| 15837 | else |
| 15838 | ac_cpp_err=yes |
| 15839 | fi |
| 15840 | if test -z "$ac_cpp_err"; then |
| 15841 | ac_header_preproc=yes |
| 15842 | else |
| 15843 | echo "$as_me: failed program was:" >&5 |
| 15844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15845 | |
| 15846 | ac_header_preproc=no |
| 15847 | fi |
| 15848 | |
| 15849 | rm -f conftest.err conftest.$ac_ext |
| 15850 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15851 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15852 | |
| 15853 | # So? What about this header? |
| 15854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15855 | yes:no: ) |
| 15856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15860 | ac_header_preproc=yes |
| 15861 | ;; |
| 15862 | no:yes:* ) |
| 15863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15875 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15876 | ## ------------------------------------ ## |
| 15877 | ## Report this to http://llvm.org/bugs/ ## |
| 15878 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15879 | _ASBOX |
| 15880 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15881 | ;; |
| 15882 | esac |
| 15883 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15887 | else |
| 15888 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15889 | fi |
| 15890 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15892 | echo "${ECHO_T}$ac_res" >&6; } |
| 15893 | |
| 15894 | fi |
| 15895 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15896 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15897 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15898 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15899 | |
| 15900 | fi |
| 15901 | |
| 15902 | done |
| 15903 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15904 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15905 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 15906 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 15907 | for ac_header in CrashReporterClient.h |
| 15908 | do |
| 15909 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15911 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15915 | fi |
| 15916 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15918 | echo "${ECHO_T}$ac_res" >&6; } |
| 15919 | else |
| 15920 | # Is the header compilable? |
| 15921 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15922 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15923 | cat >conftest.$ac_ext <<_ACEOF |
| 15924 | /* confdefs.h. */ |
| 15925 | _ACEOF |
| 15926 | cat confdefs.h >>conftest.$ac_ext |
| 15927 | cat >>conftest.$ac_ext <<_ACEOF |
| 15928 | /* end confdefs.h. */ |
| 15929 | $ac_includes_default |
| 15930 | #include <$ac_header> |
| 15931 | _ACEOF |
| 15932 | rm -f conftest.$ac_objext |
| 15933 | if { (ac_try="$ac_compile" |
| 15934 | case "(($ac_try" in |
| 15935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15936 | *) ac_try_echo=$ac_try;; |
| 15937 | esac |
| 15938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15939 | (eval "$ac_compile") 2>conftest.er1 |
| 15940 | ac_status=$? |
| 15941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15942 | rm -f conftest.er1 |
| 15943 | cat conftest.err >&5 |
| 15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15945 | (exit $ac_status); } && |
| 15946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15947 | { (case "(($ac_try" in |
| 15948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15949 | *) ac_try_echo=$ac_try;; |
| 15950 | esac |
| 15951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15952 | (eval "$ac_try") 2>&5 |
| 15953 | ac_status=$? |
| 15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15955 | (exit $ac_status); }; } && |
| 15956 | { ac_try='test -s conftest.$ac_objext' |
| 15957 | { (case "(($ac_try" in |
| 15958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15959 | *) ac_try_echo=$ac_try;; |
| 15960 | esac |
| 15961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15962 | (eval "$ac_try") 2>&5 |
| 15963 | ac_status=$? |
| 15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15965 | (exit $ac_status); }; }; then |
| 15966 | ac_header_compiler=yes |
| 15967 | else |
| 15968 | echo "$as_me: failed program was:" >&5 |
| 15969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15970 | |
| 15971 | ac_header_compiler=no |
| 15972 | fi |
| 15973 | |
| 15974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15975 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15976 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15977 | |
| 15978 | # Is the header present? |
| 15979 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15980 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15981 | cat >conftest.$ac_ext <<_ACEOF |
| 15982 | /* confdefs.h. */ |
| 15983 | _ACEOF |
| 15984 | cat confdefs.h >>conftest.$ac_ext |
| 15985 | cat >>conftest.$ac_ext <<_ACEOF |
| 15986 | /* end confdefs.h. */ |
| 15987 | #include <$ac_header> |
| 15988 | _ACEOF |
| 15989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15990 | case "(($ac_try" in |
| 15991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15992 | *) ac_try_echo=$ac_try;; |
| 15993 | esac |
| 15994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15996 | ac_status=$? |
| 15997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15998 | rm -f conftest.er1 |
| 15999 | cat conftest.err >&5 |
| 16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16001 | (exit $ac_status); } >/dev/null; then |
| 16002 | if test -s conftest.err; then |
| 16003 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16004 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16005 | else |
| 16006 | ac_cpp_err= |
| 16007 | fi |
| 16008 | else |
| 16009 | ac_cpp_err=yes |
| 16010 | fi |
| 16011 | if test -z "$ac_cpp_err"; then |
| 16012 | ac_header_preproc=yes |
| 16013 | else |
| 16014 | echo "$as_me: failed program was:" >&5 |
| 16015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16016 | |
| 16017 | ac_header_preproc=no |
| 16018 | fi |
| 16019 | |
| 16020 | rm -f conftest.err conftest.$ac_ext |
| 16021 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16022 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16023 | |
| 16024 | # So? What about this header? |
| 16025 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16026 | yes:no: ) |
| 16027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16031 | ac_header_preproc=yes |
| 16032 | ;; |
| 16033 | no:yes:* ) |
| 16034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16046 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16047 | ## ------------------------------------ ## |
| 16048 | ## Report this to http://llvm.org/bugs/ ## |
| 16049 | ## ------------------------------------ ## |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16050 | _ASBOX |
| 16051 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16052 | ;; |
| 16053 | esac |
| 16054 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16058 | else |
| 16059 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16060 | fi |
| 16061 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16062 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16063 | echo "${ECHO_T}$ac_res" >&6; } |
| 16064 | |
| 16065 | fi |
| 16066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16067 | cat >>confdefs.h <<_ACEOF |
| 16068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16069 | _ACEOF |
| 16070 | |
| 16071 | fi |
| 16072 | |
| 16073 | done |
| 16074 | |
| 16075 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16076 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 16077 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16078 | cat >conftest.$ac_ext <<_ACEOF |
| 16079 | /* confdefs.h. */ |
| 16080 | _ACEOF |
| 16081 | cat confdefs.h >>conftest.$ac_ext |
| 16082 | cat >>conftest.$ac_ext <<_ACEOF |
| 16083 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16084 | extern const char *__crashreporter_info__; |
| 16085 | int main() { |
| 16086 | __crashreporter_info__ = "test"; |
| 16087 | return 0; |
| 16088 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16089 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16090 | _ACEOF |
| 16091 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16092 | if { (ac_try="$ac_link" |
| 16093 | case "(($ac_try" in |
| 16094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16095 | *) ac_try_echo=$ac_try;; |
| 16096 | esac |
| 16097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16098 | (eval "$ac_link") 2>conftest.er1 |
| 16099 | ac_status=$? |
| 16100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16101 | rm -f conftest.er1 |
| 16102 | cat conftest.err >&5 |
| 16103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16104 | (exit $ac_status); } && |
| 16105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16106 | { (case "(($ac_try" in |
| 16107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16108 | *) ac_try_echo=$ac_try;; |
| 16109 | esac |
| 16110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16111 | (eval "$ac_try") 2>&5 |
| 16112 | ac_status=$? |
| 16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16114 | (exit $ac_status); }; } && |
| 16115 | { ac_try='test -s conftest$ac_exeext' |
| 16116 | { (case "(($ac_try" in |
| 16117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16118 | *) ac_try_echo=$ac_try;; |
| 16119 | esac |
| 16120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16121 | (eval "$ac_try") 2>&5 |
| 16122 | ac_status=$? |
| 16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16124 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16125 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16126 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16127 | |
| 16128 | cat >>confdefs.h <<\_ACEOF |
| 16129 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16130 | _ACEOF |
| 16131 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16132 | else |
| 16133 | echo "$as_me: failed program was:" >&5 |
| 16134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16135 | |
| 16136 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16137 | echo "${ECHO_T}no" >&6; } |
| 16138 | |
| 16139 | cat >>confdefs.h <<\_ACEOF |
| 16140 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16141 | _ACEOF |
| 16142 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16143 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16144 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16145 | rm -f core conftest.err conftest.$ac_objext \ |
| 16146 | conftest$ac_exeext conftest.$ac_ext |
| 16147 | |
| 16148 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16149 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16151 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16152 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16153 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16155 | else |
| 16156 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16157 | ac_ext=cpp |
| 16158 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16159 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16160 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16161 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16162 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16163 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16164 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16165 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16166 | ac_cv_huge_val_sanity=yes |
| 16167 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16168 | cat >conftest.$ac_ext <<_ACEOF |
| 16169 | /* confdefs.h. */ |
| 16170 | _ACEOF |
| 16171 | cat confdefs.h >>conftest.$ac_ext |
| 16172 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16173 | /* end confdefs.h. */ |
| 16174 | #include <math.h> |
| 16175 | int |
| 16176 | main () |
| 16177 | { |
| 16178 | double x = HUGE_VAL; return x != x; |
| 16179 | ; |
| 16180 | return 0; |
| 16181 | } |
| 16182 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16183 | rm -f conftest$ac_exeext |
| 16184 | if { (ac_try="$ac_link" |
| 16185 | case "(($ac_try" in |
| 16186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16187 | *) ac_try_echo=$ac_try;; |
| 16188 | esac |
| 16189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16190 | (eval "$ac_link") 2>&5 |
| 16191 | ac_status=$? |
| 16192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16194 | { (case "(($ac_try" in |
| 16195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16196 | *) ac_try_echo=$ac_try;; |
| 16197 | esac |
| 16198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16199 | (eval "$ac_try") 2>&5 |
| 16200 | ac_status=$? |
| 16201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16202 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16203 | ac_cv_huge_val_sanity=yes |
| 16204 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16205 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16206 | echo "$as_me: failed program was:" >&5 |
| 16207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16208 | |
| 16209 | ( exit $ac_status ) |
| 16210 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16211 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16212 | 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] | 16213 | fi |
| 16214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16215 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16216 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16217 | ac_ext=c |
| 16218 | ac_cpp='$CPP $CPPFLAGS' |
| 16219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16222 | |
| 16223 | |
| 16224 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16225 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16226 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16227 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16228 | |
| 16229 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16230 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16231 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16232 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16234 | else |
| 16235 | cat >conftest.$ac_ext <<_ACEOF |
| 16236 | /* confdefs.h. */ |
| 16237 | _ACEOF |
| 16238 | cat confdefs.h >>conftest.$ac_ext |
| 16239 | cat >>conftest.$ac_ext <<_ACEOF |
| 16240 | /* end confdefs.h. */ |
| 16241 | $ac_includes_default |
| 16242 | typedef pid_t ac__type_new_; |
| 16243 | int |
| 16244 | main () |
| 16245 | { |
| 16246 | if ((ac__type_new_ *) 0) |
| 16247 | return 0; |
| 16248 | if (sizeof (ac__type_new_)) |
| 16249 | return 0; |
| 16250 | ; |
| 16251 | return 0; |
| 16252 | } |
| 16253 | _ACEOF |
| 16254 | rm -f conftest.$ac_objext |
| 16255 | if { (ac_try="$ac_compile" |
| 16256 | case "(($ac_try" in |
| 16257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16258 | *) ac_try_echo=$ac_try;; |
| 16259 | esac |
| 16260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16261 | (eval "$ac_compile") 2>conftest.er1 |
| 16262 | ac_status=$? |
| 16263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16264 | rm -f conftest.er1 |
| 16265 | cat conftest.err >&5 |
| 16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16267 | (exit $ac_status); } && |
| 16268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16269 | { (case "(($ac_try" in |
| 16270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16271 | *) ac_try_echo=$ac_try;; |
| 16272 | esac |
| 16273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16274 | (eval "$ac_try") 2>&5 |
| 16275 | ac_status=$? |
| 16276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16277 | (exit $ac_status); }; } && |
| 16278 | { ac_try='test -s conftest.$ac_objext' |
| 16279 | { (case "(($ac_try" in |
| 16280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16281 | *) ac_try_echo=$ac_try;; |
| 16282 | esac |
| 16283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16284 | (eval "$ac_try") 2>&5 |
| 16285 | ac_status=$? |
| 16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16287 | (exit $ac_status); }; }; then |
| 16288 | ac_cv_type_pid_t=yes |
| 16289 | else |
| 16290 | echo "$as_me: failed program was:" >&5 |
| 16291 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16293 | ac_cv_type_pid_t=no |
| 16294 | fi |
| 16295 | |
| 16296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16297 | fi |
| 16298 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16299 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16300 | if test $ac_cv_type_pid_t = yes; then |
| 16301 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16302 | else |
| 16303 | |
| 16304 | cat >>confdefs.h <<_ACEOF |
| 16305 | #define pid_t int |
| 16306 | _ACEOF |
| 16307 | |
| 16308 | fi |
| 16309 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16310 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16311 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16312 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16314 | else |
| 16315 | cat >conftest.$ac_ext <<_ACEOF |
| 16316 | /* confdefs.h. */ |
| 16317 | _ACEOF |
| 16318 | cat confdefs.h >>conftest.$ac_ext |
| 16319 | cat >>conftest.$ac_ext <<_ACEOF |
| 16320 | /* end confdefs.h. */ |
| 16321 | $ac_includes_default |
| 16322 | typedef size_t ac__type_new_; |
| 16323 | int |
| 16324 | main () |
| 16325 | { |
| 16326 | if ((ac__type_new_ *) 0) |
| 16327 | return 0; |
| 16328 | if (sizeof (ac__type_new_)) |
| 16329 | return 0; |
| 16330 | ; |
| 16331 | return 0; |
| 16332 | } |
| 16333 | _ACEOF |
| 16334 | rm -f conftest.$ac_objext |
| 16335 | if { (ac_try="$ac_compile" |
| 16336 | case "(($ac_try" in |
| 16337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16338 | *) ac_try_echo=$ac_try;; |
| 16339 | esac |
| 16340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16341 | (eval "$ac_compile") 2>conftest.er1 |
| 16342 | ac_status=$? |
| 16343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16344 | rm -f conftest.er1 |
| 16345 | cat conftest.err >&5 |
| 16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16347 | (exit $ac_status); } && |
| 16348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16349 | { (case "(($ac_try" in |
| 16350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16351 | *) ac_try_echo=$ac_try;; |
| 16352 | esac |
| 16353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16354 | (eval "$ac_try") 2>&5 |
| 16355 | ac_status=$? |
| 16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16357 | (exit $ac_status); }; } && |
| 16358 | { ac_try='test -s conftest.$ac_objext' |
| 16359 | { (case "(($ac_try" in |
| 16360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16361 | *) ac_try_echo=$ac_try;; |
| 16362 | esac |
| 16363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16364 | (eval "$ac_try") 2>&5 |
| 16365 | ac_status=$? |
| 16366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16367 | (exit $ac_status); }; }; then |
| 16368 | ac_cv_type_size_t=yes |
| 16369 | else |
| 16370 | echo "$as_me: failed program was:" >&5 |
| 16371 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16373 | ac_cv_type_size_t=no |
| 16374 | fi |
| 16375 | |
| 16376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16377 | fi |
| 16378 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16379 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16380 | if test $ac_cv_type_size_t = yes; then |
| 16381 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16382 | else |
| 16383 | |
| 16384 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16385 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16386 | _ACEOF |
| 16387 | |
| 16388 | fi |
| 16389 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16390 | |
| 16391 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16392 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16393 | _ACEOF |
| 16394 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16395 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16396 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16397 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16399 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16400 | cat >conftest.$ac_ext <<_ACEOF |
| 16401 | /* confdefs.h. */ |
| 16402 | _ACEOF |
| 16403 | cat confdefs.h >>conftest.$ac_ext |
| 16404 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16405 | /* end confdefs.h. */ |
| 16406 | #include <sys/types.h> |
| 16407 | #include <time.h> |
| 16408 | |
| 16409 | int |
| 16410 | main () |
| 16411 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16412 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16413 | ; |
| 16414 | return 0; |
| 16415 | } |
| 16416 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16417 | rm -f conftest.$ac_objext |
| 16418 | if { (ac_try="$ac_compile" |
| 16419 | case "(($ac_try" in |
| 16420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16421 | *) ac_try_echo=$ac_try;; |
| 16422 | esac |
| 16423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16424 | (eval "$ac_compile") 2>conftest.er1 |
| 16425 | ac_status=$? |
| 16426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16427 | rm -f conftest.er1 |
| 16428 | cat conftest.err >&5 |
| 16429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16430 | (exit $ac_status); } && |
| 16431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16432 | { (case "(($ac_try" in |
| 16433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16434 | *) ac_try_echo=$ac_try;; |
| 16435 | esac |
| 16436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16437 | (eval "$ac_try") 2>&5 |
| 16438 | ac_status=$? |
| 16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16440 | (exit $ac_status); }; } && |
| 16441 | { ac_try='test -s conftest.$ac_objext' |
| 16442 | { (case "(($ac_try" in |
| 16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16444 | *) ac_try_echo=$ac_try;; |
| 16445 | esac |
| 16446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16447 | (eval "$ac_try") 2>&5 |
| 16448 | ac_status=$? |
| 16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16450 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16451 | ac_cv_struct_tm=time.h |
| 16452 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16453 | echo "$as_me: failed program was:" >&5 |
| 16454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16455 | |
| 16456 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16457 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16460 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16461 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16462 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16463 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16464 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16465 | cat >>confdefs.h <<\_ACEOF |
| 16466 | #define TM_IN_SYS_TIME 1 |
| 16467 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16468 | |
| 16469 | fi |
| 16470 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16471 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16472 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16473 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16475 | else |
| 16476 | cat >conftest.$ac_ext <<_ACEOF |
| 16477 | /* confdefs.h. */ |
| 16478 | _ACEOF |
| 16479 | cat confdefs.h >>conftest.$ac_ext |
| 16480 | cat >>conftest.$ac_ext <<_ACEOF |
| 16481 | /* end confdefs.h. */ |
| 16482 | $ac_includes_default |
| 16483 | typedef int64_t ac__type_new_; |
| 16484 | int |
| 16485 | main () |
| 16486 | { |
| 16487 | if ((ac__type_new_ *) 0) |
| 16488 | return 0; |
| 16489 | if (sizeof (ac__type_new_)) |
| 16490 | return 0; |
| 16491 | ; |
| 16492 | return 0; |
| 16493 | } |
| 16494 | _ACEOF |
| 16495 | rm -f conftest.$ac_objext |
| 16496 | if { (ac_try="$ac_compile" |
| 16497 | case "(($ac_try" in |
| 16498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16499 | *) ac_try_echo=$ac_try;; |
| 16500 | esac |
| 16501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16502 | (eval "$ac_compile") 2>conftest.er1 |
| 16503 | ac_status=$? |
| 16504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16505 | rm -f conftest.er1 |
| 16506 | cat conftest.err >&5 |
| 16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16508 | (exit $ac_status); } && |
| 16509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16510 | { (case "(($ac_try" in |
| 16511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16512 | *) ac_try_echo=$ac_try;; |
| 16513 | esac |
| 16514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16515 | (eval "$ac_try") 2>&5 |
| 16516 | ac_status=$? |
| 16517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16518 | (exit $ac_status); }; } && |
| 16519 | { ac_try='test -s conftest.$ac_objext' |
| 16520 | { (case "(($ac_try" in |
| 16521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16522 | *) ac_try_echo=$ac_try;; |
| 16523 | esac |
| 16524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16525 | (eval "$ac_try") 2>&5 |
| 16526 | ac_status=$? |
| 16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16528 | (exit $ac_status); }; }; then |
| 16529 | ac_cv_type_int64_t=yes |
| 16530 | else |
| 16531 | echo "$as_me: failed program was:" >&5 |
| 16532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16533 | |
| 16534 | ac_cv_type_int64_t=no |
| 16535 | fi |
| 16536 | |
| 16537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16538 | fi |
| 16539 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16540 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16541 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16542 | |
| 16543 | cat >>confdefs.h <<_ACEOF |
| 16544 | #define HAVE_INT64_T 1 |
| 16545 | _ACEOF |
| 16546 | |
| 16547 | |
| 16548 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16549 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16550 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16551 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16552 | fi |
| 16553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16554 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16555 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16556 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16558 | else |
| 16559 | cat >conftest.$ac_ext <<_ACEOF |
| 16560 | /* confdefs.h. */ |
| 16561 | _ACEOF |
| 16562 | cat confdefs.h >>conftest.$ac_ext |
| 16563 | cat >>conftest.$ac_ext <<_ACEOF |
| 16564 | /* end confdefs.h. */ |
| 16565 | $ac_includes_default |
| 16566 | typedef uint64_t ac__type_new_; |
| 16567 | int |
| 16568 | main () |
| 16569 | { |
| 16570 | if ((ac__type_new_ *) 0) |
| 16571 | return 0; |
| 16572 | if (sizeof (ac__type_new_)) |
| 16573 | return 0; |
| 16574 | ; |
| 16575 | return 0; |
| 16576 | } |
| 16577 | _ACEOF |
| 16578 | rm -f conftest.$ac_objext |
| 16579 | if { (ac_try="$ac_compile" |
| 16580 | case "(($ac_try" in |
| 16581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16582 | *) ac_try_echo=$ac_try;; |
| 16583 | esac |
| 16584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16585 | (eval "$ac_compile") 2>conftest.er1 |
| 16586 | ac_status=$? |
| 16587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16588 | rm -f conftest.er1 |
| 16589 | cat conftest.err >&5 |
| 16590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16591 | (exit $ac_status); } && |
| 16592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16593 | { (case "(($ac_try" in |
| 16594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16595 | *) ac_try_echo=$ac_try;; |
| 16596 | esac |
| 16597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16598 | (eval "$ac_try") 2>&5 |
| 16599 | ac_status=$? |
| 16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16601 | (exit $ac_status); }; } && |
| 16602 | { ac_try='test -s conftest.$ac_objext' |
| 16603 | { (case "(($ac_try" in |
| 16604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16605 | *) ac_try_echo=$ac_try;; |
| 16606 | esac |
| 16607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16608 | (eval "$ac_try") 2>&5 |
| 16609 | ac_status=$? |
| 16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16611 | (exit $ac_status); }; }; then |
| 16612 | ac_cv_type_uint64_t=yes |
| 16613 | else |
| 16614 | echo "$as_me: failed program was:" >&5 |
| 16615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16616 | |
| 16617 | ac_cv_type_uint64_t=no |
| 16618 | fi |
| 16619 | |
| 16620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16621 | fi |
| 16622 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16623 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16624 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16625 | |
| 16626 | cat >>confdefs.h <<_ACEOF |
| 16627 | #define HAVE_UINT64_T 1 |
| 16628 | _ACEOF |
| 16629 | |
| 16630 | |
| 16631 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16632 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16633 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16634 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16636 | else |
| 16637 | cat >conftest.$ac_ext <<_ACEOF |
| 16638 | /* confdefs.h. */ |
| 16639 | _ACEOF |
| 16640 | cat confdefs.h >>conftest.$ac_ext |
| 16641 | cat >>conftest.$ac_ext <<_ACEOF |
| 16642 | /* end confdefs.h. */ |
| 16643 | $ac_includes_default |
| 16644 | typedef u_int64_t ac__type_new_; |
| 16645 | int |
| 16646 | main () |
| 16647 | { |
| 16648 | if ((ac__type_new_ *) 0) |
| 16649 | return 0; |
| 16650 | if (sizeof (ac__type_new_)) |
| 16651 | return 0; |
| 16652 | ; |
| 16653 | return 0; |
| 16654 | } |
| 16655 | _ACEOF |
| 16656 | rm -f conftest.$ac_objext |
| 16657 | if { (ac_try="$ac_compile" |
| 16658 | case "(($ac_try" in |
| 16659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16660 | *) ac_try_echo=$ac_try;; |
| 16661 | esac |
| 16662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16663 | (eval "$ac_compile") 2>conftest.er1 |
| 16664 | ac_status=$? |
| 16665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16666 | rm -f conftest.er1 |
| 16667 | cat conftest.err >&5 |
| 16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16669 | (exit $ac_status); } && |
| 16670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16671 | { (case "(($ac_try" in |
| 16672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16673 | *) ac_try_echo=$ac_try;; |
| 16674 | esac |
| 16675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16676 | (eval "$ac_try") 2>&5 |
| 16677 | ac_status=$? |
| 16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16679 | (exit $ac_status); }; } && |
| 16680 | { ac_try='test -s conftest.$ac_objext' |
| 16681 | { (case "(($ac_try" in |
| 16682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16683 | *) ac_try_echo=$ac_try;; |
| 16684 | esac |
| 16685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16686 | (eval "$ac_try") 2>&5 |
| 16687 | ac_status=$? |
| 16688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16689 | (exit $ac_status); }; }; then |
| 16690 | ac_cv_type_u_int64_t=yes |
| 16691 | else |
| 16692 | echo "$as_me: failed program was:" >&5 |
| 16693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16694 | |
| 16695 | ac_cv_type_u_int64_t=no |
| 16696 | fi |
| 16697 | |
| 16698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16699 | fi |
| 16700 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16701 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16702 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16703 | |
| 16704 | cat >>confdefs.h <<_ACEOF |
| 16705 | #define HAVE_U_INT64_T 1 |
| 16706 | _ACEOF |
| 16707 | |
| 16708 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16709 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16710 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16711 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16712 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16713 | fi |
| 16714 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16715 | fi |
| 16716 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16717 | |
| 16718 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16719 | |
| 16720 | |
| 16721 | |
| 16722 | |
| 16723 | |
| 16724 | |
| 16725 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16726 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16727 | do |
| 16728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16729 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16731 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16733 | else |
| 16734 | cat >conftest.$ac_ext <<_ACEOF |
| 16735 | /* confdefs.h. */ |
| 16736 | _ACEOF |
| 16737 | cat confdefs.h >>conftest.$ac_ext |
| 16738 | cat >>conftest.$ac_ext <<_ACEOF |
| 16739 | /* end confdefs.h. */ |
| 16740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16742 | #define $ac_func innocuous_$ac_func |
| 16743 | |
| 16744 | /* System header to define __stub macros and hopefully few prototypes, |
| 16745 | which can conflict with char $ac_func (); below. |
| 16746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16747 | <limits.h> exists even on freestanding compilers. */ |
| 16748 | |
| 16749 | #ifdef __STDC__ |
| 16750 | # include <limits.h> |
| 16751 | #else |
| 16752 | # include <assert.h> |
| 16753 | #endif |
| 16754 | |
| 16755 | #undef $ac_func |
| 16756 | |
| 16757 | /* Override any GCC internal prototype to avoid an error. |
| 16758 | Use char because int might match the return type of a GCC |
| 16759 | builtin and then its argument prototype would still apply. */ |
| 16760 | #ifdef __cplusplus |
| 16761 | extern "C" |
| 16762 | #endif |
| 16763 | char $ac_func (); |
| 16764 | /* The GNU C library defines this for functions which it implements |
| 16765 | to always fail with ENOSYS. Some functions are actually named |
| 16766 | something starting with __ and the normal name is an alias. */ |
| 16767 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16768 | choke me |
| 16769 | #endif |
| 16770 | |
| 16771 | int |
| 16772 | main () |
| 16773 | { |
| 16774 | return $ac_func (); |
| 16775 | ; |
| 16776 | return 0; |
| 16777 | } |
| 16778 | _ACEOF |
| 16779 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16780 | if { (ac_try="$ac_link" |
| 16781 | case "(($ac_try" in |
| 16782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16783 | *) ac_try_echo=$ac_try;; |
| 16784 | esac |
| 16785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16786 | (eval "$ac_link") 2>conftest.er1 |
| 16787 | ac_status=$? |
| 16788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16789 | rm -f conftest.er1 |
| 16790 | cat conftest.err >&5 |
| 16791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16792 | (exit $ac_status); } && |
| 16793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16794 | { (case "(($ac_try" in |
| 16795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16796 | *) ac_try_echo=$ac_try;; |
| 16797 | esac |
| 16798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16799 | (eval "$ac_try") 2>&5 |
| 16800 | ac_status=$? |
| 16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16802 | (exit $ac_status); }; } && |
| 16803 | { ac_try='test -s conftest$ac_exeext' |
| 16804 | { (case "(($ac_try" in |
| 16805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16806 | *) ac_try_echo=$ac_try;; |
| 16807 | esac |
| 16808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16809 | (eval "$ac_try") 2>&5 |
| 16810 | ac_status=$? |
| 16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16812 | (exit $ac_status); }; }; then |
| 16813 | eval "$as_ac_var=yes" |
| 16814 | else |
| 16815 | echo "$as_me: failed program was:" >&5 |
| 16816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16817 | |
| 16818 | eval "$as_ac_var=no" |
| 16819 | fi |
| 16820 | |
| 16821 | rm -f core conftest.err conftest.$ac_objext \ |
| 16822 | conftest$ac_exeext conftest.$ac_ext |
| 16823 | fi |
| 16824 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16825 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16826 | echo "${ECHO_T}$ac_res" >&6; } |
| 16827 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16828 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16829 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16830 | _ACEOF |
| 16831 | |
| 16832 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16833 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16834 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16835 | |
| 16836 | |
| 16837 | |
| 16838 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16839 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16840 | do |
| 16841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16842 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16844 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16846 | else |
| 16847 | cat >conftest.$ac_ext <<_ACEOF |
| 16848 | /* confdefs.h. */ |
| 16849 | _ACEOF |
| 16850 | cat confdefs.h >>conftest.$ac_ext |
| 16851 | cat >>conftest.$ac_ext <<_ACEOF |
| 16852 | /* end confdefs.h. */ |
| 16853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16855 | #define $ac_func innocuous_$ac_func |
| 16856 | |
| 16857 | /* System header to define __stub macros and hopefully few prototypes, |
| 16858 | which can conflict with char $ac_func (); below. |
| 16859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16860 | <limits.h> exists even on freestanding compilers. */ |
| 16861 | |
| 16862 | #ifdef __STDC__ |
| 16863 | # include <limits.h> |
| 16864 | #else |
| 16865 | # include <assert.h> |
| 16866 | #endif |
| 16867 | |
| 16868 | #undef $ac_func |
| 16869 | |
| 16870 | /* Override any GCC internal prototype to avoid an error. |
| 16871 | Use char because int might match the return type of a GCC |
| 16872 | builtin and then its argument prototype would still apply. */ |
| 16873 | #ifdef __cplusplus |
| 16874 | extern "C" |
| 16875 | #endif |
| 16876 | char $ac_func (); |
| 16877 | /* The GNU C library defines this for functions which it implements |
| 16878 | to always fail with ENOSYS. Some functions are actually named |
| 16879 | something starting with __ and the normal name is an alias. */ |
| 16880 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16881 | choke me |
| 16882 | #endif |
| 16883 | |
| 16884 | int |
| 16885 | main () |
| 16886 | { |
| 16887 | return $ac_func (); |
| 16888 | ; |
| 16889 | return 0; |
| 16890 | } |
| 16891 | _ACEOF |
| 16892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16893 | if { (ac_try="$ac_link" |
| 16894 | case "(($ac_try" in |
| 16895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16896 | *) ac_try_echo=$ac_try;; |
| 16897 | esac |
| 16898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16899 | (eval "$ac_link") 2>conftest.er1 |
| 16900 | ac_status=$? |
| 16901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16902 | rm -f conftest.er1 |
| 16903 | cat conftest.err >&5 |
| 16904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16905 | (exit $ac_status); } && |
| 16906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16907 | { (case "(($ac_try" in |
| 16908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16909 | *) ac_try_echo=$ac_try;; |
| 16910 | esac |
| 16911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16912 | (eval "$ac_try") 2>&5 |
| 16913 | ac_status=$? |
| 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16915 | (exit $ac_status); }; } && |
| 16916 | { ac_try='test -s conftest$ac_exeext' |
| 16917 | { (case "(($ac_try" in |
| 16918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16919 | *) ac_try_echo=$ac_try;; |
| 16920 | esac |
| 16921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16922 | (eval "$ac_try") 2>&5 |
| 16923 | ac_status=$? |
| 16924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16925 | (exit $ac_status); }; }; then |
| 16926 | eval "$as_ac_var=yes" |
| 16927 | else |
| 16928 | echo "$as_me: failed program was:" >&5 |
| 16929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16930 | |
| 16931 | eval "$as_ac_var=no" |
| 16932 | fi |
| 16933 | |
| 16934 | rm -f core conftest.err conftest.$ac_objext \ |
| 16935 | conftest$ac_exeext conftest.$ac_ext |
| 16936 | fi |
| 16937 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16938 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16939 | echo "${ECHO_T}$ac_res" >&6; } |
| 16940 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16941 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16942 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16943 | _ACEOF |
| 16944 | |
| 16945 | fi |
| 16946 | done |
| 16947 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16948 | |
| 16949 | |
| 16950 | |
| 16951 | |
| 16952 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 16953 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16954 | do |
| 16955 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16956 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16957 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16958 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16960 | else |
| 16961 | cat >conftest.$ac_ext <<_ACEOF |
| 16962 | /* confdefs.h. */ |
| 16963 | _ACEOF |
| 16964 | cat confdefs.h >>conftest.$ac_ext |
| 16965 | cat >>conftest.$ac_ext <<_ACEOF |
| 16966 | /* end confdefs.h. */ |
| 16967 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16968 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16969 | #define $ac_func innocuous_$ac_func |
| 16970 | |
| 16971 | /* System header to define __stub macros and hopefully few prototypes, |
| 16972 | which can conflict with char $ac_func (); below. |
| 16973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16974 | <limits.h> exists even on freestanding compilers. */ |
| 16975 | |
| 16976 | #ifdef __STDC__ |
| 16977 | # include <limits.h> |
| 16978 | #else |
| 16979 | # include <assert.h> |
| 16980 | #endif |
| 16981 | |
| 16982 | #undef $ac_func |
| 16983 | |
| 16984 | /* Override any GCC internal prototype to avoid an error. |
| 16985 | Use char because int might match the return type of a GCC |
| 16986 | builtin and then its argument prototype would still apply. */ |
| 16987 | #ifdef __cplusplus |
| 16988 | extern "C" |
| 16989 | #endif |
| 16990 | char $ac_func (); |
| 16991 | /* The GNU C library defines this for functions which it implements |
| 16992 | to always fail with ENOSYS. Some functions are actually named |
| 16993 | something starting with __ and the normal name is an alias. */ |
| 16994 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16995 | choke me |
| 16996 | #endif |
| 16997 | |
| 16998 | int |
| 16999 | main () |
| 17000 | { |
| 17001 | return $ac_func (); |
| 17002 | ; |
| 17003 | return 0; |
| 17004 | } |
| 17005 | _ACEOF |
| 17006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17007 | if { (ac_try="$ac_link" |
| 17008 | case "(($ac_try" in |
| 17009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17010 | *) ac_try_echo=$ac_try;; |
| 17011 | esac |
| 17012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17013 | (eval "$ac_link") 2>conftest.er1 |
| 17014 | ac_status=$? |
| 17015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17016 | rm -f conftest.er1 |
| 17017 | cat conftest.err >&5 |
| 17018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17019 | (exit $ac_status); } && |
| 17020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17021 | { (case "(($ac_try" in |
| 17022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17023 | *) ac_try_echo=$ac_try;; |
| 17024 | esac |
| 17025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17026 | (eval "$ac_try") 2>&5 |
| 17027 | ac_status=$? |
| 17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17029 | (exit $ac_status); }; } && |
| 17030 | { ac_try='test -s conftest$ac_exeext' |
| 17031 | { (case "(($ac_try" in |
| 17032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17033 | *) ac_try_echo=$ac_try;; |
| 17034 | esac |
| 17035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17036 | (eval "$ac_try") 2>&5 |
| 17037 | ac_status=$? |
| 17038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17039 | (exit $ac_status); }; }; then |
| 17040 | eval "$as_ac_var=yes" |
| 17041 | else |
| 17042 | echo "$as_me: failed program was:" >&5 |
| 17043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17044 | |
| 17045 | eval "$as_ac_var=no" |
| 17046 | fi |
| 17047 | |
| 17048 | rm -f core conftest.err conftest.$ac_objext \ |
| 17049 | conftest$ac_exeext conftest.$ac_ext |
| 17050 | fi |
| 17051 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17052 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17053 | echo "${ECHO_T}$ac_res" >&6; } |
| 17054 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17055 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17057 | _ACEOF |
| 17058 | |
| 17059 | fi |
| 17060 | done |
| 17061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17062 | |
| 17063 | |
| 17064 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17065 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17066 | do |
| 17067 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17068 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17069 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17070 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17072 | else |
| 17073 | cat >conftest.$ac_ext <<_ACEOF |
| 17074 | /* confdefs.h. */ |
| 17075 | _ACEOF |
| 17076 | cat confdefs.h >>conftest.$ac_ext |
| 17077 | cat >>conftest.$ac_ext <<_ACEOF |
| 17078 | /* end confdefs.h. */ |
| 17079 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17080 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17081 | #define $ac_func innocuous_$ac_func |
| 17082 | |
| 17083 | /* System header to define __stub macros and hopefully few prototypes, |
| 17084 | which can conflict with char $ac_func (); below. |
| 17085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17086 | <limits.h> exists even on freestanding compilers. */ |
| 17087 | |
| 17088 | #ifdef __STDC__ |
| 17089 | # include <limits.h> |
| 17090 | #else |
| 17091 | # include <assert.h> |
| 17092 | #endif |
| 17093 | |
| 17094 | #undef $ac_func |
| 17095 | |
| 17096 | /* Override any GCC internal prototype to avoid an error. |
| 17097 | Use char because int might match the return type of a GCC |
| 17098 | builtin and then its argument prototype would still apply. */ |
| 17099 | #ifdef __cplusplus |
| 17100 | extern "C" |
| 17101 | #endif |
| 17102 | char $ac_func (); |
| 17103 | /* The GNU C library defines this for functions which it implements |
| 17104 | to always fail with ENOSYS. Some functions are actually named |
| 17105 | something starting with __ and the normal name is an alias. */ |
| 17106 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17107 | choke me |
| 17108 | #endif |
| 17109 | |
| 17110 | int |
| 17111 | main () |
| 17112 | { |
| 17113 | return $ac_func (); |
| 17114 | ; |
| 17115 | return 0; |
| 17116 | } |
| 17117 | _ACEOF |
| 17118 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17119 | if { (ac_try="$ac_link" |
| 17120 | case "(($ac_try" in |
| 17121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17122 | *) ac_try_echo=$ac_try;; |
| 17123 | esac |
| 17124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17125 | (eval "$ac_link") 2>conftest.er1 |
| 17126 | ac_status=$? |
| 17127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17128 | rm -f conftest.er1 |
| 17129 | cat conftest.err >&5 |
| 17130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17131 | (exit $ac_status); } && |
| 17132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17133 | { (case "(($ac_try" in |
| 17134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17135 | *) ac_try_echo=$ac_try;; |
| 17136 | esac |
| 17137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17138 | (eval "$ac_try") 2>&5 |
| 17139 | ac_status=$? |
| 17140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17141 | (exit $ac_status); }; } && |
| 17142 | { ac_try='test -s conftest$ac_exeext' |
| 17143 | { (case "(($ac_try" in |
| 17144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17145 | *) ac_try_echo=$ac_try;; |
| 17146 | esac |
| 17147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17148 | (eval "$ac_try") 2>&5 |
| 17149 | ac_status=$? |
| 17150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17151 | (exit $ac_status); }; }; then |
| 17152 | eval "$as_ac_var=yes" |
| 17153 | else |
| 17154 | echo "$as_me: failed program was:" >&5 |
| 17155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17156 | |
| 17157 | eval "$as_ac_var=no" |
| 17158 | fi |
| 17159 | |
| 17160 | rm -f core conftest.err conftest.$ac_objext \ |
| 17161 | conftest$ac_exeext conftest.$ac_ext |
| 17162 | fi |
| 17163 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17164 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17165 | echo "${ECHO_T}$ac_res" >&6; } |
| 17166 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17167 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17168 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17169 | _ACEOF |
| 17170 | |
| 17171 | fi |
| 17172 | done |
| 17173 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17174 | |
| 17175 | |
| 17176 | |
| 17177 | |
| 17178 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17179 | |
Benjamin Kramer | 5745fbc | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17180 | |
| 17181 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17182 | do |
| 17183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17184 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17186 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17188 | else |
| 17189 | cat >conftest.$ac_ext <<_ACEOF |
| 17190 | /* confdefs.h. */ |
| 17191 | _ACEOF |
| 17192 | cat confdefs.h >>conftest.$ac_ext |
| 17193 | cat >>conftest.$ac_ext <<_ACEOF |
| 17194 | /* end confdefs.h. */ |
| 17195 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17197 | #define $ac_func innocuous_$ac_func |
| 17198 | |
| 17199 | /* System header to define __stub macros and hopefully few prototypes, |
| 17200 | which can conflict with char $ac_func (); below. |
| 17201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17202 | <limits.h> exists even on freestanding compilers. */ |
| 17203 | |
| 17204 | #ifdef __STDC__ |
| 17205 | # include <limits.h> |
| 17206 | #else |
| 17207 | # include <assert.h> |
| 17208 | #endif |
| 17209 | |
| 17210 | #undef $ac_func |
| 17211 | |
| 17212 | /* Override any GCC internal prototype to avoid an error. |
| 17213 | Use char because int might match the return type of a GCC |
| 17214 | builtin and then its argument prototype would still apply. */ |
| 17215 | #ifdef __cplusplus |
| 17216 | extern "C" |
| 17217 | #endif |
| 17218 | char $ac_func (); |
| 17219 | /* The GNU C library defines this for functions which it implements |
| 17220 | to always fail with ENOSYS. Some functions are actually named |
| 17221 | something starting with __ and the normal name is an alias. */ |
| 17222 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17223 | choke me |
| 17224 | #endif |
| 17225 | |
| 17226 | int |
| 17227 | main () |
| 17228 | { |
| 17229 | return $ac_func (); |
| 17230 | ; |
| 17231 | return 0; |
| 17232 | } |
| 17233 | _ACEOF |
| 17234 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17235 | if { (ac_try="$ac_link" |
| 17236 | case "(($ac_try" in |
| 17237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17238 | *) ac_try_echo=$ac_try;; |
| 17239 | esac |
| 17240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17241 | (eval "$ac_link") 2>conftest.er1 |
| 17242 | ac_status=$? |
| 17243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17244 | rm -f conftest.er1 |
| 17245 | cat conftest.err >&5 |
| 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17247 | (exit $ac_status); } && |
| 17248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17249 | { (case "(($ac_try" in |
| 17250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17251 | *) ac_try_echo=$ac_try;; |
| 17252 | esac |
| 17253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17254 | (eval "$ac_try") 2>&5 |
| 17255 | ac_status=$? |
| 17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17257 | (exit $ac_status); }; } && |
| 17258 | { ac_try='test -s conftest$ac_exeext' |
| 17259 | { (case "(($ac_try" in |
| 17260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17261 | *) ac_try_echo=$ac_try;; |
| 17262 | esac |
| 17263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17264 | (eval "$ac_try") 2>&5 |
| 17265 | ac_status=$? |
| 17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17267 | (exit $ac_status); }; }; then |
| 17268 | eval "$as_ac_var=yes" |
| 17269 | else |
| 17270 | echo "$as_me: failed program was:" >&5 |
| 17271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17272 | |
| 17273 | eval "$as_ac_var=no" |
| 17274 | fi |
| 17275 | |
| 17276 | rm -f core conftest.err conftest.$ac_objext \ |
| 17277 | conftest$ac_exeext conftest.$ac_ext |
| 17278 | fi |
| 17279 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17281 | echo "${ECHO_T}$ac_res" >&6; } |
| 17282 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17283 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17284 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17285 | _ACEOF |
| 17286 | |
| 17287 | fi |
| 17288 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17290 | |
| 17291 | |
| 17292 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17293 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17294 | do |
| 17295 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17296 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17297 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17298 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17300 | else |
| 17301 | cat >conftest.$ac_ext <<_ACEOF |
| 17302 | /* confdefs.h. */ |
| 17303 | _ACEOF |
| 17304 | cat confdefs.h >>conftest.$ac_ext |
| 17305 | cat >>conftest.$ac_ext <<_ACEOF |
| 17306 | /* end confdefs.h. */ |
| 17307 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17308 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17309 | #define $ac_func innocuous_$ac_func |
| 17310 | |
| 17311 | /* System header to define __stub macros and hopefully few prototypes, |
| 17312 | which can conflict with char $ac_func (); below. |
| 17313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17314 | <limits.h> exists even on freestanding compilers. */ |
| 17315 | |
| 17316 | #ifdef __STDC__ |
| 17317 | # include <limits.h> |
| 17318 | #else |
| 17319 | # include <assert.h> |
| 17320 | #endif |
| 17321 | |
| 17322 | #undef $ac_func |
| 17323 | |
| 17324 | /* Override any GCC internal prototype to avoid an error. |
| 17325 | Use char because int might match the return type of a GCC |
| 17326 | builtin and then its argument prototype would still apply. */ |
| 17327 | #ifdef __cplusplus |
| 17328 | extern "C" |
| 17329 | #endif |
| 17330 | char $ac_func (); |
| 17331 | /* The GNU C library defines this for functions which it implements |
| 17332 | to always fail with ENOSYS. Some functions are actually named |
| 17333 | something starting with __ and the normal name is an alias. */ |
| 17334 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17335 | choke me |
| 17336 | #endif |
| 17337 | |
| 17338 | int |
| 17339 | main () |
| 17340 | { |
| 17341 | return $ac_func (); |
| 17342 | ; |
| 17343 | return 0; |
| 17344 | } |
| 17345 | _ACEOF |
| 17346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17347 | if { (ac_try="$ac_link" |
| 17348 | case "(($ac_try" in |
| 17349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17350 | *) ac_try_echo=$ac_try;; |
| 17351 | esac |
| 17352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17353 | (eval "$ac_link") 2>conftest.er1 |
| 17354 | ac_status=$? |
| 17355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17356 | rm -f conftest.er1 |
| 17357 | cat conftest.err >&5 |
| 17358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17359 | (exit $ac_status); } && |
| 17360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17361 | { (case "(($ac_try" in |
| 17362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17363 | *) ac_try_echo=$ac_try;; |
| 17364 | esac |
| 17365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17366 | (eval "$ac_try") 2>&5 |
| 17367 | ac_status=$? |
| 17368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17369 | (exit $ac_status); }; } && |
| 17370 | { ac_try='test -s conftest$ac_exeext' |
| 17371 | { (case "(($ac_try" in |
| 17372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17373 | *) ac_try_echo=$ac_try;; |
| 17374 | esac |
| 17375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17376 | (eval "$ac_try") 2>&5 |
| 17377 | ac_status=$? |
| 17378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17379 | (exit $ac_status); }; }; then |
| 17380 | eval "$as_ac_var=yes" |
| 17381 | else |
| 17382 | echo "$as_me: failed program was:" >&5 |
| 17383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17384 | |
| 17385 | eval "$as_ac_var=no" |
| 17386 | fi |
| 17387 | |
| 17388 | rm -f core conftest.err conftest.$ac_objext \ |
| 17389 | conftest$ac_exeext conftest.$ac_ext |
| 17390 | fi |
| 17391 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17392 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17393 | echo "${ECHO_T}$ac_res" >&6; } |
| 17394 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17395 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17397 | _ACEOF |
| 17398 | |
| 17399 | fi |
| 17400 | done |
| 17401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17402 | |
| 17403 | |
| 17404 | |
| 17405 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17406 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17407 | do |
| 17408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17409 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17411 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17413 | else |
| 17414 | cat >conftest.$ac_ext <<_ACEOF |
| 17415 | /* confdefs.h. */ |
| 17416 | _ACEOF |
| 17417 | cat confdefs.h >>conftest.$ac_ext |
| 17418 | cat >>conftest.$ac_ext <<_ACEOF |
| 17419 | /* end confdefs.h. */ |
| 17420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17422 | #define $ac_func innocuous_$ac_func |
| 17423 | |
| 17424 | /* System header to define __stub macros and hopefully few prototypes, |
| 17425 | which can conflict with char $ac_func (); below. |
| 17426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17427 | <limits.h> exists even on freestanding compilers. */ |
| 17428 | |
| 17429 | #ifdef __STDC__ |
| 17430 | # include <limits.h> |
| 17431 | #else |
| 17432 | # include <assert.h> |
| 17433 | #endif |
| 17434 | |
| 17435 | #undef $ac_func |
| 17436 | |
| 17437 | /* Override any GCC internal prototype to avoid an error. |
| 17438 | Use char because int might match the return type of a GCC |
| 17439 | builtin and then its argument prototype would still apply. */ |
| 17440 | #ifdef __cplusplus |
| 17441 | extern "C" |
| 17442 | #endif |
| 17443 | char $ac_func (); |
| 17444 | /* The GNU C library defines this for functions which it implements |
| 17445 | to always fail with ENOSYS. Some functions are actually named |
| 17446 | something starting with __ and the normal name is an alias. */ |
| 17447 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17448 | choke me |
| 17449 | #endif |
| 17450 | |
| 17451 | int |
| 17452 | main () |
| 17453 | { |
| 17454 | return $ac_func (); |
| 17455 | ; |
| 17456 | return 0; |
| 17457 | } |
| 17458 | _ACEOF |
| 17459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17460 | if { (ac_try="$ac_link" |
| 17461 | case "(($ac_try" in |
| 17462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17463 | *) ac_try_echo=$ac_try;; |
| 17464 | esac |
| 17465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17466 | (eval "$ac_link") 2>conftest.er1 |
| 17467 | ac_status=$? |
| 17468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17469 | rm -f conftest.er1 |
| 17470 | cat conftest.err >&5 |
| 17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17472 | (exit $ac_status); } && |
| 17473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17474 | { (case "(($ac_try" in |
| 17475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17476 | *) ac_try_echo=$ac_try;; |
| 17477 | esac |
| 17478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17479 | (eval "$ac_try") 2>&5 |
| 17480 | ac_status=$? |
| 17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17482 | (exit $ac_status); }; } && |
| 17483 | { ac_try='test -s conftest$ac_exeext' |
| 17484 | { (case "(($ac_try" in |
| 17485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17486 | *) ac_try_echo=$ac_try;; |
| 17487 | esac |
| 17488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17489 | (eval "$ac_try") 2>&5 |
| 17490 | ac_status=$? |
| 17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17492 | (exit $ac_status); }; }; then |
| 17493 | eval "$as_ac_var=yes" |
| 17494 | else |
| 17495 | echo "$as_me: failed program was:" >&5 |
| 17496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17497 | |
| 17498 | eval "$as_ac_var=no" |
| 17499 | fi |
| 17500 | |
| 17501 | rm -f core conftest.err conftest.$ac_objext \ |
| 17502 | conftest$ac_exeext conftest.$ac_ext |
| 17503 | fi |
| 17504 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17505 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17506 | echo "${ECHO_T}$ac_res" >&6; } |
| 17507 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17508 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17509 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17510 | _ACEOF |
| 17511 | |
| 17512 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17513 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17514 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17515 | |
| 17516 | |
| 17517 | |
| 17518 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17519 | |
| 17520 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17521 | do |
| 17522 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17523 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17525 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17527 | else |
| 17528 | cat >conftest.$ac_ext <<_ACEOF |
| 17529 | /* confdefs.h. */ |
| 17530 | _ACEOF |
| 17531 | cat confdefs.h >>conftest.$ac_ext |
| 17532 | cat >>conftest.$ac_ext <<_ACEOF |
| 17533 | /* end confdefs.h. */ |
| 17534 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17535 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17536 | #define $ac_func innocuous_$ac_func |
| 17537 | |
| 17538 | /* System header to define __stub macros and hopefully few prototypes, |
| 17539 | which can conflict with char $ac_func (); below. |
| 17540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17541 | <limits.h> exists even on freestanding compilers. */ |
| 17542 | |
| 17543 | #ifdef __STDC__ |
| 17544 | # include <limits.h> |
| 17545 | #else |
| 17546 | # include <assert.h> |
| 17547 | #endif |
| 17548 | |
| 17549 | #undef $ac_func |
| 17550 | |
| 17551 | /* Override any GCC internal prototype to avoid an error. |
| 17552 | Use char because int might match the return type of a GCC |
| 17553 | builtin and then its argument prototype would still apply. */ |
| 17554 | #ifdef __cplusplus |
| 17555 | extern "C" |
| 17556 | #endif |
| 17557 | char $ac_func (); |
| 17558 | /* The GNU C library defines this for functions which it implements |
| 17559 | to always fail with ENOSYS. Some functions are actually named |
| 17560 | something starting with __ and the normal name is an alias. */ |
| 17561 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17562 | choke me |
| 17563 | #endif |
| 17564 | |
| 17565 | int |
| 17566 | main () |
| 17567 | { |
| 17568 | return $ac_func (); |
| 17569 | ; |
| 17570 | return 0; |
| 17571 | } |
| 17572 | _ACEOF |
| 17573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17574 | if { (ac_try="$ac_link" |
| 17575 | case "(($ac_try" in |
| 17576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17577 | *) ac_try_echo=$ac_try;; |
| 17578 | esac |
| 17579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17580 | (eval "$ac_link") 2>conftest.er1 |
| 17581 | ac_status=$? |
| 17582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17583 | rm -f conftest.er1 |
| 17584 | cat conftest.err >&5 |
| 17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17586 | (exit $ac_status); } && |
| 17587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17588 | { (case "(($ac_try" in |
| 17589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17590 | *) ac_try_echo=$ac_try;; |
| 17591 | esac |
| 17592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17593 | (eval "$ac_try") 2>&5 |
| 17594 | ac_status=$? |
| 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17596 | (exit $ac_status); }; } && |
| 17597 | { ac_try='test -s conftest$ac_exeext' |
| 17598 | { (case "(($ac_try" in |
| 17599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17600 | *) ac_try_echo=$ac_try;; |
| 17601 | esac |
| 17602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17603 | (eval "$ac_try") 2>&5 |
| 17604 | ac_status=$? |
| 17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17606 | (exit $ac_status); }; }; then |
| 17607 | eval "$as_ac_var=yes" |
| 17608 | else |
| 17609 | echo "$as_me: failed program was:" >&5 |
| 17610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17611 | |
| 17612 | eval "$as_ac_var=no" |
| 17613 | fi |
| 17614 | |
| 17615 | rm -f core conftest.err conftest.$ac_objext \ |
| 17616 | conftest$ac_exeext conftest.$ac_ext |
| 17617 | fi |
| 17618 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17619 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17620 | echo "${ECHO_T}$ac_res" >&6; } |
| 17621 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17622 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17623 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17624 | _ACEOF |
| 17625 | |
| 17626 | fi |
| 17627 | done |
| 17628 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17629 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17630 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17631 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17633 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17634 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17635 | ac_cpp='$CPP $CPPFLAGS' |
| 17636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17640 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17641 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17642 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17643 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17645 | /* confdefs.h. */ |
| 17646 | _ACEOF |
| 17647 | cat confdefs.h >>conftest.$ac_ext |
| 17648 | cat >>conftest.$ac_ext <<_ACEOF |
| 17649 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17650 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17651 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17652 | #include <stdlib.h> |
| 17653 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17654 | int |
| 17655 | main () |
| 17656 | { |
| 17657 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17658 | volatile double A, B; |
| 17659 | char Buffer[100]; |
| 17660 | A = 1; |
| 17661 | A /= 10.0; |
| 17662 | sprintf(Buffer, "%a", A); |
| 17663 | B = atof(Buffer); |
| 17664 | if (A != B) |
| 17665 | return (1); |
| 17666 | if (A != 0x1.999999999999ap-4) |
| 17667 | return (1); |
| 17668 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17669 | ; |
| 17670 | return 0; |
| 17671 | } |
| 17672 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17673 | rm -f conftest$ac_exeext |
| 17674 | if { (ac_try="$ac_link" |
| 17675 | case "(($ac_try" in |
| 17676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17677 | *) ac_try_echo=$ac_try;; |
| 17678 | esac |
| 17679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17680 | (eval "$ac_link") 2>&5 |
| 17681 | ac_status=$? |
| 17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17684 | { (case "(($ac_try" in |
| 17685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17686 | *) ac_try_echo=$ac_try;; |
| 17687 | esac |
| 17688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17689 | (eval "$ac_try") 2>&5 |
| 17690 | ac_status=$? |
| 17691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17692 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17693 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17694 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17695 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17696 | echo "$as_me: failed program was:" >&5 |
| 17697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17698 | |
| 17699 | ( exit $ac_status ) |
| 17700 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17701 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17702 | 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] | 17703 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17704 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17705 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17706 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17707 | ac_cpp='$CPP $CPPFLAGS' |
| 17708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17711 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17712 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17713 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17714 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17715 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17716 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17717 | cat >>confdefs.h <<\_ACEOF |
| 17718 | #define HAVE_PRINTF_A 1 |
| 17719 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17720 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17721 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17722 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17724 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17725 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17726 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17728 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17729 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17730 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17734 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17735 | cat >conftest.$ac_ext <<_ACEOF |
| 17736 | /* confdefs.h. */ |
| 17737 | _ACEOF |
| 17738 | cat confdefs.h >>conftest.$ac_ext |
| 17739 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17740 | /* end confdefs.h. */ |
| 17741 | #include <stdlib.h> |
| 17742 | int |
| 17743 | main () |
| 17744 | { |
| 17745 | srand48(0);lrand48();drand48(); |
| 17746 | ; |
| 17747 | return 0; |
| 17748 | } |
| 17749 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17750 | rm -f conftest.$ac_objext |
| 17751 | if { (ac_try="$ac_compile" |
| 17752 | case "(($ac_try" in |
| 17753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17754 | *) ac_try_echo=$ac_try;; |
| 17755 | esac |
| 17756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17757 | (eval "$ac_compile") 2>conftest.er1 |
| 17758 | ac_status=$? |
| 17759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17760 | rm -f conftest.er1 |
| 17761 | cat conftest.err >&5 |
| 17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17763 | (exit $ac_status); } && |
| 17764 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17765 | { (case "(($ac_try" in |
| 17766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17767 | *) ac_try_echo=$ac_try;; |
| 17768 | esac |
| 17769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17770 | (eval "$ac_try") 2>&5 |
| 17771 | ac_status=$? |
| 17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17773 | (exit $ac_status); }; } && |
| 17774 | { ac_try='test -s conftest.$ac_objext' |
| 17775 | { (case "(($ac_try" in |
| 17776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17777 | *) ac_try_echo=$ac_try;; |
| 17778 | esac |
| 17779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17780 | (eval "$ac_try") 2>&5 |
| 17781 | ac_status=$? |
| 17782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17783 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17784 | ac_cv_func_rand48=yes |
| 17785 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17786 | echo "$as_me: failed program was:" >&5 |
| 17787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17788 | |
| 17789 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17790 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17793 | ac_ext=c |
| 17794 | ac_cpp='$CPP $CPPFLAGS' |
| 17795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17798 | |
| 17799 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17800 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 17801 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17802 | |
| 17803 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 17804 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17805 | cat >>confdefs.h <<\_ACEOF |
| 17806 | #define HAVE_RAND48 1 |
| 17807 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17808 | |
| 17809 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17810 | |
| 17811 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17812 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 17813 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 17814 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 17815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17816 | else |
| 17817 | cat >conftest.$ac_ext <<_ACEOF |
| 17818 | /* confdefs.h. */ |
| 17819 | _ACEOF |
| 17820 | cat confdefs.h >>conftest.$ac_ext |
| 17821 | cat >>conftest.$ac_ext <<_ACEOF |
| 17822 | /* end confdefs.h. */ |
| 17823 | $ac_includes_default |
| 17824 | int |
| 17825 | main () |
| 17826 | { |
| 17827 | #ifndef strerror_s |
| 17828 | char *p = (char *) strerror_s; |
| 17829 | return !p; |
| 17830 | #endif |
| 17831 | |
| 17832 | ; |
| 17833 | return 0; |
| 17834 | } |
| 17835 | _ACEOF |
| 17836 | rm -f conftest.$ac_objext |
| 17837 | if { (ac_try="$ac_compile" |
| 17838 | case "(($ac_try" in |
| 17839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17840 | *) ac_try_echo=$ac_try;; |
| 17841 | esac |
| 17842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17843 | (eval "$ac_compile") 2>conftest.er1 |
| 17844 | ac_status=$? |
| 17845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17846 | rm -f conftest.er1 |
| 17847 | cat conftest.err >&5 |
| 17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17849 | (exit $ac_status); } && |
| 17850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17851 | { (case "(($ac_try" in |
| 17852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17853 | *) ac_try_echo=$ac_try;; |
| 17854 | esac |
| 17855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17856 | (eval "$ac_try") 2>&5 |
| 17857 | ac_status=$? |
| 17858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17859 | (exit $ac_status); }; } && |
| 17860 | { ac_try='test -s conftest.$ac_objext' |
| 17861 | { (case "(($ac_try" in |
| 17862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17863 | *) ac_try_echo=$ac_try;; |
| 17864 | esac |
| 17865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17866 | (eval "$ac_try") 2>&5 |
| 17867 | ac_status=$? |
| 17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17869 | (exit $ac_status); }; }; then |
| 17870 | ac_cv_have_decl_strerror_s=yes |
| 17871 | else |
| 17872 | echo "$as_me: failed program was:" >&5 |
| 17873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17874 | |
| 17875 | ac_cv_have_decl_strerror_s=no |
| 17876 | fi |
| 17877 | |
| 17878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17879 | fi |
| 17880 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 17881 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 17882 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 17883 | |
| 17884 | cat >>confdefs.h <<_ACEOF |
| 17885 | #define HAVE_DECL_STRERROR_S 1 |
| 17886 | _ACEOF |
| 17887 | |
| 17888 | |
| 17889 | else |
| 17890 | cat >>confdefs.h <<_ACEOF |
| 17891 | #define HAVE_DECL_STRERROR_S 0 |
| 17892 | _ACEOF |
| 17893 | |
| 17894 | |
| 17895 | fi |
| 17896 | |
| 17897 | |
| 17898 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 17899 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 17900 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 17901 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 17902 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 17903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17904 | else |
| 17905 | ac_check_lib_save_LIBS=$LIBS |
| 17906 | LIBS="-lgcc $LIBS" |
| 17907 | cat >conftest.$ac_ext <<_ACEOF |
| 17908 | /* confdefs.h. */ |
| 17909 | _ACEOF |
| 17910 | cat confdefs.h >>conftest.$ac_ext |
| 17911 | cat >>conftest.$ac_ext <<_ACEOF |
| 17912 | /* end confdefs.h. */ |
| 17913 | |
| 17914 | /* Override any GCC internal prototype to avoid an error. |
| 17915 | Use char because int might match the return type of a GCC |
| 17916 | builtin and then its argument prototype would still apply. */ |
| 17917 | #ifdef __cplusplus |
| 17918 | extern "C" |
| 17919 | #endif |
| 17920 | char _alloca (); |
| 17921 | int |
| 17922 | main () |
| 17923 | { |
| 17924 | return _alloca (); |
| 17925 | ; |
| 17926 | return 0; |
| 17927 | } |
| 17928 | _ACEOF |
| 17929 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17930 | if { (ac_try="$ac_link" |
| 17931 | case "(($ac_try" in |
| 17932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17933 | *) ac_try_echo=$ac_try;; |
| 17934 | esac |
| 17935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17936 | (eval "$ac_link") 2>conftest.er1 |
| 17937 | ac_status=$? |
| 17938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17939 | rm -f conftest.er1 |
| 17940 | cat conftest.err >&5 |
| 17941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17942 | (exit $ac_status); } && |
| 17943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17944 | { (case "(($ac_try" in |
| 17945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17946 | *) ac_try_echo=$ac_try;; |
| 17947 | esac |
| 17948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17949 | (eval "$ac_try") 2>&5 |
| 17950 | ac_status=$? |
| 17951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17952 | (exit $ac_status); }; } && |
| 17953 | { ac_try='test -s conftest$ac_exeext' |
| 17954 | { (case "(($ac_try" in |
| 17955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17956 | *) ac_try_echo=$ac_try;; |
| 17957 | esac |
| 17958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17959 | (eval "$ac_try") 2>&5 |
| 17960 | ac_status=$? |
| 17961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17962 | (exit $ac_status); }; }; then |
| 17963 | ac_cv_lib_gcc__alloca=yes |
| 17964 | else |
| 17965 | echo "$as_me: failed program was:" >&5 |
| 17966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17967 | |
| 17968 | ac_cv_lib_gcc__alloca=no |
| 17969 | fi |
| 17970 | |
| 17971 | rm -f core conftest.err conftest.$ac_objext \ |
| 17972 | conftest$ac_exeext conftest.$ac_ext |
| 17973 | LIBS=$ac_check_lib_save_LIBS |
| 17974 | fi |
| 17975 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 17976 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 17977 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 17978 | |
| 17979 | cat >>confdefs.h <<\_ACEOF |
| 17980 | #define HAVE__ALLOCA 1 |
| 17981 | _ACEOF |
| 17982 | |
| 17983 | fi |
| 17984 | |
| 17985 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 17986 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 17987 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 17988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17989 | else |
| 17990 | ac_check_lib_save_LIBS=$LIBS |
| 17991 | LIBS="-lgcc $LIBS" |
| 17992 | cat >conftest.$ac_ext <<_ACEOF |
| 17993 | /* confdefs.h. */ |
| 17994 | _ACEOF |
| 17995 | cat confdefs.h >>conftest.$ac_ext |
| 17996 | cat >>conftest.$ac_ext <<_ACEOF |
| 17997 | /* end confdefs.h. */ |
| 17998 | |
| 17999 | /* Override any GCC internal prototype to avoid an error. |
| 18000 | Use char because int might match the return type of a GCC |
| 18001 | builtin and then its argument prototype would still apply. */ |
| 18002 | #ifdef __cplusplus |
| 18003 | extern "C" |
| 18004 | #endif |
| 18005 | char __alloca (); |
| 18006 | int |
| 18007 | main () |
| 18008 | { |
| 18009 | return __alloca (); |
| 18010 | ; |
| 18011 | return 0; |
| 18012 | } |
| 18013 | _ACEOF |
| 18014 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18015 | if { (ac_try="$ac_link" |
| 18016 | case "(($ac_try" in |
| 18017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18018 | *) ac_try_echo=$ac_try;; |
| 18019 | esac |
| 18020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18021 | (eval "$ac_link") 2>conftest.er1 |
| 18022 | ac_status=$? |
| 18023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18024 | rm -f conftest.er1 |
| 18025 | cat conftest.err >&5 |
| 18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18027 | (exit $ac_status); } && |
| 18028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18029 | { (case "(($ac_try" in |
| 18030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18031 | *) ac_try_echo=$ac_try;; |
| 18032 | esac |
| 18033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18034 | (eval "$ac_try") 2>&5 |
| 18035 | ac_status=$? |
| 18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18037 | (exit $ac_status); }; } && |
| 18038 | { ac_try='test -s conftest$ac_exeext' |
| 18039 | { (case "(($ac_try" in |
| 18040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18041 | *) ac_try_echo=$ac_try;; |
| 18042 | esac |
| 18043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18044 | (eval "$ac_try") 2>&5 |
| 18045 | ac_status=$? |
| 18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18047 | (exit $ac_status); }; }; then |
| 18048 | ac_cv_lib_gcc___alloca=yes |
| 18049 | else |
| 18050 | echo "$as_me: failed program was:" >&5 |
| 18051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18052 | |
| 18053 | ac_cv_lib_gcc___alloca=no |
| 18054 | fi |
| 18055 | |
| 18056 | rm -f core conftest.err conftest.$ac_objext \ |
| 18057 | conftest$ac_exeext conftest.$ac_ext |
| 18058 | LIBS=$ac_check_lib_save_LIBS |
| 18059 | fi |
| 18060 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 18061 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 18062 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 18063 | |
| 18064 | cat >>confdefs.h <<\_ACEOF |
| 18065 | #define HAVE___ALLOCA 1 |
| 18066 | _ACEOF |
| 18067 | |
| 18068 | fi |
| 18069 | |
| 18070 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 18071 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 18072 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 18073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18074 | else |
| 18075 | ac_check_lib_save_LIBS=$LIBS |
| 18076 | LIBS="-lgcc $LIBS" |
| 18077 | cat >conftest.$ac_ext <<_ACEOF |
| 18078 | /* confdefs.h. */ |
| 18079 | _ACEOF |
| 18080 | cat confdefs.h >>conftest.$ac_ext |
| 18081 | cat >>conftest.$ac_ext <<_ACEOF |
| 18082 | /* end confdefs.h. */ |
| 18083 | |
| 18084 | /* Override any GCC internal prototype to avoid an error. |
| 18085 | Use char because int might match the return type of a GCC |
| 18086 | builtin and then its argument prototype would still apply. */ |
| 18087 | #ifdef __cplusplus |
| 18088 | extern "C" |
| 18089 | #endif |
| 18090 | char __chkstk (); |
| 18091 | int |
| 18092 | main () |
| 18093 | { |
| 18094 | return __chkstk (); |
| 18095 | ; |
| 18096 | return 0; |
| 18097 | } |
| 18098 | _ACEOF |
| 18099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18100 | if { (ac_try="$ac_link" |
| 18101 | case "(($ac_try" in |
| 18102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18103 | *) ac_try_echo=$ac_try;; |
| 18104 | esac |
| 18105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18106 | (eval "$ac_link") 2>conftest.er1 |
| 18107 | ac_status=$? |
| 18108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18109 | rm -f conftest.er1 |
| 18110 | cat conftest.err >&5 |
| 18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18112 | (exit $ac_status); } && |
| 18113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18114 | { (case "(($ac_try" in |
| 18115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18116 | *) ac_try_echo=$ac_try;; |
| 18117 | esac |
| 18118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18119 | (eval "$ac_try") 2>&5 |
| 18120 | ac_status=$? |
| 18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18122 | (exit $ac_status); }; } && |
| 18123 | { ac_try='test -s conftest$ac_exeext' |
| 18124 | { (case "(($ac_try" in |
| 18125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18126 | *) ac_try_echo=$ac_try;; |
| 18127 | esac |
| 18128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18129 | (eval "$ac_try") 2>&5 |
| 18130 | ac_status=$? |
| 18131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18132 | (exit $ac_status); }; }; then |
| 18133 | ac_cv_lib_gcc___chkstk=yes |
| 18134 | else |
| 18135 | echo "$as_me: failed program was:" >&5 |
| 18136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18137 | |
| 18138 | ac_cv_lib_gcc___chkstk=no |
| 18139 | fi |
| 18140 | |
| 18141 | rm -f core conftest.err conftest.$ac_objext \ |
| 18142 | conftest$ac_exeext conftest.$ac_ext |
| 18143 | LIBS=$ac_check_lib_save_LIBS |
| 18144 | fi |
| 18145 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18146 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18147 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18148 | |
| 18149 | cat >>confdefs.h <<\_ACEOF |
| 18150 | #define HAVE___CHKSTK 1 |
| 18151 | _ACEOF |
| 18152 | |
| 18153 | fi |
| 18154 | |
| 18155 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18156 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18157 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18159 | else |
| 18160 | ac_check_lib_save_LIBS=$LIBS |
| 18161 | LIBS="-lgcc $LIBS" |
| 18162 | cat >conftest.$ac_ext <<_ACEOF |
| 18163 | /* confdefs.h. */ |
| 18164 | _ACEOF |
| 18165 | cat confdefs.h >>conftest.$ac_ext |
| 18166 | cat >>conftest.$ac_ext <<_ACEOF |
| 18167 | /* end confdefs.h. */ |
| 18168 | |
| 18169 | /* Override any GCC internal prototype to avoid an error. |
| 18170 | Use char because int might match the return type of a GCC |
| 18171 | builtin and then its argument prototype would still apply. */ |
| 18172 | #ifdef __cplusplus |
| 18173 | extern "C" |
| 18174 | #endif |
| 18175 | char ___chkstk (); |
| 18176 | int |
| 18177 | main () |
| 18178 | { |
| 18179 | return ___chkstk (); |
| 18180 | ; |
| 18181 | return 0; |
| 18182 | } |
| 18183 | _ACEOF |
| 18184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18185 | if { (ac_try="$ac_link" |
| 18186 | case "(($ac_try" in |
| 18187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18188 | *) ac_try_echo=$ac_try;; |
| 18189 | esac |
| 18190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18191 | (eval "$ac_link") 2>conftest.er1 |
| 18192 | ac_status=$? |
| 18193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18194 | rm -f conftest.er1 |
| 18195 | cat conftest.err >&5 |
| 18196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18197 | (exit $ac_status); } && |
| 18198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18199 | { (case "(($ac_try" in |
| 18200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18201 | *) ac_try_echo=$ac_try;; |
| 18202 | esac |
| 18203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18204 | (eval "$ac_try") 2>&5 |
| 18205 | ac_status=$? |
| 18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18207 | (exit $ac_status); }; } && |
| 18208 | { ac_try='test -s conftest$ac_exeext' |
| 18209 | { (case "(($ac_try" in |
| 18210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18211 | *) ac_try_echo=$ac_try;; |
| 18212 | esac |
| 18213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18214 | (eval "$ac_try") 2>&5 |
| 18215 | ac_status=$? |
| 18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18217 | (exit $ac_status); }; }; then |
| 18218 | ac_cv_lib_gcc____chkstk=yes |
| 18219 | else |
| 18220 | echo "$as_me: failed program was:" >&5 |
| 18221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18222 | |
| 18223 | ac_cv_lib_gcc____chkstk=no |
| 18224 | fi |
| 18225 | |
| 18226 | rm -f core conftest.err conftest.$ac_objext \ |
| 18227 | conftest$ac_exeext conftest.$ac_ext |
| 18228 | LIBS=$ac_check_lib_save_LIBS |
| 18229 | fi |
| 18230 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18231 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18232 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18233 | |
| 18234 | cat >>confdefs.h <<\_ACEOF |
| 18235 | #define HAVE____CHKSTK 1 |
| 18236 | _ACEOF |
| 18237 | |
| 18238 | fi |
| 18239 | |
| 18240 | |
| 18241 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18242 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18243 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18245 | else |
| 18246 | ac_check_lib_save_LIBS=$LIBS |
| 18247 | LIBS="-lgcc $LIBS" |
| 18248 | cat >conftest.$ac_ext <<_ACEOF |
| 18249 | /* confdefs.h. */ |
| 18250 | _ACEOF |
| 18251 | cat confdefs.h >>conftest.$ac_ext |
| 18252 | cat >>conftest.$ac_ext <<_ACEOF |
| 18253 | /* end confdefs.h. */ |
| 18254 | |
| 18255 | /* Override any GCC internal prototype to avoid an error. |
| 18256 | Use char because int might match the return type of a GCC |
| 18257 | builtin and then its argument prototype would still apply. */ |
| 18258 | #ifdef __cplusplus |
| 18259 | extern "C" |
| 18260 | #endif |
| 18261 | char __ashldi3 (); |
| 18262 | int |
| 18263 | main () |
| 18264 | { |
| 18265 | return __ashldi3 (); |
| 18266 | ; |
| 18267 | return 0; |
| 18268 | } |
| 18269 | _ACEOF |
| 18270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18271 | if { (ac_try="$ac_link" |
| 18272 | case "(($ac_try" in |
| 18273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18274 | *) ac_try_echo=$ac_try;; |
| 18275 | esac |
| 18276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18277 | (eval "$ac_link") 2>conftest.er1 |
| 18278 | ac_status=$? |
| 18279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18280 | rm -f conftest.er1 |
| 18281 | cat conftest.err >&5 |
| 18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18283 | (exit $ac_status); } && |
| 18284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18285 | { (case "(($ac_try" in |
| 18286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18287 | *) ac_try_echo=$ac_try;; |
| 18288 | esac |
| 18289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18290 | (eval "$ac_try") 2>&5 |
| 18291 | ac_status=$? |
| 18292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18293 | (exit $ac_status); }; } && |
| 18294 | { ac_try='test -s conftest$ac_exeext' |
| 18295 | { (case "(($ac_try" in |
| 18296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18297 | *) ac_try_echo=$ac_try;; |
| 18298 | esac |
| 18299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18300 | (eval "$ac_try") 2>&5 |
| 18301 | ac_status=$? |
| 18302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18303 | (exit $ac_status); }; }; then |
| 18304 | ac_cv_lib_gcc___ashldi3=yes |
| 18305 | else |
| 18306 | echo "$as_me: failed program was:" >&5 |
| 18307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18308 | |
| 18309 | ac_cv_lib_gcc___ashldi3=no |
| 18310 | fi |
| 18311 | |
| 18312 | rm -f core conftest.err conftest.$ac_objext \ |
| 18313 | conftest$ac_exeext conftest.$ac_ext |
| 18314 | LIBS=$ac_check_lib_save_LIBS |
| 18315 | fi |
| 18316 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18317 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18318 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18319 | |
| 18320 | cat >>confdefs.h <<\_ACEOF |
| 18321 | #define HAVE___ASHLDI3 1 |
| 18322 | _ACEOF |
| 18323 | |
| 18324 | fi |
| 18325 | |
| 18326 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18327 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18328 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18330 | else |
| 18331 | ac_check_lib_save_LIBS=$LIBS |
| 18332 | LIBS="-lgcc $LIBS" |
| 18333 | cat >conftest.$ac_ext <<_ACEOF |
| 18334 | /* confdefs.h. */ |
| 18335 | _ACEOF |
| 18336 | cat confdefs.h >>conftest.$ac_ext |
| 18337 | cat >>conftest.$ac_ext <<_ACEOF |
| 18338 | /* end confdefs.h. */ |
| 18339 | |
| 18340 | /* Override any GCC internal prototype to avoid an error. |
| 18341 | Use char because int might match the return type of a GCC |
| 18342 | builtin and then its argument prototype would still apply. */ |
| 18343 | #ifdef __cplusplus |
| 18344 | extern "C" |
| 18345 | #endif |
| 18346 | char __ashrdi3 (); |
| 18347 | int |
| 18348 | main () |
| 18349 | { |
| 18350 | return __ashrdi3 (); |
| 18351 | ; |
| 18352 | return 0; |
| 18353 | } |
| 18354 | _ACEOF |
| 18355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18356 | if { (ac_try="$ac_link" |
| 18357 | case "(($ac_try" in |
| 18358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18359 | *) ac_try_echo=$ac_try;; |
| 18360 | esac |
| 18361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18362 | (eval "$ac_link") 2>conftest.er1 |
| 18363 | ac_status=$? |
| 18364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18365 | rm -f conftest.er1 |
| 18366 | cat conftest.err >&5 |
| 18367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18368 | (exit $ac_status); } && |
| 18369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18370 | { (case "(($ac_try" in |
| 18371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18372 | *) ac_try_echo=$ac_try;; |
| 18373 | esac |
| 18374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18375 | (eval "$ac_try") 2>&5 |
| 18376 | ac_status=$? |
| 18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18378 | (exit $ac_status); }; } && |
| 18379 | { ac_try='test -s conftest$ac_exeext' |
| 18380 | { (case "(($ac_try" in |
| 18381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18382 | *) ac_try_echo=$ac_try;; |
| 18383 | esac |
| 18384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18385 | (eval "$ac_try") 2>&5 |
| 18386 | ac_status=$? |
| 18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18388 | (exit $ac_status); }; }; then |
| 18389 | ac_cv_lib_gcc___ashrdi3=yes |
| 18390 | else |
| 18391 | echo "$as_me: failed program was:" >&5 |
| 18392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18393 | |
| 18394 | ac_cv_lib_gcc___ashrdi3=no |
| 18395 | fi |
| 18396 | |
| 18397 | rm -f core conftest.err conftest.$ac_objext \ |
| 18398 | conftest$ac_exeext conftest.$ac_ext |
| 18399 | LIBS=$ac_check_lib_save_LIBS |
| 18400 | fi |
| 18401 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18402 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18403 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18404 | |
| 18405 | cat >>confdefs.h <<\_ACEOF |
| 18406 | #define HAVE___ASHRDI3 1 |
| 18407 | _ACEOF |
| 18408 | |
| 18409 | fi |
| 18410 | |
| 18411 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18412 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18413 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18415 | else |
| 18416 | ac_check_lib_save_LIBS=$LIBS |
| 18417 | LIBS="-lgcc $LIBS" |
| 18418 | cat >conftest.$ac_ext <<_ACEOF |
| 18419 | /* confdefs.h. */ |
| 18420 | _ACEOF |
| 18421 | cat confdefs.h >>conftest.$ac_ext |
| 18422 | cat >>conftest.$ac_ext <<_ACEOF |
| 18423 | /* end confdefs.h. */ |
| 18424 | |
| 18425 | /* Override any GCC internal prototype to avoid an error. |
| 18426 | Use char because int might match the return type of a GCC |
| 18427 | builtin and then its argument prototype would still apply. */ |
| 18428 | #ifdef __cplusplus |
| 18429 | extern "C" |
| 18430 | #endif |
| 18431 | char __divdi3 (); |
| 18432 | int |
| 18433 | main () |
| 18434 | { |
| 18435 | return __divdi3 (); |
| 18436 | ; |
| 18437 | return 0; |
| 18438 | } |
| 18439 | _ACEOF |
| 18440 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18441 | if { (ac_try="$ac_link" |
| 18442 | case "(($ac_try" in |
| 18443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18444 | *) ac_try_echo=$ac_try;; |
| 18445 | esac |
| 18446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18447 | (eval "$ac_link") 2>conftest.er1 |
| 18448 | ac_status=$? |
| 18449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18450 | rm -f conftest.er1 |
| 18451 | cat conftest.err >&5 |
| 18452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18453 | (exit $ac_status); } && |
| 18454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18455 | { (case "(($ac_try" in |
| 18456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18457 | *) ac_try_echo=$ac_try;; |
| 18458 | esac |
| 18459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18460 | (eval "$ac_try") 2>&5 |
| 18461 | ac_status=$? |
| 18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18463 | (exit $ac_status); }; } && |
| 18464 | { ac_try='test -s conftest$ac_exeext' |
| 18465 | { (case "(($ac_try" in |
| 18466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18467 | *) ac_try_echo=$ac_try;; |
| 18468 | esac |
| 18469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18470 | (eval "$ac_try") 2>&5 |
| 18471 | ac_status=$? |
| 18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18473 | (exit $ac_status); }; }; then |
| 18474 | ac_cv_lib_gcc___divdi3=yes |
| 18475 | else |
| 18476 | echo "$as_me: failed program was:" >&5 |
| 18477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18478 | |
| 18479 | ac_cv_lib_gcc___divdi3=no |
| 18480 | fi |
| 18481 | |
| 18482 | rm -f core conftest.err conftest.$ac_objext \ |
| 18483 | conftest$ac_exeext conftest.$ac_ext |
| 18484 | LIBS=$ac_check_lib_save_LIBS |
| 18485 | fi |
| 18486 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18487 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18488 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18489 | |
| 18490 | cat >>confdefs.h <<\_ACEOF |
| 18491 | #define HAVE___DIVDI3 1 |
| 18492 | _ACEOF |
| 18493 | |
| 18494 | fi |
| 18495 | |
| 18496 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18497 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18498 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18500 | else |
| 18501 | ac_check_lib_save_LIBS=$LIBS |
| 18502 | LIBS="-lgcc $LIBS" |
| 18503 | cat >conftest.$ac_ext <<_ACEOF |
| 18504 | /* confdefs.h. */ |
| 18505 | _ACEOF |
| 18506 | cat confdefs.h >>conftest.$ac_ext |
| 18507 | cat >>conftest.$ac_ext <<_ACEOF |
| 18508 | /* end confdefs.h. */ |
| 18509 | |
| 18510 | /* Override any GCC internal prototype to avoid an error. |
| 18511 | Use char because int might match the return type of a GCC |
| 18512 | builtin and then its argument prototype would still apply. */ |
| 18513 | #ifdef __cplusplus |
| 18514 | extern "C" |
| 18515 | #endif |
| 18516 | char __fixdfdi (); |
| 18517 | int |
| 18518 | main () |
| 18519 | { |
| 18520 | return __fixdfdi (); |
| 18521 | ; |
| 18522 | return 0; |
| 18523 | } |
| 18524 | _ACEOF |
| 18525 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18526 | if { (ac_try="$ac_link" |
| 18527 | case "(($ac_try" in |
| 18528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18529 | *) ac_try_echo=$ac_try;; |
| 18530 | esac |
| 18531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18532 | (eval "$ac_link") 2>conftest.er1 |
| 18533 | ac_status=$? |
| 18534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18535 | rm -f conftest.er1 |
| 18536 | cat conftest.err >&5 |
| 18537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18538 | (exit $ac_status); } && |
| 18539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18540 | { (case "(($ac_try" in |
| 18541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18542 | *) ac_try_echo=$ac_try;; |
| 18543 | esac |
| 18544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18545 | (eval "$ac_try") 2>&5 |
| 18546 | ac_status=$? |
| 18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18548 | (exit $ac_status); }; } && |
| 18549 | { ac_try='test -s conftest$ac_exeext' |
| 18550 | { (case "(($ac_try" in |
| 18551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18552 | *) ac_try_echo=$ac_try;; |
| 18553 | esac |
| 18554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18555 | (eval "$ac_try") 2>&5 |
| 18556 | ac_status=$? |
| 18557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18558 | (exit $ac_status); }; }; then |
| 18559 | ac_cv_lib_gcc___fixdfdi=yes |
| 18560 | else |
| 18561 | echo "$as_me: failed program was:" >&5 |
| 18562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18563 | |
| 18564 | ac_cv_lib_gcc___fixdfdi=no |
| 18565 | fi |
| 18566 | |
| 18567 | rm -f core conftest.err conftest.$ac_objext \ |
| 18568 | conftest$ac_exeext conftest.$ac_ext |
| 18569 | LIBS=$ac_check_lib_save_LIBS |
| 18570 | fi |
| 18571 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18572 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18573 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18574 | |
| 18575 | cat >>confdefs.h <<\_ACEOF |
| 18576 | #define HAVE___FIXDFDI 1 |
| 18577 | _ACEOF |
| 18578 | |
| 18579 | fi |
| 18580 | |
| 18581 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18582 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18583 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18585 | else |
| 18586 | ac_check_lib_save_LIBS=$LIBS |
| 18587 | LIBS="-lgcc $LIBS" |
| 18588 | cat >conftest.$ac_ext <<_ACEOF |
| 18589 | /* confdefs.h. */ |
| 18590 | _ACEOF |
| 18591 | cat confdefs.h >>conftest.$ac_ext |
| 18592 | cat >>conftest.$ac_ext <<_ACEOF |
| 18593 | /* end confdefs.h. */ |
| 18594 | |
| 18595 | /* Override any GCC internal prototype to avoid an error. |
| 18596 | Use char because int might match the return type of a GCC |
| 18597 | builtin and then its argument prototype would still apply. */ |
| 18598 | #ifdef __cplusplus |
| 18599 | extern "C" |
| 18600 | #endif |
| 18601 | char __fixsfdi (); |
| 18602 | int |
| 18603 | main () |
| 18604 | { |
| 18605 | return __fixsfdi (); |
| 18606 | ; |
| 18607 | return 0; |
| 18608 | } |
| 18609 | _ACEOF |
| 18610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18611 | if { (ac_try="$ac_link" |
| 18612 | case "(($ac_try" in |
| 18613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18614 | *) ac_try_echo=$ac_try;; |
| 18615 | esac |
| 18616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18617 | (eval "$ac_link") 2>conftest.er1 |
| 18618 | ac_status=$? |
| 18619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18620 | rm -f conftest.er1 |
| 18621 | cat conftest.err >&5 |
| 18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18623 | (exit $ac_status); } && |
| 18624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18625 | { (case "(($ac_try" in |
| 18626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18627 | *) ac_try_echo=$ac_try;; |
| 18628 | esac |
| 18629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18630 | (eval "$ac_try") 2>&5 |
| 18631 | ac_status=$? |
| 18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18633 | (exit $ac_status); }; } && |
| 18634 | { ac_try='test -s conftest$ac_exeext' |
| 18635 | { (case "(($ac_try" in |
| 18636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18637 | *) ac_try_echo=$ac_try;; |
| 18638 | esac |
| 18639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18640 | (eval "$ac_try") 2>&5 |
| 18641 | ac_status=$? |
| 18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18643 | (exit $ac_status); }; }; then |
| 18644 | ac_cv_lib_gcc___fixsfdi=yes |
| 18645 | else |
| 18646 | echo "$as_me: failed program was:" >&5 |
| 18647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18648 | |
| 18649 | ac_cv_lib_gcc___fixsfdi=no |
| 18650 | fi |
| 18651 | |
| 18652 | rm -f core conftest.err conftest.$ac_objext \ |
| 18653 | conftest$ac_exeext conftest.$ac_ext |
| 18654 | LIBS=$ac_check_lib_save_LIBS |
| 18655 | fi |
| 18656 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18657 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18658 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18659 | |
| 18660 | cat >>confdefs.h <<\_ACEOF |
| 18661 | #define HAVE___FIXSFDI 1 |
| 18662 | _ACEOF |
| 18663 | |
| 18664 | fi |
| 18665 | |
| 18666 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18667 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18668 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18670 | else |
| 18671 | ac_check_lib_save_LIBS=$LIBS |
| 18672 | LIBS="-lgcc $LIBS" |
| 18673 | cat >conftest.$ac_ext <<_ACEOF |
| 18674 | /* confdefs.h. */ |
| 18675 | _ACEOF |
| 18676 | cat confdefs.h >>conftest.$ac_ext |
| 18677 | cat >>conftest.$ac_ext <<_ACEOF |
| 18678 | /* end confdefs.h. */ |
| 18679 | |
| 18680 | /* Override any GCC internal prototype to avoid an error. |
| 18681 | Use char because int might match the return type of a GCC |
| 18682 | builtin and then its argument prototype would still apply. */ |
| 18683 | #ifdef __cplusplus |
| 18684 | extern "C" |
| 18685 | #endif |
| 18686 | char __floatdidf (); |
| 18687 | int |
| 18688 | main () |
| 18689 | { |
| 18690 | return __floatdidf (); |
| 18691 | ; |
| 18692 | return 0; |
| 18693 | } |
| 18694 | _ACEOF |
| 18695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18696 | if { (ac_try="$ac_link" |
| 18697 | case "(($ac_try" in |
| 18698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18699 | *) ac_try_echo=$ac_try;; |
| 18700 | esac |
| 18701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18702 | (eval "$ac_link") 2>conftest.er1 |
| 18703 | ac_status=$? |
| 18704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18705 | rm -f conftest.er1 |
| 18706 | cat conftest.err >&5 |
| 18707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18708 | (exit $ac_status); } && |
| 18709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18710 | { (case "(($ac_try" in |
| 18711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18712 | *) ac_try_echo=$ac_try;; |
| 18713 | esac |
| 18714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18715 | (eval "$ac_try") 2>&5 |
| 18716 | ac_status=$? |
| 18717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18718 | (exit $ac_status); }; } && |
| 18719 | { ac_try='test -s conftest$ac_exeext' |
| 18720 | { (case "(($ac_try" in |
| 18721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18722 | *) ac_try_echo=$ac_try;; |
| 18723 | esac |
| 18724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18725 | (eval "$ac_try") 2>&5 |
| 18726 | ac_status=$? |
| 18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18728 | (exit $ac_status); }; }; then |
| 18729 | ac_cv_lib_gcc___floatdidf=yes |
| 18730 | else |
| 18731 | echo "$as_me: failed program was:" >&5 |
| 18732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18733 | |
| 18734 | ac_cv_lib_gcc___floatdidf=no |
| 18735 | fi |
| 18736 | |
| 18737 | rm -f core conftest.err conftest.$ac_objext \ |
| 18738 | conftest$ac_exeext conftest.$ac_ext |
| 18739 | LIBS=$ac_check_lib_save_LIBS |
| 18740 | fi |
| 18741 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 18742 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 18743 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 18744 | |
| 18745 | cat >>confdefs.h <<\_ACEOF |
| 18746 | #define HAVE___FLOATDIDF 1 |
| 18747 | _ACEOF |
| 18748 | |
| 18749 | fi |
| 18750 | |
| 18751 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 18752 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18753 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 18754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18755 | else |
| 18756 | ac_check_lib_save_LIBS=$LIBS |
| 18757 | LIBS="-lgcc $LIBS" |
| 18758 | cat >conftest.$ac_ext <<_ACEOF |
| 18759 | /* confdefs.h. */ |
| 18760 | _ACEOF |
| 18761 | cat confdefs.h >>conftest.$ac_ext |
| 18762 | cat >>conftest.$ac_ext <<_ACEOF |
| 18763 | /* end confdefs.h. */ |
| 18764 | |
| 18765 | /* Override any GCC internal prototype to avoid an error. |
| 18766 | Use char because int might match the return type of a GCC |
| 18767 | builtin and then its argument prototype would still apply. */ |
| 18768 | #ifdef __cplusplus |
| 18769 | extern "C" |
| 18770 | #endif |
| 18771 | char __lshrdi3 (); |
| 18772 | int |
| 18773 | main () |
| 18774 | { |
| 18775 | return __lshrdi3 (); |
| 18776 | ; |
| 18777 | return 0; |
| 18778 | } |
| 18779 | _ACEOF |
| 18780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18781 | if { (ac_try="$ac_link" |
| 18782 | case "(($ac_try" in |
| 18783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18784 | *) ac_try_echo=$ac_try;; |
| 18785 | esac |
| 18786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18787 | (eval "$ac_link") 2>conftest.er1 |
| 18788 | ac_status=$? |
| 18789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18790 | rm -f conftest.er1 |
| 18791 | cat conftest.err >&5 |
| 18792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18793 | (exit $ac_status); } && |
| 18794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18795 | { (case "(($ac_try" in |
| 18796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18797 | *) ac_try_echo=$ac_try;; |
| 18798 | esac |
| 18799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18800 | (eval "$ac_try") 2>&5 |
| 18801 | ac_status=$? |
| 18802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18803 | (exit $ac_status); }; } && |
| 18804 | { ac_try='test -s conftest$ac_exeext' |
| 18805 | { (case "(($ac_try" in |
| 18806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18807 | *) ac_try_echo=$ac_try;; |
| 18808 | esac |
| 18809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18810 | (eval "$ac_try") 2>&5 |
| 18811 | ac_status=$? |
| 18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18813 | (exit $ac_status); }; }; then |
| 18814 | ac_cv_lib_gcc___lshrdi3=yes |
| 18815 | else |
| 18816 | echo "$as_me: failed program was:" >&5 |
| 18817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18818 | |
| 18819 | ac_cv_lib_gcc___lshrdi3=no |
| 18820 | fi |
| 18821 | |
| 18822 | rm -f core conftest.err conftest.$ac_objext \ |
| 18823 | conftest$ac_exeext conftest.$ac_ext |
| 18824 | LIBS=$ac_check_lib_save_LIBS |
| 18825 | fi |
| 18826 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 18827 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 18828 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 18829 | |
| 18830 | cat >>confdefs.h <<\_ACEOF |
| 18831 | #define HAVE___LSHRDI3 1 |
| 18832 | _ACEOF |
| 18833 | |
| 18834 | fi |
| 18835 | |
| 18836 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 18837 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 18838 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 18839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18840 | else |
| 18841 | ac_check_lib_save_LIBS=$LIBS |
| 18842 | LIBS="-lgcc $LIBS" |
| 18843 | cat >conftest.$ac_ext <<_ACEOF |
| 18844 | /* confdefs.h. */ |
| 18845 | _ACEOF |
| 18846 | cat confdefs.h >>conftest.$ac_ext |
| 18847 | cat >>conftest.$ac_ext <<_ACEOF |
| 18848 | /* end confdefs.h. */ |
| 18849 | |
| 18850 | /* Override any GCC internal prototype to avoid an error. |
| 18851 | Use char because int might match the return type of a GCC |
| 18852 | builtin and then its argument prototype would still apply. */ |
| 18853 | #ifdef __cplusplus |
| 18854 | extern "C" |
| 18855 | #endif |
| 18856 | char __moddi3 (); |
| 18857 | int |
| 18858 | main () |
| 18859 | { |
| 18860 | return __moddi3 (); |
| 18861 | ; |
| 18862 | return 0; |
| 18863 | } |
| 18864 | _ACEOF |
| 18865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18866 | if { (ac_try="$ac_link" |
| 18867 | case "(($ac_try" in |
| 18868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18869 | *) ac_try_echo=$ac_try;; |
| 18870 | esac |
| 18871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18872 | (eval "$ac_link") 2>conftest.er1 |
| 18873 | ac_status=$? |
| 18874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18875 | rm -f conftest.er1 |
| 18876 | cat conftest.err >&5 |
| 18877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18878 | (exit $ac_status); } && |
| 18879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18880 | { (case "(($ac_try" in |
| 18881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18882 | *) ac_try_echo=$ac_try;; |
| 18883 | esac |
| 18884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18885 | (eval "$ac_try") 2>&5 |
| 18886 | ac_status=$? |
| 18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18888 | (exit $ac_status); }; } && |
| 18889 | { ac_try='test -s conftest$ac_exeext' |
| 18890 | { (case "(($ac_try" in |
| 18891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18892 | *) ac_try_echo=$ac_try;; |
| 18893 | esac |
| 18894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18895 | (eval "$ac_try") 2>&5 |
| 18896 | ac_status=$? |
| 18897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18898 | (exit $ac_status); }; }; then |
| 18899 | ac_cv_lib_gcc___moddi3=yes |
| 18900 | else |
| 18901 | echo "$as_me: failed program was:" >&5 |
| 18902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18903 | |
| 18904 | ac_cv_lib_gcc___moddi3=no |
| 18905 | fi |
| 18906 | |
| 18907 | rm -f core conftest.err conftest.$ac_objext \ |
| 18908 | conftest$ac_exeext conftest.$ac_ext |
| 18909 | LIBS=$ac_check_lib_save_LIBS |
| 18910 | fi |
| 18911 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 18912 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 18913 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 18914 | |
| 18915 | cat >>confdefs.h <<\_ACEOF |
| 18916 | #define HAVE___MODDI3 1 |
| 18917 | _ACEOF |
| 18918 | |
| 18919 | fi |
| 18920 | |
| 18921 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 18922 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 18923 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 18924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18925 | else |
| 18926 | ac_check_lib_save_LIBS=$LIBS |
| 18927 | LIBS="-lgcc $LIBS" |
| 18928 | cat >conftest.$ac_ext <<_ACEOF |
| 18929 | /* confdefs.h. */ |
| 18930 | _ACEOF |
| 18931 | cat confdefs.h >>conftest.$ac_ext |
| 18932 | cat >>conftest.$ac_ext <<_ACEOF |
| 18933 | /* end confdefs.h. */ |
| 18934 | |
| 18935 | /* Override any GCC internal prototype to avoid an error. |
| 18936 | Use char because int might match the return type of a GCC |
| 18937 | builtin and then its argument prototype would still apply. */ |
| 18938 | #ifdef __cplusplus |
| 18939 | extern "C" |
| 18940 | #endif |
| 18941 | char __udivdi3 (); |
| 18942 | int |
| 18943 | main () |
| 18944 | { |
| 18945 | return __udivdi3 (); |
| 18946 | ; |
| 18947 | return 0; |
| 18948 | } |
| 18949 | _ACEOF |
| 18950 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18951 | if { (ac_try="$ac_link" |
| 18952 | case "(($ac_try" in |
| 18953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18954 | *) ac_try_echo=$ac_try;; |
| 18955 | esac |
| 18956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18957 | (eval "$ac_link") 2>conftest.er1 |
| 18958 | ac_status=$? |
| 18959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18960 | rm -f conftest.er1 |
| 18961 | cat conftest.err >&5 |
| 18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18963 | (exit $ac_status); } && |
| 18964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18965 | { (case "(($ac_try" in |
| 18966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18967 | *) ac_try_echo=$ac_try;; |
| 18968 | esac |
| 18969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18970 | (eval "$ac_try") 2>&5 |
| 18971 | ac_status=$? |
| 18972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18973 | (exit $ac_status); }; } && |
| 18974 | { ac_try='test -s conftest$ac_exeext' |
| 18975 | { (case "(($ac_try" in |
| 18976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18977 | *) ac_try_echo=$ac_try;; |
| 18978 | esac |
| 18979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18980 | (eval "$ac_try") 2>&5 |
| 18981 | ac_status=$? |
| 18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18983 | (exit $ac_status); }; }; then |
| 18984 | ac_cv_lib_gcc___udivdi3=yes |
| 18985 | else |
| 18986 | echo "$as_me: failed program was:" >&5 |
| 18987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18988 | |
| 18989 | ac_cv_lib_gcc___udivdi3=no |
| 18990 | fi |
| 18991 | |
| 18992 | rm -f core conftest.err conftest.$ac_objext \ |
| 18993 | conftest$ac_exeext conftest.$ac_ext |
| 18994 | LIBS=$ac_check_lib_save_LIBS |
| 18995 | fi |
| 18996 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 18997 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 18998 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 18999 | |
| 19000 | cat >>confdefs.h <<\_ACEOF |
| 19001 | #define HAVE___UDIVDI3 1 |
| 19002 | _ACEOF |
| 19003 | |
| 19004 | fi |
| 19005 | |
| 19006 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 19007 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 19008 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 19009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19010 | else |
| 19011 | ac_check_lib_save_LIBS=$LIBS |
| 19012 | LIBS="-lgcc $LIBS" |
| 19013 | cat >conftest.$ac_ext <<_ACEOF |
| 19014 | /* confdefs.h. */ |
| 19015 | _ACEOF |
| 19016 | cat confdefs.h >>conftest.$ac_ext |
| 19017 | cat >>conftest.$ac_ext <<_ACEOF |
| 19018 | /* end confdefs.h. */ |
| 19019 | |
| 19020 | /* Override any GCC internal prototype to avoid an error. |
| 19021 | Use char because int might match the return type of a GCC |
| 19022 | builtin and then its argument prototype would still apply. */ |
| 19023 | #ifdef __cplusplus |
| 19024 | extern "C" |
| 19025 | #endif |
| 19026 | char __umoddi3 (); |
| 19027 | int |
| 19028 | main () |
| 19029 | { |
| 19030 | return __umoddi3 (); |
| 19031 | ; |
| 19032 | return 0; |
| 19033 | } |
| 19034 | _ACEOF |
| 19035 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19036 | if { (ac_try="$ac_link" |
| 19037 | case "(($ac_try" in |
| 19038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19039 | *) ac_try_echo=$ac_try;; |
| 19040 | esac |
| 19041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19042 | (eval "$ac_link") 2>conftest.er1 |
| 19043 | ac_status=$? |
| 19044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19045 | rm -f conftest.er1 |
| 19046 | cat conftest.err >&5 |
| 19047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19048 | (exit $ac_status); } && |
| 19049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19050 | { (case "(($ac_try" in |
| 19051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19052 | *) ac_try_echo=$ac_try;; |
| 19053 | esac |
| 19054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19055 | (eval "$ac_try") 2>&5 |
| 19056 | ac_status=$? |
| 19057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19058 | (exit $ac_status); }; } && |
| 19059 | { ac_try='test -s conftest$ac_exeext' |
| 19060 | { (case "(($ac_try" in |
| 19061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19062 | *) ac_try_echo=$ac_try;; |
| 19063 | esac |
| 19064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19065 | (eval "$ac_try") 2>&5 |
| 19066 | ac_status=$? |
| 19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19068 | (exit $ac_status); }; }; then |
| 19069 | ac_cv_lib_gcc___umoddi3=yes |
| 19070 | else |
| 19071 | echo "$as_me: failed program was:" >&5 |
| 19072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19073 | |
| 19074 | ac_cv_lib_gcc___umoddi3=no |
| 19075 | fi |
| 19076 | |
| 19077 | rm -f core conftest.err conftest.$ac_objext \ |
| 19078 | conftest$ac_exeext conftest.$ac_ext |
| 19079 | LIBS=$ac_check_lib_save_LIBS |
| 19080 | fi |
| 19081 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 19082 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 19083 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 19084 | |
| 19085 | cat >>confdefs.h <<\_ACEOF |
| 19086 | #define HAVE___UMODDI3 1 |
| 19087 | _ACEOF |
| 19088 | |
| 19089 | fi |
| 19090 | |
| 19091 | |
| 19092 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 19093 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 19094 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 19095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19096 | else |
| 19097 | ac_check_lib_save_LIBS=$LIBS |
| 19098 | LIBS="-lgcc $LIBS" |
| 19099 | cat >conftest.$ac_ext <<_ACEOF |
| 19100 | /* confdefs.h. */ |
| 19101 | _ACEOF |
| 19102 | cat confdefs.h >>conftest.$ac_ext |
| 19103 | cat >>conftest.$ac_ext <<_ACEOF |
| 19104 | /* end confdefs.h. */ |
| 19105 | |
| 19106 | /* Override any GCC internal prototype to avoid an error. |
| 19107 | Use char because int might match the return type of a GCC |
| 19108 | builtin and then its argument prototype would still apply. */ |
| 19109 | #ifdef __cplusplus |
| 19110 | extern "C" |
| 19111 | #endif |
| 19112 | char __main (); |
| 19113 | int |
| 19114 | main () |
| 19115 | { |
| 19116 | return __main (); |
| 19117 | ; |
| 19118 | return 0; |
| 19119 | } |
| 19120 | _ACEOF |
| 19121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19122 | if { (ac_try="$ac_link" |
| 19123 | case "(($ac_try" in |
| 19124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19125 | *) ac_try_echo=$ac_try;; |
| 19126 | esac |
| 19127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19128 | (eval "$ac_link") 2>conftest.er1 |
| 19129 | ac_status=$? |
| 19130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19131 | rm -f conftest.er1 |
| 19132 | cat conftest.err >&5 |
| 19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19134 | (exit $ac_status); } && |
| 19135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19136 | { (case "(($ac_try" in |
| 19137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19138 | *) ac_try_echo=$ac_try;; |
| 19139 | esac |
| 19140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19141 | (eval "$ac_try") 2>&5 |
| 19142 | ac_status=$? |
| 19143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19144 | (exit $ac_status); }; } && |
| 19145 | { ac_try='test -s conftest$ac_exeext' |
| 19146 | { (case "(($ac_try" in |
| 19147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19148 | *) ac_try_echo=$ac_try;; |
| 19149 | esac |
| 19150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19151 | (eval "$ac_try") 2>&5 |
| 19152 | ac_status=$? |
| 19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19154 | (exit $ac_status); }; }; then |
| 19155 | ac_cv_lib_gcc___main=yes |
| 19156 | else |
| 19157 | echo "$as_me: failed program was:" >&5 |
| 19158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19159 | |
| 19160 | ac_cv_lib_gcc___main=no |
| 19161 | fi |
| 19162 | |
| 19163 | rm -f core conftest.err conftest.$ac_objext \ |
| 19164 | conftest$ac_exeext conftest.$ac_ext |
| 19165 | LIBS=$ac_check_lib_save_LIBS |
| 19166 | fi |
| 19167 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19168 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19169 | if test $ac_cv_lib_gcc___main = yes; then |
| 19170 | |
| 19171 | cat >>confdefs.h <<\_ACEOF |
| 19172 | #define HAVE___MAIN 1 |
| 19173 | _ACEOF |
| 19174 | |
| 19175 | fi |
| 19176 | |
| 19177 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19178 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19179 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19181 | else |
| 19182 | ac_check_lib_save_LIBS=$LIBS |
| 19183 | LIBS="-lgcc $LIBS" |
| 19184 | cat >conftest.$ac_ext <<_ACEOF |
| 19185 | /* confdefs.h. */ |
| 19186 | _ACEOF |
| 19187 | cat confdefs.h >>conftest.$ac_ext |
| 19188 | cat >>conftest.$ac_ext <<_ACEOF |
| 19189 | /* end confdefs.h. */ |
| 19190 | |
| 19191 | /* Override any GCC internal prototype to avoid an error. |
| 19192 | Use char because int might match the return type of a GCC |
| 19193 | builtin and then its argument prototype would still apply. */ |
| 19194 | #ifdef __cplusplus |
| 19195 | extern "C" |
| 19196 | #endif |
| 19197 | char __cmpdi2 (); |
| 19198 | int |
| 19199 | main () |
| 19200 | { |
| 19201 | return __cmpdi2 (); |
| 19202 | ; |
| 19203 | return 0; |
| 19204 | } |
| 19205 | _ACEOF |
| 19206 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19207 | if { (ac_try="$ac_link" |
| 19208 | case "(($ac_try" in |
| 19209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19210 | *) ac_try_echo=$ac_try;; |
| 19211 | esac |
| 19212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19213 | (eval "$ac_link") 2>conftest.er1 |
| 19214 | ac_status=$? |
| 19215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19216 | rm -f conftest.er1 |
| 19217 | cat conftest.err >&5 |
| 19218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19219 | (exit $ac_status); } && |
| 19220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19221 | { (case "(($ac_try" in |
| 19222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19223 | *) ac_try_echo=$ac_try;; |
| 19224 | esac |
| 19225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19226 | (eval "$ac_try") 2>&5 |
| 19227 | ac_status=$? |
| 19228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19229 | (exit $ac_status); }; } && |
| 19230 | { ac_try='test -s conftest$ac_exeext' |
| 19231 | { (case "(($ac_try" in |
| 19232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19233 | *) ac_try_echo=$ac_try;; |
| 19234 | esac |
| 19235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19236 | (eval "$ac_try") 2>&5 |
| 19237 | ac_status=$? |
| 19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19239 | (exit $ac_status); }; }; then |
| 19240 | ac_cv_lib_gcc___cmpdi2=yes |
| 19241 | else |
| 19242 | echo "$as_me: failed program was:" >&5 |
| 19243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19244 | |
| 19245 | ac_cv_lib_gcc___cmpdi2=no |
| 19246 | fi |
| 19247 | |
| 19248 | rm -f core conftest.err conftest.$ac_objext \ |
| 19249 | conftest$ac_exeext conftest.$ac_ext |
| 19250 | LIBS=$ac_check_lib_save_LIBS |
| 19251 | fi |
| 19252 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19253 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19254 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19255 | |
| 19256 | cat >>confdefs.h <<\_ACEOF |
| 19257 | #define HAVE___CMPDI2 1 |
| 19258 | _ACEOF |
| 19259 | |
| 19260 | fi |
| 19261 | |
| 19262 | fi |
| 19263 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19264 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19265 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19266 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19267 | cat >conftest.$ac_ext <<_ACEOF |
| 19268 | #include <windows.h> |
| 19269 | #include <imagehlp.h> |
| 19270 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19271 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19272 | _ACEOF |
| 19273 | rm -f conftest.$ac_objext |
| 19274 | if { (ac_try="$ac_compile" |
| 19275 | case "(($ac_try" in |
| 19276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19277 | *) ac_try_echo=$ac_try;; |
| 19278 | esac |
| 19279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19280 | (eval "$ac_compile") 2>conftest.er1 |
| 19281 | ac_status=$? |
| 19282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19283 | rm -f conftest.er1 |
| 19284 | cat conftest.err >&5 |
| 19285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19286 | (exit $ac_status); } && |
| 19287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19288 | { (case "(($ac_try" in |
| 19289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19290 | *) ac_try_echo=$ac_try;; |
| 19291 | esac |
| 19292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19293 | (eval "$ac_try") 2>&5 |
| 19294 | ac_status=$? |
| 19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19296 | (exit $ac_status); }; } && |
| 19297 | { ac_try='test -s conftest.$ac_objext' |
| 19298 | { (case "(($ac_try" in |
| 19299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19300 | *) ac_try_echo=$ac_try;; |
| 19301 | esac |
| 19302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19303 | (eval "$ac_try") 2>&5 |
| 19304 | ac_status=$? |
| 19305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19306 | (exit $ac_status); }; }; then |
| 19307 | |
| 19308 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19309 | echo "${ECHO_T}yes" >&6; } |
| 19310 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19311 | |
| 19312 | else |
| 19313 | echo "$as_me: failed program was:" >&5 |
| 19314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19315 | |
| 19316 | |
| 19317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19318 | echo "${ECHO_T}no" >&6; } |
| 19319 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19320 | |
| 19321 | fi |
| 19322 | |
| 19323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19324 | |
| 19325 | cat >>confdefs.h <<_ACEOF |
| 19326 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19327 | _ACEOF |
| 19328 | |
| 19329 | fi |
| 19330 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19331 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19332 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19333 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19334 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19336 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19337 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19338 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19342 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19343 | cat >conftest.$ac_ext <<_ACEOF |
| 19344 | /* confdefs.h. */ |
| 19345 | _ACEOF |
| 19346 | cat confdefs.h >>conftest.$ac_ext |
| 19347 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19348 | /* end confdefs.h. */ |
| 19349 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19350 | int |
| 19351 | main () |
| 19352 | { |
| 19353 | float f; isnan(f); |
| 19354 | ; |
| 19355 | return 0; |
| 19356 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19357 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19358 | rm -f conftest.$ac_objext |
| 19359 | if { (ac_try="$ac_compile" |
| 19360 | case "(($ac_try" in |
| 19361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19362 | *) ac_try_echo=$ac_try;; |
| 19363 | esac |
| 19364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19365 | (eval "$ac_compile") 2>conftest.er1 |
| 19366 | ac_status=$? |
| 19367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19368 | rm -f conftest.er1 |
| 19369 | cat conftest.err >&5 |
| 19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19371 | (exit $ac_status); } && |
| 19372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19373 | { (case "(($ac_try" in |
| 19374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19375 | *) ac_try_echo=$ac_try;; |
| 19376 | esac |
| 19377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19378 | (eval "$ac_try") 2>&5 |
| 19379 | ac_status=$? |
| 19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19381 | (exit $ac_status); }; } && |
| 19382 | { ac_try='test -s conftest.$ac_objext' |
| 19383 | { (case "(($ac_try" in |
| 19384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19385 | *) ac_try_echo=$ac_try;; |
| 19386 | esac |
| 19387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19388 | (eval "$ac_try") 2>&5 |
| 19389 | ac_status=$? |
| 19390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19391 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19392 | ac_cv_func_isnan_in_math_h=yes |
| 19393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19394 | echo "$as_me: failed program was:" >&5 |
| 19395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19396 | |
| 19397 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19398 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19401 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19402 | ac_cpp='$CPP $CPPFLAGS' |
| 19403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19406 | |
| 19407 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19408 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19409 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19410 | |
| 19411 | |
| 19412 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19413 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19414 | cat >>confdefs.h <<\_ACEOF |
| 19415 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19416 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19417 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19418 | fi |
| 19419 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19420 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19421 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19422 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19424 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19425 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19426 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19427 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19428 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19429 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19430 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19431 | cat >conftest.$ac_ext <<_ACEOF |
| 19432 | /* confdefs.h. */ |
| 19433 | _ACEOF |
| 19434 | cat confdefs.h >>conftest.$ac_ext |
| 19435 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19436 | /* end confdefs.h. */ |
| 19437 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19438 | int |
| 19439 | main () |
| 19440 | { |
| 19441 | float f; isnan(f); |
| 19442 | ; |
| 19443 | return 0; |
| 19444 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19445 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19446 | rm -f conftest.$ac_objext |
| 19447 | if { (ac_try="$ac_compile" |
| 19448 | case "(($ac_try" in |
| 19449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19450 | *) ac_try_echo=$ac_try;; |
| 19451 | esac |
| 19452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19453 | (eval "$ac_compile") 2>conftest.er1 |
| 19454 | ac_status=$? |
| 19455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19456 | rm -f conftest.er1 |
| 19457 | cat conftest.err >&5 |
| 19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19459 | (exit $ac_status); } && |
| 19460 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19461 | { (case "(($ac_try" in |
| 19462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19463 | *) ac_try_echo=$ac_try;; |
| 19464 | esac |
| 19465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19466 | (eval "$ac_try") 2>&5 |
| 19467 | ac_status=$? |
| 19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19469 | (exit $ac_status); }; } && |
| 19470 | { ac_try='test -s conftest.$ac_objext' |
| 19471 | { (case "(($ac_try" in |
| 19472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19473 | *) ac_try_echo=$ac_try;; |
| 19474 | esac |
| 19475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19476 | (eval "$ac_try") 2>&5 |
| 19477 | ac_status=$? |
| 19478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19479 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19480 | ac_cv_func_isnan_in_cmath=yes |
| 19481 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19482 | echo "$as_me: failed program was:" >&5 |
| 19483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19484 | |
| 19485 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19486 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19489 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19490 | ac_cpp='$CPP $CPPFLAGS' |
| 19491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19494 | |
| 19495 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19496 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19497 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19498 | |
| 19499 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19500 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19501 | cat >>confdefs.h <<\_ACEOF |
| 19502 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19503 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19504 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19505 | fi |
| 19506 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19507 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19508 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19509 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19511 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19512 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19513 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19514 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19515 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19516 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19517 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19518 | cat >conftest.$ac_ext <<_ACEOF |
| 19519 | /* confdefs.h. */ |
| 19520 | _ACEOF |
| 19521 | cat confdefs.h >>conftest.$ac_ext |
| 19522 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19523 | /* end confdefs.h. */ |
| 19524 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19525 | int |
| 19526 | main () |
| 19527 | { |
| 19528 | float f; std::isnan(f); |
| 19529 | ; |
| 19530 | return 0; |
| 19531 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19532 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19533 | rm -f conftest.$ac_objext |
| 19534 | if { (ac_try="$ac_compile" |
| 19535 | case "(($ac_try" in |
| 19536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19537 | *) ac_try_echo=$ac_try;; |
| 19538 | esac |
| 19539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19540 | (eval "$ac_compile") 2>conftest.er1 |
| 19541 | ac_status=$? |
| 19542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19543 | rm -f conftest.er1 |
| 19544 | cat conftest.err >&5 |
| 19545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19546 | (exit $ac_status); } && |
| 19547 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19548 | { (case "(($ac_try" in |
| 19549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19550 | *) ac_try_echo=$ac_try;; |
| 19551 | esac |
| 19552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19553 | (eval "$ac_try") 2>&5 |
| 19554 | ac_status=$? |
| 19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19556 | (exit $ac_status); }; } && |
| 19557 | { ac_try='test -s conftest.$ac_objext' |
| 19558 | { (case "(($ac_try" in |
| 19559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19560 | *) ac_try_echo=$ac_try;; |
| 19561 | esac |
| 19562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19563 | (eval "$ac_try") 2>&5 |
| 19564 | ac_status=$? |
| 19565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19566 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19567 | ac_cv_func_std_isnan_in_cmath=yes |
| 19568 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19569 | echo "$as_me: failed program was:" >&5 |
| 19570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19571 | |
| 19572 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19573 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19576 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19577 | ac_cpp='$CPP $CPPFLAGS' |
| 19578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19581 | |
| 19582 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19583 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19584 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19585 | |
| 19586 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19587 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19588 | cat >>confdefs.h <<\_ACEOF |
| 19589 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19590 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19591 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19592 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19593 | |
| 19594 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19595 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19596 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19597 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19599 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19600 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19601 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19602 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19603 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19604 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19605 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19606 | cat >conftest.$ac_ext <<_ACEOF |
| 19607 | /* confdefs.h. */ |
| 19608 | _ACEOF |
| 19609 | cat confdefs.h >>conftest.$ac_ext |
| 19610 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19611 | /* end confdefs.h. */ |
| 19612 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19613 | int |
| 19614 | main () |
| 19615 | { |
| 19616 | float f; isinf(f); |
| 19617 | ; |
| 19618 | return 0; |
| 19619 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19620 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19621 | rm -f conftest.$ac_objext |
| 19622 | if { (ac_try="$ac_compile" |
| 19623 | case "(($ac_try" in |
| 19624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19625 | *) ac_try_echo=$ac_try;; |
| 19626 | esac |
| 19627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19628 | (eval "$ac_compile") 2>conftest.er1 |
| 19629 | ac_status=$? |
| 19630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19631 | rm -f conftest.er1 |
| 19632 | cat conftest.err >&5 |
| 19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19634 | (exit $ac_status); } && |
| 19635 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19636 | { (case "(($ac_try" in |
| 19637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19638 | *) ac_try_echo=$ac_try;; |
| 19639 | esac |
| 19640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19641 | (eval "$ac_try") 2>&5 |
| 19642 | ac_status=$? |
| 19643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19644 | (exit $ac_status); }; } && |
| 19645 | { ac_try='test -s conftest.$ac_objext' |
| 19646 | { (case "(($ac_try" in |
| 19647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19648 | *) ac_try_echo=$ac_try;; |
| 19649 | esac |
| 19650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19651 | (eval "$ac_try") 2>&5 |
| 19652 | ac_status=$? |
| 19653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19654 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19655 | ac_cv_func_isinf_in_math_h=yes |
| 19656 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19657 | echo "$as_me: failed program was:" >&5 |
| 19658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19659 | |
| 19660 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19661 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19664 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19665 | ac_cpp='$CPP $CPPFLAGS' |
| 19666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19669 | |
| 19670 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19671 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19672 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19673 | |
| 19674 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19675 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19676 | cat >>confdefs.h <<\_ACEOF |
| 19677 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19678 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19679 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19680 | fi |
| 19681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19682 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19683 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19684 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19686 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19687 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19688 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19693 | cat >conftest.$ac_ext <<_ACEOF |
| 19694 | /* confdefs.h. */ |
| 19695 | _ACEOF |
| 19696 | cat confdefs.h >>conftest.$ac_ext |
| 19697 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19698 | /* end confdefs.h. */ |
| 19699 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19700 | int |
| 19701 | main () |
| 19702 | { |
| 19703 | float f; isinf(f); |
| 19704 | ; |
| 19705 | return 0; |
| 19706 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19707 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19708 | rm -f conftest.$ac_objext |
| 19709 | if { (ac_try="$ac_compile" |
| 19710 | case "(($ac_try" in |
| 19711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19712 | *) ac_try_echo=$ac_try;; |
| 19713 | esac |
| 19714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19715 | (eval "$ac_compile") 2>conftest.er1 |
| 19716 | ac_status=$? |
| 19717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19718 | rm -f conftest.er1 |
| 19719 | cat conftest.err >&5 |
| 19720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19721 | (exit $ac_status); } && |
| 19722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19723 | { (case "(($ac_try" in |
| 19724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19725 | *) ac_try_echo=$ac_try;; |
| 19726 | esac |
| 19727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19728 | (eval "$ac_try") 2>&5 |
| 19729 | ac_status=$? |
| 19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19731 | (exit $ac_status); }; } && |
| 19732 | { ac_try='test -s conftest.$ac_objext' |
| 19733 | { (case "(($ac_try" in |
| 19734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19735 | *) ac_try_echo=$ac_try;; |
| 19736 | esac |
| 19737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19738 | (eval "$ac_try") 2>&5 |
| 19739 | ac_status=$? |
| 19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19741 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19742 | ac_cv_func_isinf_in_cmath=yes |
| 19743 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19744 | echo "$as_me: failed program was:" >&5 |
| 19745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19746 | |
| 19747 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19748 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19751 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19752 | ac_cpp='$CPP $CPPFLAGS' |
| 19753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19756 | |
| 19757 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19758 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19759 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19760 | |
| 19761 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19763 | cat >>confdefs.h <<\_ACEOF |
| 19764 | #define HAVE_ISINF_IN_CMATH 1 |
| 19765 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19766 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19767 | fi |
| 19768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19769 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19770 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19771 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19773 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19774 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19775 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19776 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19777 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19778 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19780 | cat >conftest.$ac_ext <<_ACEOF |
| 19781 | /* confdefs.h. */ |
| 19782 | _ACEOF |
| 19783 | cat confdefs.h >>conftest.$ac_ext |
| 19784 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19785 | /* end confdefs.h. */ |
| 19786 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19787 | int |
| 19788 | main () |
| 19789 | { |
| 19790 | float f; std::isinf(f)} |
| 19791 | ; |
| 19792 | return 0; |
| 19793 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19794 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19795 | rm -f conftest.$ac_objext |
| 19796 | if { (ac_try="$ac_compile" |
| 19797 | case "(($ac_try" in |
| 19798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19799 | *) ac_try_echo=$ac_try;; |
| 19800 | esac |
| 19801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19802 | (eval "$ac_compile") 2>conftest.er1 |
| 19803 | ac_status=$? |
| 19804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19805 | rm -f conftest.er1 |
| 19806 | cat conftest.err >&5 |
| 19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19808 | (exit $ac_status); } && |
| 19809 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19810 | { (case "(($ac_try" in |
| 19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19812 | *) ac_try_echo=$ac_try;; |
| 19813 | esac |
| 19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19815 | (eval "$ac_try") 2>&5 |
| 19816 | ac_status=$? |
| 19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19818 | (exit $ac_status); }; } && |
| 19819 | { ac_try='test -s conftest.$ac_objext' |
| 19820 | { (case "(($ac_try" in |
| 19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19822 | *) ac_try_echo=$ac_try;; |
| 19823 | esac |
| 19824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19825 | (eval "$ac_try") 2>&5 |
| 19826 | ac_status=$? |
| 19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19828 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19829 | ac_cv_func_std_isinf_in_cmath=yes |
| 19830 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19831 | echo "$as_me: failed program was:" >&5 |
| 19832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19833 | |
| 19834 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19835 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19838 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19839 | ac_cpp='$CPP $CPPFLAGS' |
| 19840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19843 | |
| 19844 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19845 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19846 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19847 | |
| 19848 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19849 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19850 | cat >>confdefs.h <<\_ACEOF |
| 19851 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19852 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19853 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19854 | fi |
| 19855 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19856 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19857 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19858 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19860 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19861 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19862 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19866 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19867 | cat >conftest.$ac_ext <<_ACEOF |
| 19868 | /* confdefs.h. */ |
| 19869 | _ACEOF |
| 19870 | cat confdefs.h >>conftest.$ac_ext |
| 19871 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19872 | /* end confdefs.h. */ |
| 19873 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19874 | int |
| 19875 | main () |
| 19876 | { |
| 19877 | float f; finite(f); |
| 19878 | ; |
| 19879 | return 0; |
| 19880 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19881 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19882 | rm -f conftest.$ac_objext |
| 19883 | if { (ac_try="$ac_compile" |
| 19884 | case "(($ac_try" in |
| 19885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19886 | *) ac_try_echo=$ac_try;; |
| 19887 | esac |
| 19888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19889 | (eval "$ac_compile") 2>conftest.er1 |
| 19890 | ac_status=$? |
| 19891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19892 | rm -f conftest.er1 |
| 19893 | cat conftest.err >&5 |
| 19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19895 | (exit $ac_status); } && |
| 19896 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19897 | { (case "(($ac_try" in |
| 19898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19899 | *) ac_try_echo=$ac_try;; |
| 19900 | esac |
| 19901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19902 | (eval "$ac_try") 2>&5 |
| 19903 | ac_status=$? |
| 19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19905 | (exit $ac_status); }; } && |
| 19906 | { ac_try='test -s conftest.$ac_objext' |
| 19907 | { (case "(($ac_try" in |
| 19908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19909 | *) ac_try_echo=$ac_try;; |
| 19910 | esac |
| 19911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19912 | (eval "$ac_try") 2>&5 |
| 19913 | ac_status=$? |
| 19914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19915 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19916 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19917 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19918 | echo "$as_me: failed program was:" >&5 |
| 19919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19920 | |
| 19921 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19922 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19925 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19926 | ac_cpp='$CPP $CPPFLAGS' |
| 19927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19930 | |
| 19931 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19932 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19933 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19934 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19935 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19936 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19937 | cat >>confdefs.h <<\_ACEOF |
| 19938 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19939 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19940 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19941 | fi |
| 19942 | |
| 19943 | |
| 19944 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19945 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19946 | |
| 19947 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19948 | for ac_header in stdlib.h unistd.h |
| 19949 | do |
| 19950 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19951 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19952 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19954 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19956 | fi |
| 19957 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19958 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19959 | echo "${ECHO_T}$ac_res" >&6; } |
| 19960 | else |
| 19961 | # Is the header compilable? |
| 19962 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19963 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19964 | cat >conftest.$ac_ext <<_ACEOF |
| 19965 | /* confdefs.h. */ |
| 19966 | _ACEOF |
| 19967 | cat confdefs.h >>conftest.$ac_ext |
| 19968 | cat >>conftest.$ac_ext <<_ACEOF |
| 19969 | /* end confdefs.h. */ |
| 19970 | $ac_includes_default |
| 19971 | #include <$ac_header> |
| 19972 | _ACEOF |
| 19973 | rm -f conftest.$ac_objext |
| 19974 | if { (ac_try="$ac_compile" |
| 19975 | case "(($ac_try" in |
| 19976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19977 | *) ac_try_echo=$ac_try;; |
| 19978 | esac |
| 19979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19980 | (eval "$ac_compile") 2>conftest.er1 |
| 19981 | ac_status=$? |
| 19982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19983 | rm -f conftest.er1 |
| 19984 | cat conftest.err >&5 |
| 19985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19986 | (exit $ac_status); } && |
| 19987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19988 | { (case "(($ac_try" in |
| 19989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19990 | *) ac_try_echo=$ac_try;; |
| 19991 | esac |
| 19992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19993 | (eval "$ac_try") 2>&5 |
| 19994 | ac_status=$? |
| 19995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19996 | (exit $ac_status); }; } && |
| 19997 | { ac_try='test -s conftest.$ac_objext' |
| 19998 | { (case "(($ac_try" in |
| 19999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20000 | *) ac_try_echo=$ac_try;; |
| 20001 | esac |
| 20002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20003 | (eval "$ac_try") 2>&5 |
| 20004 | ac_status=$? |
| 20005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20006 | (exit $ac_status); }; }; then |
| 20007 | ac_header_compiler=yes |
| 20008 | else |
| 20009 | echo "$as_me: failed program was:" >&5 |
| 20010 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20011 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20012 | ac_header_compiler=no |
| 20013 | fi |
| 20014 | |
| 20015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20016 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20017 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 20018 | |
| 20019 | # Is the header present? |
| 20020 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20021 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 20022 | cat >conftest.$ac_ext <<_ACEOF |
| 20023 | /* confdefs.h. */ |
| 20024 | _ACEOF |
| 20025 | cat confdefs.h >>conftest.$ac_ext |
| 20026 | cat >>conftest.$ac_ext <<_ACEOF |
| 20027 | /* end confdefs.h. */ |
| 20028 | #include <$ac_header> |
| 20029 | _ACEOF |
| 20030 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20031 | case "(($ac_try" in |
| 20032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20033 | *) ac_try_echo=$ac_try;; |
| 20034 | esac |
| 20035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20036 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20037 | ac_status=$? |
| 20038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20039 | rm -f conftest.er1 |
| 20040 | cat conftest.err >&5 |
| 20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20042 | (exit $ac_status); } >/dev/null; then |
| 20043 | if test -s conftest.err; then |
| 20044 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20045 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20046 | else |
| 20047 | ac_cpp_err= |
| 20048 | fi |
| 20049 | else |
| 20050 | ac_cpp_err=yes |
| 20051 | fi |
| 20052 | if test -z "$ac_cpp_err"; then |
| 20053 | ac_header_preproc=yes |
| 20054 | else |
| 20055 | echo "$as_me: failed program was:" >&5 |
| 20056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20057 | |
| 20058 | ac_header_preproc=no |
| 20059 | fi |
| 20060 | |
| 20061 | rm -f conftest.err conftest.$ac_ext |
| 20062 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20063 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20064 | |
| 20065 | # So? What about this header? |
| 20066 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20067 | yes:no: ) |
| 20068 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20069 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20070 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20071 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20072 | ac_header_preproc=yes |
| 20073 | ;; |
| 20074 | no:yes:* ) |
| 20075 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20076 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20077 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20078 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20079 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20080 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20081 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20082 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20084 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20085 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20086 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20087 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20088 | ## ------------------------------------ ## |
| 20089 | ## Report this to http://llvm.org/bugs/ ## |
| 20090 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20091 | _ASBOX |
| 20092 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 20093 | ;; |
| 20094 | esac |
| 20095 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20097 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20099 | else |
| 20100 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20101 | fi |
| 20102 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20103 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20104 | echo "${ECHO_T}$ac_res" >&6; } |
| 20105 | |
| 20106 | fi |
| 20107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20108 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20110 | _ACEOF |
| 20111 | |
| 20112 | fi |
| 20113 | |
| 20114 | done |
| 20115 | |
| 20116 | |
| 20117 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20118 | do |
| 20119 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20120 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20121 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20122 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20124 | else |
| 20125 | cat >conftest.$ac_ext <<_ACEOF |
| 20126 | /* confdefs.h. */ |
| 20127 | _ACEOF |
| 20128 | cat confdefs.h >>conftest.$ac_ext |
| 20129 | cat >>conftest.$ac_ext <<_ACEOF |
| 20130 | /* end confdefs.h. */ |
| 20131 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20133 | #define $ac_func innocuous_$ac_func |
| 20134 | |
| 20135 | /* System header to define __stub macros and hopefully few prototypes, |
| 20136 | which can conflict with char $ac_func (); below. |
| 20137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20138 | <limits.h> exists even on freestanding compilers. */ |
| 20139 | |
| 20140 | #ifdef __STDC__ |
| 20141 | # include <limits.h> |
| 20142 | #else |
| 20143 | # include <assert.h> |
| 20144 | #endif |
| 20145 | |
| 20146 | #undef $ac_func |
| 20147 | |
| 20148 | /* Override any GCC internal prototype to avoid an error. |
| 20149 | Use char because int might match the return type of a GCC |
| 20150 | builtin and then its argument prototype would still apply. */ |
| 20151 | #ifdef __cplusplus |
| 20152 | extern "C" |
| 20153 | #endif |
| 20154 | char $ac_func (); |
| 20155 | /* The GNU C library defines this for functions which it implements |
| 20156 | to always fail with ENOSYS. Some functions are actually named |
| 20157 | something starting with __ and the normal name is an alias. */ |
| 20158 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20159 | choke me |
| 20160 | #endif |
| 20161 | |
| 20162 | int |
| 20163 | main () |
| 20164 | { |
| 20165 | return $ac_func (); |
| 20166 | ; |
| 20167 | return 0; |
| 20168 | } |
| 20169 | _ACEOF |
| 20170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20171 | if { (ac_try="$ac_link" |
| 20172 | case "(($ac_try" in |
| 20173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20174 | *) ac_try_echo=$ac_try;; |
| 20175 | esac |
| 20176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20177 | (eval "$ac_link") 2>conftest.er1 |
| 20178 | ac_status=$? |
| 20179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20180 | rm -f conftest.er1 |
| 20181 | cat conftest.err >&5 |
| 20182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20183 | (exit $ac_status); } && |
| 20184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20185 | { (case "(($ac_try" in |
| 20186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20187 | *) ac_try_echo=$ac_try;; |
| 20188 | esac |
| 20189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20190 | (eval "$ac_try") 2>&5 |
| 20191 | ac_status=$? |
| 20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20193 | (exit $ac_status); }; } && |
| 20194 | { ac_try='test -s conftest$ac_exeext' |
| 20195 | { (case "(($ac_try" in |
| 20196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20197 | *) ac_try_echo=$ac_try;; |
| 20198 | esac |
| 20199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20200 | (eval "$ac_try") 2>&5 |
| 20201 | ac_status=$? |
| 20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20203 | (exit $ac_status); }; }; then |
| 20204 | eval "$as_ac_var=yes" |
| 20205 | else |
| 20206 | echo "$as_me: failed program was:" >&5 |
| 20207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20208 | |
| 20209 | eval "$as_ac_var=no" |
| 20210 | fi |
| 20211 | |
| 20212 | rm -f core conftest.err conftest.$ac_objext \ |
| 20213 | conftest$ac_exeext conftest.$ac_ext |
| 20214 | fi |
| 20215 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20216 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20217 | echo "${ECHO_T}$ac_res" >&6; } |
| 20218 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20219 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20220 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20221 | _ACEOF |
| 20222 | |
| 20223 | fi |
| 20224 | done |
| 20225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20226 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20227 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20228 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20230 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20231 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20232 | ac_cv_func_mmap_fixed_mapped=no |
| 20233 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20234 | cat >conftest.$ac_ext <<_ACEOF |
| 20235 | /* confdefs.h. */ |
| 20236 | _ACEOF |
| 20237 | cat confdefs.h >>conftest.$ac_ext |
| 20238 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20239 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20240 | $ac_includes_default |
| 20241 | /* malloc might have been renamed as rpl_malloc. */ |
| 20242 | #undef malloc |
| 20243 | |
| 20244 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20245 | Here is a matrix of mmap possibilities: |
| 20246 | mmap private not fixed |
| 20247 | mmap private fixed at somewhere currently unmapped |
| 20248 | mmap private fixed at somewhere already mapped |
| 20249 | mmap shared not fixed |
| 20250 | mmap shared fixed at somewhere currently unmapped |
| 20251 | mmap shared fixed at somewhere already mapped |
| 20252 | For private mappings, we should verify that changes cannot be read() |
| 20253 | back from the file, nor mmap's back from the file at a different |
| 20254 | address. (There have been systems where private was not correctly |
| 20255 | implemented like the infamous i386 svr4.0, and systems where the |
| 20256 | VM page cache was not coherent with the file system buffer cache |
| 20257 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20258 | For shared mappings, we should conversely verify that changes get |
| 20259 | propagated back to all the places they're supposed to be. |
| 20260 | |
| 20261 | Grep wants private fixed already mapped. |
| 20262 | The main things grep needs to know about mmap are: |
| 20263 | * does it exist and is it safe to write into the mmap'd area |
| 20264 | * how to use it (BSD variants) */ |
| 20265 | |
| 20266 | #include <fcntl.h> |
| 20267 | #include <sys/mman.h> |
| 20268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20269 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20270 | char *malloc (); |
| 20271 | #endif |
| 20272 | |
| 20273 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20274 | #if !HAVE_GETPAGESIZE |
| 20275 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20276 | # if !HAVE_SYS_PARAM_H |
| 20277 | # define HAVE_SYS_PARAM_H 1 |
| 20278 | # endif |
| 20279 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20280 | # ifdef _SC_PAGESIZE |
| 20281 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20282 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20283 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20284 | # include <sys/param.h> |
| 20285 | # ifdef EXEC_PAGESIZE |
| 20286 | # define getpagesize() EXEC_PAGESIZE |
| 20287 | # else /* no EXEC_PAGESIZE */ |
| 20288 | # ifdef NBPG |
| 20289 | # define getpagesize() NBPG * CLSIZE |
| 20290 | # ifndef CLSIZE |
| 20291 | # define CLSIZE 1 |
| 20292 | # endif /* no CLSIZE */ |
| 20293 | # else /* no NBPG */ |
| 20294 | # ifdef NBPC |
| 20295 | # define getpagesize() NBPC |
| 20296 | # else /* no NBPC */ |
| 20297 | # ifdef PAGESIZE |
| 20298 | # define getpagesize() PAGESIZE |
| 20299 | # endif /* PAGESIZE */ |
| 20300 | # endif /* no NBPC */ |
| 20301 | # endif /* no NBPG */ |
| 20302 | # endif /* no EXEC_PAGESIZE */ |
| 20303 | # else /* no HAVE_SYS_PARAM_H */ |
| 20304 | # define getpagesize() 8192 /* punt totally */ |
| 20305 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20306 | # endif /* no _SC_PAGESIZE */ |
| 20307 | |
| 20308 | #endif /* no HAVE_GETPAGESIZE */ |
| 20309 | |
| 20310 | int |
| 20311 | main () |
| 20312 | { |
| 20313 | char *data, *data2, *data3; |
| 20314 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20315 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20316 | |
| 20317 | pagesize = getpagesize (); |
| 20318 | |
| 20319 | /* First, make a file with some known garbage in it. */ |
| 20320 | data = (char *) malloc (pagesize); |
| 20321 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20322 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20323 | for (i = 0; i < pagesize; ++i) |
| 20324 | *(data + i) = rand (); |
| 20325 | umask (0); |
| 20326 | fd = creat ("conftest.mmap", 0600); |
| 20327 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20328 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20329 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20330 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20331 | close (fd); |
| 20332 | |
| 20333 | /* Next, try to mmap the file at a fixed address which already has |
| 20334 | something else allocated at it. If we can, also make sure that |
| 20335 | we see the same garbage. */ |
| 20336 | fd = open ("conftest.mmap", O_RDWR); |
| 20337 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20338 | return 1; |
| 20339 | data2 = (char *) malloc (2 * pagesize); |
| 20340 | if (!data2) |
| 20341 | return 1; |
| 20342 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20343 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20344 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20345 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20346 | for (i = 0; i < pagesize; ++i) |
| 20347 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20348 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20349 | |
| 20350 | /* Finally, make sure that changes to the mapped area do not |
| 20351 | percolate back to the file as seen by read(). (This is a bug on |
| 20352 | some variants of i386 svr4.0.) */ |
| 20353 | for (i = 0; i < pagesize; ++i) |
| 20354 | *(data2 + i) = *(data2 + i) + 1; |
| 20355 | data3 = (char *) malloc (pagesize); |
| 20356 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20357 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20358 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20359 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20360 | for (i = 0; i < pagesize; ++i) |
| 20361 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20362 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20363 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20364 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20365 | } |
| 20366 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20367 | rm -f conftest$ac_exeext |
| 20368 | if { (ac_try="$ac_link" |
| 20369 | case "(($ac_try" in |
| 20370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20371 | *) ac_try_echo=$ac_try;; |
| 20372 | esac |
| 20373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20374 | (eval "$ac_link") 2>&5 |
| 20375 | ac_status=$? |
| 20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20378 | { (case "(($ac_try" in |
| 20379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20380 | *) ac_try_echo=$ac_try;; |
| 20381 | esac |
| 20382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20383 | (eval "$ac_try") 2>&5 |
| 20384 | ac_status=$? |
| 20385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20386 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20387 | ac_cv_func_mmap_fixed_mapped=yes |
| 20388 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20389 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20390 | echo "$as_me: failed program was:" >&5 |
| 20391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20392 | |
| 20393 | ( exit $ac_status ) |
| 20394 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20396 | 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] | 20397 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20398 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20400 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20401 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20402 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20404 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20405 | cat >>confdefs.h <<\_ACEOF |
| 20406 | #define HAVE_MMAP 1 |
| 20407 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20408 | |
| 20409 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20410 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20411 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20412 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20413 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20414 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20416 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20417 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20418 | ac_cpp='$CPP $CPPFLAGS' |
| 20419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20422 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20423 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20424 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20425 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20426 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20427 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20428 | /* confdefs.h. */ |
| 20429 | _ACEOF |
| 20430 | cat confdefs.h >>conftest.$ac_ext |
| 20431 | cat >>conftest.$ac_ext <<_ACEOF |
| 20432 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20433 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20434 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20435 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20436 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20437 | |
| 20438 | int |
| 20439 | main () |
| 20440 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20441 | |
| 20442 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20443 | fd = creat ("foo",0777); |
| 20444 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20445 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20446 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20447 | ; |
| 20448 | return 0; |
| 20449 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20450 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20451 | rm -f conftest$ac_exeext |
| 20452 | if { (ac_try="$ac_link" |
| 20453 | case "(($ac_try" in |
| 20454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20455 | *) ac_try_echo=$ac_try;; |
| 20456 | esac |
| 20457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20458 | (eval "$ac_link") 2>&5 |
| 20459 | ac_status=$? |
| 20460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20462 | { (case "(($ac_try" in |
| 20463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20464 | *) ac_try_echo=$ac_try;; |
| 20465 | esac |
| 20466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20467 | (eval "$ac_try") 2>&5 |
| 20468 | ac_status=$? |
| 20469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20470 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20471 | ac_cv_func_mmap_file=yes |
| 20472 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20473 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20474 | echo "$as_me: failed program was:" >&5 |
| 20475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20476 | |
| 20477 | ( exit $ac_status ) |
| 20478 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20479 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20480 | 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] | 20481 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20482 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20483 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20484 | ac_ext=c |
| 20485 | ac_cpp='$CPP $CPPFLAGS' |
| 20486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20489 | |
| 20490 | |
| 20491 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20492 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20493 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20494 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20495 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20496 | cat >>confdefs.h <<\_ACEOF |
| 20497 | #define HAVE_MMAP_FILE |
| 20498 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20499 | |
| 20500 | MMAP_FILE=yes |
| 20501 | |
| 20502 | fi |
| 20503 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20504 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20505 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20506 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20508 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20509 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20510 | ac_cv_need_dev_zero_for_mmap=yes |
| 20511 | else |
| 20512 | ac_cv_need_dev_zero_for_mmap=no |
| 20513 | fi |
| 20514 | |
| 20515 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20516 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20517 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20518 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20519 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20520 | cat >>confdefs.h <<\_ACEOF |
| 20521 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20522 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20523 | |
| 20524 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20525 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20526 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20527 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20528 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20529 | 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] | 20530 | fi |
| 20531 | if test "$ac_cv_func_mmap_file" = "no" |
| 20532 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20533 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20534 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20535 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20536 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20538 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20539 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20540 | ac_ext=cpp |
| 20541 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20542 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20543 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20544 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20545 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20546 | cat >conftest.$ac_ext <<_ACEOF |
| 20547 | /* confdefs.h. */ |
| 20548 | _ACEOF |
| 20549 | cat confdefs.h >>conftest.$ac_ext |
| 20550 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20551 | /* end confdefs.h. */ |
| 20552 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20553 | volatile unsigned long val = 1; |
| 20554 | __sync_synchronize(); |
| 20555 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20556 | __sync_add_and_fetch(&val, 1); |
| 20557 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20558 | return 0; |
| 20559 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20560 | |
| 20561 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20562 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20563 | if { (ac_try="$ac_link" |
| 20564 | case "(($ac_try" in |
| 20565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20566 | *) ac_try_echo=$ac_try;; |
| 20567 | esac |
| 20568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20569 | (eval "$ac_link") 2>conftest.er1 |
| 20570 | ac_status=$? |
| 20571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20572 | rm -f conftest.er1 |
| 20573 | cat conftest.err >&5 |
| 20574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20575 | (exit $ac_status); } && |
| 20576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20577 | { (case "(($ac_try" in |
| 20578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20579 | *) ac_try_echo=$ac_try;; |
| 20580 | esac |
| 20581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20582 | (eval "$ac_try") 2>&5 |
| 20583 | ac_status=$? |
| 20584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20585 | (exit $ac_status); }; } && |
| 20586 | { ac_try='test -s conftest$ac_exeext' |
| 20587 | { (case "(($ac_try" in |
| 20588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20589 | *) ac_try_echo=$ac_try;; |
| 20590 | esac |
| 20591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20592 | (eval "$ac_try") 2>&5 |
| 20593 | ac_status=$? |
| 20594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20595 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20596 | ac_ext=c |
| 20597 | ac_cpp='$CPP $CPPFLAGS' |
| 20598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20601 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20602 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20603 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20605 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20606 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20607 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20608 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20609 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20610 | echo "$as_me: failed program was:" >&5 |
| 20611 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20612 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20613 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20614 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20615 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20616 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20617 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20618 | _ACEOF |
| 20619 | |
| 20620 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20621 | 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] | 20622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20623 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20624 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20625 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20626 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20627 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20628 | 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] | 20629 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20630 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20631 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20633 | else |
| 20634 | ac_ext=c |
| 20635 | ac_cpp='$CPP $CPPFLAGS' |
| 20636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20640 | cat >conftest.$ac_ext <<_ACEOF |
| 20641 | /* confdefs.h. */ |
| 20642 | _ACEOF |
| 20643 | cat confdefs.h >>conftest.$ac_ext |
| 20644 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20645 | /* end confdefs.h. */ |
| 20646 | #ifndef __x86_64__ |
| 20647 | error: Not x86-64 even if uname says so! |
| 20648 | #endif |
| 20649 | |
| 20650 | int |
| 20651 | main () |
| 20652 | { |
| 20653 | |
| 20654 | ; |
| 20655 | return 0; |
| 20656 | } |
| 20657 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20658 | rm -f conftest.$ac_objext |
| 20659 | if { (ac_try="$ac_compile" |
| 20660 | case "(($ac_try" in |
| 20661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20662 | *) ac_try_echo=$ac_try;; |
| 20663 | esac |
| 20664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20665 | (eval "$ac_compile") 2>conftest.er1 |
| 20666 | ac_status=$? |
| 20667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20668 | rm -f conftest.er1 |
| 20669 | cat conftest.err >&5 |
| 20670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20671 | (exit $ac_status); } && |
| 20672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20673 | { (case "(($ac_try" in |
| 20674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20675 | *) ac_try_echo=$ac_try;; |
| 20676 | esac |
| 20677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20678 | (eval "$ac_try") 2>&5 |
| 20679 | ac_status=$? |
| 20680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20681 | (exit $ac_status); }; } && |
| 20682 | { ac_try='test -s conftest.$ac_objext' |
| 20683 | { (case "(($ac_try" in |
| 20684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20685 | *) ac_try_echo=$ac_try;; |
| 20686 | esac |
| 20687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20688 | (eval "$ac_try") 2>&5 |
| 20689 | ac_status=$? |
| 20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20691 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20692 | llvm_cv_linux_mixed=no |
| 20693 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20694 | echo "$as_me: failed program was:" >&5 |
| 20695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20696 | |
| 20697 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20698 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20699 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20701 | ac_ext=c |
| 20702 | ac_cpp='$CPP $CPPFLAGS' |
| 20703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20706 | |
| 20707 | |
| 20708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20709 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20710 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20711 | |
| 20712 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20713 | llvm_cv_target_arch="x86" |
| 20714 | ARCH="x86" |
| 20715 | fi |
| 20716 | fi |
| 20717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20718 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20719 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20720 | do |
| 20721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20722 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20724 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20726 | else |
| 20727 | cat >conftest.$ac_ext <<_ACEOF |
| 20728 | /* confdefs.h. */ |
| 20729 | _ACEOF |
| 20730 | cat confdefs.h >>conftest.$ac_ext |
| 20731 | cat >>conftest.$ac_ext <<_ACEOF |
| 20732 | /* end confdefs.h. */ |
| 20733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20735 | #define $ac_func innocuous_$ac_func |
| 20736 | |
| 20737 | /* System header to define __stub macros and hopefully few prototypes, |
| 20738 | which can conflict with char $ac_func (); below. |
| 20739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20740 | <limits.h> exists even on freestanding compilers. */ |
| 20741 | |
| 20742 | #ifdef __STDC__ |
| 20743 | # include <limits.h> |
| 20744 | #else |
| 20745 | # include <assert.h> |
| 20746 | #endif |
| 20747 | |
| 20748 | #undef $ac_func |
| 20749 | |
| 20750 | /* Override any GCC internal prototype to avoid an error. |
| 20751 | Use char because int might match the return type of a GCC |
| 20752 | builtin and then its argument prototype would still apply. */ |
| 20753 | #ifdef __cplusplus |
| 20754 | extern "C" |
| 20755 | #endif |
| 20756 | char $ac_func (); |
| 20757 | /* The GNU C library defines this for functions which it implements |
| 20758 | to always fail with ENOSYS. Some functions are actually named |
| 20759 | something starting with __ and the normal name is an alias. */ |
| 20760 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20761 | choke me |
| 20762 | #endif |
| 20763 | |
| 20764 | int |
| 20765 | main () |
| 20766 | { |
| 20767 | return $ac_func (); |
| 20768 | ; |
| 20769 | return 0; |
| 20770 | } |
| 20771 | _ACEOF |
| 20772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20773 | if { (ac_try="$ac_link" |
| 20774 | case "(($ac_try" in |
| 20775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20776 | *) ac_try_echo=$ac_try;; |
| 20777 | esac |
| 20778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20779 | (eval "$ac_link") 2>conftest.er1 |
| 20780 | ac_status=$? |
| 20781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20782 | rm -f conftest.er1 |
| 20783 | cat conftest.err >&5 |
| 20784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20785 | (exit $ac_status); } && |
| 20786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20787 | { (case "(($ac_try" in |
| 20788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20789 | *) ac_try_echo=$ac_try;; |
| 20790 | esac |
| 20791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20792 | (eval "$ac_try") 2>&5 |
| 20793 | ac_status=$? |
| 20794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20795 | (exit $ac_status); }; } && |
| 20796 | { ac_try='test -s conftest$ac_exeext' |
| 20797 | { (case "(($ac_try" in |
| 20798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20799 | *) ac_try_echo=$ac_try;; |
| 20800 | esac |
| 20801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20802 | (eval "$ac_try") 2>&5 |
| 20803 | ac_status=$? |
| 20804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20805 | (exit $ac_status); }; }; then |
| 20806 | eval "$as_ac_var=yes" |
| 20807 | else |
| 20808 | echo "$as_me: failed program was:" >&5 |
| 20809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20810 | |
| 20811 | eval "$as_ac_var=no" |
| 20812 | fi |
| 20813 | |
| 20814 | rm -f core conftest.err conftest.$ac_objext \ |
| 20815 | conftest$ac_exeext conftest.$ac_ext |
| 20816 | fi |
| 20817 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20818 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20819 | echo "${ECHO_T}$ac_res" >&6; } |
| 20820 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20821 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20822 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20823 | _ACEOF |
| 20824 | |
| 20825 | fi |
| 20826 | done |
| 20827 | |
| 20828 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20829 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20830 | |
| 20831 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20832 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20833 | |
| 20834 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20835 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20836 | # information into substitutions that will end up in Makefile.config.in |
| 20837 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20838 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20839 | prefix="/usr/local" |
| 20840 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20841 | eval LLVM_PREFIX="${prefix}"; |
| 20842 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20843 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20844 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20845 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20846 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20847 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20848 | eval LLVM_INFODIR="${prefix}/info"; |
| 20849 | eval LLVM_MANDIR="${prefix}/man"; |
| 20850 | LLVM_CONFIGTIME=`date` |
| 20851 | |
| 20852 | |
| 20853 | |
| 20854 | |
| 20855 | |
| 20856 | |
| 20857 | |
| 20858 | |
| 20859 | |
| 20860 | |
| 20861 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20862 | # Place the various directores into the config.h file as #defines so that we |
| 20863 | # can know about the installation paths within LLVM. |
| 20864 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20865 | cat >>confdefs.h <<_ACEOF |
| 20866 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20867 | _ACEOF |
| 20868 | |
| 20869 | |
| 20870 | cat >>confdefs.h <<_ACEOF |
| 20871 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20872 | _ACEOF |
| 20873 | |
| 20874 | |
| 20875 | cat >>confdefs.h <<_ACEOF |
| 20876 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20877 | _ACEOF |
| 20878 | |
| 20879 | |
| 20880 | cat >>confdefs.h <<_ACEOF |
| 20881 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20882 | _ACEOF |
| 20883 | |
| 20884 | |
| 20885 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20886 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20887 | _ACEOF |
| 20888 | |
| 20889 | |
| 20890 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20891 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20892 | _ACEOF |
| 20893 | |
| 20894 | |
| 20895 | cat >>confdefs.h <<_ACEOF |
| 20896 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20897 | _ACEOF |
| 20898 | |
| 20899 | |
| 20900 | cat >>confdefs.h <<_ACEOF |
| 20901 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20902 | _ACEOF |
| 20903 | |
| 20904 | |
| 20905 | cat >>confdefs.h <<_ACEOF |
| 20906 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20907 | _ACEOF |
| 20908 | |
| 20909 | |
| 20910 | cat >>confdefs.h <<_ACEOF |
| 20911 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20912 | _ACEOF |
| 20913 | |
| 20914 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20915 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | de2e0b5 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 20916 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20917 | _ACEOF |
| 20918 | |
| 20919 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20920 | # Determine which bindings to build. |
| 20921 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20922 | BINDINGS_TO_BUILD="" |
| 20923 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20924 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20925 | fi |
| 20926 | fi |
| 20927 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20928 | |
| 20929 | |
| 20930 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20931 | # other files. |
| 20932 | ALL_BINDINGS=ocaml |
| 20933 | |
| 20934 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20935 | # Do any work necessary to ensure that bindings have what they need. |
| 20936 | binding_prereqs_failed=0 |
| 20937 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20938 | case "$a_binding" in |
| 20939 | ocaml) |
| 20940 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20941 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20942 | 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] | 20943 | binding_prereqs_failed=1 |
| 20944 | fi |
| 20945 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20946 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20947 | 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] | 20948 | binding_prereqs_failed=1 |
| 20949 | fi |
| 20950 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20951 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20952 | 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] | 20953 | fi |
| 20954 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20955 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20956 | |
| 20957 | else |
| 20958 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20959 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20960 | then |
| 20961 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20962 | OCAML_LIBDIR=$ocaml_stdlib |
| 20963 | |
| 20964 | else |
| 20965 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20966 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20967 | |
| 20968 | fi |
| 20969 | fi |
| 20970 | ;; |
| 20971 | esac |
| 20972 | done |
| 20973 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20974 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20975 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20976 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20977 | fi |
| 20978 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20979 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20980 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20981 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20983 | else |
| 20984 | ac_ext=cpp |
| 20985 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20986 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20987 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20988 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20989 | |
| 20990 | oldcxxflags="$CXXFLAGS" |
Benjamin Kramer | b8c20b8 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 20991 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20992 | cat >conftest.$ac_ext <<_ACEOF |
| 20993 | /* confdefs.h. */ |
| 20994 | _ACEOF |
| 20995 | cat confdefs.h >>conftest.$ac_ext |
| 20996 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20997 | /* end confdefs.h. */ |
Benjamin Kramer | b8c20b8 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 20998 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20999 | int |
| 21000 | main () |
| 21001 | { |
Benjamin Kramer | cfe96c8 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 21002 | X<int>().f(); |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21003 | ; |
| 21004 | return 0; |
| 21005 | } |
| 21006 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21007 | rm -f conftest.$ac_objext |
| 21008 | if { (ac_try="$ac_compile" |
| 21009 | case "(($ac_try" in |
| 21010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21011 | *) ac_try_echo=$ac_try;; |
| 21012 | esac |
| 21013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21014 | (eval "$ac_compile") 2>conftest.er1 |
| 21015 | ac_status=$? |
| 21016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21017 | rm -f conftest.er1 |
| 21018 | cat conftest.err >&5 |
| 21019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21020 | (exit $ac_status); } && |
| 21021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21022 | { (case "(($ac_try" in |
| 21023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21024 | *) ac_try_echo=$ac_try;; |
| 21025 | esac |
| 21026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21027 | (eval "$ac_try") 2>&5 |
| 21028 | ac_status=$? |
| 21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21030 | (exit $ac_status); }; } && |
| 21031 | { ac_try='test -s conftest.$ac_objext' |
| 21032 | { (case "(($ac_try" in |
| 21033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21034 | *) ac_try_echo=$ac_try;; |
| 21035 | esac |
| 21036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21037 | (eval "$ac_try") 2>&5 |
| 21038 | ac_status=$? |
| 21039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21040 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21041 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 21042 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21043 | echo "$as_me: failed program was:" >&5 |
| 21044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21045 | |
| 21046 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21048 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21050 | CXXFLAGS="$oldcxxflags" |
| 21051 | ac_ext=c |
| 21052 | ac_cpp='$CPP $CPPFLAGS' |
| 21053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21056 | |
| 21057 | |
| 21058 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21059 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 21060 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21061 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 21062 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 21063 | |
| 21064 | else |
| 21065 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 21066 | |
| 21067 | fi |
| 21068 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21069 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21070 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 21071 | RPATH="-Wl,-R" |
| 21072 | else |
| 21073 | RPATH="-Wl,-rpath" |
| 21074 | fi |
| 21075 | |
| 21076 | |
| 21077 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 21078 | RDYNAMIC="-Wl,-export-dynamic" |
| 21079 | else |
| 21080 | RDYNAMIC="" |
| 21081 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21082 | |
| 21083 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21084 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21085 | 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] | 21086 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21087 | |
| 21088 | |
| 21089 | |
| 21090 | |
| 21091 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21092 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 21093 | |
| 21094 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 21095 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21096 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 21097 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21098 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 21099 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21100 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21101 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21103 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21104 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21105 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21106 | ac_config_files="$ac_config_files llvm.spec" |
| 21107 | |
| 21108 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21109 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 21110 | |
| 21111 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 21112 | ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" |
| 21113 | |
| 21114 | fi |
| 21115 | |
Torok Edwin | 4c4b71c | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21116 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21117 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21119 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21121 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21122 | |
| 21123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21124 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21125 | |
| 21126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21127 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21128 | |
| 21129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21130 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21131 | |
| 21132 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21133 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 21134 | |
| 21135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21136 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21137 | |
| 21138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21139 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21140 | |
| 21141 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21142 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 21143 | |
| 21144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21145 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21146 | |
| 21147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21148 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21149 | |
| 21150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21151 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21152 | |
| 21153 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21154 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 21155 | |
| 21156 | |
| 21157 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 21158 | |
| 21159 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21161 | cat >confcache <<\_ACEOF |
| 21162 | # This file is a shell script that caches the results of configure |
| 21163 | # tests run on this system so they can be shared between configure |
| 21164 | # scripts and configure runs, see configure's option --config-cache. |
| 21165 | # It is not useful on other systems. If it contains results you don't |
| 21166 | # want to keep, you may remove or edit it. |
| 21167 | # |
| 21168 | # config.status only pays attention to the cache file if you give it |
| 21169 | # the --recheck option to rerun configure. |
| 21170 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21171 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21172 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21173 | # following values. |
| 21174 | |
| 21175 | _ACEOF |
| 21176 | |
| 21177 | # The following way of writing the cache mishandles newlines in values, |
| 21178 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21179 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21180 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21181 | # 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] | 21182 | ( |
| 21183 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21184 | eval ac_val=\$$ac_var |
| 21185 | case $ac_val in #( |
| 21186 | *${as_nl}*) |
| 21187 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21188 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21189 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | esac |
| 21191 | case $ac_var in #( |
| 21192 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21193 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21194 | esac ;; |
| 21195 | esac |
| 21196 | done |
| 21197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21198 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21199 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21200 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21201 | # `set' does not quote correctly, so add quotes (double-quote |
| 21202 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21203 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21204 | "s/'/'\\\\''/g; |
| 21205 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21206 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21207 | *) |
| 21208 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21209 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21210 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21211 | esac | |
| 21212 | sort |
| 21213 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21214 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21215 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21216 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21217 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21218 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21219 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21220 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21221 | :end' >>confcache |
| 21222 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21223 | if test -w "$cache_file"; then |
| 21224 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21225 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21226 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21227 | cat confcache >$cache_file |
| 21228 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21229 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21230 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21231 | fi |
| 21232 | fi |
| 21233 | rm -f confcache |
| 21234 | |
| 21235 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21236 | # Let make expand exec_prefix. |
| 21237 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21238 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21239 | DEFS=-DHAVE_CONFIG_H |
| 21240 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21241 | ac_libobjs= |
| 21242 | ac_ltlibobjs= |
| 21243 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21244 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21245 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21246 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21247 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21248 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21249 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21250 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21251 | done |
| 21252 | LIBOBJS=$ac_libobjs |
| 21253 | |
| 21254 | LTLIBOBJS=$ac_ltlibobjs |
| 21255 | |
| 21256 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21257 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21258 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21259 | Usually this means the macro was only invoked conditionally." >&5 |
| 21260 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21261 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21262 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21263 | fi |
| 21264 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21265 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21266 | Usually this means the macro was only invoked conditionally." >&5 |
| 21267 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21268 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21269 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21271 | |
| 21272 | : ${CONFIG_STATUS=./config.status} |
| 21273 | ac_clean_files_save=$ac_clean_files |
| 21274 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21275 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21276 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21277 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21278 | #! $SHELL |
| 21279 | # Generated by $as_me. |
| 21280 | # Run this file to recreate the current configuration. |
| 21281 | # Compiler output produced by configure, useful for debugging |
| 21282 | # configure, is in config.log if it exists. |
| 21283 | |
| 21284 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21285 | ac_cs_recheck=false |
| 21286 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21287 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21288 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21290 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21291 | ## --------------------- ## |
| 21292 | ## M4sh Initialization. ## |
| 21293 | ## --------------------- ## |
| 21294 | |
| 21295 | # Be Bourne compatible |
| 21296 | 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] | 21297 | emulate sh |
| 21298 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21299 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21300 | # is contrary to our usage. Disable this feature. |
| 21301 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21302 | setopt NO_GLOB_SUBST |
| 21303 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21304 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21305 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21306 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21307 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21308 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21309 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21310 | # PATH needs CR |
| 21311 | # Avoid depending upon Character Ranges. |
| 21312 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21313 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21314 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21315 | as_cr_digits='0123456789' |
| 21316 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21317 | |
| 21318 | # The user is always right. |
| 21319 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21320 | echo "#! /bin/sh" >conf$$.sh |
| 21321 | echo "exit 0" >>conf$$.sh |
| 21322 | chmod +x conf$$.sh |
| 21323 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21324 | PATH_SEPARATOR=';' |
| 21325 | else |
| 21326 | PATH_SEPARATOR=: |
| 21327 | fi |
| 21328 | rm -f conf$$.sh |
| 21329 | fi |
| 21330 | |
| 21331 | # Support unset when possible. |
| 21332 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21333 | as_unset=unset |
| 21334 | else |
| 21335 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21336 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21338 | |
| 21339 | # IFS |
| 21340 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21341 | # there to prevent editors from complaining about space-tab. |
| 21342 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21343 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21344 | as_nl=' |
| 21345 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21346 | IFS=" "" $as_nl" |
| 21347 | |
| 21348 | # 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] | 21349 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21350 | *[\\/]* ) as_myself=$0 ;; |
| 21351 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21352 | for as_dir in $PATH |
| 21353 | do |
| 21354 | IFS=$as_save_IFS |
| 21355 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21356 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21357 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21358 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21360 | ;; |
| 21361 | esac |
| 21362 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21363 | # in which case we are not to be found in the path. |
| 21364 | if test "x$as_myself" = x; then |
| 21365 | as_myself=$0 |
| 21366 | fi |
| 21367 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21368 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21369 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21370 | fi |
| 21371 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21372 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21373 | for as_var in ENV MAIL MAILPATH |
| 21374 | 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] | 21375 | done |
| 21376 | PS1='$ ' |
| 21377 | PS2='> ' |
| 21378 | PS4='+ ' |
| 21379 | |
| 21380 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21381 | for as_var in \ |
| 21382 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21383 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21384 | LC_TELEPHONE LC_TIME |
| 21385 | do |
| 21386 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21387 | eval $as_var=C; export $as_var |
| 21388 | else |
| 21389 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21390 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21391 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21392 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21393 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21394 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21395 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21396 | as_expr=expr |
| 21397 | else |
| 21398 | as_expr=false |
| 21399 | fi |
| 21400 | |
| 21401 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21402 | as_basename=basename |
| 21403 | else |
| 21404 | as_basename=false |
| 21405 | fi |
| 21406 | |
| 21407 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21408 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21409 | as_me=`$as_basename -- "$0" || |
| 21410 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21411 | X"$0" : 'X\(//\)$' \| \ |
| 21412 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21413 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21414 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21415 | s//\1/ |
| 21416 | q |
| 21417 | } |
| 21418 | /^X\/\(\/\/\)$/{ |
| 21419 | s//\1/ |
| 21420 | q |
| 21421 | } |
| 21422 | /^X\/\(\/\).*/{ |
| 21423 | s//\1/ |
| 21424 | q |
| 21425 | } |
| 21426 | s/.*/./; q'` |
| 21427 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21428 | # CDPATH. |
| 21429 | $as_unset CDPATH |
| 21430 | |
| 21431 | |
| 21432 | |
| 21433 | as_lineno_1=$LINENO |
| 21434 | as_lineno_2=$LINENO |
| 21435 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21436 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21437 | |
| 21438 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21439 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21440 | # line-number line after each line using $LINENO; the second 'sed' |
| 21441 | # does the real work. The second script uses 'N' to pair each |
| 21442 | # line-number line with the line containing $LINENO, and appends |
| 21443 | # trailing '-' during substitution so that $LINENO is not a special |
| 21444 | # case at line end. |
| 21445 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21446 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21447 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21448 | sed -n ' |
| 21449 | p |
| 21450 | /[$]LINENO/= |
| 21451 | ' <$as_myself | |
| 21452 | sed ' |
| 21453 | s/[$]LINENO.*/&-/ |
| 21454 | t lineno |
| 21455 | b |
| 21456 | :lineno |
| 21457 | N |
| 21458 | :loop |
| 21459 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21460 | t loop |
| 21461 | s/-\n.*// |
| 21462 | ' >$as_me.lineno && |
| 21463 | chmod +x "$as_me.lineno" || |
| 21464 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21465 | { (exit 1); exit 1; }; } |
| 21466 | |
| 21467 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21468 | # (the dirname of $[0] is not the place where we might find the |
| 21469 | # original and so on. Autoconf is especially sensitive to this). |
| 21470 | . "./$as_me.lineno" |
| 21471 | # Exit status is that of the last command. |
| 21472 | exit |
| 21473 | } |
| 21474 | |
| 21475 | |
| 21476 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21477 | as_dirname=dirname |
| 21478 | else |
| 21479 | as_dirname=false |
| 21480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21481 | |
| 21482 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21483 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21484 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21485 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21486 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21487 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21488 | esac;; |
| 21489 | *) |
| 21490 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21491 | esac |
| 21492 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21493 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21494 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21495 | as_expr=expr |
| 21496 | else |
| 21497 | as_expr=false |
| 21498 | fi |
| 21499 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21500 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21501 | if test -d conf$$.dir; then |
| 21502 | rm -f conf$$.dir/conf$$.file |
| 21503 | else |
| 21504 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21505 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21506 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21507 | echo >conf$$.file |
| 21508 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21509 | as_ln_s='ln -s' |
| 21510 | # ... but there are two gotchas: |
| 21511 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21512 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21513 | # In both cases, we have to default to `cp -p'. |
| 21514 | 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] | 21515 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21516 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21517 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21518 | else |
| 21519 | as_ln_s='cp -p' |
| 21520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21521 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21522 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21523 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21524 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21525 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21526 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21527 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21528 | as_mkdir_p=false |
| 21529 | fi |
| 21530 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21531 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21532 | # systems may use methods other than mode bits to determine executability. |
| 21533 | cat >conf$$.file <<_ASEOF |
| 21534 | #! /bin/sh |
| 21535 | exit 0 |
| 21536 | _ASEOF |
| 21537 | chmod +x conf$$.file |
| 21538 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21539 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21540 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21541 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21543 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21544 | |
| 21545 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21546 | 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] | 21547 | |
| 21548 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21549 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21550 | |
| 21551 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21552 | exec 6>&1 |
| 21553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21554 | # 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] | 21555 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21556 | # values after options handling. |
| 21557 | ac_log=" |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 21558 | This file was extended by LLVM $as_me 3.1svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21559 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 | |
| 21561 | CONFIG_FILES = $CONFIG_FILES |
| 21562 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21563 | CONFIG_LINKS = $CONFIG_LINKS |
| 21564 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21565 | $ $0 $@ |
| 21566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21567 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21568 | " |
| 21569 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21570 | _ACEOF |
| 21571 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21572 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21573 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21574 | config_files="$ac_config_files" |
| 21575 | config_headers="$ac_config_headers" |
| 21576 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21578 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21579 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21580 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21581 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21582 | \`$as_me' instantiates files from templates according to the |
| 21583 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21584 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21585 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21586 | |
| 21587 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21588 | -V, --version print version number, then exit |
| 21589 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21590 | -d, --debug don't remove temporary files |
| 21591 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21592 | --file=FILE[:TEMPLATE] |
| 21593 | instantiate the configuration file FILE |
| 21594 | --header=FILE[:TEMPLATE] |
| 21595 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21596 | |
| 21597 | Configuration files: |
| 21598 | $config_files |
| 21599 | |
| 21600 | Configuration headers: |
| 21601 | $config_headers |
| 21602 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21603 | Configuration commands: |
| 21604 | $config_commands |
| 21605 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21606 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21608 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21609 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21610 | ac_cs_version="\\ |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 21611 | LLVM config.status 3.1svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21612 | configured by $0, generated by GNU Autoconf 2.60, |
| 21613 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21615 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21616 | This config.status script is free software; the Free Software Foundation |
| 21617 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21618 | |
| 21619 | ac_pwd='$ac_pwd' |
| 21620 | srcdir='$srcdir' |
| 21621 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21622 | _ACEOF |
| 21623 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21624 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21625 | # If no file are specified by the user, then we need to provide default |
| 21626 | # 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] | 21627 | ac_need_defaults=: |
| 21628 | while test $# != 0 |
| 21629 | do |
| 21630 | case $1 in |
| 21631 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21632 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21633 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21634 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21635 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21636 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21637 | ac_option=$1 |
| 21638 | ac_optarg=$2 |
| 21639 | ac_shift=shift |
| 21640 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21641 | esac |
| 21642 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21643 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21644 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21645 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21646 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21647 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21648 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21649 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21650 | debug=: ;; |
| 21651 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21652 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21653 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21654 | ac_need_defaults=false;; |
| 21655 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21656 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21657 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21658 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21659 | --he | --h) |
| 21660 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21661 | { echo "$as_me: error: ambiguous option: $1 |
| 21662 | Try \`$0 --help' for more information." >&2 |
| 21663 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21664 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21665 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21666 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21667 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21668 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21669 | |
| 21670 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21671 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21672 | Try \`$0 --help' for more information." >&2 |
| 21673 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21674 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21675 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21676 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21677 | |
| 21678 | esac |
| 21679 | shift |
| 21680 | done |
| 21681 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21682 | ac_configure_extra_args= |
| 21683 | |
| 21684 | if $ac_cs_silent; then |
| 21685 | exec 6>/dev/null |
| 21686 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21687 | fi |
| 21688 | |
| 21689 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21690 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21691 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21692 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21693 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21694 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21695 | 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] | 21696 | fi |
| 21697 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21698 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21699 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21700 | exec 5>>config.log |
| 21701 | { |
| 21702 | echo |
| 21703 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21704 | ## Running $as_me. ## |
| 21705 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21706 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21707 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21709 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21710 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21711 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21712 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21713 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21714 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21715 | |
| 21716 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21718 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21719 | |
| 21720 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21721 | for ac_config_target in $ac_config_targets |
| 21722 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21723 | case $ac_config_target in |
| 21724 | "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] | 21725 | "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] | 21726 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21727 | "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] | 21728 | "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] | 21729 | "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] | 21730 | "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] | 21731 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21732 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21733 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 21734 | "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21735 | "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] | 21736 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21737 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21738 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21739 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21740 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21741 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21742 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21743 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21744 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21745 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21746 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21747 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21748 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21749 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21750 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21751 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21752 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21753 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21754 | esac |
| 21755 | done |
| 21756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21758 | # If the user did not use the arguments to specify the items to instantiate, |
| 21759 | # then the envvar interface is used. Set only those that are not. |
| 21760 | # We use the long form for the default assignment because of an extremely |
| 21761 | # bizarre bug on SunOS 4.1.3. |
| 21762 | if $ac_need_defaults; then |
| 21763 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21764 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21765 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21766 | fi |
| 21767 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21768 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21769 | # 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] | 21770 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21771 | # Hook for its removal unless debugging. |
| 21772 | # Note that there is a small window in which the directory will not be cleaned: |
| 21773 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21774 | $debug || |
| 21775 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21776 | tmp= |
| 21777 | trap 'exit_status=$? |
| 21778 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21779 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21780 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21781 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21782 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21783 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21784 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21785 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21786 | test -n "$tmp" && test -d "$tmp" |
| 21787 | } || |
| 21788 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21789 | tmp=./conf$$-$RANDOM |
| 21790 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21791 | } || |
| 21792 | { |
| 21793 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21794 | { (exit 1); exit 1; } |
| 21795 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21796 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21797 | # |
| 21798 | # Set up the sed scripts for CONFIG_FILES section. |
| 21799 | # |
| 21800 | |
| 21801 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21802 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21803 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21804 | |
| 21805 | _ACEOF |
| 21806 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21807 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21809 | ac_delim='%!_!# ' |
| 21810 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21811 | cat >conf$$subs.sed <<_ACEOF |
| 21812 | SHELL!$SHELL$ac_delim |
| 21813 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21814 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21815 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21816 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21817 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21818 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21819 | exec_prefix!$exec_prefix$ac_delim |
| 21820 | prefix!$prefix$ac_delim |
| 21821 | program_transform_name!$program_transform_name$ac_delim |
| 21822 | bindir!$bindir$ac_delim |
| 21823 | sbindir!$sbindir$ac_delim |
| 21824 | libexecdir!$libexecdir$ac_delim |
| 21825 | datarootdir!$datarootdir$ac_delim |
| 21826 | datadir!$datadir$ac_delim |
| 21827 | sysconfdir!$sysconfdir$ac_delim |
| 21828 | sharedstatedir!$sharedstatedir$ac_delim |
| 21829 | localstatedir!$localstatedir$ac_delim |
| 21830 | includedir!$includedir$ac_delim |
| 21831 | oldincludedir!$oldincludedir$ac_delim |
| 21832 | docdir!$docdir$ac_delim |
| 21833 | infodir!$infodir$ac_delim |
| 21834 | htmldir!$htmldir$ac_delim |
| 21835 | dvidir!$dvidir$ac_delim |
| 21836 | pdfdir!$pdfdir$ac_delim |
| 21837 | psdir!$psdir$ac_delim |
| 21838 | libdir!$libdir$ac_delim |
| 21839 | localedir!$localedir$ac_delim |
| 21840 | mandir!$mandir$ac_delim |
| 21841 | DEFS!$DEFS$ac_delim |
| 21842 | ECHO_C!$ECHO_C$ac_delim |
| 21843 | ECHO_N!$ECHO_N$ac_delim |
| 21844 | ECHO_T!$ECHO_T$ac_delim |
| 21845 | LIBS!$LIBS$ac_delim |
| 21846 | build_alias!$build_alias$ac_delim |
| 21847 | host_alias!$host_alias$ac_delim |
| 21848 | target_alias!$target_alias$ac_delim |
| 21849 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21850 | CC!$CC$ac_delim |
| 21851 | CFLAGS!$CFLAGS$ac_delim |
| 21852 | LDFLAGS!$LDFLAGS$ac_delim |
| 21853 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21854 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21855 | EXEEXT!$EXEEXT$ac_delim |
| 21856 | OBJEXT!$OBJEXT$ac_delim |
| 21857 | CXX!$CXX$ac_delim |
| 21858 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21859 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21860 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21861 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21862 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 21863 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21864 | build!$build$ac_delim |
| 21865 | build_cpu!$build_cpu$ac_delim |
| 21866 | build_vendor!$build_vendor$ac_delim |
| 21867 | build_os!$build_os$ac_delim |
| 21868 | host!$host$ac_delim |
| 21869 | host_cpu!$host_cpu$ac_delim |
| 21870 | host_vendor!$host_vendor$ac_delim |
| 21871 | host_os!$host_os$ac_delim |
| 21872 | target!$target$ac_delim |
| 21873 | target_cpu!$target_cpu$ac_delim |
| 21874 | target_vendor!$target_vendor$ac_delim |
| 21875 | target_os!$target_os$ac_delim |
| 21876 | OS!$OS$ac_delim |
| 21877 | HOST_OS!$HOST_OS$ac_delim |
| 21878 | TARGET_OS!$TARGET_OS$ac_delim |
| 21879 | LINKALL!$LINKALL$ac_delim |
| 21880 | NOLINKALL!$NOLINKALL$ac_delim |
| 21881 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21882 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21883 | ARCH!$ARCH$ac_delim |
| 21884 | ENDIAN!$ENDIAN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21885 | GREP!$GREP$ac_delim |
| 21886 | EGREP!$EGREP$ac_delim |
| 21887 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21888 | BUILD_CC!$BUILD_CC$ac_delim |
| 21889 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21890 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21891 | CVSBUILD!$CVSBUILD$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21892 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21893 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21894 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21895 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21896 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21897 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21898 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21899 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21900 | JIT!$JIT$ac_delim |
| 21901 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21902 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21903 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 21904 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21905 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21906 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21907 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21908 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21909 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21910 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21911 | 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] | 21912 | break |
| 21913 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21914 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21915 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21916 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21917 | else |
| 21918 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21920 | done |
| 21921 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21922 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21923 | if test -n "$ac_eof"; then |
| 21924 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21925 | ac_eof=`expr $ac_eof + 1` |
| 21926 | fi |
| 21927 | |
| 21928 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21929 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21930 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21931 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21932 | sed ' |
| 21933 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21934 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21935 | :n |
| 21936 | t n |
| 21937 | s/'"$ac_delim"'$/,g/; t |
| 21938 | s/$/\\/; p |
| 21939 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21940 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21941 | rm -f conf$$subs.sed |
| 21942 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21943 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21944 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21945 | |
| 21946 | |
| 21947 | ac_delim='%!_!# ' |
| 21948 | for ac_last_try in false false false false false :; do |
| 21949 | cat >conf$$subs.sed <<_ACEOF |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21950 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21951 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21952 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21953 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21954 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21955 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21956 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21957 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21958 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 21959 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 21960 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21961 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 21962 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21963 | NM!$NM$ac_delim |
| 21964 | ifGNUmake!$ifGNUmake$ac_delim |
| 21965 | LN_S!$LN_S$ac_delim |
| 21966 | CMP!$CMP$ac_delim |
| 21967 | CP!$CP$ac_delim |
| 21968 | DATE!$DATE$ac_delim |
| 21969 | FIND!$FIND$ac_delim |
| 21970 | MKDIR!$MKDIR$ac_delim |
| 21971 | MV!$MV$ac_delim |
| 21972 | RANLIB!$RANLIB$ac_delim |
| 21973 | AR!$AR$ac_delim |
| 21974 | RM!$RM$ac_delim |
| 21975 | SED!$SED$ac_delim |
| 21976 | TAR!$TAR$ac_delim |
| 21977 | BINPWD!$BINPWD$ac_delim |
| 21978 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21979 | DOT!$DOT$ac_delim |
| 21980 | FDP!$FDP$ac_delim |
| 21981 | NEATO!$NEATO$ac_delim |
| 21982 | TWOPI!$TWOPI$ac_delim |
| 21983 | CIRCO!$CIRCO$ac_delim |
| 21984 | GV!$GV$ac_delim |
| 21985 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 21986 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21987 | PERL!$PERL$ac_delim |
| 21988 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21989 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21990 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21991 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21992 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21993 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21994 | DOXYGEN!$DOXYGEN$ac_delim |
| 21995 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 21996 | GZIPBIN!$GZIPBIN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21997 | POD2HTML!$POD2HTML$ac_delim |
| 21998 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21999 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22000 | RUNTEST!$RUNTEST$ac_delim |
| 22001 | TCLSH!$TCLSH$ac_delim |
| 22002 | ZIP!$ZIP$ac_delim |
| 22003 | OCAMLC!$OCAMLC$ac_delim |
| 22004 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 22005 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 22006 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 22007 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 22008 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22009 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 22010 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 22011 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 22012 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 22013 | LIBADD_DL!$LIBADD_DL$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22014 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 22015 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 22016 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 22017 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 22018 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 22019 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 22020 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22021 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22022 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22023 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 22024 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 22025 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 22026 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 22027 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 22028 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 22029 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 22030 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 22031 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 22032 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 22033 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 22034 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22035 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 22036 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 22037 | RPATH!$RPATH$ac_delim |
| 22038 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 22039 | LIBOBJS!$LIBOBJS$ac_delim |
| 22040 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22041 | _ACEOF |
| 22042 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 22043 | 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] | 22044 | break |
| 22045 | elif $ac_last_try; then |
| 22046 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22047 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22048 | { (exit 1); exit 1; }; } |
| 22049 | else |
| 22050 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22051 | fi |
| 22052 | done |
| 22053 | |
| 22054 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22055 | if test -n "$ac_eof"; then |
| 22056 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22057 | ac_eof=`expr $ac_eof + 1` |
| 22058 | fi |
| 22059 | |
| 22060 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22061 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22062 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 22063 | _ACEOF |
| 22064 | sed ' |
| 22065 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22066 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22067 | :n |
| 22068 | t n |
| 22069 | s/'"$ac_delim"'$/,g/; t |
| 22070 | s/$/\\/; p |
| 22071 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22072 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22073 | rm -f conf$$subs.sed |
| 22074 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22075 | :end |
| 22076 | s/|#_!!_#|//g |
| 22077 | CEOF$ac_eof |
| 22078 | _ACEOF |
| 22079 | |
| 22080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22081 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22082 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22083 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22084 | # (actually we leave an empty line to preserve line numbers). |
| 22085 | if test "x$srcdir" = x.; then |
| 22086 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22087 | s/:*\$(srcdir):*/:/ |
| 22088 | s/:*\${srcdir}:*/:/ |
| 22089 | s/:*@srcdir@:*/:/ |
| 22090 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22091 | s/:*$// |
| 22092 | s/^[^=]*=[ ]*$// |
| 22093 | }' |
| 22094 | fi |
| 22095 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22096 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22097 | fi # test -n "$CONFIG_FILES" |
| 22098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22099 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22100 | 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] | 22101 | do |
| 22102 | case $ac_tag in |
| 22103 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22104 | esac |
| 22105 | case $ac_mode$ac_tag in |
| 22106 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22107 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22108 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22109 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22110 | :[FH]-) ac_tag=-:-;; |
| 22111 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22112 | esac |
| 22113 | ac_save_IFS=$IFS |
| 22114 | IFS=: |
| 22115 | set x $ac_tag |
| 22116 | IFS=$ac_save_IFS |
| 22117 | shift |
| 22118 | ac_file=$1 |
| 22119 | shift |
| 22120 | |
| 22121 | case $ac_mode in |
| 22122 | :L) ac_source=$1;; |
| 22123 | :[FH]) |
| 22124 | ac_file_inputs= |
| 22125 | for ac_f |
| 22126 | do |
| 22127 | case $ac_f in |
| 22128 | -) ac_f="$tmp/stdin";; |
| 22129 | *) # Look for the file first in the build tree, then in the source tree |
| 22130 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22131 | # because $ac_f cannot contain `:'. |
| 22132 | test -f "$ac_f" || |
| 22133 | case $ac_f in |
| 22134 | [\\/$]*) false;; |
| 22135 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22136 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22137 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22138 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22139 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22140 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22141 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22142 | done |
| 22143 | |
| 22144 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22145 | # use $as_me), people would be surprised to read: |
| 22146 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22147 | configure_input="Generated from "`IFS=: |
| 22148 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22149 | if test x"$ac_file" != x-; then |
| 22150 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22151 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22152 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22153 | fi |
| 22154 | |
| 22155 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22156 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22157 | esac |
| 22158 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22159 | esac |
| 22160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22161 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22162 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22163 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22164 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22165 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22166 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22168 | s//\1/ |
| 22169 | q |
| 22170 | } |
| 22171 | /^X\(\/\/\)[^/].*/{ |
| 22172 | s//\1/ |
| 22173 | q |
| 22174 | } |
| 22175 | /^X\(\/\/\)$/{ |
| 22176 | s//\1/ |
| 22177 | q |
| 22178 | } |
| 22179 | /^X\(\/\).*/{ |
| 22180 | s//\1/ |
| 22181 | q |
| 22182 | } |
| 22183 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22184 | { as_dir="$ac_dir" |
| 22185 | case $as_dir in #( |
| 22186 | -*) as_dir=./$as_dir;; |
| 22187 | esac |
| 22188 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22189 | as_dirs= |
| 22190 | while :; do |
| 22191 | case $as_dir in #( |
| 22192 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22193 | *) as_qdir=$as_dir;; |
| 22194 | esac |
| 22195 | as_dirs="'$as_qdir' $as_dirs" |
| 22196 | as_dir=`$as_dirname -- "$as_dir" || |
| 22197 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22198 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22199 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22200 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22201 | echo X"$as_dir" | |
| 22202 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22203 | s//\1/ |
| 22204 | q |
| 22205 | } |
| 22206 | /^X\(\/\/\)[^/].*/{ |
| 22207 | s//\1/ |
| 22208 | q |
| 22209 | } |
| 22210 | /^X\(\/\/\)$/{ |
| 22211 | s//\1/ |
| 22212 | q |
| 22213 | } |
| 22214 | /^X\(\/\).*/{ |
| 22215 | s//\1/ |
| 22216 | q |
| 22217 | } |
| 22218 | s/.*/./; q'` |
| 22219 | test -d "$as_dir" && break |
| 22220 | done |
| 22221 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22222 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22223 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22224 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22225 | ac_builddir=. |
| 22226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22227 | case "$ac_dir" in |
| 22228 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22229 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22230 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22231 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22232 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22233 | case $ac_top_builddir_sub in |
| 22234 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22235 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22236 | esac ;; |
| 22237 | esac |
| 22238 | ac_abs_top_builddir=$ac_pwd |
| 22239 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22240 | # for backward compatibility: |
| 22241 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22242 | |
| 22243 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22244 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22245 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22246 | ac_top_srcdir=$ac_top_builddir_sub |
| 22247 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22248 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22249 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22250 | ac_top_srcdir=$srcdir |
| 22251 | ac_abs_top_srcdir=$srcdir ;; |
| 22252 | *) # Relative name. |
| 22253 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22254 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22255 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22256 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22257 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22260 | case $ac_mode in |
| 22261 | :F) |
| 22262 | # |
| 22263 | # CONFIG_FILE |
| 22264 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22265 | |
| 22266 | case $INSTALL in |
| 22267 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22268 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22269 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22270 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22271 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22272 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22273 | # If the template does not know about datarootdir, expand it. |
| 22274 | # FIXME: This hack should be removed a few years after 2.60. |
| 22275 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22276 | |
| 22277 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22278 | p |
| 22279 | q |
| 22280 | } |
| 22281 | /@datadir@/p |
| 22282 | /@docdir@/p |
| 22283 | /@infodir@/p |
| 22284 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22285 | /@mandir@/p |
| 22286 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22287 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22288 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22289 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22290 | 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] | 22291 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22292 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22293 | ac_datarootdir_hack=' |
| 22294 | s&@datadir@&$datadir&g |
| 22295 | s&@docdir@&$docdir&g |
| 22296 | s&@infodir@&$infodir&g |
| 22297 | s&@localedir@&$localedir&g |
| 22298 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22299 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22300 | esac |
| 22301 | _ACEOF |
| 22302 | |
| 22303 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22304 | # Shell code in configure.ac might set extrasub. |
| 22305 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22306 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22307 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22308 | $extrasub |
| 22309 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22310 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22311 | :t |
| 22312 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22313 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22314 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22315 | s&@srcdir@&$ac_srcdir&;t t |
| 22316 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22317 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22318 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22319 | s&@builddir@&$ac_builddir&;t t |
| 22320 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22321 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22322 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22323 | $ac_datarootdir_hack |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22324 | " $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] | 22325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22326 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22327 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22328 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22329 | { 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] | 22330 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22331 | 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] | 22332 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22334 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22335 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22336 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22337 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22338 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22339 | ;; |
| 22340 | :H) |
| 22341 | # |
| 22342 | # CONFIG_HEADER |
| 22343 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22344 | _ACEOF |
| 22345 | |
| 22346 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22347 | # substitutes the proper values into config.h.in to produce config.h. |
| 22348 | rm -f conftest.defines conftest.tail |
| 22349 | # First, append a space to every undef/define line, to ease matching. |
| 22350 | echo 's/$/ /' >conftest.defines |
| 22351 | # Then, protect against being on the right side of a sed subst, or in |
| 22352 | # an unquoted here document, in config.status. If some macros were |
| 22353 | # called several times there might be several #defines for the same |
| 22354 | # symbol, which is useless. But do not sort them, since the last |
| 22355 | # AC_DEFINE must be honored. |
| 22356 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22357 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22358 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22359 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22360 | # just an empty string. |
| 22361 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22362 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22363 | ac_dC=' ' |
| 22364 | ac_dD=' ,' |
| 22365 | |
| 22366 | uniq confdefs.h | |
| 22367 | sed -n ' |
| 22368 | t rset |
| 22369 | :rset |
| 22370 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22371 | t ok |
| 22372 | d |
| 22373 | :ok |
| 22374 | s/[\\&,]/\\&/g |
| 22375 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22376 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22377 | ' >>conftest.defines |
| 22378 | |
| 22379 | # Remove the space that was appended to ease matching. |
| 22380 | # Then replace #undef with comments. This is necessary, for |
| 22381 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22382 | # on some systems where configure will not decide to define it. |
| 22383 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22384 | echo 's/ $// |
| 22385 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22386 | |
| 22387 | # Break up conftest.defines: |
| 22388 | ac_max_sed_lines=50 |
| 22389 | |
| 22390 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22391 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22392 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22393 | # et cetera. |
| 22394 | ac_in='$ac_file_inputs' |
| 22395 | ac_out='"$tmp/out1"' |
| 22396 | ac_nxt='"$tmp/out2"' |
| 22397 | |
| 22398 | while : |
| 22399 | do |
| 22400 | # Write a here document: |
| 22401 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22402 | # First, check the format of the line: |
| 22403 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22404 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22405 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22406 | b |
| 22407 | :def |
| 22408 | _ACEOF |
| 22409 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22410 | echo 'CEOF |
| 22411 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22412 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22413 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22414 | grep . conftest.tail >/dev/null || break |
| 22415 | rm -f conftest.defines |
| 22416 | mv conftest.tail conftest.defines |
| 22417 | done |
| 22418 | rm -f conftest.defines conftest.tail |
| 22419 | |
| 22420 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22421 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22422 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22423 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22424 | cat "$ac_result" >>"$tmp/config.h" |
| 22425 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22426 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22427 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22428 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22429 | rm -f $ac_file |
| 22430 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22431 | fi |
| 22432 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22433 | echo "/* $configure_input */" |
| 22434 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22435 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22436 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22437 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22438 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22439 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22440 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22441 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22442 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22444 | |
| 22445 | case $ac_file$ac_mode in |
| 22446 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22447 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22448 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22449 | ${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] | 22450 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22451 | ${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] | 22452 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22453 | ${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] | 22454 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22455 | ${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] | 22456 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22457 | ${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] | 22458 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22459 | ${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] | 22460 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22461 | ${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] | 22462 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22463 | ${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] | 22464 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22465 | ${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] | 22466 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22467 | ${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] | 22468 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22469 | ${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] | 22470 | "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] | 22471 | ${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] | 22472 | |
| 22473 | esac |
| 22474 | done # for ac_tag |
| 22475 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22476 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22477 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22478 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22479 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22480 | ac_clean_files=$ac_clean_files_save |
| 22481 | |
| 22482 | |
| 22483 | # configure is writing to config.log, and then calls config.status. |
| 22484 | # config.status does its own redirection, appending to config.log. |
| 22485 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22486 | # by configure, so config.status won't be able to write to it; its |
| 22487 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22488 | # effectively closing config.log, so it can be properly (re)opened and |
| 22489 | # appended to by config.status. When coming back to configure, we |
| 22490 | # need to make the FD available again. |
| 22491 | if test "$no_create" != yes; then |
| 22492 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22493 | ac_config_status_args= |
| 22494 | test "$silent" = yes && |
| 22495 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22496 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22497 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22498 | exec 5>>config.log |
| 22499 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22500 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22501 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22502 | fi |
| 22503 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22504 | # |
| 22505 | # CONFIG_SUBDIRS section. |
| 22506 | # |
| 22507 | if test "$no_recursion" != yes; then |
| 22508 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22509 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22510 | ac_sub_configure_args= |
| 22511 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22512 | eval "set x $ac_configure_args" |
| 22513 | shift |
| 22514 | for ac_arg |
| 22515 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22516 | if test -n "$ac_prev"; then |
| 22517 | ac_prev= |
| 22518 | continue |
| 22519 | fi |
| 22520 | case $ac_arg in |
| 22521 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22522 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22523 | ac_prev=cache_file ;; |
| 22524 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22525 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22526 | | --c=*) |
| 22527 | ;; |
| 22528 | --config-cache | -C) |
| 22529 | ;; |
| 22530 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22531 | ac_prev=srcdir ;; |
| 22532 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22533 | ;; |
| 22534 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22535 | ac_prev=prefix ;; |
| 22536 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22537 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22538 | *) |
| 22539 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22540 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22541 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22542 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22543 | esac |
| 22544 | done |
| 22545 | |
| 22546 | # Always prepend --prefix to ensure using the same prefix |
| 22547 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22548 | ac_arg="--prefix=$prefix" |
| 22549 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22550 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22551 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22552 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22553 | |
| 22554 | ac_popdir=`pwd` |
| 22555 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22556 | |
| 22557 | # Do not complain, so a configure script can configure whichever |
| 22558 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22559 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22561 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22562 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22563 | echo "$ac_msg" >&6 |
| 22564 | { as_dir="$ac_dir" |
| 22565 | case $as_dir in #( |
| 22566 | -*) as_dir=./$as_dir;; |
| 22567 | esac |
| 22568 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22569 | as_dirs= |
| 22570 | while :; do |
| 22571 | case $as_dir in #( |
| 22572 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22573 | *) as_qdir=$as_dir;; |
| 22574 | esac |
| 22575 | as_dirs="'$as_qdir' $as_dirs" |
| 22576 | as_dir=`$as_dirname -- "$as_dir" || |
| 22577 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22578 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22579 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22580 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22581 | echo X"$as_dir" | |
| 22582 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22583 | s//\1/ |
| 22584 | q |
| 22585 | } |
| 22586 | /^X\(\/\/\)[^/].*/{ |
| 22587 | s//\1/ |
| 22588 | q |
| 22589 | } |
| 22590 | /^X\(\/\/\)$/{ |
| 22591 | s//\1/ |
| 22592 | q |
| 22593 | } |
| 22594 | /^X\(\/\).*/{ |
| 22595 | s//\1/ |
| 22596 | q |
| 22597 | } |
| 22598 | s/.*/./; q'` |
| 22599 | test -d "$as_dir" && break |
| 22600 | done |
| 22601 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22602 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22603 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22604 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22605 | ac_builddir=. |
| 22606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | case "$ac_dir" in |
| 22608 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22609 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22610 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22611 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22612 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22613 | case $ac_top_builddir_sub in |
| 22614 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22615 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22616 | esac ;; |
| 22617 | esac |
| 22618 | ac_abs_top_builddir=$ac_pwd |
| 22619 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22620 | # for backward compatibility: |
| 22621 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22622 | |
| 22623 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22624 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22625 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22626 | ac_top_srcdir=$ac_top_builddir_sub |
| 22627 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22628 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22629 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22630 | ac_top_srcdir=$srcdir |
| 22631 | ac_abs_top_srcdir=$srcdir ;; |
| 22632 | *) # Relative name. |
| 22633 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22634 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22635 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22636 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22637 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22638 | |
| 22639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22640 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22641 | |
| 22642 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22643 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22644 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22645 | elif test -f "$ac_srcdir/configure"; then |
| 22646 | ac_sub_configure=$ac_srcdir/configure |
| 22647 | elif test -f "$ac_srcdir/configure.in"; then |
| 22648 | # This should be Cygnus configure. |
| 22649 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22650 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22651 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22652 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22653 | ac_sub_configure= |
| 22654 | fi |
| 22655 | |
| 22656 | # The recursion is here. |
| 22657 | if test -n "$ac_sub_configure"; then |
| 22658 | # Make the cache file name correct relative to the subdirectory. |
| 22659 | case $cache_file in |
| 22660 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22661 | *) # Relative name. |
| 22662 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22663 | esac |
| 22664 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22665 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22666 | 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] | 22667 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22668 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22669 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22670 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22671 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22672 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22673 | fi |
| 22674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22675 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22676 | done |
| 22677 | fi |
| 22678 | |