| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
|  | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 3.1svn. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
|  | 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 6 | # | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # | 
| Benjamin Kramer | 820a947 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## | 
|  | 14 | ## M4sh Initialization.  ## | 
|  | 15 | ## --------------------- ## | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 |  | 
| Daniel Dunbar | 4e06a5b | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh | 
|  | 20 | NULLCMD=: | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22 | # is contrary to our usage.  Disable this feature. | 
|  | 23 | alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST | 
|  | 25 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 58 | fi | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 |  | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' | 
|  | 67 | ' | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; | 
|  | 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 3eaf0b4 | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 |  | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi | 
|  | 93 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done | 
|  | 98 | PS1='$ ' | 
|  | 99 | PS2='> ' | 
|  | 100 | PS4='+ ' | 
|  | 101 |  | 
|  | 102 | # NLS nuisances. | 
| Jeffrey Yasskin | bf5ce0a | 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 | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do | 
| Jeffrey Yasskin | bf5ce0a | 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 | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. | 
|  | 151 | $as_unset CDPATH | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 |  | 
|  | 153 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | sed -n ' | 
|  | 437 | p | 
|  | 438 | /[$]LINENO/= | 
|  | 439 | ' <$as_myself | | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ | 
|  | 442 | t lineno | 
|  | 443 | b | 
|  | 444 | :lineno | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop | 
|  | 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 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 | 0b52e2f | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. | 
|  | 460 | exit | 
|  | 461 | } | 
|  | 462 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *)   ECHO_C='\c';; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; | 
|  | 477 | *) | 
|  | 478 | ECHO_N='-n';; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac | 
|  | 480 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 488 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 506 | else | 
|  | 507 | as_ln_s='cp -p' | 
|  | 508 | fi | 
| Reid Spencer | 0b52e2f | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 |  | 
|  | 512 | if mkdir -p . 2>/dev/null; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 514 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false | 
|  | 517 | fi | 
|  | 518 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 531 | rm -f conf$$.file | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 |  | 
|  | 533 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | f184a86 | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 |  | 
|  | 536 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 |  | 
|  | 539 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 |  | 
|  | 541 | exec 7<&0 </dev/null 6>&1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 |  | 
| John Criswell | 3ef61af | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # | 
|  | 549 | # Initializations. | 
|  | 550 | # | 
|  | 551 | ac_default_prefix=/usr/local | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no | 
|  | 556 | subdirs= | 
|  | 557 | MFLAGS= | 
|  | 558 | MAKEFLAGS= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' | 
| Reid Spencer | a0e01ae | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.1svn' | 
|  | 565 | PACKAGE_STRING='llvm 3.1svn' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
|  | 567 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> | 
|  | 574 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> | 
|  | 577 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> | 
|  | 580 | # include <stddef.h> | 
|  | 581 | #else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | #  include <stdlib.h> | 
|  | 584 | # endif | 
|  | 585 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H | 
|  | 587 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | #  include <memory.h> | 
|  | 589 | # endif | 
|  | 590 | # include <string.h> | 
|  | 591 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> | 
|  | 594 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> | 
|  | 603 | #endif" | 
|  | 604 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR | 
| Jeffrey Yasskin | bf5ce0a | 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 | 5883971 | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 654 | subdirs | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 655 | ENABLE_POLLY | 
|  | 656 | LLVM_HAS_POLLY | 
| Jeffrey Yasskin | bf5ce0a | 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 | bf5ce0a | 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 | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 685 | ENABLE_LIBCPP | 
| Jeffrey Yasskin | bf5ce0a | 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 | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 695 | ENABLE_DOCS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 696 | ENABLE_DOXYGEN | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 697 | LLVM_ENABLE_THREADS | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 698 | ENABLE_PTHREADS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 699 | ENABLE_PIC | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 700 | ENABLE_SHARED | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 701 | ENABLE_EMBED_STDCXX | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 702 | ENABLE_TIMESTAMPS | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 711 | EXTRA_LD_OPTIONS | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 712 | CLANG_SRC_ROOT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 713 | BINUTILS_INCDIR | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame^] | 714 | INTERNAL_PREFIX | 
| Jeffrey Yasskin | bf5ce0a | 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 | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 738 | XDOT_PY | 
| Jeffrey Yasskin | bf5ce0a | 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 | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 745 | CAT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | DOXYGEN | 
|  | 747 | GROFF | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 748 | GZIPBIN | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | POD2HTML | 
|  | 750 | POD2MAN | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 751 | PDFROFF | 
| Jeffrey Yasskin | bf5ce0a | 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 | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 760 | HAVE_LINK_VERSION_SCRIPT | 
| Jeffrey Yasskin | bf5ce0a | 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 | bf5ce0a | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 773 | SHLIBEXT | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 774 | SHLIBPATH_VAR | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 793 | ac_subst_files='' | 
| Reid Spencer | 0b52e2f | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 801 | CXX | 
|  | 802 | CXXFLAGS | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 803 | CCC | 
|  | 804 | CPP' | 
| John Criswell | f369e77 | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 811 | projects/privbracket | 
| Reid Spencer | b4e0f9b | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 812 | projects/llvm-stacker | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | projects/llvm-reopt | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-java | 
|  | 815 | projects/llvm-tv | 
| John Criswell | 4d377d8 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 816 | projects/safecode | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 817 | projects/llvm-kernel | 
|  | 818 | tools/polly' | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 845 | # (The list follows the same order as the GNU Coding Standards.) | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 849 | datarootdir='${prefix}/share' | 
|  | 850 | datadir='${datarootdir}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 851 | sysconfdir='${prefix}/etc' | 
|  | 852 | sharedstatedir='${prefix}/com' | 
|  | 853 | localstatedir='${prefix}/var' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 854 | includedir='${prefix}/include' | 
|  | 855 | oldincludedir='/usr/include' | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 865 |  | 
|  | 866 | ac_prev= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 867 | ac_dashdash= | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 872 | eval $ac_prev=\$ac_option | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 873 | ac_prev= | 
|  | 874 | continue | 
|  | 875 | fi | 
|  | 876 |  | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 884 | case $ac_dashdash$ac_option in | 
|  | 885 | --) | 
|  | 886 | ac_dashdash=yes ;; | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 908 | -datadir | --datadir | --datadi | --datad) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 909 | ac_prev=datadir ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 911 | datadir=$ac_optarg ;; | 
|  | 912 |  | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | -disable-* | --disable-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 921 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 922 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 938 |  | 
|  | 939 | -enable-* | --enable-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 940 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 941 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | 0b52e2f | 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 | 3ef61af | 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 | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1008 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | ac_prev=localstatedir ;; | 
|  | 1011 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1012 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 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 | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1137 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1138 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1144 |  | 
|  | 1145 | -without-* | --without-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1146 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1183 | eval $ac_envvar=\$ac_optarg | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1188 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1189 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1190 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1201 | fi | 
|  | 1202 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1203 | # Be sure to have absolute directory names. | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1208 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1209 | eval ac_val=\$$ac_var | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | case $ac_val in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1211 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1212 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | esac | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 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 | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1247 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1250 |  | 
|  | 1251 |  | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1255 | # Try the directory containing this script, then the parent directory. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1279 | srcdir=$ac_confdir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1280 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1281 | srcdir=.. | 
|  | 1282 | fi | 
|  | 1283 | else | 
|  | 1284 | ac_srcdir_defaulted=no | 
|  | 1285 | fi | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1290 | fi | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 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 | 3ef61af | 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 | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 1320 | \`configure' configures llvm 3.1svn to adapt to many kinds of systems. | 
| John Criswell | 3ef61af | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | Installation directories: | 
|  | 1341 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1342 | [$ac_default_prefix] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1343 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1344 | [PREFIX] | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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] | 
|  | 1368 | --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-] | 
|  | 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 | 3ef61af | 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 | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 1386 | short | recursive ) echo "Configuration of llvm 3.1svn:";; | 
| John Criswell | 3ef61af | 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 | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1393 | --enable-polly          Use polly if available (default is YES) | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1394 | --enable-libcpp         Use libc++ if available (default is NO) | 
| Nick Lewycky | 8667990 | 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 | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1399 | --enable-expensive-checks | 
| Nick Lewycky | 8667990 | 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 | c3273dc | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1406 | --enable-jit            Enable Just In Time Compiling (default is YES) | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1407 | --enable-docs           Build documents (default is YES) | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1408 | --enable-doxygen        Build doxygen documentation (default is NO) | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1409 | --enable-threads        Use threads if available (default is YES) | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1410 | --enable-pthreads       Use pthreads if available (default is YES) | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1411 | --enable-pic            Build LLVM with Position Independent Code (default | 
| Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1412 | is YES) | 
| Jeffrey Yasskin | 6b718f7 | 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 | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1415 | --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for | 
| NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1416 | Win32 DLL (default is NO) | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1417 | --enable-timestamps     Enable embedding timestamp information in build | 
|  | 1418 | (default is YES) | 
| Jeffrey Yasskin | 42a49df | 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 | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1421 | x86_64, sparc, powerpc, arm, mips, spu, xcore, | 
|  | 1422 | msp430, ptx, cbe, and cpp (default=all) | 
| Reid Spencer | d549edc | 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 | e61dd67 | 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 | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1427 | --enable-libffi         Check for the presence of libffi (default is NO) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1428 | --enable-ltdl-install   install libltdl | 
| John Criswell | 3ef61af | 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 | b4a289c | 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 | ef8c8ec | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1435 | --with-extra-options    Specify additional options to compile LLVM with | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1436 | --with-extra-ld-options Specify additional options to link LLVM with | 
| Gordon Henriksen | da5d5b5 | 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 | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1439 | --with-clang-srcdir     Directory to the out-of-tree Clang source | 
| Chandler Carruth | ffae4a6 | 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 | d95960b | 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 | 65e9be6d | 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 | a2cf0ed | 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 | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1453 | --with-bug-report-url   Specify the URL where bug reports should be | 
| NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1454 | submitted (default=http://llvm.org/bugs/) | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame^] | 1455 | --with-internal-prefix  Installation directory for internal files | 
| Reid Spencer | 105d415 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1456 | --with-tclinclude       directory where tcl headers are | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1457 | --with-udis86=<path>    Use udis86 external x86 disassembler library | 
| Jeffrey Yasskin | efbc3a5 | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 |  | 
|  | 1461 | Some influential environment variables: | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1462 | CC          C compiler command | 
|  | 1463 | CFLAGS      C compiler flags | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1467 | you have headers in a nonstandard directory <include dir> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1468 | CXX         C++ compiler command | 
|  | 1469 | CXXFLAGS    C++ compiler flags | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1470 | CPP         C preprocessor | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 |  | 
|  | 1472 | Use these variables to override the choices made by `configure' or to help | 
|  | 1473 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1474 |  | 
|  | 1475 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 1476 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | ac_status=$? | 
| John Criswell | 3ef61af | 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 | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1483 | test -d "$ac_dir" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | ac_builddir=. | 
|  | 1485 |  | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1489 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1491 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1501 |  | 
|  | 1502 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | .)  # We are building in place. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1508 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1515 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1517 |  | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1527 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | fi || ac_status=$? | 
|  | 1529 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | done | 
|  | 1531 | fi | 
|  | 1532 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | test -n "$ac_init_help" && exit $ac_status | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | if $ac_init_version; then | 
|  | 1535 | cat <<\_ACEOF | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 1536 | llvm configure 3.1svn | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1537 | generated by GNU Autoconf 2.60 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1543 |  | 
| Benjamin Kramer | 820a947 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 1544 | Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | exit | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | cat >config.log <<_ACEOF | 
| John Criswell | 3ef61af | 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 |  | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 1552 | It was created by llvm $as_me 3.1svn, which was | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 |  | 
|  | 1555 | $ $0 $@ | 
|  | 1556 |  | 
|  | 1557 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | exec 5>>config.log | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1589 | echo "PATH: $as_dir" | 
|  | 1590 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1591 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 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 | 3eaf0b4 | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | ac_configure_args= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | ac_configure_args0= | 
|  | 1612 | ac_configure_args1= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false | 
|  | 1614 | for ac_pass in 1 2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | do | 
| John Criswell | 3eaf0b4 | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | *\'*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | esac | 
|  | 1626 | case $ac_pass in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | 2) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1629 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | if test $ac_must_keep_next = true; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 | else | 
| Reid Spencer | f184a86 | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1644 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | ac_configure_args="$ac_configure_args '$ac_arg'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 | ;; | 
|  | 1647 | esac | 
|  | 1648 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | done | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | 0b52e2f | 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 | 3ef61af | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 |  | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | esac | 
|  | 1679 | case $ac_var in #( | 
|  | 1680 | _ | IFS | as_nl) ;; #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1681 | *) $as_unset $ac_var ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | esac ;; | 
|  | 1683 | esac | 
|  | 1684 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | (set) 2>&1 | | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | sed -n \ | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | *) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1693 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac | | 
|  | 1696 | sort | 
|  | 1697 | ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | echo | 
| John Criswell | 3eaf0b4 | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | eval ac_val=\$$ac_var | 
|  | 1709 | case $ac_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1710 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1712 | echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 3eaf0b4 | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1718 | ## ------------------- ## | 
|  | 1719 | ## File substitutions. ## | 
|  | 1720 | ## ------------------- ## | 
| John Criswell | 3eaf0b4 | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | eval ac_val=\$$ac_var | 
|  | 1726 | case $ac_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1729 | echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | done | sort | 
|  | 1731 | echo | 
|  | 1732 | fi | 
|  | 1733 |  | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | cat confdefs.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | echo | 
|  | 1743 | fi | 
|  | 1744 | test "$ac_signal" != 0 && | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | } >&5 | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | exit $exit_status | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | ' 0 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | for ac_signal in 1 2 13 15; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | rm -f -r conftest* confdefs.h | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | # Prefer explicitly selected file to automatically selected ones. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | if test -n "$CONFIG_SITE"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$CONFIG_SITE" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | elif test "x$prefix" != xNONE; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1796 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1797 | shift | 
|  | 1798 | for ac_site_file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | do | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | case $cache_file in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 1816 | *)                      . "./$cache_file";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | esac | 
|  | 1818 | fi | 
|  | 1819 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1828 | for ac_var in $ac_precious_vars; do | 
| John Criswell | 3ef61af | 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 | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | case $ac_old_set,$ac_new_set in | 
|  | 1834 | set,) | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | ac_cache_corrupted=: ;; | 
|  | 1838 | ,set) | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | esac | 
|  | 1864 | fi | 
|  | 1865 | done | 
|  | 1866 | if $ac_cache_corrupted; then | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1897 |  | 
| John Criswell | 3ef61af | 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 |  | 
| Benjamin Kramer | 820a947 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 1906 | LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1907 |  | 
|  | 1908 |  | 
|  | 1909 |  | 
|  | 1910 |  | 
|  | 1911 |  | 
|  | 1912 |  | 
|  | 1913 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | ac_aux_dir= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | for ac_dir in autoconf "$srcdir"/autoconf; do | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | done | 
|  | 1930 | if test -z "$ac_aux_dir"; then | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | fi | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 |  | 
| John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1945 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1947 | if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1951 | fi | 
| John Criswell | 22107a7 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1952 | fi | 
|  | 1953 |  | 
| Nick Lewycky | c5975fc | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1954 | ac_ext=c | 
| Reid Spencer | 0241e38 | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1959 | if test -n "$ac_tool_prefix"; then | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1960 | for ac_prog in clang llvm-gcc gcc | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1968 | else | 
| Reid Spencer | 0241e38 | 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 | 3ef61af | 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 | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1979 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1981 | break 2 | 
|  | 1982 | fi | 
|  | 1983 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1984 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1985 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1986 |  | 
|  | 1987 | fi | 
|  | 1988 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1989 | CC=$ac_cv_prog_CC | 
|  | 1990 | if test -n "$CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1993 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1996 | fi | 
|  | 1997 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1998 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1999 | test -n "$CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2000 | done | 
|  | 2001 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2002 | if test -z "$CC"; then | 
|  | 2003 | ac_ct_CC=$CC | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2004 | for ac_prog in clang llvm-gcc gcc | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2012 | else | 
| Reid Spencer | 0241e38 | 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 | 3ef61af | 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 | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2023 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | break 2 | 
|  | 2026 | fi | 
|  | 2027 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2028 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2029 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2030 |  | 
|  | 2031 | fi | 
|  | 2032 | fi | 
| Reid Spencer | 0241e38 | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | fi | 
|  | 2041 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2043 | test -n "$ac_ct_CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 |  | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2061 | fi | 
|  | 2062 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2063 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | # Provide some information about the compiler. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2080 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2103 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2109 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2110 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2120 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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 | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2146 | if { (ac_try="$ac_link_default" | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2152 | (eval "$ac_link_default") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2155 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2161 | for ac_file in $ac_files | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | do | 
|  | 2163 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2164 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 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 | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2166 | ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2167 | [ab].out ) | 
| Reid Spencer | f184a86 | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2171 | *.* ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2172 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Reid Spencer | 0b52e2f | 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 | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2181 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2182 | * ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2183 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2184 | esac | 
|  | 2185 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 2187 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2188 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2189 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2190 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2191 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2197 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2198 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2239 | ac_clean_files=$ac_clean_files_save | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2255 | (eval "$ac_link") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2256 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2258 | (exit $ac_status); }; then | 
| John Criswell | 3ef61af | 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 | 3eaf0b4 | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2265 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2267 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2268 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2269 | * ) break;; | 
|  | 2270 | esac | 
|  | 2271 | done | 
|  | 2272 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 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 | bf5ce0a | 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 | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2291 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2297 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2308 | if { (ac_try="$ac_compile" | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2314 | (eval "$ac_compile") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2315 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2317 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2320 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2327 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2328 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2329 |  | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2336 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2337 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 2338 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2341 | OBJEXT=$ac_cv_objext | 
|  | 2342 | ac_objext=$OBJEXT | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2353 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2354 |  | 
| John Criswell | 3ef61af | 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 | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2400 | ac_compiler_gnu=yes | 
|  | 2401 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 |  | 
|  | 2411 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 2416 | ac_save_CFLAGS=$CFLAGS | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2421 | else | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2431 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2432 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2433 | int | 
|  | 2434 | main () | 
|  | 2435 | { | 
|  | 2436 |  | 
|  | 2437 | ; | 
|  | 2438 | return 0; | 
|  | 2439 | } | 
|  | 2440 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2475 | ac_cv_prog_cc_g=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2476 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 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 | bf5ce0a | 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 | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2531 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2536 | CFLAGS="-g" | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2586 | ac_cv_prog_cc_g=yes | 
| Jeffrey Yasskin | bf5ce0a | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2592 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2593 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2595 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2596 |  | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2599 |  | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 0241e38 | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2610 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2611 | CFLAGS="-g" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2612 | fi | 
|  | 2613 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2614 | if test "$GCC" = yes; then | 
|  | 2615 | CFLAGS="-O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2616 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2617 | CFLAGS= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | fi | 
|  | 2619 | fi | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | ac_cv_prog_cc_c89=no | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | ac_save_CC=$CC | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 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 | 0b52e2f | 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 | 0241e38 | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2662 | that's true only with -std.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2663 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 2664 |  | 
| Reid Spencer | 0b52e2f | 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 | 0241e38 | 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 | 0b52e2f | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2686 | do | 
|  | 2687 | CC="$ac_save_CC $ac_arg" | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2722 | ac_cv_prog_cc_c89=$ac_arg | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2728 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2729 |  | 
| Reid Spencer | 0b52e2f | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2733 | rm -f conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2734 | CC=$ac_save_CC | 
|  | 2735 |  | 
|  | 2736 | fi | 
| Reid Spencer | 0b52e2f | 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 | bf5ce0a | 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 | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2742 | xno) | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2745 | *) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | CC="$CC $ac_cv_prog_cc_c89" | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2749 | esac | 
|  | 2750 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2751 |  | 
| Reid Spencer | 0241e38 | 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 | 5883971 | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3189 |  | 
| Reid Spencer | 0241e38 | 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 | bf5ce0a | 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 | 0241e38 | 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 | bf5ce0a | 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 | 0241e38 | 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 | bf5ce0a | 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 | 0241e38 | 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 | bf5ce0a | 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 | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3249 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3258 | # Broken: fails on valid input. | 
|  | 3259 | continue | 
|  | 3260 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3261 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3262 | rm -f conftest.err conftest.$ac_ext | 
|  | 3263 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3264 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3265 | # can be detected and how. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3271 | /* end confdefs.h.  */ | 
|  | 3272 | #include <ac_nonexistent.h> | 
|  | 3273 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | # Broken: success on invalid input. | 
|  | 3298 | continue | 
|  | 3299 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | # Passes both tests. | 
|  | 3304 | ac_preproc_ok=: | 
|  | 3305 | break | 
|  | 3306 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3307 |  | 
| Reid Spencer | 0241e38 | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3313 | if $ac_preproc_ok; then | 
| Reid Spencer | 0241e38 | 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 | bf5ce0a | 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 | 0241e38 | 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 | bf5ce0a | 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 | 0241e38 | 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 | bf5ce0a | 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 | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3368 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3377 | # Broken: fails on valid input. | 
|  | 3378 | continue | 
|  | 3379 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3380 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3381 | rm -f conftest.err conftest.$ac_ext | 
|  | 3382 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3383 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3384 | # can be detected and how. | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | /* end confdefs.h.  */ | 
|  | 3391 | #include <ac_nonexistent.h> | 
|  | 3392 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3416 | # Broken: success on invalid input. | 
|  | 3417 | continue | 
|  | 3418 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3422 | # Passes both tests. | 
|  | 3423 | ac_preproc_ok=: | 
|  | 3424 | break | 
|  | 3425 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3426 |  | 
| Reid Spencer | 0241e38 | 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 | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3432 | if $ac_preproc_ok; then | 
|  | 3433 | : | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3434 | else | 
| Jeffrey Yasskin | bf5ce0a | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3440 | fi | 
|  | 3441 |  | 
| John Criswell | 3ef61af | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3448 |  | 
| Eric Christopher | 5883971 | 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 | ;; | 
|  | 3496 | llvm-gcc)       ;; | 
|  | 3497 | test-suite)     ;; | 
|  | 3498 | llvm-test)      ;; | 
|  | 3499 | poolalloc)      ;; | 
|  | 3500 | llvm-poolalloc) ;; | 
|  | 3501 | *) | 
|  | 3502 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
|  | 3503 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} | 
|  | 3504 | ;; | 
|  | 3505 | esac | 
|  | 3506 | fi | 
|  | 3507 | done | 
|  | 3508 |  | 
|  | 3509 | # Check whether --enable-polly was given. | 
|  | 3510 | if test "${enable_polly+set}" = set; then | 
|  | 3511 | enableval=$enable_polly; | 
|  | 3512 | else | 
|  | 3513 | enableval=default | 
|  | 3514 | fi | 
|  | 3515 |  | 
|  | 3516 | case "$enableval" in | 
|  | 3517 | yes) ENABLE_POLLY=1 | 
|  | 3518 | ;; | 
|  | 3519 | no)  ENABLE_POLLY=0 | 
|  | 3520 | ;; | 
|  | 3521 | default) ENABLE_POLLY=1 | 
|  | 3522 | ;; | 
|  | 3523 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 | 
|  | 3524 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} | 
|  | 3525 | { (exit 1); exit 1; }; } ;; | 
|  | 3526 | esac | 
|  | 3527 |  | 
|  | 3528 |  | 
|  | 3529 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then | 
|  | 3530 | LLVM_HAS_POLLY=1 | 
|  | 3531 |  | 
|  | 3532 | subdirs="$subdirs tools/polly" | 
|  | 3533 |  | 
|  | 3534 | fi | 
|  | 3535 |  | 
|  | 3536 |  | 
|  | 3537 | # Make sure we can run config.sub. | 
|  | 3538 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 3539 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | 
|  | 3540 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | 
|  | 3541 | { (exit 1); exit 1; }; } | 
|  | 3542 |  | 
|  | 3543 | { echo "$as_me:$LINENO: checking build system type" >&5 | 
|  | 3544 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | 
|  | 3545 | if test "${ac_cv_build+set}" = set; then | 
|  | 3546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3547 | else | 
|  | 3548 | ac_build_alias=$build_alias | 
|  | 3549 | test "x$ac_build_alias" = x && | 
|  | 3550 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 3551 | test "x$ac_build_alias" = x && | 
|  | 3552 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
|  | 3553 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
|  | 3554 | { (exit 1); exit 1; }; } | 
|  | 3555 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 3556 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | 
|  | 3557 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | 
|  | 3558 | { (exit 1); exit 1; }; } | 
|  | 3559 |  | 
|  | 3560 | fi | 
|  | 3561 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
|  | 3562 | echo "${ECHO_T}$ac_cv_build" >&6; } | 
|  | 3563 | case $ac_cv_build in | 
|  | 3564 | *-*-*) ;; | 
|  | 3565 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | 
|  | 3566 | echo "$as_me: error: invalid value of canonical build" >&2;} | 
|  | 3567 | { (exit 1); exit 1; }; };; | 
|  | 3568 | esac | 
|  | 3569 | build=$ac_cv_build | 
|  | 3570 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3571 | set x $ac_cv_build | 
|  | 3572 | shift | 
|  | 3573 | build_cpu=$1 | 
|  | 3574 | build_vendor=$2 | 
|  | 3575 | shift; shift | 
|  | 3576 | # Remember, the first character of IFS is used to create $*, | 
|  | 3577 | # except with old shells: | 
|  | 3578 | build_os=$* | 
|  | 3579 | IFS=$ac_save_IFS | 
|  | 3580 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 3581 |  | 
|  | 3582 |  | 
|  | 3583 | { echo "$as_me:$LINENO: checking host system type" >&5 | 
|  | 3584 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | 
|  | 3585 | if test "${ac_cv_host+set}" = set; then | 
|  | 3586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3587 | else | 
|  | 3588 | if test "x$host_alias" = x; then | 
|  | 3589 | ac_cv_host=$ac_cv_build | 
|  | 3590 | else | 
|  | 3591 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 3592 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | 
|  | 3593 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | 
|  | 3594 | { (exit 1); exit 1; }; } | 
|  | 3595 | fi | 
|  | 3596 |  | 
|  | 3597 | fi | 
|  | 3598 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
|  | 3599 | echo "${ECHO_T}$ac_cv_host" >&6; } | 
|  | 3600 | case $ac_cv_host in | 
|  | 3601 | *-*-*) ;; | 
|  | 3602 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | 
|  | 3603 | echo "$as_me: error: invalid value of canonical host" >&2;} | 
|  | 3604 | { (exit 1); exit 1; }; };; | 
|  | 3605 | esac | 
|  | 3606 | host=$ac_cv_host | 
|  | 3607 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3608 | set x $ac_cv_host | 
|  | 3609 | shift | 
|  | 3610 | host_cpu=$1 | 
|  | 3611 | host_vendor=$2 | 
|  | 3612 | shift; shift | 
|  | 3613 | # Remember, the first character of IFS is used to create $*, | 
|  | 3614 | # except with old shells: | 
|  | 3615 | host_os=$* | 
|  | 3616 | IFS=$ac_save_IFS | 
|  | 3617 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 3618 |  | 
|  | 3619 |  | 
|  | 3620 | { echo "$as_me:$LINENO: checking target system type" >&5 | 
|  | 3621 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | 
|  | 3622 | if test "${ac_cv_target+set}" = set; then | 
|  | 3623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3624 | else | 
|  | 3625 | if test "x$target_alias" = x; then | 
|  | 3626 | ac_cv_target=$ac_cv_host | 
|  | 3627 | else | 
|  | 3628 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
|  | 3629 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | 
|  | 3630 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | 
|  | 3631 | { (exit 1); exit 1; }; } | 
|  | 3632 | fi | 
|  | 3633 |  | 
|  | 3634 | fi | 
|  | 3635 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
|  | 3636 | echo "${ECHO_T}$ac_cv_target" >&6; } | 
|  | 3637 | case $ac_cv_target in | 
|  | 3638 | *-*-*) ;; | 
|  | 3639 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | 
|  | 3640 | echo "$as_me: error: invalid value of canonical target" >&2;} | 
|  | 3641 | { (exit 1); exit 1; }; };; | 
|  | 3642 | esac | 
|  | 3643 | target=$ac_cv_target | 
|  | 3644 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3645 | set x $ac_cv_target | 
|  | 3646 | shift | 
|  | 3647 | target_cpu=$1 | 
|  | 3648 | target_vendor=$2 | 
|  | 3649 | shift; shift | 
|  | 3650 | # Remember, the first character of IFS is used to create $*, | 
|  | 3651 | # except with old shells: | 
|  | 3652 | target_os=$* | 
|  | 3653 | IFS=$ac_save_IFS | 
|  | 3654 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 3655 |  | 
|  | 3656 |  | 
|  | 3657 | # The aliases save the names the user supplied, while $host etc. | 
|  | 3658 | # will get canonicalized. | 
|  | 3659 | test -n "$target_alias" && | 
|  | 3660 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 3661 | NONENONEs,x,x, && | 
|  | 3662 | program_prefix=${target_alias}- | 
|  | 3663 |  | 
|  | 3664 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 | 
|  | 3665 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } | 
|  | 3666 | if test "${llvm_cv_os_type+set}" = set; then | 
|  | 3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3668 | else | 
|  | 3669 | case $host in | 
|  | 3670 | *-*-aix*) | 
|  | 3671 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3672 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3673 | llvm_cv_os_type="AIX" | 
|  | 3674 | llvm_cv_platform_type="Unix" ;; | 
|  | 3675 | *-*-irix*) | 
|  | 3676 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3677 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3678 | llvm_cv_os_type="IRIX" | 
|  | 3679 | llvm_cv_platform_type="Unix" ;; | 
|  | 3680 | *-*-cygwin*) | 
|  | 3681 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3682 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3683 | llvm_cv_os_type="Cygwin" | 
|  | 3684 | llvm_cv_platform_type="Unix" ;; | 
|  | 3685 | *-*-darwin*) | 
|  | 3686 | llvm_cv_link_all_option="-Wl,-all_load" | 
|  | 3687 | llvm_cv_no_link_all_option="-Wl,-noall_load" | 
|  | 3688 | llvm_cv_os_type="Darwin" | 
|  | 3689 | llvm_cv_platform_type="Unix" ;; | 
|  | 3690 | *-*-minix*) | 
|  | 3691 | llvm_cv_link_all_option="-Wl,-all_load" | 
|  | 3692 | llvm_cv_no_link_all_option="-Wl,-noall_load" | 
|  | 3693 | llvm_cv_os_type="Minix" | 
|  | 3694 | llvm_cv_platform_type="Unix" ;; | 
|  | 3695 | *-*-freebsd*) | 
|  | 3696 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3697 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3698 | llvm_cv_os_type="FreeBSD" | 
|  | 3699 | llvm_cv_platform_type="Unix" ;; | 
|  | 3700 | *-*-openbsd*) | 
|  | 3701 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3702 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3703 | llvm_cv_os_type="OpenBSD" | 
|  | 3704 | llvm_cv_platform_type="Unix" ;; | 
|  | 3705 | *-*-netbsd*) | 
|  | 3706 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3707 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3708 | llvm_cv_os_type="NetBSD" | 
|  | 3709 | llvm_cv_platform_type="Unix" ;; | 
|  | 3710 | *-*-dragonfly*) | 
|  | 3711 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3712 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3713 | llvm_cv_os_type="DragonFly" | 
|  | 3714 | llvm_cv_platform_type="Unix" ;; | 
|  | 3715 | *-*-hpux*) | 
|  | 3716 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3717 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3718 | llvm_cv_os_type="HP-UX" | 
|  | 3719 | llvm_cv_platform_type="Unix" ;; | 
|  | 3720 | *-*-interix*) | 
|  | 3721 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3722 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3723 | llvm_cv_os_type="Interix" | 
|  | 3724 | llvm_cv_platform_type="Unix" ;; | 
|  | 3725 | *-*-linux*) | 
|  | 3726 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3727 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3728 | llvm_cv_os_type="Linux" | 
|  | 3729 | llvm_cv_platform_type="Unix" ;; | 
|  | 3730 | *-*-solaris*) | 
|  | 3731 | llvm_cv_link_all_option="-Wl,-z,allextract" | 
|  | 3732 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" | 
|  | 3733 | llvm_cv_os_type="SunOS" | 
|  | 3734 | llvm_cv_platform_type="Unix" ;; | 
|  | 3735 | *-*-auroraux*) | 
|  | 3736 | llvm_cv_link_all_option="-Wl,-z,allextract" | 
|  | 3737 | llvm_cv_link_all_option="-Wl,-z,defaultextract" | 
|  | 3738 | llvm_cv_os_type="AuroraUX" | 
|  | 3739 | llvm_cv_platform_type="Unix" ;; | 
|  | 3740 | *-*-win32*) | 
|  | 3741 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3742 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3743 | llvm_cv_os_type="Win32" | 
|  | 3744 | llvm_cv_platform_type="Win32" ;; | 
|  | 3745 | *-*-mingw*) | 
|  | 3746 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3747 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3748 | llvm_cv_os_type="MingW" | 
|  | 3749 | llvm_cv_platform_type="Win32" ;; | 
|  | 3750 | *-*-haiku*) | 
|  | 3751 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3752 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3753 | llvm_cv_os_type="Haiku" | 
|  | 3754 | llvm_cv_platform_type="Unix" ;; | 
|  | 3755 | *-unknown-eabi*) | 
|  | 3756 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3757 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3758 | llvm_cv_os_type="Freestanding" | 
|  | 3759 | llvm_cv_platform_type="Unix" ;; | 
|  | 3760 | *-unknown-elf*) | 
|  | 3761 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3762 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3763 | llvm_cv_os_type="Freestanding" | 
|  | 3764 | llvm_cv_platform_type="Unix" ;; | 
|  | 3765 | *) | 
|  | 3766 | llvm_cv_link_all_option="" | 
|  | 3767 | llvm_cv_no_link_all_option="" | 
|  | 3768 | llvm_cv_os_type="Unknown" | 
|  | 3769 | llvm_cv_platform_type="Unknown" ;; | 
|  | 3770 | esac | 
|  | 3771 | fi | 
|  | 3772 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
|  | 3773 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } | 
|  | 3774 |  | 
|  | 3775 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 | 
|  | 3776 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } | 
|  | 3777 | if test "${llvm_cv_target_os_type+set}" = set; then | 
|  | 3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3779 | else | 
|  | 3780 | case $target in | 
|  | 3781 | *-*-aix*) | 
|  | 3782 | llvm_cv_target_os_type="AIX" ;; | 
|  | 3783 | *-*-irix*) | 
|  | 3784 | llvm_cv_target_os_type="IRIX" ;; | 
|  | 3785 | *-*-cygwin*) | 
|  | 3786 | llvm_cv_target_os_type="Cygwin" ;; | 
|  | 3787 | *-*-darwin*) | 
|  | 3788 | llvm_cv_target_os_type="Darwin" ;; | 
|  | 3789 | *-*-minix*) | 
|  | 3790 | llvm_cv_target_os_type="Minix" ;; | 
|  | 3791 | *-*-freebsd*) | 
|  | 3792 | llvm_cv_target_os_type="FreeBSD" ;; | 
|  | 3793 | *-*-openbsd*) | 
|  | 3794 | llvm_cv_target_os_type="OpenBSD" ;; | 
|  | 3795 | *-*-netbsd*) | 
|  | 3796 | llvm_cv_target_os_type="NetBSD" ;; | 
|  | 3797 | *-*-dragonfly*) | 
|  | 3798 | llvm_cv_target_os_type="DragonFly" ;; | 
|  | 3799 | *-*-hpux*) | 
|  | 3800 | llvm_cv_target_os_type="HP-UX" ;; | 
|  | 3801 | *-*-interix*) | 
|  | 3802 | llvm_cv_target_os_type="Interix" ;; | 
|  | 3803 | *-*-linux*) | 
|  | 3804 | llvm_cv_target_os_type="Linux" ;; | 
|  | 3805 | *-*-solaris*) | 
|  | 3806 | llvm_cv_target_os_type="SunOS" ;; | 
|  | 3807 | *-*-auroraux*) | 
|  | 3808 | llvm_cv_target_os_type="AuroraUX" ;; | 
|  | 3809 | *-*-win32*) | 
|  | 3810 | llvm_cv_target_os_type="Win32" ;; | 
|  | 3811 | *-*-mingw*) | 
|  | 3812 | llvm_cv_target_os_type="MingW" ;; | 
|  | 3813 | *-*-haiku*) | 
|  | 3814 | llvm_cv_target_os_type="Haiku" ;; | 
|  | 3815 | *-*-rtems*) | 
|  | 3816 | llvm_cv_target_os_type="RTEMS" ;; | 
|  | 3817 | *-*-nacl*) | 
|  | 3818 | llvm_cv_target_os_type="NativeClient" ;; | 
|  | 3819 | *-unknown-eabi*) | 
|  | 3820 | llvm_cv_target_os_type="Freestanding" ;; | 
|  | 3821 | *) | 
|  | 3822 | llvm_cv_target_os_type="Unknown" ;; | 
|  | 3823 | esac | 
|  | 3824 | fi | 
|  | 3825 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 | 
|  | 3826 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } | 
|  | 3827 |  | 
|  | 3828 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
|  | 3829 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
|  | 3830 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} | 
|  | 3831 | { (exit 1); exit 1; }; } | 
|  | 3832 | fi | 
|  | 3833 |  | 
|  | 3834 | OS=$llvm_cv_os_type | 
|  | 3835 |  | 
|  | 3836 | HOST_OS=$llvm_cv_os_type | 
|  | 3837 |  | 
|  | 3838 | TARGET_OS=$llvm_cv_target_os_type | 
|  | 3839 |  | 
|  | 3840 |  | 
|  | 3841 | LINKALL=$llvm_cv_link_all_option | 
|  | 3842 |  | 
|  | 3843 | NOLINKALL=$llvm_cv_no_link_all_option | 
|  | 3844 |  | 
|  | 3845 |  | 
|  | 3846 | case $llvm_cv_platform_type in | 
|  | 3847 | Unix) | 
|  | 3848 |  | 
|  | 3849 | cat >>confdefs.h <<\_ACEOF | 
|  | 3850 | #define LLVM_ON_UNIX 1 | 
|  | 3851 | _ACEOF | 
|  | 3852 |  | 
|  | 3853 | LLVM_ON_UNIX=1 | 
|  | 3854 |  | 
|  | 3855 | LLVM_ON_WIN32=0 | 
|  | 3856 |  | 
|  | 3857 | ;; | 
|  | 3858 | Win32) | 
|  | 3859 |  | 
|  | 3860 | cat >>confdefs.h <<\_ACEOF | 
|  | 3861 | #define LLVM_ON_WIN32 1 | 
|  | 3862 | _ACEOF | 
|  | 3863 |  | 
|  | 3864 | LLVM_ON_UNIX=0 | 
|  | 3865 |  | 
|  | 3866 | LLVM_ON_WIN32=1 | 
|  | 3867 |  | 
|  | 3868 | ;; | 
|  | 3869 | esac | 
|  | 3870 |  | 
|  | 3871 | { echo "$as_me:$LINENO: checking target architecture" >&5 | 
|  | 3872 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } | 
|  | 3873 | if test "${llvm_cv_target_arch+set}" = set; then | 
|  | 3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3875 | else | 
|  | 3876 | case $target in | 
|  | 3877 | i?86-*)                 llvm_cv_target_arch="x86" ;; | 
|  | 3878 | amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;; | 
|  | 3879 | sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
|  | 3880 | powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3881 | arm*-*)                 llvm_cv_target_arch="ARM" ;; | 
|  | 3882 | mips-*)                 llvm_cv_target_arch="Mips" ;; | 
|  | 3883 | xcore-*)                llvm_cv_target_arch="XCore" ;; | 
|  | 3884 | msp430-*)               llvm_cv_target_arch="MSP430" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3885 | mblaze-*)               llvm_cv_target_arch="MBlaze" ;; | 
|  | 3886 | ptx-*)                  llvm_cv_target_arch="PTX" ;; | 
|  | 3887 | *)                      llvm_cv_target_arch="Unknown" ;; | 
|  | 3888 | esac | 
|  | 3889 | fi | 
|  | 3890 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
|  | 3891 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } | 
|  | 3892 |  | 
|  | 3893 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
|  | 3894 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
|  | 3895 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
|  | 3896 | fi | 
|  | 3897 |  | 
|  | 3898 | # Determine the LLVM native architecture for the target | 
|  | 3899 | case "$llvm_cv_target_arch" in | 
|  | 3900 | x86)     LLVM_NATIVE_ARCH="X86" ;; | 
|  | 3901 | x86_64)  LLVM_NATIVE_ARCH="X86" ;; | 
|  | 3902 | *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; | 
|  | 3903 | esac | 
|  | 3904 |  | 
|  | 3905 | ARCH=$llvm_cv_target_arch | 
|  | 3906 |  | 
|  | 3907 |  | 
|  | 3908 |  | 
|  | 3909 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3910 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 
|  | 3911 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | 
|  | 3912 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 3913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3914 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3915 | # Extract the first word of "grep ggrep" to use in msg output | 
|  | 3916 | if test -z "$GREP"; then | 
|  | 3917 | set dummy grep ggrep; ac_prog_name=$2 | 
|  | 3918 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3920 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3921 | ac_path_GREP_found=false | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3922 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3924 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3925 | do | 
|  | 3926 | IFS=$as_save_IFS | 
|  | 3927 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3928 | for ac_prog in grep ggrep; do | 
|  | 3929 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3930 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 3931 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | 
|  | 3932 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3933 | # Check for GNU $ac_path_GREP | 
|  | 3934 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 3935 | *GNU*) | 
|  | 3936 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 3937 | *) | 
|  | 3938 | ac_count=0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3939 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3940 | while : | 
|  | 3941 | do | 
|  | 3942 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 3943 | mv "conftest.tmp" "conftest.in" | 
|  | 3944 | cp "conftest.in" "conftest.nl" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3945 | echo 'GREP' >> "conftest.nl" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3946 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 3947 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3948 | ac_count=`expr $ac_count + 1` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3949 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 3950 | # Best one so far, save it but keep looking for a better one | 
|  | 3951 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 3952 | ac_path_GREP_max=$ac_count | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3953 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3954 | # 10*(2^10) chars as input seems more than enough | 
|  | 3955 | test $ac_count -gt 10 && break | 
|  | 3956 | done | 
|  | 3957 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 3958 | esac | 
|  | 3959 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3960 |  | 
|  | 3961 | $ac_path_GREP_found && break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3962 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3963 | done | 
|  | 3964 |  | 
|  | 3965 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | IFS=$as_save_IFS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3967 |  | 
|  | 3968 |  | 
|  | 3969 | fi | 
|  | 3970 |  | 
|  | 3971 | GREP="$ac_cv_path_GREP" | 
|  | 3972 | if test -z "$GREP"; then | 
|  | 3973 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
|  | 3974 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
|  | 3975 | { (exit 1); exit 1; }; } | 
|  | 3976 | fi | 
|  | 3977 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3978 | else | 
|  | 3979 | ac_cv_path_GREP=$GREP | 
|  | 3980 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3981 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3982 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3983 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3984 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | 
|  | 3985 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3986 | GREP="$ac_cv_path_GREP" | 
|  | 3987 |  | 
|  | 3988 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3989 | { echo "$as_me:$LINENO: checking for egrep" >&5 | 
|  | 3990 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | 
|  | 3991 | if test "${ac_cv_path_EGREP+set}" = set; then | 
|  | 3992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3993 | else | 
|  | 3994 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 3995 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 3996 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3997 | # Extract the first word of "egrep" to use in msg output | 
|  | 3998 | if test -z "$EGREP"; then | 
|  | 3999 | set dummy egrep; ac_prog_name=$2 | 
|  | 4000 | if test "${ac_cv_path_EGREP+set}" = set; then | 
|  | 4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4002 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4003 | ac_path_EGREP_found=false | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4004 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4006 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4007 | do | 
|  | 4008 | IFS=$as_save_IFS | 
|  | 4009 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4010 | for ac_prog in egrep; do | 
|  | 4011 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4012 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4013 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | 
|  | 4014 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4015 | # Check for GNU $ac_path_EGREP | 
|  | 4016 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4017 | *GNU*) | 
|  | 4018 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4019 | *) | 
|  | 4020 | ac_count=0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4021 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4022 | while : | 
|  | 4023 | do | 
|  | 4024 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4025 | mv "conftest.tmp" "conftest.in" | 
|  | 4026 | cp "conftest.in" "conftest.nl" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4027 | echo 'EGREP' >> "conftest.nl" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4028 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4029 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4030 | ac_count=`expr $ac_count + 1` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4031 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4032 | # Best one so far, save it but keep looking for a better one | 
|  | 4033 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4034 | ac_path_EGREP_max=$ac_count | 
|  | 4035 | fi | 
|  | 4036 | # 10*(2^10) chars as input seems more than enough | 
|  | 4037 | test $ac_count -gt 10 && break | 
|  | 4038 | done | 
|  | 4039 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4040 | esac | 
|  | 4041 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4042 |  | 
|  | 4043 | $ac_path_EGREP_found && break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4044 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4045 | done | 
|  | 4046 |  | 
|  | 4047 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4048 | IFS=$as_save_IFS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4049 |  | 
|  | 4050 |  | 
|  | 4051 | fi | 
|  | 4052 |  | 
|  | 4053 | EGREP="$ac_cv_path_EGREP" | 
|  | 4054 | if test -z "$EGREP"; then | 
|  | 4055 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
|  | 4056 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
|  | 4057 | { (exit 1); exit 1; }; } | 
|  | 4058 | fi | 
|  | 4059 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4060 | else | 
|  | 4061 | ac_cv_path_EGREP=$EGREP | 
|  | 4062 | fi | 
|  | 4063 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4064 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4065 | fi | 
|  | 4066 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4067 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 
|  | 4068 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4069 | EGREP="$ac_cv_path_EGREP" | 
|  | 4070 |  | 
|  | 4071 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4072 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 4073 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | 
|  | 4074 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4076 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4077 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4078 | /* confdefs.h.  */ | 
|  | 4079 | _ACEOF | 
|  | 4080 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4081 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4082 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4083 | #include <stdlib.h> | 
|  | 4084 | #include <stdarg.h> | 
|  | 4085 | #include <string.h> | 
|  | 4086 | #include <float.h> | 
|  | 4087 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4088 | int | 
|  | 4089 | main () | 
|  | 4090 | { | 
|  | 4091 |  | 
|  | 4092 | ; | 
|  | 4093 | return 0; | 
|  | 4094 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4095 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4096 | rm -f conftest.$ac_objext | 
|  | 4097 | if { (ac_try="$ac_compile" | 
|  | 4098 | case "(($ac_try" in | 
|  | 4099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4100 | *) ac_try_echo=$ac_try;; | 
|  | 4101 | esac | 
|  | 4102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4103 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4104 | ac_status=$? | 
|  | 4105 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4106 | rm -f conftest.er1 | 
|  | 4107 | cat conftest.err >&5 | 
|  | 4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4109 | (exit $ac_status); } && | 
|  | 4110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4111 | { (case "(($ac_try" in | 
|  | 4112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4113 | *) ac_try_echo=$ac_try;; | 
|  | 4114 | esac | 
|  | 4115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4116 | (eval "$ac_try") 2>&5 | 
|  | 4117 | ac_status=$? | 
|  | 4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4119 | (exit $ac_status); }; } && | 
|  | 4120 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4121 | { (case "(($ac_try" in | 
|  | 4122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4123 | *) ac_try_echo=$ac_try;; | 
|  | 4124 | esac | 
|  | 4125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4126 | (eval "$ac_try") 2>&5 | 
|  | 4127 | ac_status=$? | 
|  | 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4129 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4130 | ac_cv_header_stdc=yes | 
|  | 4131 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4132 | echo "$as_me: failed program was:" >&5 | 
|  | 4133 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4134 |  | 
|  | 4135 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4136 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4137 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4139 |  | 
|  | 4140 | if test $ac_cv_header_stdc = yes; then | 
|  | 4141 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4142 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4143 | /* confdefs.h.  */ | 
|  | 4144 | _ACEOF | 
|  | 4145 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4146 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4147 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 | #include <string.h> | 
|  | 4149 |  | 
|  | 4150 | _ACEOF | 
|  | 4151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4152 | $EGREP "memchr" >/dev/null 2>&1; then | 
|  | 4153 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4154 | else | 
|  | 4155 | ac_cv_header_stdc=no | 
|  | 4156 | fi | 
|  | 4157 | rm -f conftest* | 
|  | 4158 |  | 
|  | 4159 | fi | 
|  | 4160 |  | 
|  | 4161 | if test $ac_cv_header_stdc = yes; then | 
|  | 4162 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4163 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4164 | /* confdefs.h.  */ | 
|  | 4165 | _ACEOF | 
|  | 4166 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4167 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4168 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4169 | #include <stdlib.h> | 
|  | 4170 |  | 
|  | 4171 | _ACEOF | 
|  | 4172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4173 | $EGREP "free" >/dev/null 2>&1; then | 
|  | 4174 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4175 | else | 
|  | 4176 | ac_cv_header_stdc=no | 
|  | 4177 | fi | 
|  | 4178 | rm -f conftest* | 
|  | 4179 |  | 
|  | 4180 | fi | 
|  | 4181 |  | 
|  | 4182 | if test $ac_cv_header_stdc = yes; then | 
|  | 4183 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4184 | if test "$cross_compiling" = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4185 | : | 
|  | 4186 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4187 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4188 | /* confdefs.h.  */ | 
|  | 4189 | _ACEOF | 
|  | 4190 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4191 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4192 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4193 | #include <ctype.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4194 | #include <stdlib.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4195 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4196 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4197 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4198 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4199 | # define ISLOWER(c) \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4200 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 4201 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4202 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4203 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4204 | #endif | 
|  | 4205 |  | 
|  | 4206 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4207 | int | 
|  | 4208 | main () | 
|  | 4209 | { | 
|  | 4210 | int i; | 
|  | 4211 | for (i = 0; i < 256; i++) | 
|  | 4212 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4213 | || toupper (i) != TOUPPER (i)) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4214 | return 2; | 
|  | 4215 | return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4216 | } | 
|  | 4217 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4218 | rm -f conftest$ac_exeext | 
|  | 4219 | if { (ac_try="$ac_link" | 
|  | 4220 | case "(($ac_try" in | 
|  | 4221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4222 | *) ac_try_echo=$ac_try;; | 
|  | 4223 | esac | 
|  | 4224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4225 | (eval "$ac_link") 2>&5 | 
|  | 4226 | ac_status=$? | 
|  | 4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4228 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4229 | { (case "(($ac_try" in | 
|  | 4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4231 | *) ac_try_echo=$ac_try;; | 
|  | 4232 | esac | 
|  | 4233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4234 | (eval "$ac_try") 2>&5 | 
|  | 4235 | ac_status=$? | 
|  | 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4237 | (exit $ac_status); }; }; then | 
|  | 4238 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4239 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4240 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4241 | echo "$as_me: failed program was:" >&5 | 
|  | 4242 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4243 |  | 
|  | 4244 | ( exit $ac_status ) | 
|  | 4245 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4246 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4247 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4248 | fi | 
|  | 4249 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4250 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4251 | fi | 
|  | 4252 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4253 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 4254 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4255 | if test $ac_cv_header_stdc = yes; then | 
|  | 4256 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4257 | cat >>confdefs.h <<\_ACEOF | 
|  | 4258 | #define STDC_HEADERS 1 | 
|  | 4259 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4260 |  | 
|  | 4261 | fi | 
|  | 4262 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4263 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4264 |  | 
|  | 4265 |  | 
|  | 4266 |  | 
|  | 4267 |  | 
|  | 4268 |  | 
|  | 4269 |  | 
|  | 4270 |  | 
|  | 4271 |  | 
|  | 4272 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4273 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4274 | inttypes.h stdint.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4275 | do | 
|  | 4276 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4277 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 4278 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 4279 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 4280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4281 | else | 
|  | 4282 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4283 | /* confdefs.h.  */ | 
|  | 4284 | _ACEOF | 
|  | 4285 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4286 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4287 | /* end confdefs.h.  */ | 
|  | 4288 | $ac_includes_default | 
|  | 4289 |  | 
|  | 4290 | #include <$ac_header> | 
|  | 4291 | _ACEOF | 
|  | 4292 | rm -f conftest.$ac_objext | 
|  | 4293 | if { (ac_try="$ac_compile" | 
|  | 4294 | case "(($ac_try" in | 
|  | 4295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4296 | *) ac_try_echo=$ac_try;; | 
|  | 4297 | esac | 
|  | 4298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4299 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4300 | ac_status=$? | 
|  | 4301 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4302 | rm -f conftest.er1 | 
|  | 4303 | cat conftest.err >&5 | 
|  | 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4305 | (exit $ac_status); } && | 
|  | 4306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4307 | { (case "(($ac_try" in | 
|  | 4308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4309 | *) ac_try_echo=$ac_try;; | 
|  | 4310 | esac | 
|  | 4311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4312 | (eval "$ac_try") 2>&5 | 
|  | 4313 | ac_status=$? | 
|  | 4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4315 | (exit $ac_status); }; } && | 
|  | 4316 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4317 | { (case "(($ac_try" in | 
|  | 4318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4319 | *) ac_try_echo=$ac_try;; | 
|  | 4320 | esac | 
|  | 4321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4322 | (eval "$ac_try") 2>&5 | 
|  | 4323 | ac_status=$? | 
|  | 4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4325 | (exit $ac_status); }; }; then | 
|  | 4326 | eval "$as_ac_Header=yes" | 
|  | 4327 | else | 
|  | 4328 | echo "$as_me: failed program was:" >&5 | 
|  | 4329 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4330 |  | 
|  | 4331 | eval "$as_ac_Header=no" | 
|  | 4332 | fi | 
|  | 4333 |  | 
|  | 4334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4335 | fi | 
|  | 4336 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 4337 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 4338 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 4339 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4340 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4341 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4342 | _ACEOF | 
|  | 4343 |  | 
|  | 4344 | fi | 
|  | 4345 |  | 
|  | 4346 | done | 
|  | 4347 |  | 
|  | 4348 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4349 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
|  | 4350 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | 
|  | 4351 | if test "${ac_cv_c_bigendian+set}" = set; then | 
|  | 4352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4353 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4354 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 4355 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4356 | /* confdefs.h.  */ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4357 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4358 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4359 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4360 | /* end confdefs.h.  */ | 
|  | 4361 | #include <sys/types.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4362 | #include <sys/param.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4363 |  | 
|  | 4364 | int | 
|  | 4365 | main () | 
|  | 4366 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4367 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 4368 | bogus endian macros | 
|  | 4369 | #endif | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4370 |  | 
|  | 4371 | ; | 
|  | 4372 | return 0; | 
|  | 4373 | } | 
|  | 4374 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4375 | rm -f conftest.$ac_objext | 
|  | 4376 | if { (ac_try="$ac_compile" | 
|  | 4377 | case "(($ac_try" in | 
|  | 4378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4379 | *) ac_try_echo=$ac_try;; | 
|  | 4380 | esac | 
|  | 4381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4382 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4383 | ac_status=$? | 
|  | 4384 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4385 | rm -f conftest.er1 | 
|  | 4386 | cat conftest.err >&5 | 
|  | 4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4388 | (exit $ac_status); } && | 
|  | 4389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4390 | { (case "(($ac_try" in | 
|  | 4391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4392 | *) ac_try_echo=$ac_try;; | 
|  | 4393 | esac | 
|  | 4394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4395 | (eval "$ac_try") 2>&5 | 
|  | 4396 | ac_status=$? | 
|  | 4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4398 | (exit $ac_status); }; } && | 
|  | 4399 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4400 | { (case "(($ac_try" in | 
|  | 4401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4402 | *) ac_try_echo=$ac_try;; | 
|  | 4403 | esac | 
|  | 4404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4405 | (eval "$ac_try") 2>&5 | 
|  | 4406 | ac_status=$? | 
|  | 4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4408 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4409 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4410 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4411 | /* confdefs.h.  */ | 
|  | 4412 | _ACEOF | 
|  | 4413 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4414 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4415 | /* end confdefs.h.  */ | 
|  | 4416 | #include <sys/types.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4417 | #include <sys/param.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4418 |  | 
|  | 4419 | int | 
|  | 4420 | main () | 
|  | 4421 | { | 
|  | 4422 | #if BYTE_ORDER != BIG_ENDIAN | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4423 | not big endian | 
|  | 4424 | #endif | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4425 |  | 
|  | 4426 | ; | 
|  | 4427 | return 0; | 
|  | 4428 | } | 
|  | 4429 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4430 | rm -f conftest.$ac_objext | 
|  | 4431 | if { (ac_try="$ac_compile" | 
|  | 4432 | case "(($ac_try" in | 
|  | 4433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4434 | *) ac_try_echo=$ac_try;; | 
|  | 4435 | esac | 
|  | 4436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4437 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4438 | ac_status=$? | 
|  | 4439 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4440 | rm -f conftest.er1 | 
|  | 4441 | cat conftest.err >&5 | 
|  | 4442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4443 | (exit $ac_status); } && | 
|  | 4444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4445 | { (case "(($ac_try" in | 
|  | 4446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4447 | *) ac_try_echo=$ac_try;; | 
|  | 4448 | esac | 
|  | 4449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4450 | (eval "$ac_try") 2>&5 | 
|  | 4451 | ac_status=$? | 
|  | 4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4453 | (exit $ac_status); }; } && | 
|  | 4454 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4455 | { (case "(($ac_try" in | 
|  | 4456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4457 | *) ac_try_echo=$ac_try;; | 
|  | 4458 | esac | 
|  | 4459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4460 | (eval "$ac_try") 2>&5 | 
|  | 4461 | ac_status=$? | 
|  | 4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4463 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4464 | ac_cv_c_bigendian=yes | 
|  | 4465 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4466 | echo "$as_me: failed program was:" >&5 | 
|  | 4467 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4468 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4469 | ac_cv_c_bigendian=no | 
|  | 4470 | fi | 
|  | 4471 |  | 
|  | 4472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4473 | else | 
|  | 4474 | echo "$as_me: failed program was:" >&5 | 
|  | 4475 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4476 |  | 
|  | 4477 | # It does not; compile a test program. | 
|  | 4478 | if test "$cross_compiling" = yes; then | 
|  | 4479 | # try to guess the endianness by grepping values into an object file | 
|  | 4480 | ac_cv_c_bigendian=unknown | 
|  | 4481 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4482 | /* confdefs.h.  */ | 
|  | 4483 | _ACEOF | 
|  | 4484 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4485 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4486 | /* end confdefs.h.  */ | 
|  | 4487 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 4488 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 4489 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
|  | 4490 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 4491 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 4492 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4493 | int | 
|  | 4494 | main () | 
|  | 4495 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4496 | _ascii (); _ebcdic (); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4497 | ; | 
|  | 4498 | return 0; | 
|  | 4499 | } | 
|  | 4500 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4501 | rm -f conftest.$ac_objext | 
|  | 4502 | if { (ac_try="$ac_compile" | 
|  | 4503 | case "(($ac_try" in | 
|  | 4504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4505 | *) ac_try_echo=$ac_try;; | 
|  | 4506 | esac | 
|  | 4507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4508 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4509 | ac_status=$? | 
|  | 4510 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4511 | rm -f conftest.er1 | 
|  | 4512 | cat conftest.err >&5 | 
|  | 4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4514 | (exit $ac_status); } && | 
|  | 4515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4516 | { (case "(($ac_try" in | 
|  | 4517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4518 | *) ac_try_echo=$ac_try;; | 
|  | 4519 | esac | 
|  | 4520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4521 | (eval "$ac_try") 2>&5 | 
|  | 4522 | ac_status=$? | 
|  | 4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4524 | (exit $ac_status); }; } && | 
|  | 4525 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4526 | { (case "(($ac_try" in | 
|  | 4527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4528 | *) ac_try_echo=$ac_try;; | 
|  | 4529 | esac | 
|  | 4530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4531 | (eval "$ac_try") 2>&5 | 
|  | 4532 | ac_status=$? | 
|  | 4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4534 | (exit $ac_status); }; }; then | 
|  | 4535 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4536 | ac_cv_c_bigendian=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4537 | fi | 
|  | 4538 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 4539 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 4540 | ac_cv_c_bigendian=no | 
|  | 4541 | else | 
|  | 4542 | # finding both strings is unlikely to happen, but who knows? | 
|  | 4543 | ac_cv_c_bigendian=unknown | 
|  | 4544 | fi | 
|  | 4545 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4546 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4547 | echo "$as_me: failed program was:" >&5 | 
|  | 4548 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4549 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4550 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4551 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4552 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4554 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4555 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4556 | /* confdefs.h.  */ | 
|  | 4557 | _ACEOF | 
|  | 4558 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4559 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4560 | /* end confdefs.h.  */ | 
|  | 4561 | $ac_includes_default | 
|  | 4562 | int | 
|  | 4563 | main () | 
|  | 4564 | { | 
|  | 4565 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4566 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 4567 | union | 
|  | 4568 | { | 
|  | 4569 | long int l; | 
|  | 4570 | char c[sizeof (long int)]; | 
|  | 4571 | } u; | 
|  | 4572 | u.l = 1; | 
|  | 4573 | return u.c[sizeof (long int) - 1] == 1; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4574 |  | 
|  | 4575 | ; | 
|  | 4576 | return 0; | 
|  | 4577 | } | 
|  | 4578 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | rm -f conftest$ac_exeext | 
|  | 4580 | if { (ac_try="$ac_link" | 
|  | 4581 | case "(($ac_try" in | 
|  | 4582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4583 | *) ac_try_echo=$ac_try;; | 
|  | 4584 | esac | 
|  | 4585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4586 | (eval "$ac_link") 2>&5 | 
|  | 4587 | ac_status=$? | 
|  | 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4589 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4590 | { (case "(($ac_try" in | 
|  | 4591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4592 | *) ac_try_echo=$ac_try;; | 
|  | 4593 | esac | 
|  | 4594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4595 | (eval "$ac_try") 2>&5 | 
|  | 4596 | ac_status=$? | 
|  | 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4598 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4599 | ac_cv_c_bigendian=no | 
|  | 4600 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4601 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4602 | echo "$as_me: failed program was:" >&5 | 
|  | 4603 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4604 |  | 
|  | 4605 | ( exit $ac_status ) | 
|  | 4606 | ac_cv_c_bigendian=yes | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4607 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4609 | fi | 
|  | 4610 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4611 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4612 | fi | 
|  | 4613 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4615 | fi | 
|  | 4616 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
|  | 4617 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | 
|  | 4618 | case $ac_cv_c_bigendian in | 
|  | 4619 | yes) | 
|  | 4620 | ENDIAN=big | 
|  | 4621 | ;; | 
|  | 4622 | no) | 
|  | 4623 | ENDIAN=little | 
|  | 4624 | ;; | 
|  | 4625 | *) | 
|  | 4626 | { { echo "$as_me:$LINENO: error: unknown endianness | 
|  | 4627 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
|  | 4628 | echo "$as_me: error: unknown endianness | 
|  | 4629 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
|  | 4630 | { (exit 1); exit 1; }; } ;; | 
|  | 4631 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4632 |  | 
|  | 4633 |  | 
|  | 4634 | if test "$cross_compiling" = yes; then | 
|  | 4635 | LLVM_CROSS_COMPILING=1 | 
|  | 4636 |  | 
|  | 4637 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4638 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 | 
|  | 4639 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } | 
|  | 4640 | if test "${ac_cv_build_exeext+set}" = set; then | 
|  | 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4642 | else | 
|  | 4643 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
|  | 4644 | ac_cv_build_exeext=.exe | 
|  | 4645 | else | 
|  | 4646 | ac_build_prefix=${build_alias}- | 
|  | 4647 |  | 
|  | 4648 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. | 
|  | 4649 | set dummy ${ac_build_prefix}gcc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4652 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4654 | else | 
|  | 4655 | if test -n "$BUILD_CC"; then | 
|  | 4656 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4657 | else | 
|  | 4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4659 | for as_dir in $PATH | 
|  | 4660 | do | 
|  | 4661 | IFS=$as_save_IFS | 
|  | 4662 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4663 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4665 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4667 | break 2 | 
|  | 4668 | fi | 
|  | 4669 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4670 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4671 | IFS=$as_save_IFS | 
|  | 4672 |  | 
|  | 4673 | fi | 
|  | 4674 | fi | 
|  | 4675 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4676 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4677 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4678 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4679 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4681 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4682 | fi | 
|  | 4683 |  | 
|  | 4684 |  | 
|  | 4685 | if test -z "$BUILD_CC"; then | 
|  | 4686 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 4687 | set dummy gcc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4690 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4692 | else | 
|  | 4693 | if test -n "$BUILD_CC"; then | 
|  | 4694 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4695 | else | 
|  | 4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4697 | for as_dir in $PATH | 
|  | 4698 | do | 
|  | 4699 | IFS=$as_save_IFS | 
|  | 4700 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4701 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4703 | ac_cv_prog_BUILD_CC="gcc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4704 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4705 | break 2 | 
|  | 4706 | fi | 
|  | 4707 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4708 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4709 | IFS=$as_save_IFS | 
|  | 4710 |  | 
|  | 4711 | fi | 
|  | 4712 | fi | 
|  | 4713 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4714 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4715 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4716 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4717 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4718 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4719 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4720 | fi | 
|  | 4721 |  | 
|  | 4722 |  | 
|  | 4723 | if test -z "$BUILD_CC"; then | 
|  | 4724 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 4725 | set dummy cc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4726 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4728 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4730 | else | 
|  | 4731 | if test -n "$BUILD_CC"; then | 
|  | 4732 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4733 | else | 
|  | 4734 | ac_prog_rejected=no | 
|  | 4735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4736 | for as_dir in $PATH | 
|  | 4737 | do | 
|  | 4738 | IFS=$as_save_IFS | 
|  | 4739 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4740 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4742 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 4743 | ac_prog_rejected=yes | 
|  | 4744 | continue | 
|  | 4745 | fi | 
|  | 4746 | ac_cv_prog_BUILD_CC="cc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4748 | break 2 | 
|  | 4749 | fi | 
|  | 4750 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4751 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4752 | IFS=$as_save_IFS | 
|  | 4753 |  | 
|  | 4754 | if test $ac_prog_rejected = yes; then | 
|  | 4755 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4756 | set dummy $ac_cv_prog_BUILD_CC | 
|  | 4757 | shift | 
|  | 4758 | if test $# != 0; then | 
|  | 4759 | # We chose a different compiler from the bogus one. | 
|  | 4760 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4761 | # first if we set BUILD_CC to just the basename; use the full file name. | 
|  | 4762 | shift | 
|  | 4763 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 4764 | fi | 
|  | 4765 | fi | 
|  | 4766 | fi | 
|  | 4767 | fi | 
|  | 4768 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4769 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4770 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4771 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4773 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4774 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4775 | fi | 
|  | 4776 |  | 
|  | 4777 |  | 
|  | 4778 | fi | 
|  | 4779 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4780 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | 
|  | 4781 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | 
|  | 4782 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4783 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|  | 4784 | rm -f conftest* | 
|  | 4785 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|  | 4786 | ac_cv_build_exeext= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4787 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4788 | (eval $ac_build_link) 2>&5 | 
|  | 4789 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4791 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4792 | for file in conftest.*; do | 
|  | 4793 | case $file in | 
| Jim Grosbach | bfc70b0 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4794 | *.c | *.o | *.obj | *.dSYM) ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4795 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | 
|  | 4796 | esac | 
|  | 4797 | done | 
|  | 4798 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4799 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 | 
|  | 4800 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} | 
|  | 4801 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4802 | fi | 
|  | 4803 | rm -f conftest* | 
|  | 4804 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank | 
|  | 4805 | fi | 
|  | 4806 | fi | 
|  | 4807 |  | 
|  | 4808 | BUILD_EXEEXT="" | 
|  | 4809 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4810 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 | 
|  | 4811 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4812 | ac_build_exeext=$BUILD_EXEEXT | 
|  | 4813 |  | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4814 | ac_build_prefix=${build_alias}- | 
|  | 4815 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. | 
|  | 4816 | set dummy ${ac_build_prefix}g++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4817 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4819 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4821 | else | 
|  | 4822 | if test -n "$BUILD_CXX"; then | 
|  | 4823 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4824 | else | 
|  | 4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4826 | for as_dir in $PATH | 
|  | 4827 | do | 
|  | 4828 | IFS=$as_save_IFS | 
|  | 4829 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4830 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4832 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4834 | break 2 | 
|  | 4835 | fi | 
|  | 4836 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4837 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4838 | IFS=$as_save_IFS | 
|  | 4839 |  | 
|  | 4840 | fi | 
|  | 4841 | fi | 
|  | 4842 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4843 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4844 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4845 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4846 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4847 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4848 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4849 | fi | 
|  | 4850 |  | 
|  | 4851 |  | 
|  | 4852 | if test -z "$BUILD_CXX"; then | 
|  | 4853 | # Extract the first word of "g++", so it can be a program name with args. | 
|  | 4854 | set dummy g++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4855 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4857 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4859 | else | 
|  | 4860 | if test -n "$BUILD_CXX"; then | 
|  | 4861 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4862 | else | 
|  | 4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4864 | for as_dir in $PATH | 
|  | 4865 | do | 
|  | 4866 | IFS=$as_save_IFS | 
|  | 4867 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4868 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4870 | ac_cv_prog_BUILD_CXX="g++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4872 | break 2 | 
|  | 4873 | fi | 
|  | 4874 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4875 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4876 | IFS=$as_save_IFS | 
|  | 4877 |  | 
|  | 4878 | fi | 
|  | 4879 | fi | 
|  | 4880 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4881 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4882 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4883 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4884 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4885 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4886 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4887 | fi | 
|  | 4888 |  | 
|  | 4889 |  | 
|  | 4890 | if test -z "$BUILD_CXX"; then | 
|  | 4891 | # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4892 | set dummy c++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4893 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4895 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4897 | else | 
|  | 4898 | if test -n "$BUILD_CXX"; then | 
|  | 4899 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4900 | else | 
|  | 4901 | ac_prog_rejected=no | 
|  | 4902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4903 | for as_dir in $PATH | 
|  | 4904 | do | 
|  | 4905 | IFS=$as_save_IFS | 
|  | 4906 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4907 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4909 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then | 
|  | 4910 | ac_prog_rejected=yes | 
|  | 4911 | continue | 
|  | 4912 | fi | 
|  | 4913 | ac_cv_prog_BUILD_CXX="c++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4915 | break 2 | 
|  | 4916 | fi | 
|  | 4917 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4918 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4919 | IFS=$as_save_IFS | 
|  | 4920 |  | 
|  | 4921 | if test $ac_prog_rejected = yes; then | 
|  | 4922 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4923 | set dummy $ac_cv_prog_BUILD_CXX | 
|  | 4924 | shift | 
|  | 4925 | if test $# != 0; then | 
|  | 4926 | # We chose a different compiler from the bogus one. | 
|  | 4927 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4928 | # first if we set BUILD_CXX to just the basename; use the full file name. | 
|  | 4929 | shift | 
|  | 4930 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" | 
|  | 4931 | fi | 
|  | 4932 | fi | 
|  | 4933 | fi | 
|  | 4934 | fi | 
|  | 4935 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4936 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4937 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4938 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4939 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4940 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4941 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4942 | fi | 
|  | 4943 |  | 
|  | 4944 |  | 
|  | 4945 | fi | 
|  | 4946 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4947 | else | 
|  | 4948 | LLVM_CROSS_COMPILING=0 | 
|  | 4949 |  | 
|  | 4950 | fi | 
|  | 4951 |  | 
| Dan Gohman | de75469c | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4952 | if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4953 | cvsbuild="yes" | 
|  | 4954 | optimize="no" | 
|  | 4955 | CVSBUILD=CVSBUILD=1 | 
|  | 4956 |  | 
|  | 4957 | else | 
|  | 4958 | cvsbuild="no" | 
|  | 4959 | optimize="yes" | 
|  | 4960 | fi | 
|  | 4961 |  | 
|  | 4962 |  | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 4963 | # Check whether --enable-libcpp was given. | 
|  | 4964 | if test "${enable_libcpp+set}" = set; then | 
|  | 4965 | enableval=$enable_libcpp; | 
|  | 4966 | else | 
|  | 4967 | enableval=default | 
|  | 4968 | fi | 
|  | 4969 |  | 
|  | 4970 | case "$enableval" in | 
|  | 4971 | yes) ENABLE_LIBCPP=1 | 
|  | 4972 | ;; | 
|  | 4973 | no)  ENABLE_LIBCPP=0 | 
|  | 4974 | ;; | 
|  | 4975 | default) ENABLE_LIBCPP=0 | 
|  | 4976 | ;; | 
|  | 4977 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 | 
|  | 4978 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} | 
|  | 4979 | { (exit 1); exit 1; }; } ;; | 
|  | 4980 | esac | 
|  | 4981 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4982 | # Check whether --enable-optimized was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4983 | if test "${enable_optimized+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4984 | enableval=$enable_optimized; | 
|  | 4985 | else | 
|  | 4986 | enableval=$optimize | 
|  | 4987 | fi | 
|  | 4988 |  | 
|  | 4989 | if test ${enableval} = "no" ; then | 
|  | 4990 | ENABLE_OPTIMIZED= | 
|  | 4991 |  | 
|  | 4992 | else | 
|  | 4993 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
|  | 4994 |  | 
|  | 4995 | fi | 
|  | 4996 |  | 
| David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4997 | # Check whether --enable-profiling was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4998 | if test "${enable_profiling+set}" = set; then | 
| David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4999 | enableval=$enable_profiling; | 
|  | 5000 | else | 
|  | 5001 | enableval="no" | 
|  | 5002 | fi | 
|  | 5003 |  | 
|  | 5004 | if test ${enableval} = "no" ; then | 
|  | 5005 | ENABLE_PROFILING= | 
|  | 5006 |  | 
|  | 5007 | else | 
|  | 5008 | ENABLE_PROFILING=ENABLE_PROFILING=1 | 
|  | 5009 |  | 
|  | 5010 | fi | 
|  | 5011 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5012 | # Check whether --enable-assertions was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5013 | if test "${enable_assertions+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5014 | enableval=$enable_assertions; | 
|  | 5015 | else | 
|  | 5016 | enableval="yes" | 
|  | 5017 | fi | 
|  | 5018 |  | 
|  | 5019 | if test ${enableval} = "yes" ; then | 
|  | 5020 | DISABLE_ASSERTIONS= | 
|  | 5021 |  | 
|  | 5022 | else | 
|  | 5023 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 | 
|  | 5024 |  | 
|  | 5025 | fi | 
|  | 5026 |  | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5027 | # Check whether --enable-expensive-checks was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5028 | if test "${enable_expensive_checks+set}" = set; then | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5029 | enableval=$enable_expensive_checks; | 
|  | 5030 | else | 
|  | 5031 | enableval="no" | 
|  | 5032 | fi | 
|  | 5033 |  | 
|  | 5034 | if test ${enableval} = "yes" ; then | 
|  | 5035 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 | 
|  | 5036 |  | 
|  | 5037 | EXPENSIVE_CHECKS=yes | 
|  | 5038 |  | 
|  | 5039 | else | 
|  | 5040 | ENABLE_EXPENSIVE_CHECKS= | 
|  | 5041 |  | 
|  | 5042 | EXPENSIVE_CHECKS=no | 
|  | 5043 |  | 
|  | 5044 | fi | 
|  | 5045 |  | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5046 | # Check whether --enable-debug-runtime was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5047 | if test "${enable_debug_runtime+set}" = set; then | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5048 | enableval=$enable_debug_runtime; | 
|  | 5049 | else | 
|  | 5050 | enableval=no | 
|  | 5051 | fi | 
|  | 5052 |  | 
|  | 5053 | if test ${enableval} = "no" ; then | 
|  | 5054 | DEBUG_RUNTIME= | 
|  | 5055 |  | 
|  | 5056 | else | 
|  | 5057 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 | 
|  | 5058 |  | 
|  | 5059 | fi | 
|  | 5060 |  | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5061 | # Check whether --enable-debug-symbols was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5062 | if test "${enable_debug_symbols+set}" = set; then | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5063 | enableval=$enable_debug_symbols; | 
|  | 5064 | else | 
|  | 5065 | enableval=no | 
|  | 5066 | fi | 
|  | 5067 |  | 
|  | 5068 | if test ${enableval} = "no" ; then | 
|  | 5069 | DEBUG_SYMBOLS= | 
|  | 5070 |  | 
|  | 5071 | else | 
|  | 5072 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 | 
|  | 5073 |  | 
|  | 5074 | fi | 
|  | 5075 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5076 | # Check whether --enable-jit was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5077 | if test "${enable_jit+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5078 | enableval=$enable_jit; | 
|  | 5079 | else | 
|  | 5080 | enableval=default | 
|  | 5081 | fi | 
|  | 5082 |  | 
|  | 5083 | if test ${enableval} = "no" | 
|  | 5084 | then | 
|  | 5085 | JIT= | 
|  | 5086 |  | 
|  | 5087 | else | 
|  | 5088 | case "$llvm_cv_target_arch" in | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5089 | x86)         TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5090 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5091 | Sparc)       TARGET_HAS_JIT=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5092 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5093 | PowerPC)     TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5094 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5095 | x86_64)      TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5096 | ;; | 
| Eric Christopher | d8530f3 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5097 | ARM)         TARGET_HAS_JIT=1 | 
| Reid Spencer | d7c8b3c | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5098 | ;; | 
| Bruno Cardoso Lopes | d1d9c78 | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5099 | Mips)        TARGET_HAS_JIT=1 | 
| Tanya Lattner | bca16c8 | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5100 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5101 | XCore)       TARGET_HAS_JIT=0 | 
| Richard Osborne | ca08e06 | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5102 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5103 | MSP430)      TARGET_HAS_JIT=0 | 
| Anton Korobeynikov | 9173b49 | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5104 | ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5105 | MBlaze)      TARGET_HAS_JIT=0 | 
|  | 5106 | ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5107 | PTX)         TARGET_HAS_JIT=0 | 
|  | 5108 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5109 | *)           TARGET_HAS_JIT=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5110 | ;; | 
|  | 5111 | esac | 
|  | 5112 | fi | 
|  | 5113 |  | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5114 | # Check whether --enable-docs was given. | 
|  | 5115 | if test "${enable_docs+set}" = set; then | 
|  | 5116 | enableval=$enable_docs; | 
|  | 5117 | else | 
|  | 5118 | enableval=default | 
|  | 5119 | fi | 
|  | 5120 |  | 
|  | 5121 | case "$enableval" in | 
|  | 5122 | yes) ENABLE_DOCS=1 | 
|  | 5123 | ;; | 
|  | 5124 | no)  ENABLE_DOCS=0 | 
|  | 5125 | ;; | 
|  | 5126 | default) ENABLE_DOCS=1 | 
|  | 5127 | ;; | 
|  | 5128 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 | 
|  | 5129 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} | 
|  | 5130 | { (exit 1); exit 1; }; } ;; | 
|  | 5131 | esac | 
|  | 5132 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5133 | # Check whether --enable-doxygen was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5134 | if test "${enable_doxygen+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5135 | enableval=$enable_doxygen; | 
|  | 5136 | else | 
|  | 5137 | enableval=default | 
|  | 5138 | fi | 
|  | 5139 |  | 
|  | 5140 | case "$enableval" in | 
|  | 5141 | yes) ENABLE_DOXYGEN=1 | 
|  | 5142 | ;; | 
|  | 5143 | no)  ENABLE_DOXYGEN=0 | 
|  | 5144 | ;; | 
|  | 5145 | default) ENABLE_DOXYGEN=0 | 
|  | 5146 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5147 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
|  | 5148 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
|  | 5149 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5150 | esac | 
|  | 5151 |  | 
|  | 5152 | # Check whether --enable-threads was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5153 | if test "${enable_threads+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5154 | enableval=$enable_threads; | 
|  | 5155 | else | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5156 | enableval=default | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5157 | fi | 
|  | 5158 |  | 
|  | 5159 | case "$enableval" in | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5160 | yes) LLVM_ENABLE_THREADS=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5161 | ;; | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5162 | no)  LLVM_ENABLE_THREADS=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5163 | ;; | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5164 | default) LLVM_ENABLE_THREADS=1 | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5165 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5166 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 | 
|  | 5167 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} | 
|  | 5168 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5169 | esac | 
|  | 5170 |  | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5171 | cat >>confdefs.h <<_ACEOF | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5172 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5173 | _ACEOF | 
|  | 5174 |  | 
|  | 5175 |  | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5176 | # Check whether --enable-pthreads was given. | 
|  | 5177 | if test "${enable_pthreads+set}" = set; then | 
|  | 5178 | enableval=$enable_pthreads; | 
|  | 5179 | else | 
|  | 5180 | enableval=default | 
|  | 5181 | fi | 
|  | 5182 |  | 
|  | 5183 | case "$enableval" in | 
|  | 5184 | yes) ENABLE_PTHREADS=1 | 
|  | 5185 | ;; | 
|  | 5186 | no)  ENABLE_PTHREADS=0 | 
|  | 5187 | ;; | 
|  | 5188 | default) ENABLE_PTHREADS=1 | 
|  | 5189 | ;; | 
|  | 5190 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 | 
|  | 5191 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} | 
|  | 5192 | { (exit 1); exit 1; }; } ;; | 
|  | 5193 | esac | 
|  | 5194 |  | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5195 | # Check whether --enable-pic was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5196 | if test "${enable_pic+set}" = set; then | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5197 | enableval=$enable_pic; | 
|  | 5198 | else | 
|  | 5199 | enableval=default | 
|  | 5200 | fi | 
|  | 5201 |  | 
|  | 5202 | case "$enableval" in | 
|  | 5203 | yes) ENABLE_PIC=1 | 
|  | 5204 | ;; | 
|  | 5205 | no)  ENABLE_PIC=0 | 
|  | 5206 | ;; | 
| Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5207 | default) ENABLE_PIC=1 | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5208 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5209 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 | 
|  | 5210 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} | 
|  | 5211 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5212 | esac | 
|  | 5213 |  | 
|  | 5214 | cat >>confdefs.h <<_ACEOF | 
|  | 5215 | #define ENABLE_PIC $ENABLE_PIC | 
|  | 5216 | _ACEOF | 
|  | 5217 |  | 
|  | 5218 |  | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5219 | # Check whether --enable-shared was given. | 
|  | 5220 | if test "${enable_shared+set}" = set; then | 
|  | 5221 | enableval=$enable_shared; | 
|  | 5222 | else | 
|  | 5223 | enableval=default | 
|  | 5224 | fi | 
|  | 5225 |  | 
|  | 5226 | case "$enableval" in | 
|  | 5227 | yes) ENABLE_SHARED=1 | 
|  | 5228 | ;; | 
|  | 5229 | no)  ENABLE_SHARED=0 | 
|  | 5230 | ;; | 
|  | 5231 | default) ENABLE_SHARED=0 | 
|  | 5232 | ;; | 
|  | 5233 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 | 
|  | 5234 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} | 
|  | 5235 | { (exit 1); exit 1; }; } ;; | 
|  | 5236 | esac | 
|  | 5237 |  | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5238 | # Check whether --enable-embed-stdcxx was given. | 
|  | 5239 | if test "${enable_embed_stdcxx+set}" = set; then | 
|  | 5240 | enableval=$enable_embed_stdcxx; | 
|  | 5241 | else | 
|  | 5242 | enableval=default | 
|  | 5243 | fi | 
|  | 5244 |  | 
|  | 5245 | case "$enableval" in | 
|  | 5246 | yes) ENABLE_EMBED_STDCXX=1 | 
|  | 5247 | ;; | 
|  | 5248 | no)  ENABLE_EMBED_STDCXX=0 | 
|  | 5249 | ;; | 
| NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5250 | default) ENABLE_EMBED_STDCXX=0 | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5251 | ;; | 
|  | 5252 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 | 
|  | 5253 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} | 
|  | 5254 | { (exit 1); exit 1; }; } ;; | 
|  | 5255 | esac | 
|  | 5256 |  | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5257 | # Check whether --enable-timestamps was given. | 
|  | 5258 | if test "${enable_timestamps+set}" = set; then | 
|  | 5259 | enableval=$enable_timestamps; | 
|  | 5260 | else | 
|  | 5261 | enableval=default | 
|  | 5262 | fi | 
|  | 5263 |  | 
|  | 5264 | case "$enableval" in | 
|  | 5265 | yes) ENABLE_TIMESTAMPS=1 | 
|  | 5266 | ;; | 
|  | 5267 | no)  ENABLE_TIMESTAMPS=0 | 
|  | 5268 | ;; | 
|  | 5269 | default) ENABLE_TIMESTAMPS=1 | 
|  | 5270 | ;; | 
|  | 5271 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 | 
|  | 5272 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} | 
|  | 5273 | { (exit 1); exit 1; }; } ;; | 
|  | 5274 | esac | 
|  | 5275 |  | 
|  | 5276 | cat >>confdefs.h <<_ACEOF | 
|  | 5277 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS | 
|  | 5278 | _ACEOF | 
|  | 5279 |  | 
|  | 5280 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5281 | TARGETS_TO_BUILD="" | 
|  | 5282 | # Check whether --enable-targets was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5283 | if test "${enable_targets+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5284 | enableval=$enable_targets; | 
|  | 5285 | else | 
|  | 5286 | enableval=all | 
|  | 5287 | fi | 
|  | 5288 |  | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5289 | if test "$enableval" = host-only ; then | 
|  | 5290 | enableval=host | 
|  | 5291 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5292 | case "$enableval" in | 
| Dan Gohman | 4c9fca9 | 2011-10-27 22:56:32 +0000 | [diff] [blame] | 5293 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5294 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 5295 | case "$a_target" in | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5296 | x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5297 | x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5298 | sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
|  | 5299 | powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5300 | arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
|  | 5301 | mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
|  | 5302 | spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5303 | xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
|  | 5304 | msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5305 | cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5306 | cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5307 | mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5308 | ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5309 | host) case "$llvm_cv_target_arch" in | 
|  | 5310 | x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5311 | x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5312 | Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
|  | 5313 | PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5314 | ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
|  | 5315 | Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5316 | MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5317 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5318 | XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
|  | 5319 | MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5320 | PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5321 | *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 | 
|  | 5322 | echo "$as_me: error: Can not set target to build" >&2;} | 
|  | 5323 | { (exit 1); exit 1; }; } ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5324 | esac ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5325 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 | 
|  | 5326 | echo "$as_me: error: Unrecognized target $a_target" >&2;} | 
|  | 5327 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5328 | esac | 
|  | 5329 | done | 
|  | 5330 | ;; | 
|  | 5331 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5332 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD | 
|  | 5333 |  | 
|  | 5334 |  | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5335 | # Determine whether we are building LLVM support for the native architecture. | 
|  | 5336 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. | 
|  | 5337 | for a_target in $TARGETS_TO_BUILD; do | 
|  | 5338 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then | 
|  | 5339 |  | 
|  | 5340 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5341 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH | 
|  | 5342 | _ACEOF | 
|  | 5343 |  | 
|  | 5344 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" | 
|  | 5345 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" | 
| Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5346 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5347 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5348 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then | 
|  | 5349 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" | 
|  | 5350 | fi | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5351 |  | 
|  | 5352 | cat >>confdefs.h <<_ACEOF | 
|  | 5353 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET | 
| Daniel Dunbar | edf7b8b | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5354 | _ACEOF | 
|  | 5355 |  | 
|  | 5356 |  | 
|  | 5357 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5358 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO | 
|  | 5359 | _ACEOF | 
|  | 5360 |  | 
|  | 5361 |  | 
|  | 5362 | cat >>confdefs.h <<_ACEOF | 
| Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5363 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC | 
| Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5364 | _ACEOF | 
|  | 5365 |  | 
|  | 5366 |  | 
|  | 5367 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5368 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5369 | _ACEOF | 
|  | 5370 |  | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5371 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then | 
| Jan Sjödin | 27e07c3 | 2011-03-09 17:25:46 +0000 | [diff] [blame] | 5372 |  | 
|  | 5373 | cat >>confdefs.h <<_ACEOF | 
|  | 5374 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER | 
|  | 5375 | _ACEOF | 
|  | 5376 |  | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5377 | fi | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5378 | fi | 
|  | 5379 | done | 
|  | 5380 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5381 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual | 
|  | 5382 | # target feature def files. | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5383 | LLVM_ENUM_TARGETS="" | 
|  | 5384 | LLVM_ENUM_ASM_PRINTERS="" | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5385 | LLVM_ENUM_ASM_PARSERS="" | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5386 | LLVM_ENUM_DISASSEMBLERS="" | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5387 | for target_to_build in $TARGETS_TO_BUILD; do | 
|  | 5388 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" | 
| Chris Lattner | 2877660 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5389 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then | 
| Jim Grosbach | 0e854f3 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5390 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; | 
|  | 5391 | fi | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5392 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then | 
|  | 5393 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; | 
|  | 5394 | fi | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5395 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then | 
|  | 5396 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; | 
|  | 5397 | fi | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5398 | done | 
|  | 5399 |  | 
|  | 5400 |  | 
|  | 5401 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5402 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5403 |  | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5404 | # Check whether --enable-cbe-printf-a was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5405 | if test "${enable_cbe_printf_a+set}" = set; then | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5406 | enableval=$enable_cbe_printf_a; | 
|  | 5407 | else | 
|  | 5408 | enableval=default | 
|  | 5409 | fi | 
|  | 5410 |  | 
|  | 5411 | case "$enableval" in | 
|  | 5412 | yes) ENABLE_CBE_PRINTF_A=1 | 
|  | 5413 | ;; | 
|  | 5414 | no)  ENABLE_CBE_PRINTF_A=0 | 
|  | 5415 | ;; | 
|  | 5416 | default)  ENABLE_CBE_PRINTF_A=1 | 
|  | 5417 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5418 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 | 
|  | 5419 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} | 
|  | 5420 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5421 | esac | 
|  | 5422 |  | 
|  | 5423 | cat >>confdefs.h <<_ACEOF | 
|  | 5424 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A | 
|  | 5425 | _ACEOF | 
|  | 5426 |  | 
|  | 5427 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5428 |  | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5429 | # Check whether --with-optimize-option was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5430 | if test "${with_optimize_option+set}" = set; then | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5431 | withval=$with_optimize_option; | 
|  | 5432 | else | 
|  | 5433 | withval=default | 
|  | 5434 | fi | 
|  | 5435 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5436 | { echo "$as_me:$LINENO: checking optimization flags" >&5 | 
|  | 5437 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5438 | case "$withval" in | 
|  | 5439 | default) | 
|  | 5440 | case "$llvm_cv_os_type" in | 
| Daniel Dunbar | d411fcb | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5441 | FreeBSD) optimize_option=-O2 ;; | 
| Daniel Dunbar | 4e06a5b | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5442 | MingW) optimize_option=-O2 ;; | 
|  | 5443 | *)     optimize_option=-O3 ;; | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5444 | esac ;; | 
|  | 5445 | *) optimize_option="$withval" ;; | 
|  | 5446 | esac | 
|  | 5447 | OPTIMIZE_OPTION=$optimize_option | 
|  | 5448 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5449 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 | 
|  | 5450 | echo "${ECHO_T}$optimize_option" >&6; } | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5451 |  | 
|  | 5452 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5453 | # Check whether --with-extra-options was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5454 | if test "${with_extra_options+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | withval=$with_extra_options; | 
|  | 5456 | else | 
|  | 5457 | withval=default | 
|  | 5458 | fi | 
|  | 5459 |  | 
|  | 5460 | case "$withval" in | 
|  | 5461 | default) EXTRA_OPTIONS= ;; | 
|  | 5462 | *) EXTRA_OPTIONS=$withval ;; | 
|  | 5463 | esac | 
|  | 5464 | EXTRA_OPTIONS=$EXTRA_OPTIONS | 
|  | 5465 |  | 
|  | 5466 |  | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5467 |  | 
|  | 5468 | # Check whether --with-extra-ld-options was given. | 
|  | 5469 | if test "${with_extra_ld_options+set}" = set; then | 
|  | 5470 | withval=$with_extra_ld_options; | 
|  | 5471 | else | 
|  | 5472 | withval=default | 
|  | 5473 | fi | 
|  | 5474 |  | 
|  | 5475 | case "$withval" in | 
|  | 5476 | default) EXTRA_LD_OPTIONS= ;; | 
|  | 5477 | *) EXTRA_LD_OPTIONS=$withval ;; | 
|  | 5478 | esac | 
|  | 5479 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS | 
|  | 5480 |  | 
|  | 5481 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5482 | # Check whether --enable-bindings was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5483 | if test "${enable_bindings+set}" = set; then | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5484 | enableval=$enable_bindings; | 
|  | 5485 | else | 
|  | 5486 | enableval=default | 
|  | 5487 | fi | 
|  | 5488 |  | 
|  | 5489 | BINDINGS_TO_BUILD="" | 
|  | 5490 | case "$enableval" in | 
| Gordon Henriksen | acc2a83 | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5491 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5492 | all ) BINDINGS_TO_BUILD="ocaml" ;; | 
|  | 5493 | none | no) BINDINGS_TO_BUILD="" ;; | 
|  | 5494 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 5495 | case "$a_binding" in | 
|  | 5496 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5497 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 | 
|  | 5498 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} | 
|  | 5499 | { (exit 1); exit 1; }; } ;; | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5500 | esac | 
|  | 5501 | done | 
|  | 5502 | ;; | 
|  | 5503 | esac | 
|  | 5504 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5505 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5506 | # Check whether --with-ocaml-libdir was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5507 | if test "${with_ocaml_libdir+set}" = set; then | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5508 | withval=$with_ocaml_libdir; | 
|  | 5509 | else | 
|  | 5510 | withval=auto | 
|  | 5511 | fi | 
|  | 5512 |  | 
|  | 5513 | case "$withval" in | 
|  | 5514 | auto) with_ocaml_libdir="$withval" ;; | 
|  | 5515 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5516 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 | 
|  | 5517 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} | 
|  | 5518 | { (exit 1); exit 1; }; } ;; | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5519 | esac | 
|  | 5520 |  | 
|  | 5521 |  | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5522 | # Check whether --with-clang-srcdir was given. | 
|  | 5523 | if test "${with_clang_srcdir+set}" = set; then | 
|  | 5524 | withval=$with_clang_srcdir; | 
|  | 5525 | else | 
|  | 5526 | withval="-" | 
|  | 5527 | fi | 
|  | 5528 |  | 
|  | 5529 | case "$withval" in | 
|  | 5530 | -) clang_src_root="" ;; | 
|  | 5531 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; | 
|  | 5532 | *) clang_src_root="$ac_pwd/$withval" ;; | 
|  | 5533 | esac | 
|  | 5534 | CLANG_SRC_ROOT=$clang_src_root | 
|  | 5535 |  | 
|  | 5536 |  | 
|  | 5537 |  | 
| Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5538 | # Check whether --with-clang-resource-dir was given. | 
|  | 5539 | if test "${with_clang_resource_dir+set}" = set; then | 
|  | 5540 | withval=$with_clang_resource_dir; | 
|  | 5541 | else | 
|  | 5542 | withval="" | 
|  | 5543 | fi | 
|  | 5544 |  | 
|  | 5545 |  | 
|  | 5546 | cat >>confdefs.h <<_ACEOF | 
|  | 5547 | #define CLANG_RESOURCE_DIR "$withval" | 
|  | 5548 | _ACEOF | 
|  | 5549 |  | 
|  | 5550 |  | 
|  | 5551 |  | 
| Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5552 | # Check whether --with-c-include-dirs was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5553 | if test "${with_c_include_dirs+set}" = set; then | 
| Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5554 | withval=$with_c_include_dirs; | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5555 | else | 
|  | 5556 | withval="" | 
|  | 5557 | fi | 
|  | 5558 |  | 
|  | 5559 |  | 
|  | 5560 | cat >>confdefs.h <<_ACEOF | 
|  | 5561 | #define C_INCLUDE_DIRS "$withval" | 
|  | 5562 | _ACEOF | 
|  | 5563 |  | 
|  | 5564 |  | 
|  | 5565 |  | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5566 | # Check whether --with-cxx-include-root was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5567 | if test "${with_cxx_include_root+set}" = set; then | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5568 | withval=$with_cxx_include_root; | 
|  | 5569 | else | 
|  | 5570 | withval="" | 
|  | 5571 | fi | 
|  | 5572 |  | 
|  | 5573 |  | 
|  | 5574 | cat >>confdefs.h <<_ACEOF | 
|  | 5575 | #define CXX_INCLUDE_ROOT "$withval" | 
|  | 5576 | _ACEOF | 
|  | 5577 |  | 
|  | 5578 |  | 
|  | 5579 |  | 
|  | 5580 | # Check whether --with-cxx-include-arch was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5581 | if test "${with_cxx_include_arch+set}" = set; then | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5582 | withval=$with_cxx_include_arch; | 
|  | 5583 | else | 
|  | 5584 | withval="" | 
|  | 5585 | fi | 
|  | 5586 |  | 
|  | 5587 |  | 
|  | 5588 | cat >>confdefs.h <<_ACEOF | 
|  | 5589 | #define CXX_INCLUDE_ARCH "$withval" | 
|  | 5590 | _ACEOF | 
|  | 5591 |  | 
|  | 5592 |  | 
|  | 5593 |  | 
|  | 5594 | # Check whether --with-cxx-include-32bit-dir was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5595 | if test "${with_cxx_include_32bit_dir+set}" = set; then | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5596 | withval=$with_cxx_include_32bit_dir; | 
|  | 5597 | else | 
|  | 5598 | withval="" | 
|  | 5599 | fi | 
|  | 5600 |  | 
|  | 5601 |  | 
|  | 5602 | cat >>confdefs.h <<_ACEOF | 
|  | 5603 | #define CXX_INCLUDE_32BIT_DIR "$withval" | 
|  | 5604 | _ACEOF | 
|  | 5605 |  | 
|  | 5606 |  | 
|  | 5607 |  | 
|  | 5608 | # Check whether --with-cxx-include-64bit-dir was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5609 | if test "${with_cxx_include_64bit_dir+set}" = set; then | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5610 | withval=$with_cxx_include_64bit_dir; | 
|  | 5611 | else | 
|  | 5612 | withval="" | 
|  | 5613 | fi | 
|  | 5614 |  | 
|  | 5615 |  | 
|  | 5616 | cat >>confdefs.h <<_ACEOF | 
|  | 5617 | #define CXX_INCLUDE_64BIT_DIR "$withval" | 
|  | 5618 | _ACEOF | 
|  | 5619 |  | 
|  | 5620 |  | 
|  | 5621 |  | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5622 | # Check whether --with-binutils-include was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5623 | if test "${with_binutils_include+set}" = set; then | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5624 | withval=$with_binutils_include; | 
|  | 5625 | else | 
|  | 5626 | withval=default | 
|  | 5627 | fi | 
|  | 5628 |  | 
|  | 5629 | case "$withval" in | 
|  | 5630 | default) WITH_BINUTILS_INCDIR=default ;; | 
|  | 5631 | /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5632 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 | 
|  | 5633 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} | 
|  | 5634 | { (exit 1); exit 1; }; } ;; | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5635 | esac | 
|  | 5636 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then | 
|  | 5637 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR | 
|  | 5638 |  | 
|  | 5639 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then | 
|  | 5640 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5641 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 | 
|  | 5642 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} | 
|  | 5643 | { (exit 1); exit 1; }; }; | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5644 | fi | 
|  | 5645 | fi | 
|  | 5646 |  | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5647 |  | 
|  | 5648 | # Check whether --with-bug-report-url was given. | 
|  | 5649 | if test "${with_bug_report_url+set}" = set; then | 
|  | 5650 | withval=$with_bug_report_url; | 
|  | 5651 | else | 
| NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5652 | withval="http://llvm.org/bugs/" | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5653 | fi | 
|  | 5654 |  | 
|  | 5655 |  | 
|  | 5656 | cat >>confdefs.h <<_ACEOF | 
|  | 5657 | #define BUG_REPORT_URL "$withval" | 
|  | 5658 | _ACEOF | 
|  | 5659 |  | 
|  | 5660 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5661 | # Check whether --enable-libffi was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | if test "${enable_libffi+set}" = set; then | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5663 | enableval=$enable_libffi; case "$enableval" in | 
|  | 5664 | yes) llvm_cv_enable_libffi="yes" ;; | 
|  | 5665 | no)  llvm_cv_enable_libffi="no"  ;; | 
|  | 5666 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5667 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} | 
|  | 5668 | { (exit 1); exit 1; }; } ;; | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5669 | esac | 
|  | 5670 | else | 
|  | 5671 | llvm_cv_enable_libffi=no | 
|  | 5672 | fi | 
|  | 5673 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5674 |  | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5675 |  | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame^] | 5676 | # Check whether --with-internal-prefix was given. | 
|  | 5677 | if test "${with_internal_prefix+set}" = set; then | 
|  | 5678 | withval=$with_internal_prefix; | 
|  | 5679 | else | 
|  | 5680 | withval="" | 
|  | 5681 | fi | 
|  | 5682 |  | 
|  | 5683 | INTERNAL_PREFIX=$withval | 
|  | 5684 |  | 
|  | 5685 |  | 
|  | 5686 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5687 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
|  | 5688 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | 
|  | 5689 | if test "${lt_cv_path_NM+set}" = set; then | 
|  | 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5691 | else | 
|  | 5692 | if test -n "$NM"; then | 
|  | 5693 | # Let the user override the test. | 
|  | 5694 | lt_cv_path_NM="$NM" | 
|  | 5695 | else | 
|  | 5696 | lt_nm_to_check="${ac_tool_prefix}nm" | 
|  | 5697 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
|  | 5698 | lt_nm_to_check="$lt_nm_to_check nm" | 
|  | 5699 | fi | 
|  | 5700 | for lt_tmp_nm in $lt_nm_to_check; do | 
|  | 5701 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 5702 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
|  | 5703 | IFS="$lt_save_ifs" | 
|  | 5704 | test -z "$ac_dir" && ac_dir=. | 
|  | 5705 | tmp_nm="$ac_dir/$lt_tmp_nm" | 
|  | 5706 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
|  | 5707 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 5708 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 5709 | #   nm: unknown option "B" ignored | 
|  | 5710 | # Tru64's nm complains that /dev/null is an invalid object file | 
|  | 5711 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 5712 | */dev/null* | *'Invalid file or object type'*) | 
|  | 5713 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 5714 | break | 
|  | 5715 | ;; | 
|  | 5716 | *) | 
|  | 5717 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 5718 | */dev/null*) | 
|  | 5719 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 5720 | break | 
|  | 5721 | ;; | 
|  | 5722 | *) | 
|  | 5723 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 5724 | continue # so that we can try to find one that supports BSD flags | 
|  | 5725 | ;; | 
|  | 5726 | esac | 
|  | 5727 | ;; | 
|  | 5728 | esac | 
|  | 5729 | fi | 
|  | 5730 | done | 
|  | 5731 | IFS="$lt_save_ifs" | 
|  | 5732 | done | 
|  | 5733 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|  | 5734 | fi | 
|  | 5735 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5736 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
|  | 5737 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5738 | NM="$lt_cv_path_NM" | 
|  | 5739 |  | 
|  | 5740 |  | 
|  | 5741 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | { echo "$as_me:$LINENO: checking for GNU make" >&5 | 
|  | 5743 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } | 
|  | 5744 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
|  | 5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5746 | else | 
|  | 5747 | llvm_cv_gnu_make_command='' | 
|  | 5748 | for a in "$MAKE" make gmake gnumake ; do | 
|  | 5749 | if test -z "$a" ; then continue ; fi ; | 
|  | 5750 | if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
|  | 5751 | then | 
|  | 5752 | llvm_cv_gnu_make_command=$a ; | 
|  | 5753 | break; | 
|  | 5754 | fi | 
|  | 5755 | done | 
|  | 5756 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5757 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
|  | 5758 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5759 | if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
|  | 5760 | ifGNUmake='' ; | 
|  | 5761 | else | 
|  | 5762 | ifGNUmake='#' ; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5763 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
|  | 5764 | echo "${ECHO_T}\"Not found\"" >&6; }; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5765 | fi | 
|  | 5766 |  | 
|  | 5767 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5768 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 5769 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5770 | LN_S=$as_ln_s | 
|  | 5771 | if test "$LN_S" = "ln -s"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5772 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 5773 | echo "${ECHO_T}yes" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5774 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5775 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 5776 | echo "${ECHO_T}no, using $LN_S" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5777 | fi | 
|  | 5778 |  | 
|  | 5779 | # Extract the first word of "cmp", so it can be a program name with args. | 
|  | 5780 | set dummy cmp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5781 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5783 | if test "${ac_cv_path_CMP+set}" = set; then | 
|  | 5784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5785 | else | 
|  | 5786 | case $CMP in | 
|  | 5787 | [\\/]* | ?:[\\/]*) | 
|  | 5788 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
|  | 5789 | ;; | 
|  | 5790 | *) | 
|  | 5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5792 | for as_dir in $PATH | 
|  | 5793 | do | 
|  | 5794 | IFS=$as_save_IFS | 
|  | 5795 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5796 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5798 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5800 | break 2 | 
|  | 5801 | fi | 
|  | 5802 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5803 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5804 | IFS=$as_save_IFS | 
|  | 5805 |  | 
|  | 5806 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
|  | 5807 | ;; | 
|  | 5808 | esac | 
|  | 5809 | fi | 
|  | 5810 | CMP=$ac_cv_path_CMP | 
|  | 5811 | if test -n "$CMP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5812 | { echo "$as_me:$LINENO: result: $CMP" >&5 | 
|  | 5813 | echo "${ECHO_T}$CMP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5814 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5815 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5816 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5817 | fi | 
|  | 5818 |  | 
|  | 5819 |  | 
|  | 5820 | # Extract the first word of "cp", so it can be a program name with args. | 
|  | 5821 | set dummy cp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5824 | if test "${ac_cv_path_CP+set}" = set; then | 
|  | 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5826 | else | 
|  | 5827 | case $CP in | 
|  | 5828 | [\\/]* | ?:[\\/]*) | 
|  | 5829 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
|  | 5830 | ;; | 
|  | 5831 | *) | 
|  | 5832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5833 | for as_dir in $PATH | 
|  | 5834 | do | 
|  | 5835 | IFS=$as_save_IFS | 
|  | 5836 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5837 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5839 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5841 | break 2 | 
|  | 5842 | fi | 
|  | 5843 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5844 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5845 | IFS=$as_save_IFS | 
|  | 5846 |  | 
|  | 5847 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
|  | 5848 | ;; | 
|  | 5849 | esac | 
|  | 5850 | fi | 
|  | 5851 | CP=$ac_cv_path_CP | 
|  | 5852 | if test -n "$CP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5853 | { echo "$as_me:$LINENO: result: $CP" >&5 | 
|  | 5854 | echo "${ECHO_T}$CP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5855 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5856 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5857 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5858 | fi | 
|  | 5859 |  | 
|  | 5860 |  | 
|  | 5861 | # Extract the first word of "date", so it can be a program name with args. | 
|  | 5862 | set dummy date; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5865 | if test "${ac_cv_path_DATE+set}" = set; then | 
|  | 5866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5867 | else | 
|  | 5868 | case $DATE in | 
|  | 5869 | [\\/]* | ?:[\\/]*) | 
|  | 5870 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. | 
|  | 5871 | ;; | 
|  | 5872 | *) | 
|  | 5873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5874 | for as_dir in $PATH | 
|  | 5875 | do | 
|  | 5876 | IFS=$as_save_IFS | 
|  | 5877 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5878 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5880 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5882 | break 2 | 
|  | 5883 | fi | 
|  | 5884 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5885 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5886 | IFS=$as_save_IFS | 
|  | 5887 |  | 
|  | 5888 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
|  | 5889 | ;; | 
|  | 5890 | esac | 
|  | 5891 | fi | 
|  | 5892 | DATE=$ac_cv_path_DATE | 
|  | 5893 | if test -n "$DATE"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5894 | { echo "$as_me:$LINENO: result: $DATE" >&5 | 
|  | 5895 | echo "${ECHO_T}$DATE" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5896 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5897 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5898 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5899 | fi | 
|  | 5900 |  | 
|  | 5901 |  | 
|  | 5902 | # Extract the first word of "find", so it can be a program name with args. | 
|  | 5903 | set dummy find; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5904 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5906 | if test "${ac_cv_path_FIND+set}" = set; then | 
|  | 5907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5908 | else | 
|  | 5909 | case $FIND in | 
|  | 5910 | [\\/]* | ?:[\\/]*) | 
|  | 5911 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
|  | 5912 | ;; | 
|  | 5913 | *) | 
|  | 5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5915 | for as_dir in $PATH | 
|  | 5916 | do | 
|  | 5917 | IFS=$as_save_IFS | 
|  | 5918 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5919 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5921 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5923 | break 2 | 
|  | 5924 | fi | 
|  | 5925 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5926 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5927 | IFS=$as_save_IFS | 
|  | 5928 |  | 
|  | 5929 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
|  | 5930 | ;; | 
|  | 5931 | esac | 
|  | 5932 | fi | 
|  | 5933 | FIND=$ac_cv_path_FIND | 
|  | 5934 | if test -n "$FIND"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5935 | { echo "$as_me:$LINENO: result: $FIND" >&5 | 
|  | 5936 | echo "${ECHO_T}$FIND" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5937 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5939 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5940 | fi | 
|  | 5941 |  | 
|  | 5942 |  | 
|  | 5943 | # Extract the first word of "grep", so it can be a program name with args. | 
|  | 5944 | set dummy grep; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5945 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5947 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 5948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5949 | else | 
|  | 5950 | case $GREP in | 
|  | 5951 | [\\/]* | ?:[\\/]*) | 
|  | 5952 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
|  | 5953 | ;; | 
|  | 5954 | *) | 
|  | 5955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5956 | for as_dir in $PATH | 
|  | 5957 | do | 
|  | 5958 | IFS=$as_save_IFS | 
|  | 5959 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5960 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5962 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5964 | break 2 | 
|  | 5965 | fi | 
|  | 5966 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5967 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5968 | IFS=$as_save_IFS | 
|  | 5969 |  | 
|  | 5970 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
|  | 5971 | ;; | 
|  | 5972 | esac | 
|  | 5973 | fi | 
|  | 5974 | GREP=$ac_cv_path_GREP | 
|  | 5975 | if test -n "$GREP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5976 | { echo "$as_me:$LINENO: result: $GREP" >&5 | 
|  | 5977 | echo "${ECHO_T}$GREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5978 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5979 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5980 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5981 | fi | 
|  | 5982 |  | 
|  | 5983 |  | 
|  | 5984 | # Extract the first word of "mkdir", so it can be a program name with args. | 
|  | 5985 | set dummy mkdir; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5988 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
|  | 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5990 | else | 
|  | 5991 | case $MKDIR in | 
|  | 5992 | [\\/]* | ?:[\\/]*) | 
|  | 5993 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
|  | 5994 | ;; | 
|  | 5995 | *) | 
|  | 5996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5997 | for as_dir in $PATH | 
|  | 5998 | do | 
|  | 5999 | IFS=$as_save_IFS | 
|  | 6000 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6001 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6003 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6005 | break 2 | 
|  | 6006 | fi | 
|  | 6007 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6008 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6009 | IFS=$as_save_IFS | 
|  | 6010 |  | 
|  | 6011 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
|  | 6012 | ;; | 
|  | 6013 | esac | 
|  | 6014 | fi | 
|  | 6015 | MKDIR=$ac_cv_path_MKDIR | 
|  | 6016 | if test -n "$MKDIR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6017 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
|  | 6018 | echo "${ECHO_T}$MKDIR" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6019 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6020 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6021 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6022 | fi | 
|  | 6023 |  | 
|  | 6024 |  | 
|  | 6025 | # Extract the first word of "mv", so it can be a program name with args. | 
|  | 6026 | set dummy mv; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6027 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6029 | if test "${ac_cv_path_MV+set}" = set; then | 
|  | 6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6031 | else | 
|  | 6032 | case $MV in | 
|  | 6033 | [\\/]* | ?:[\\/]*) | 
|  | 6034 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
|  | 6035 | ;; | 
|  | 6036 | *) | 
|  | 6037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6038 | for as_dir in $PATH | 
|  | 6039 | do | 
|  | 6040 | IFS=$as_save_IFS | 
|  | 6041 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6042 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6044 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6046 | break 2 | 
|  | 6047 | fi | 
|  | 6048 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6049 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6050 | IFS=$as_save_IFS | 
|  | 6051 |  | 
|  | 6052 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
|  | 6053 | ;; | 
|  | 6054 | esac | 
|  | 6055 | fi | 
|  | 6056 | MV=$ac_cv_path_MV | 
|  | 6057 | if test -n "$MV"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6058 | { echo "$as_me:$LINENO: result: $MV" >&5 | 
|  | 6059 | echo "${ECHO_T}$MV" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6060 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6061 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6062 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6063 | fi | 
|  | 6064 |  | 
|  | 6065 |  | 
|  | 6066 | if test -n "$ac_tool_prefix"; then | 
|  | 6067 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6068 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6069 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6071 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 6072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6073 | else | 
|  | 6074 | if test -n "$RANLIB"; then | 
|  | 6075 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6076 | else | 
|  | 6077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6078 | for as_dir in $PATH | 
|  | 6079 | do | 
|  | 6080 | IFS=$as_save_IFS | 
|  | 6081 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6082 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6086 | break 2 | 
|  | 6087 | fi | 
|  | 6088 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6089 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6090 | IFS=$as_save_IFS | 
|  | 6091 |  | 
|  | 6092 | fi | 
|  | 6093 | fi | 
|  | 6094 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6095 | if test -n "$RANLIB"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6096 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 6097 | echo "${ECHO_T}$RANLIB" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6098 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6099 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6100 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6101 | fi | 
|  | 6102 |  | 
|  | 6103 |  | 
|  | 6104 | fi | 
|  | 6105 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6106 | ac_ct_RANLIB=$RANLIB | 
|  | 6107 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6108 | set dummy ranlib; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6109 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6111 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 6112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6113 | else | 
|  | 6114 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6115 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6116 | else | 
|  | 6117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6118 | for as_dir in $PATH | 
|  | 6119 | do | 
|  | 6120 | IFS=$as_save_IFS | 
|  | 6121 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6122 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6123 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6124 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6126 | break 2 | 
|  | 6127 | fi | 
|  | 6128 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6129 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6130 | IFS=$as_save_IFS | 
|  | 6131 |  | 
|  | 6132 | fi | 
|  | 6133 | fi | 
|  | 6134 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6135 | if test -n "$ac_ct_RANLIB"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6136 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 6137 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6138 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6139 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6140 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6141 | fi | 
|  | 6142 |  | 
|  | 6143 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6144 | RANLIB=":" | 
|  | 6145 | else | 
|  | 6146 | case $cross_compiling:$ac_tool_warned in | 
|  | 6147 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6148 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6149 | whose name does not start with the host triplet.  If you think this | 
|  | 6150 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 6151 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6152 | whose name does not start with the host triplet.  If you think this | 
|  | 6153 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6154 | ac_tool_warned=yes ;; | 
|  | 6155 | esac | 
|  | 6156 | RANLIB=$ac_ct_RANLIB | 
|  | 6157 | fi | 
|  | 6158 | else | 
|  | 6159 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6160 | fi | 
|  | 6161 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6162 | if test -n "$ac_tool_prefix"; then | 
|  | 6163 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 6164 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6167 | if test "${ac_cv_prog_AR+set}" = set; then | 
|  | 6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6169 | else | 
|  | 6170 | if test -n "$AR"; then | 
|  | 6171 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6172 | else | 
|  | 6173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6174 | for as_dir in $PATH | 
|  | 6175 | do | 
|  | 6176 | IFS=$as_save_IFS | 
|  | 6177 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6178 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6180 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6182 | break 2 | 
|  | 6183 | fi | 
|  | 6184 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6185 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6186 | IFS=$as_save_IFS | 
|  | 6187 |  | 
|  | 6188 | fi | 
|  | 6189 | fi | 
|  | 6190 | AR=$ac_cv_prog_AR | 
|  | 6191 | if test -n "$AR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: result: $AR" >&5 | 
|  | 6193 | echo "${ECHO_T}$AR" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6194 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6196 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6197 | fi | 
|  | 6198 |  | 
|  | 6199 |  | 
|  | 6200 | fi | 
|  | 6201 | if test -z "$ac_cv_prog_AR"; then | 
|  | 6202 | ac_ct_AR=$AR | 
|  | 6203 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 6204 | set dummy ar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6205 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6207 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
|  | 6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6209 | else | 
|  | 6210 | if test -n "$ac_ct_AR"; then | 
|  | 6211 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6212 | else | 
|  | 6213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6214 | for as_dir in $PATH | 
|  | 6215 | do | 
|  | 6216 | IFS=$as_save_IFS | 
|  | 6217 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6218 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6220 | ac_cv_prog_ac_ct_AR="ar" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6222 | break 2 | 
|  | 6223 | fi | 
|  | 6224 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6225 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6226 | IFS=$as_save_IFS | 
|  | 6227 |  | 
|  | 6228 | fi | 
|  | 6229 | fi | 
|  | 6230 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6231 | if test -n "$ac_ct_AR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6232 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
|  | 6233 | echo "${ECHO_T}$ac_ct_AR" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6234 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6235 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6236 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6237 | fi | 
|  | 6238 |  | 
|  | 6239 | if test "x$ac_ct_AR" = x; then | 
|  | 6240 | AR="false" | 
|  | 6241 | else | 
|  | 6242 | case $cross_compiling:$ac_tool_warned in | 
|  | 6243 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6244 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6245 | whose name does not start with the host triplet.  If you think this | 
|  | 6246 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 6247 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6248 | whose name does not start with the host triplet.  If you think this | 
|  | 6249 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6250 | ac_tool_warned=yes ;; | 
|  | 6251 | esac | 
|  | 6252 | AR=$ac_ct_AR | 
|  | 6253 | fi | 
|  | 6254 | else | 
|  | 6255 | AR="$ac_cv_prog_AR" | 
|  | 6256 | fi | 
|  | 6257 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6258 | # Extract the first word of "rm", so it can be a program name with args. | 
|  | 6259 | set dummy rm; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6262 | if test "${ac_cv_path_RM+set}" = set; then | 
|  | 6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6264 | else | 
|  | 6265 | case $RM in | 
|  | 6266 | [\\/]* | ?:[\\/]*) | 
|  | 6267 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
|  | 6268 | ;; | 
|  | 6269 | *) | 
|  | 6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6271 | for as_dir in $PATH | 
|  | 6272 | do | 
|  | 6273 | IFS=$as_save_IFS | 
|  | 6274 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6275 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6277 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6279 | break 2 | 
|  | 6280 | fi | 
|  | 6281 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6282 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6283 | IFS=$as_save_IFS | 
|  | 6284 |  | 
|  | 6285 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
|  | 6286 | ;; | 
|  | 6287 | esac | 
|  | 6288 | fi | 
|  | 6289 | RM=$ac_cv_path_RM | 
|  | 6290 | if test -n "$RM"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6291 | { echo "$as_me:$LINENO: result: $RM" >&5 | 
|  | 6292 | echo "${ECHO_T}$RM" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6293 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6294 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6295 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6296 | fi | 
|  | 6297 |  | 
|  | 6298 |  | 
|  | 6299 | # Extract the first word of "sed", so it can be a program name with args. | 
|  | 6300 | set dummy sed; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6303 | if test "${ac_cv_path_SED+set}" = set; then | 
|  | 6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6305 | else | 
|  | 6306 | case $SED in | 
|  | 6307 | [\\/]* | ?:[\\/]*) | 
|  | 6308 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
|  | 6309 | ;; | 
|  | 6310 | *) | 
|  | 6311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6312 | for as_dir in $PATH | 
|  | 6313 | do | 
|  | 6314 | IFS=$as_save_IFS | 
|  | 6315 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6316 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6318 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6320 | break 2 | 
|  | 6321 | fi | 
|  | 6322 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6323 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6324 | IFS=$as_save_IFS | 
|  | 6325 |  | 
|  | 6326 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
|  | 6327 | ;; | 
|  | 6328 | esac | 
|  | 6329 | fi | 
|  | 6330 | SED=$ac_cv_path_SED | 
|  | 6331 | if test -n "$SED"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6332 | { echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 6333 | echo "${ECHO_T}$SED" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6334 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6335 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6336 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6337 | fi | 
|  | 6338 |  | 
|  | 6339 |  | 
|  | 6340 | # Extract the first word of "tar", so it can be a program name with args. | 
|  | 6341 | set dummy tar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6344 | if test "${ac_cv_path_TAR+set}" = set; then | 
|  | 6345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6346 | else | 
|  | 6347 | case $TAR in | 
|  | 6348 | [\\/]* | ?:[\\/]*) | 
|  | 6349 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
|  | 6350 | ;; | 
|  | 6351 | *) | 
|  | 6352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6353 | for as_dir in $PATH | 
|  | 6354 | do | 
|  | 6355 | IFS=$as_save_IFS | 
|  | 6356 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6357 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6359 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6361 | break 2 | 
|  | 6362 | fi | 
|  | 6363 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6364 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6365 | IFS=$as_save_IFS | 
|  | 6366 |  | 
|  | 6367 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
|  | 6368 | ;; | 
|  | 6369 | esac | 
|  | 6370 | fi | 
|  | 6371 | TAR=$ac_cv_path_TAR | 
|  | 6372 | if test -n "$TAR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6373 | { echo "$as_me:$LINENO: result: $TAR" >&5 | 
|  | 6374 | echo "${ECHO_T}$TAR" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6375 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6376 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6377 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6378 | fi | 
|  | 6379 |  | 
|  | 6380 |  | 
|  | 6381 | # Extract the first word of "pwd", so it can be a program name with args. | 
|  | 6382 | set dummy pwd; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6385 | if test "${ac_cv_path_BINPWD+set}" = set; then | 
|  | 6386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6387 | else | 
|  | 6388 | case $BINPWD in | 
|  | 6389 | [\\/]* | ?:[\\/]*) | 
|  | 6390 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. | 
|  | 6391 | ;; | 
|  | 6392 | *) | 
|  | 6393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6394 | for as_dir in $PATH | 
|  | 6395 | do | 
|  | 6396 | IFS=$as_save_IFS | 
|  | 6397 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6398 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6400 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6402 | break 2 | 
|  | 6403 | fi | 
|  | 6404 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6405 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6406 | IFS=$as_save_IFS | 
|  | 6407 |  | 
|  | 6408 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" | 
|  | 6409 | ;; | 
|  | 6410 | esac | 
|  | 6411 | fi | 
|  | 6412 | BINPWD=$ac_cv_path_BINPWD | 
|  | 6413 | if test -n "$BINPWD"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 | 
|  | 6415 | echo "${ECHO_T}$BINPWD" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6416 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6417 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6418 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6419 | fi | 
|  | 6420 |  | 
|  | 6421 |  | 
|  | 6422 |  | 
|  | 6423 | # Extract the first word of "Graphviz", so it can be a program name with args. | 
|  | 6424 | set dummy Graphviz; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6427 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then | 
|  | 6428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6429 | else | 
|  | 6430 | case $GRAPHVIZ in | 
|  | 6431 | [\\/]* | ?:[\\/]*) | 
|  | 6432 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. | 
|  | 6433 | ;; | 
|  | 6434 | *) | 
|  | 6435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6436 | for as_dir in $PATH | 
|  | 6437 | do | 
|  | 6438 | IFS=$as_save_IFS | 
|  | 6439 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6440 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6442 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6444 | break 2 | 
|  | 6445 | fi | 
|  | 6446 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6447 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6448 | IFS=$as_save_IFS | 
|  | 6449 |  | 
|  | 6450 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" | 
|  | 6451 | ;; | 
|  | 6452 | esac | 
|  | 6453 | fi | 
|  | 6454 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ | 
|  | 6455 | if test -n "$GRAPHVIZ"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6456 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 | 
|  | 6457 | echo "${ECHO_T}$GRAPHVIZ" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6458 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6459 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6460 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6461 | fi | 
|  | 6462 |  | 
|  | 6463 |  | 
|  | 6464 | if test "$GRAPHVIZ" != "echo Graphviz" ; then | 
|  | 6465 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6466 | cat >>confdefs.h <<\_ACEOF | 
|  | 6467 | #define HAVE_GRAPHVIZ 1 | 
|  | 6468 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6469 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6470 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6471 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6472 | fi | 
|  | 6473 |  | 
|  | 6474 | cat >>confdefs.h <<_ACEOF | 
|  | 6475 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" | 
|  | 6476 | _ACEOF | 
|  | 6477 |  | 
|  | 6478 | fi | 
|  | 6479 | # Extract the first word of "dot", so it can be a program name with args. | 
|  | 6480 | set dummy dot; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6483 | if test "${ac_cv_path_DOT+set}" = set; then | 
|  | 6484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6485 | else | 
|  | 6486 | case $DOT in | 
|  | 6487 | [\\/]* | ?:[\\/]*) | 
|  | 6488 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
|  | 6489 | ;; | 
|  | 6490 | *) | 
|  | 6491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6492 | for as_dir in $PATH | 
|  | 6493 | do | 
|  | 6494 | IFS=$as_save_IFS | 
|  | 6495 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6496 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6498 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6500 | break 2 | 
|  | 6501 | fi | 
|  | 6502 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6503 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6504 | IFS=$as_save_IFS | 
|  | 6505 |  | 
|  | 6506 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" | 
|  | 6507 | ;; | 
|  | 6508 | esac | 
|  | 6509 | fi | 
|  | 6510 | DOT=$ac_cv_path_DOT | 
|  | 6511 | if test -n "$DOT"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6512 | { echo "$as_me:$LINENO: result: $DOT" >&5 | 
|  | 6513 | echo "${ECHO_T}$DOT" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6514 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6515 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6516 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6517 | fi | 
|  | 6518 |  | 
|  | 6519 |  | 
|  | 6520 | if test "$DOT" != "echo dot" ; then | 
|  | 6521 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6522 | cat >>confdefs.h <<\_ACEOF | 
|  | 6523 | #define HAVE_DOT 1 | 
|  | 6524 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6525 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6526 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6527 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6528 | fi | 
|  | 6529 |  | 
|  | 6530 | cat >>confdefs.h <<_ACEOF | 
|  | 6531 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" | 
|  | 6532 | _ACEOF | 
|  | 6533 |  | 
|  | 6534 | fi | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6535 | # Extract the first word of "fdp", so it can be a program name with args. | 
|  | 6536 | set dummy fdp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6539 | if test "${ac_cv_path_FDP+set}" = set; then | 
|  | 6540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6541 | else | 
|  | 6542 | case $FDP in | 
|  | 6543 | [\\/]* | ?:[\\/]*) | 
|  | 6544 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. | 
|  | 6545 | ;; | 
|  | 6546 | *) | 
|  | 6547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6548 | for as_dir in $PATH | 
|  | 6549 | do | 
|  | 6550 | IFS=$as_save_IFS | 
|  | 6551 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6552 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6554 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6556 | break 2 | 
|  | 6557 | fi | 
|  | 6558 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6559 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6560 | IFS=$as_save_IFS | 
|  | 6561 |  | 
|  | 6562 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" | 
|  | 6563 | ;; | 
|  | 6564 | esac | 
|  | 6565 | fi | 
|  | 6566 | FDP=$ac_cv_path_FDP | 
|  | 6567 | if test -n "$FDP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6568 | { echo "$as_me:$LINENO: result: $FDP" >&5 | 
|  | 6569 | echo "${ECHO_T}$FDP" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6570 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6571 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6572 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6573 | fi | 
|  | 6574 |  | 
|  | 6575 |  | 
|  | 6576 | if test "$FDP" != "echo fdp" ; then | 
|  | 6577 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6578 | cat >>confdefs.h <<\_ACEOF | 
|  | 6579 | #define HAVE_FDP 1 | 
|  | 6580 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6581 |  | 
|  | 6582 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6583 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6584 | fi | 
|  | 6585 |  | 
|  | 6586 | cat >>confdefs.h <<_ACEOF | 
|  | 6587 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" | 
|  | 6588 | _ACEOF | 
|  | 6589 |  | 
|  | 6590 | fi | 
|  | 6591 | # Extract the first word of "neato", so it can be a program name with args. | 
|  | 6592 | set dummy neato; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6595 | if test "${ac_cv_path_NEATO+set}" = set; then | 
|  | 6596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6597 | else | 
|  | 6598 | case $NEATO in | 
|  | 6599 | [\\/]* | ?:[\\/]*) | 
|  | 6600 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. | 
|  | 6601 | ;; | 
|  | 6602 | *) | 
|  | 6603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6604 | for as_dir in $PATH | 
|  | 6605 | do | 
|  | 6606 | IFS=$as_save_IFS | 
|  | 6607 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6608 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6610 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6612 | break 2 | 
|  | 6613 | fi | 
|  | 6614 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6615 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6616 | IFS=$as_save_IFS | 
|  | 6617 |  | 
|  | 6618 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" | 
|  | 6619 | ;; | 
|  | 6620 | esac | 
|  | 6621 | fi | 
|  | 6622 | NEATO=$ac_cv_path_NEATO | 
|  | 6623 | if test -n "$NEATO"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6624 | { echo "$as_me:$LINENO: result: $NEATO" >&5 | 
|  | 6625 | echo "${ECHO_T}$NEATO" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6626 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6627 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6628 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6629 | fi | 
|  | 6630 |  | 
|  | 6631 |  | 
|  | 6632 | if test "$NEATO" != "echo neato" ; then | 
|  | 6633 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6634 | cat >>confdefs.h <<\_ACEOF | 
|  | 6635 | #define HAVE_NEATO 1 | 
|  | 6636 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6637 |  | 
|  | 6638 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6639 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6640 | fi | 
|  | 6641 |  | 
|  | 6642 | cat >>confdefs.h <<_ACEOF | 
|  | 6643 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" | 
|  | 6644 | _ACEOF | 
|  | 6645 |  | 
|  | 6646 | fi | 
|  | 6647 | # Extract the first word of "twopi", so it can be a program name with args. | 
|  | 6648 | set dummy twopi; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6649 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6651 | if test "${ac_cv_path_TWOPI+set}" = set; then | 
|  | 6652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6653 | else | 
|  | 6654 | case $TWOPI in | 
|  | 6655 | [\\/]* | ?:[\\/]*) | 
|  | 6656 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. | 
|  | 6657 | ;; | 
|  | 6658 | *) | 
|  | 6659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6660 | for as_dir in $PATH | 
|  | 6661 | do | 
|  | 6662 | IFS=$as_save_IFS | 
|  | 6663 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6664 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6666 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6668 | break 2 | 
|  | 6669 | fi | 
|  | 6670 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6671 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6672 | IFS=$as_save_IFS | 
|  | 6673 |  | 
|  | 6674 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" | 
|  | 6675 | ;; | 
|  | 6676 | esac | 
|  | 6677 | fi | 
|  | 6678 | TWOPI=$ac_cv_path_TWOPI | 
|  | 6679 | if test -n "$TWOPI"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6680 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 | 
|  | 6681 | echo "${ECHO_T}$TWOPI" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6682 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6683 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6684 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6685 | fi | 
|  | 6686 |  | 
|  | 6687 |  | 
|  | 6688 | if test "$TWOPI" != "echo twopi" ; then | 
|  | 6689 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6690 | cat >>confdefs.h <<\_ACEOF | 
|  | 6691 | #define HAVE_TWOPI 1 | 
|  | 6692 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6693 |  | 
|  | 6694 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6695 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6696 | fi | 
|  | 6697 |  | 
|  | 6698 | cat >>confdefs.h <<_ACEOF | 
|  | 6699 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" | 
|  | 6700 | _ACEOF | 
|  | 6701 |  | 
|  | 6702 | fi | 
|  | 6703 | # Extract the first word of "circo", so it can be a program name with args. | 
|  | 6704 | set dummy circo; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6707 | if test "${ac_cv_path_CIRCO+set}" = set; then | 
|  | 6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6709 | else | 
|  | 6710 | case $CIRCO in | 
|  | 6711 | [\\/]* | ?:[\\/]*) | 
|  | 6712 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. | 
|  | 6713 | ;; | 
|  | 6714 | *) | 
|  | 6715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6716 | for as_dir in $PATH | 
|  | 6717 | do | 
|  | 6718 | IFS=$as_save_IFS | 
|  | 6719 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6720 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6722 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6724 | break 2 | 
|  | 6725 | fi | 
|  | 6726 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6727 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6728 | IFS=$as_save_IFS | 
|  | 6729 |  | 
|  | 6730 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" | 
|  | 6731 | ;; | 
|  | 6732 | esac | 
|  | 6733 | fi | 
|  | 6734 | CIRCO=$ac_cv_path_CIRCO | 
|  | 6735 | if test -n "$CIRCO"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6736 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 | 
|  | 6737 | echo "${ECHO_T}$CIRCO" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6738 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6739 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6740 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6741 | fi | 
|  | 6742 |  | 
|  | 6743 |  | 
|  | 6744 | if test "$CIRCO" != "echo circo" ; then | 
|  | 6745 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6746 | cat >>confdefs.h <<\_ACEOF | 
|  | 6747 | #define HAVE_CIRCO 1 | 
|  | 6748 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6749 |  | 
|  | 6750 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6751 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6752 | fi | 
|  | 6753 |  | 
|  | 6754 | cat >>confdefs.h <<_ACEOF | 
|  | 6755 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" | 
|  | 6756 | _ACEOF | 
|  | 6757 |  | 
|  | 6758 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6759 | for ac_prog in gv gsview32 | 
|  | 6760 | do | 
|  | 6761 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6762 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6763 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6765 | if test "${ac_cv_path_GV+set}" = set; then | 
|  | 6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6767 | else | 
|  | 6768 | case $GV in | 
|  | 6769 | [\\/]* | ?:[\\/]*) | 
|  | 6770 | ac_cv_path_GV="$GV" # Let the user override the test with a path. | 
|  | 6771 | ;; | 
|  | 6772 | *) | 
|  | 6773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6774 | for as_dir in $PATH | 
|  | 6775 | do | 
|  | 6776 | IFS=$as_save_IFS | 
|  | 6777 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6778 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6780 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6782 | break 2 | 
|  | 6783 | fi | 
|  | 6784 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6785 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6786 | IFS=$as_save_IFS | 
|  | 6787 |  | 
|  | 6788 | ;; | 
|  | 6789 | esac | 
|  | 6790 | fi | 
|  | 6791 | GV=$ac_cv_path_GV | 
|  | 6792 | if test -n "$GV"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6793 | { echo "$as_me:$LINENO: result: $GV" >&5 | 
|  | 6794 | echo "${ECHO_T}$GV" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6795 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6797 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6798 | fi | 
|  | 6799 |  | 
|  | 6800 |  | 
|  | 6801 | test -n "$GV" && break | 
|  | 6802 | done | 
|  | 6803 | test -n "$GV" || GV="echo gv" | 
|  | 6804 |  | 
|  | 6805 | if test "$GV" != "echo gv" ; then | 
|  | 6806 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6807 | cat >>confdefs.h <<\_ACEOF | 
|  | 6808 | #define HAVE_GV 1 | 
|  | 6809 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6810 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6811 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6812 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6813 | fi | 
|  | 6814 |  | 
|  | 6815 | cat >>confdefs.h <<_ACEOF | 
|  | 6816 | #define LLVM_PATH_GV "$GV${EXEEXT}" | 
|  | 6817 | _ACEOF | 
|  | 6818 |  | 
|  | 6819 | fi | 
|  | 6820 | # Extract the first word of "dotty", so it can be a program name with args. | 
|  | 6821 | set dummy dotty; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6824 | if test "${ac_cv_path_DOTTY+set}" = set; then | 
|  | 6825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6826 | else | 
|  | 6827 | case $DOTTY in | 
|  | 6828 | [\\/]* | ?:[\\/]*) | 
|  | 6829 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. | 
|  | 6830 | ;; | 
|  | 6831 | *) | 
|  | 6832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6833 | for as_dir in $PATH | 
|  | 6834 | do | 
|  | 6835 | IFS=$as_save_IFS | 
|  | 6836 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6839 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6841 | break 2 | 
|  | 6842 | fi | 
|  | 6843 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6845 | IFS=$as_save_IFS | 
|  | 6846 |  | 
|  | 6847 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" | 
|  | 6848 | ;; | 
|  | 6849 | esac | 
|  | 6850 | fi | 
|  | 6851 | DOTTY=$ac_cv_path_DOTTY | 
|  | 6852 | if test -n "$DOTTY"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 | 
|  | 6854 | echo "${ECHO_T}$DOTTY" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6855 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6856 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6857 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6858 | fi | 
|  | 6859 |  | 
|  | 6860 |  | 
|  | 6861 | if test "$DOTTY" != "echo dotty" ; then | 
|  | 6862 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6863 | cat >>confdefs.h <<\_ACEOF | 
|  | 6864 | #define HAVE_DOTTY 1 | 
|  | 6865 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6866 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6867 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6868 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6869 | fi | 
|  | 6870 |  | 
|  | 6871 | cat >>confdefs.h <<_ACEOF | 
|  | 6872 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" | 
|  | 6873 | _ACEOF | 
|  | 6874 |  | 
|  | 6875 | fi | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6876 | # Extract the first word of "xdot.py", so it can be a program name with args. | 
|  | 6877 | set dummy xdot.py; ac_word=$2 | 
|  | 6878 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6880 | if test "${ac_cv_path_XDOT_PY+set}" = set; then | 
|  | 6881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6882 | else | 
|  | 6883 | case $XDOT_PY in | 
|  | 6884 | [\\/]* | ?:[\\/]*) | 
|  | 6885 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. | 
|  | 6886 | ;; | 
|  | 6887 | *) | 
|  | 6888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6889 | for as_dir in $PATH | 
|  | 6890 | do | 
|  | 6891 | IFS=$as_save_IFS | 
|  | 6892 | test -z "$as_dir" && as_dir=. | 
|  | 6893 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6895 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" | 
|  | 6896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6897 | break 2 | 
|  | 6898 | fi | 
|  | 6899 | done | 
|  | 6900 | done | 
|  | 6901 | IFS=$as_save_IFS | 
|  | 6902 |  | 
|  | 6903 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" | 
|  | 6904 | ;; | 
|  | 6905 | esac | 
|  | 6906 | fi | 
|  | 6907 | XDOT_PY=$ac_cv_path_XDOT_PY | 
|  | 6908 | if test -n "$XDOT_PY"; then | 
|  | 6909 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 | 
|  | 6910 | echo "${ECHO_T}$XDOT_PY" >&6; } | 
|  | 6911 | else | 
|  | 6912 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6913 | echo "${ECHO_T}no" >&6; } | 
|  | 6914 | fi | 
|  | 6915 |  | 
|  | 6916 |  | 
|  | 6917 | if test "$XDOT_PY" != "echo xdot.py" ; then | 
|  | 6918 |  | 
|  | 6919 | cat >>confdefs.h <<\_ACEOF | 
|  | 6920 | #define HAVE_XDOT_PY 1 | 
|  | 6921 | _ACEOF | 
|  | 6922 |  | 
|  | 6923 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6924 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6925 | fi | 
|  | 6926 |  | 
|  | 6927 | cat >>confdefs.h <<_ACEOF | 
|  | 6928 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" | 
|  | 6929 | _ACEOF | 
|  | 6930 |  | 
|  | 6931 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6932 |  | 
|  | 6933 |  | 
|  | 6934 | # Extract the first word of "perl", so it can be a program name with args. | 
|  | 6935 | set dummy perl; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6936 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6938 | if test "${ac_cv_path_PERL+set}" = set; then | 
|  | 6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6940 | else | 
|  | 6941 | case $PERL in | 
|  | 6942 | [\\/]* | ?:[\\/]*) | 
|  | 6943 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
|  | 6944 | ;; | 
|  | 6945 | *) | 
|  | 6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6947 | for as_dir in $PATH | 
|  | 6948 | do | 
|  | 6949 | IFS=$as_save_IFS | 
|  | 6950 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6951 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6953 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6955 | break 2 | 
|  | 6956 | fi | 
|  | 6957 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6958 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | IFS=$as_save_IFS | 
|  | 6960 |  | 
|  | 6961 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" | 
|  | 6962 | ;; | 
|  | 6963 | esac | 
|  | 6964 | fi | 
|  | 6965 | PERL=$ac_cv_path_PERL | 
|  | 6966 | if test -n "$PERL"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6967 | { echo "$as_me:$LINENO: result: $PERL" >&5 | 
|  | 6968 | echo "${ECHO_T}$PERL" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6969 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6970 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6971 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6972 | fi | 
|  | 6973 |  | 
|  | 6974 |  | 
|  | 6975 | if test "$PERL" != "none"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6976 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 | 
|  | 6977 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6978 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6979 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 6980 | echo "${ECHO_T}yes" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6981 | else | 
|  | 6982 | PERL=none | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6983 | { echo "$as_me:$LINENO: result: not found" >&5 | 
|  | 6984 | echo "${ECHO_T}not found" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6985 | fi | 
|  | 6986 | fi | 
|  | 6987 |  | 
|  | 6988 |  | 
|  | 6989 | if test x"$PERL" = xnone; then | 
|  | 6990 | HAVE_PERL=0 | 
|  | 6991 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6992 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 | 
|  | 6993 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} | 
|  | 6994 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6995 | else | 
|  | 6996 | HAVE_PERL=1 | 
|  | 6997 |  | 
|  | 6998 | fi | 
|  | 6999 |  | 
|  | 7000 | # Find a good install program.  We prefer a C program (faster), | 
|  | 7001 | # so one script is as good as another.  But avoid the broken or | 
|  | 7002 | # incompatible versions: | 
|  | 7003 | # SysV /etc/install, /usr/sbin/install | 
|  | 7004 | # SunOS /usr/etc/install | 
|  | 7005 | # IRIX /sbin/install | 
|  | 7006 | # AIX /bin/install | 
|  | 7007 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 7008 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 7009 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 7010 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 7011 | # OS/2's system install, which has a completely different semantic | 
|  | 7012 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
|  | 7014 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7015 | if test -z "$INSTALL"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7016 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 7017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7018 | else | 
|  | 7019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7020 | for as_dir in $PATH | 
|  | 7021 | do | 
|  | 7022 | IFS=$as_save_IFS | 
|  | 7023 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7024 | # Account for people who put trailing slashes in PATH elements. | 
|  | 7025 | case $as_dir/ in | 
|  | 7026 | ./ | .// | /cC/* | \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7027 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7028 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7029 | /usr/ucb/* ) ;; | 
|  | 7030 | *) | 
|  | 7031 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 7032 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 7033 | # by default. | 
|  | 7034 | for ac_prog in ginstall scoinst install; do | 
|  | 7035 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7036 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7037 | if test $ac_prog = install && | 
|  | 7038 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 7039 | # AIX install.  It has an incompatible calling convention. | 
|  | 7040 | : | 
|  | 7041 | elif test $ac_prog = install && | 
|  | 7042 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 7043 | # program-specific install script used by HP pwplus--don't use. | 
|  | 7044 | : | 
|  | 7045 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7046 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 7047 | break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7048 | fi | 
|  | 7049 | fi | 
|  | 7050 | done | 
|  | 7051 | done | 
|  | 7052 | ;; | 
|  | 7053 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7054 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7055 | IFS=$as_save_IFS | 
|  | 7056 |  | 
|  | 7057 |  | 
|  | 7058 | fi | 
|  | 7059 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 7060 | INSTALL=$ac_cv_path_install | 
|  | 7061 | else | 
|  | 7062 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 7063 | # value for INSTALL within a source directory, because that will | 
|  | 7064 | # break other packages using the cache if that directory is | 
|  | 7065 | # removed, or if the value is a relative name. | 
|  | 7066 | INSTALL=$ac_install_sh | 
|  | 7067 | fi | 
|  | 7068 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7069 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
|  | 7070 | echo "${ECHO_T}$INSTALL" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7071 |  | 
|  | 7072 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 7073 | # It thinks the first close brace ends the variable substitution. | 
|  | 7074 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 7075 |  | 
|  | 7076 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 7077 |  | 
|  | 7078 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 7079 |  | 
| Eric Christopher | e3befc7 | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7080 | case "$INSTALL" in | 
|  | 7081 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 7082 | *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; | 
|  | 7083 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7084 |  | 
|  | 7085 | # Extract the first word of "bzip2", so it can be a program name with args. | 
|  | 7086 | set dummy bzip2; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7087 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7089 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
|  | 7090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7091 | else | 
|  | 7092 | case $BZIP2 in | 
|  | 7093 | [\\/]* | ?:[\\/]*) | 
|  | 7094 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
|  | 7095 | ;; | 
|  | 7096 | *) | 
|  | 7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7098 | for as_dir in $PATH | 
|  | 7099 | do | 
|  | 7100 | IFS=$as_save_IFS | 
|  | 7101 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7102 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7104 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7106 | break 2 | 
|  | 7107 | fi | 
|  | 7108 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7109 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7110 | IFS=$as_save_IFS | 
|  | 7111 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7112 | ;; | 
|  | 7113 | esac | 
|  | 7114 | fi | 
|  | 7115 | BZIP2=$ac_cv_path_BZIP2 | 
|  | 7116 | if test -n "$BZIP2"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7117 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
|  | 7118 | echo "${ECHO_T}$BZIP2" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7119 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7120 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7121 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7122 | fi | 
|  | 7123 |  | 
|  | 7124 |  | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7125 | # Extract the first word of "cat", so it can be a program name with args. | 
|  | 7126 | set dummy cat; ac_word=$2 | 
|  | 7127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7129 | if test "${ac_cv_path_CAT+set}" = set; then | 
|  | 7130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7131 | else | 
|  | 7132 | case $CAT in | 
|  | 7133 | [\\/]* | ?:[\\/]*) | 
|  | 7134 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | 
|  | 7135 | ;; | 
|  | 7136 | *) | 
|  | 7137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7138 | for as_dir in $PATH | 
|  | 7139 | do | 
|  | 7140 | IFS=$as_save_IFS | 
|  | 7141 | test -z "$as_dir" && as_dir=. | 
|  | 7142 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7144 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7146 | break 2 | 
|  | 7147 | fi | 
|  | 7148 | done | 
|  | 7149 | done | 
|  | 7150 | IFS=$as_save_IFS | 
|  | 7151 |  | 
|  | 7152 | ;; | 
|  | 7153 | esac | 
|  | 7154 | fi | 
|  | 7155 | CAT=$ac_cv_path_CAT | 
|  | 7156 | if test -n "$CAT"; then | 
|  | 7157 | { echo "$as_me:$LINENO: result: $CAT" >&5 | 
|  | 7158 | echo "${ECHO_T}$CAT" >&6; } | 
|  | 7159 | else | 
|  | 7160 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7161 | echo "${ECHO_T}no" >&6; } | 
|  | 7162 | fi | 
|  | 7163 |  | 
|  | 7164 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7165 | # Extract the first word of "doxygen", so it can be a program name with args. | 
|  | 7166 | set dummy doxygen; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7169 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
|  | 7170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7171 | else | 
|  | 7172 | case $DOXYGEN in | 
|  | 7173 | [\\/]* | ?:[\\/]*) | 
|  | 7174 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
|  | 7175 | ;; | 
|  | 7176 | *) | 
|  | 7177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7178 | for as_dir in $PATH | 
|  | 7179 | do | 
|  | 7180 | IFS=$as_save_IFS | 
|  | 7181 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7182 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7184 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7186 | break 2 | 
|  | 7187 | fi | 
|  | 7188 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7189 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7190 | IFS=$as_save_IFS | 
|  | 7191 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7192 | ;; | 
|  | 7193 | esac | 
|  | 7194 | fi | 
|  | 7195 | DOXYGEN=$ac_cv_path_DOXYGEN | 
|  | 7196 | if test -n "$DOXYGEN"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7197 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
|  | 7198 | echo "${ECHO_T}$DOXYGEN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7199 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7200 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7201 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7202 | fi | 
|  | 7203 |  | 
|  | 7204 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7205 | # Extract the first word of "groff", so it can be a program name with args. | 
|  | 7206 | set dummy groff; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7207 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7209 | if test "${ac_cv_path_GROFF+set}" = set; then | 
|  | 7210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7211 | else | 
|  | 7212 | case $GROFF in | 
|  | 7213 | [\\/]* | ?:[\\/]*) | 
|  | 7214 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
|  | 7215 | ;; | 
|  | 7216 | *) | 
|  | 7217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7218 | for as_dir in $PATH | 
|  | 7219 | do | 
|  | 7220 | IFS=$as_save_IFS | 
|  | 7221 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7222 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7226 | break 2 | 
|  | 7227 | fi | 
|  | 7228 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7229 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7230 | IFS=$as_save_IFS | 
|  | 7231 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7232 | ;; | 
|  | 7233 | esac | 
|  | 7234 | fi | 
|  | 7235 | GROFF=$ac_cv_path_GROFF | 
|  | 7236 | if test -n "$GROFF"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7237 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | 
|  | 7238 | echo "${ECHO_T}$GROFF" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7239 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7240 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7241 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7242 | fi | 
|  | 7243 |  | 
|  | 7244 |  | 
|  | 7245 | # Extract the first word of "gzip", so it can be a program name with args. | 
|  | 7246 | set dummy gzip; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7247 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7249 | if test "${ac_cv_path_GZIPBIN+set}" = set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7251 | else | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7252 | case $GZIPBIN in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7253 | [\\/]* | ?:[\\/]*) | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7254 | ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7255 | ;; | 
|  | 7256 | *) | 
|  | 7257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7258 | for as_dir in $PATH | 
|  | 7259 | do | 
|  | 7260 | IFS=$as_save_IFS | 
|  | 7261 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7262 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7264 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7266 | break 2 | 
|  | 7267 | fi | 
|  | 7268 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7269 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7270 | IFS=$as_save_IFS | 
|  | 7271 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7272 | ;; | 
|  | 7273 | esac | 
|  | 7274 | fi | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7275 | GZIPBIN=$ac_cv_path_GZIPBIN | 
|  | 7276 | if test -n "$GZIPBIN"; then | 
|  | 7277 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 | 
|  | 7278 | echo "${ECHO_T}$GZIPBIN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7279 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7280 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7281 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7282 | fi | 
|  | 7283 |  | 
|  | 7284 |  | 
|  | 7285 | # Extract the first word of "pod2html", so it can be a program name with args. | 
|  | 7286 | set dummy pod2html; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7287 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7289 | if test "${ac_cv_path_POD2HTML+set}" = set; then | 
|  | 7290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7291 | else | 
|  | 7292 | case $POD2HTML in | 
|  | 7293 | [\\/]* | ?:[\\/]*) | 
|  | 7294 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. | 
|  | 7295 | ;; | 
|  | 7296 | *) | 
|  | 7297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7298 | for as_dir in $PATH | 
|  | 7299 | do | 
|  | 7300 | IFS=$as_save_IFS | 
|  | 7301 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7302 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7304 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7306 | break 2 | 
|  | 7307 | fi | 
|  | 7308 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7309 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7310 | IFS=$as_save_IFS | 
|  | 7311 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7312 | ;; | 
|  | 7313 | esac | 
|  | 7314 | fi | 
|  | 7315 | POD2HTML=$ac_cv_path_POD2HTML | 
|  | 7316 | if test -n "$POD2HTML"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7317 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 | 
|  | 7318 | echo "${ECHO_T}$POD2HTML" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7319 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7321 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7322 | fi | 
|  | 7323 |  | 
|  | 7324 |  | 
|  | 7325 | # Extract the first word of "pod2man", so it can be a program name with args. | 
|  | 7326 | set dummy pod2man; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7327 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7329 | if test "${ac_cv_path_POD2MAN+set}" = set; then | 
|  | 7330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7331 | else | 
|  | 7332 | case $POD2MAN in | 
|  | 7333 | [\\/]* | ?:[\\/]*) | 
|  | 7334 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. | 
|  | 7335 | ;; | 
|  | 7336 | *) | 
|  | 7337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7338 | for as_dir in $PATH | 
|  | 7339 | do | 
|  | 7340 | IFS=$as_save_IFS | 
|  | 7341 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7342 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7344 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7346 | break 2 | 
|  | 7347 | fi | 
|  | 7348 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7349 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7350 | IFS=$as_save_IFS | 
|  | 7351 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7352 | ;; | 
|  | 7353 | esac | 
|  | 7354 | fi | 
|  | 7355 | POD2MAN=$ac_cv_path_POD2MAN | 
|  | 7356 | if test -n "$POD2MAN"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7357 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 | 
|  | 7358 | echo "${ECHO_T}$POD2MAN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7359 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7360 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7361 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7362 | fi | 
|  | 7363 |  | 
|  | 7364 |  | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7365 | # Extract the first word of "pdfroff", so it can be a program name with args. | 
|  | 7366 | set dummy pdfroff; ac_word=$2 | 
|  | 7367 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7369 | if test "${ac_cv_path_PDFROFF+set}" = set; then | 
|  | 7370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7371 | else | 
|  | 7372 | case $PDFROFF in | 
|  | 7373 | [\\/]* | ?:[\\/]*) | 
|  | 7374 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. | 
|  | 7375 | ;; | 
|  | 7376 | *) | 
|  | 7377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7378 | for as_dir in $PATH | 
|  | 7379 | do | 
|  | 7380 | IFS=$as_save_IFS | 
|  | 7381 | test -z "$as_dir" && as_dir=. | 
|  | 7382 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7384 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7386 | break 2 | 
|  | 7387 | fi | 
|  | 7388 | done | 
|  | 7389 | done | 
|  | 7390 | IFS=$as_save_IFS | 
|  | 7391 |  | 
|  | 7392 | ;; | 
|  | 7393 | esac | 
|  | 7394 | fi | 
|  | 7395 | PDFROFF=$ac_cv_path_PDFROFF | 
|  | 7396 | if test -n "$PDFROFF"; then | 
|  | 7397 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 | 
|  | 7398 | echo "${ECHO_T}$PDFROFF" >&6; } | 
|  | 7399 | else | 
|  | 7400 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7401 | echo "${ECHO_T}no" >&6; } | 
|  | 7402 | fi | 
|  | 7403 |  | 
|  | 7404 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7405 | # Extract the first word of "runtest", so it can be a program name with args. | 
|  | 7406 | set dummy runtest; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7409 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
|  | 7410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7411 | else | 
|  | 7412 | case $RUNTEST in | 
|  | 7413 | [\\/]* | ?:[\\/]*) | 
|  | 7414 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
|  | 7415 | ;; | 
|  | 7416 | *) | 
|  | 7417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7418 | for as_dir in $PATH | 
|  | 7419 | do | 
|  | 7420 | IFS=$as_save_IFS | 
|  | 7421 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7422 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7424 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7426 | break 2 | 
|  | 7427 | fi | 
|  | 7428 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7429 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7430 | IFS=$as_save_IFS | 
|  | 7431 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7432 | ;; | 
|  | 7433 | esac | 
|  | 7434 | fi | 
|  | 7435 | RUNTEST=$ac_cv_path_RUNTEST | 
|  | 7436 | if test -n "$RUNTEST"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7437 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
|  | 7438 | echo "${ECHO_T}$RUNTEST" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7439 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7440 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7441 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7442 | fi | 
|  | 7443 |  | 
|  | 7444 |  | 
|  | 7445 |  | 
|  | 7446 | no_itcl=true | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7447 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
|  | 7448 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7449 |  | 
|  | 7450 | # Check whether --with-tclinclude was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7451 | if test "${with_tclinclude+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7452 | withval=$with_tclinclude; with_tclinclude=${withval} | 
|  | 7453 | else | 
|  | 7454 | with_tclinclude='' | 
|  | 7455 | fi | 
|  | 7456 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7457 | if test "${ac_cv_path_tclsh+set}" = set; then | 
|  | 7458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7459 | else | 
|  | 7460 |  | 
|  | 7461 | if test x"${with_tclinclude}" != x ; then | 
|  | 7462 | if test -f ${with_tclinclude}/tclsh ; then | 
|  | 7463 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
|  | 7464 | elif test -f ${with_tclinclude}/src/tclsh ; then | 
|  | 7465 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
|  | 7466 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7467 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
|  | 7468 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
|  | 7469 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7470 | fi | 
|  | 7471 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7472 | fi | 
|  | 7473 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7474 |  | 
|  | 7475 | if test x"${ac_cv_path_tclsh}" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7476 | { echo "$as_me:$LINENO: result: none" >&5 | 
|  | 7477 | echo "${ECHO_T}none" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7478 | 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 | 
|  | 7479 | do | 
|  | 7480 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7481 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7484 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
|  | 7485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7486 | else | 
|  | 7487 | case $TCLSH in | 
|  | 7488 | [\\/]* | ?:[\\/]*) | 
|  | 7489 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. | 
|  | 7490 | ;; | 
|  | 7491 | *) | 
|  | 7492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7493 | for as_dir in $PATH | 
|  | 7494 | do | 
|  | 7495 | IFS=$as_save_IFS | 
|  | 7496 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7497 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7499 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7501 | break 2 | 
|  | 7502 | fi | 
|  | 7503 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7504 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | IFS=$as_save_IFS | 
|  | 7506 |  | 
|  | 7507 | ;; | 
|  | 7508 | esac | 
|  | 7509 | fi | 
|  | 7510 | TCLSH=$ac_cv_path_TCLSH | 
|  | 7511 | if test -n "$TCLSH"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7512 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
|  | 7513 | echo "${ECHO_T}$TCLSH" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7514 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7515 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7516 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7517 | fi | 
|  | 7518 |  | 
|  | 7519 |  | 
|  | 7520 | test -n "$TCLSH" && break | 
|  | 7521 | done | 
|  | 7522 |  | 
|  | 7523 | if test x"${TCLSH}" = x ; then | 
|  | 7524 | ac_cv_path_tclsh=''; | 
|  | 7525 | else | 
|  | 7526 | ac_cv_path_tclsh="${TCLSH}"; | 
|  | 7527 | fi | 
|  | 7528 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7529 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
|  | 7530 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7531 | TCLSH="${ac_cv_path_tclsh}" | 
|  | 7532 |  | 
|  | 7533 | fi | 
|  | 7534 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7535 | # Extract the first word of "zip", so it can be a program name with args. | 
|  | 7536 | set dummy zip; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7539 | if test "${ac_cv_path_ZIP+set}" = set; then | 
|  | 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7541 | else | 
|  | 7542 | case $ZIP in | 
|  | 7543 | [\\/]* | ?:[\\/]*) | 
|  | 7544 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
|  | 7545 | ;; | 
|  | 7546 | *) | 
|  | 7547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7548 | for as_dir in $PATH | 
|  | 7549 | do | 
|  | 7550 | IFS=$as_save_IFS | 
|  | 7551 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7552 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7554 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7556 | break 2 | 
|  | 7557 | fi | 
|  | 7558 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7559 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7560 | IFS=$as_save_IFS | 
|  | 7561 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7562 | ;; | 
|  | 7563 | esac | 
|  | 7564 | fi | 
|  | 7565 | ZIP=$ac_cv_path_ZIP | 
|  | 7566 | if test -n "$ZIP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7567 | { echo "$as_me:$LINENO: result: $ZIP" >&5 | 
|  | 7568 | echo "${ECHO_T}$ZIP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7569 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7570 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7571 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7572 | fi | 
|  | 7573 |  | 
|  | 7574 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7575 | for ac_prog in ocamlc | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7576 | do | 
|  | 7577 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7578 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7579 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7581 | if test "${ac_cv_path_OCAMLC+set}" = set; then | 
|  | 7582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7583 | else | 
|  | 7584 | case $OCAMLC in | 
|  | 7585 | [\\/]* | ?:[\\/]*) | 
|  | 7586 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. | 
|  | 7587 | ;; | 
|  | 7588 | *) | 
|  | 7589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7590 | for as_dir in $PATH | 
|  | 7591 | do | 
|  | 7592 | IFS=$as_save_IFS | 
|  | 7593 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7594 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7596 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7598 | break 2 | 
|  | 7599 | fi | 
|  | 7600 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7601 | done | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7602 | IFS=$as_save_IFS | 
|  | 7603 |  | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7604 | ;; | 
|  | 7605 | esac | 
|  | 7606 | fi | 
|  | 7607 | OCAMLC=$ac_cv_path_OCAMLC | 
|  | 7608 | if test -n "$OCAMLC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7609 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 | 
|  | 7610 | echo "${ECHO_T}$OCAMLC" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7611 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7612 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7613 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7614 | fi | 
|  | 7615 |  | 
|  | 7616 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7617 | test -n "$OCAMLC" && break | 
|  | 7618 | done | 
|  | 7619 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7620 | for ac_prog in ocamlopt | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7621 | do | 
|  | 7622 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7623 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7624 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7626 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then | 
|  | 7627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7628 | else | 
|  | 7629 | case $OCAMLOPT in | 
|  | 7630 | [\\/]* | ?:[\\/]*) | 
|  | 7631 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. | 
|  | 7632 | ;; | 
|  | 7633 | *) | 
|  | 7634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7635 | for as_dir in $PATH | 
|  | 7636 | do | 
|  | 7637 | IFS=$as_save_IFS | 
|  | 7638 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7639 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7641 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7643 | break 2 | 
|  | 7644 | fi | 
|  | 7645 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7646 | done | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7647 | IFS=$as_save_IFS | 
|  | 7648 |  | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7649 | ;; | 
|  | 7650 | esac | 
|  | 7651 | fi | 
|  | 7652 | OCAMLOPT=$ac_cv_path_OCAMLOPT | 
|  | 7653 | if test -n "$OCAMLOPT"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7654 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 | 
|  | 7655 | echo "${ECHO_T}$OCAMLOPT" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7656 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7657 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7658 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7659 | fi | 
|  | 7660 |  | 
|  | 7661 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7662 | test -n "$OCAMLOPT" && break | 
|  | 7663 | done | 
|  | 7664 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7665 | for ac_prog in ocamldep | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7666 | do | 
|  | 7667 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7668 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7671 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then | 
|  | 7672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7673 | else | 
|  | 7674 | case $OCAMLDEP in | 
|  | 7675 | [\\/]* | ?:[\\/]*) | 
|  | 7676 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. | 
|  | 7677 | ;; | 
|  | 7678 | *) | 
|  | 7679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7680 | for as_dir in $PATH | 
|  | 7681 | do | 
|  | 7682 | IFS=$as_save_IFS | 
|  | 7683 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7684 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7686 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7688 | break 2 | 
|  | 7689 | fi | 
|  | 7690 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7691 | done | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7692 | IFS=$as_save_IFS | 
|  | 7693 |  | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7694 | ;; | 
|  | 7695 | esac | 
|  | 7696 | fi | 
|  | 7697 | OCAMLDEP=$ac_cv_path_OCAMLDEP | 
|  | 7698 | if test -n "$OCAMLDEP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7699 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 | 
|  | 7700 | echo "${ECHO_T}$OCAMLDEP" >&6; } | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7701 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7702 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7703 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7704 | fi | 
|  | 7705 |  | 
|  | 7706 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7707 | test -n "$OCAMLDEP" && break | 
|  | 7708 | done | 
|  | 7709 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7710 | for ac_prog in ocamldoc | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7711 | do | 
|  | 7712 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7713 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7714 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7716 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then | 
|  | 7717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7718 | else | 
|  | 7719 | case $OCAMLDOC in | 
|  | 7720 | [\\/]* | ?:[\\/]*) | 
|  | 7721 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. | 
|  | 7722 | ;; | 
|  | 7723 | *) | 
|  | 7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7725 | for as_dir in $PATH | 
|  | 7726 | do | 
|  | 7727 | IFS=$as_save_IFS | 
|  | 7728 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7729 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7731 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7733 | break 2 | 
|  | 7734 | fi | 
|  | 7735 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7736 | done | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7737 | IFS=$as_save_IFS | 
|  | 7738 |  | 
|  | 7739 | ;; | 
|  | 7740 | esac | 
|  | 7741 | fi | 
|  | 7742 | OCAMLDOC=$ac_cv_path_OCAMLDOC | 
|  | 7743 | if test -n "$OCAMLDOC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7744 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 | 
|  | 7745 | echo "${ECHO_T}$OCAMLDOC" >&6; } | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7746 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7747 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7748 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7749 | fi | 
|  | 7750 |  | 
|  | 7751 |  | 
|  | 7752 | test -n "$OCAMLDOC" && break | 
|  | 7753 | done | 
|  | 7754 |  | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7755 | for ac_prog in gas as | 
|  | 7756 | do | 
|  | 7757 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7758 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7759 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7761 | if test "${ac_cv_path_GAS+set}" = set; then | 
|  | 7762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7763 | else | 
|  | 7764 | case $GAS in | 
|  | 7765 | [\\/]* | ?:[\\/]*) | 
|  | 7766 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. | 
|  | 7767 | ;; | 
|  | 7768 | *) | 
|  | 7769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7770 | for as_dir in $PATH | 
|  | 7771 | do | 
|  | 7772 | IFS=$as_save_IFS | 
|  | 7773 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7774 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7776 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7778 | break 2 | 
|  | 7779 | fi | 
|  | 7780 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7781 | done | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7782 | IFS=$as_save_IFS | 
|  | 7783 |  | 
|  | 7784 | ;; | 
|  | 7785 | esac | 
|  | 7786 | fi | 
|  | 7787 | GAS=$ac_cv_path_GAS | 
|  | 7788 | if test -n "$GAS"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7789 | { echo "$as_me:$LINENO: result: $GAS" >&5 | 
|  | 7790 | echo "${ECHO_T}$GAS" >&6; } | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7791 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7792 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7793 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7794 | fi | 
|  | 7795 |  | 
|  | 7796 |  | 
|  | 7797 | test -n "$GAS" && break | 
|  | 7798 | done | 
|  | 7799 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7800 |  | 
| Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7801 | { echo "$as_me:$LINENO: checking for linker version" >&5 | 
|  | 7802 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } | 
|  | 7803 | if test "${llvm_cv_link_version+set}" = set; then | 
|  | 7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7805 | else | 
|  | 7806 |  | 
|  | 7807 | version_string="$(ld -v 2>&1 | head -1)" | 
|  | 7808 |  | 
|  | 7809 | # Check for ld64. | 
|  | 7810 | if (echo "$version_string" | grep -q "ld64"); then | 
|  | 7811 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") | 
|  | 7812 | else | 
|  | 7813 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") | 
|  | 7814 | fi | 
|  | 7815 |  | 
|  | 7816 | fi | 
|  | 7817 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 | 
|  | 7818 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } | 
|  | 7819 |  | 
|  | 7820 | cat >>confdefs.h <<_ACEOF | 
|  | 7821 | #define HOST_LINK_VERSION "$llvm_cv_link_version" | 
|  | 7822 | _ACEOF | 
|  | 7823 |  | 
|  | 7824 |  | 
|  | 7825 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7826 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
|  | 7827 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } | 
|  | 7828 | if test "${llvm_cv_link_use_r+set}" = set; then | 
|  | 7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7830 | else | 
|  | 7831 | ac_ext=c | 
|  | 7832 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7836 |  | 
|  | 7837 | oldcflags="$CFLAGS" | 
|  | 7838 | CFLAGS="$CFLAGS -Wl,-R." | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7839 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7840 | /* confdefs.h.  */ | 
|  | 7841 | _ACEOF | 
|  | 7842 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7843 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7844 | /* end confdefs.h.  */ | 
|  | 7845 |  | 
|  | 7846 | int | 
|  | 7847 | main () | 
|  | 7848 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7849 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7850 | ; | 
|  | 7851 | return 0; | 
|  | 7852 | } | 
|  | 7853 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7855 | if { (ac_try="$ac_link" | 
|  | 7856 | case "(($ac_try" in | 
|  | 7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7858 | *) ac_try_echo=$ac_try;; | 
|  | 7859 | esac | 
|  | 7860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7861 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7862 | ac_status=$? | 
|  | 7863 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7864 | rm -f conftest.er1 | 
|  | 7865 | cat conftest.err >&5 | 
|  | 7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7867 | (exit $ac_status); } && | 
|  | 7868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 7875 | ac_status=$? | 
|  | 7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7877 | (exit $ac_status); }; } && | 
|  | 7878 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7879 | { (case "(($ac_try" in | 
|  | 7880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7881 | *) ac_try_echo=$ac_try;; | 
|  | 7882 | esac | 
|  | 7883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7884 | (eval "$ac_try") 2>&5 | 
|  | 7885 | ac_status=$? | 
|  | 7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7887 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7888 | llvm_cv_link_use_r=yes | 
|  | 7889 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7890 | echo "$as_me: failed program was:" >&5 | 
|  | 7891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7892 |  | 
|  | 7893 | llvm_cv_link_use_r=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7894 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7895 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7896 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7897 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7898 | CFLAGS="$oldcflags" | 
|  | 7899 | ac_ext=c | 
|  | 7900 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7904 |  | 
|  | 7905 |  | 
|  | 7906 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7907 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
|  | 7908 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7909 | if test "$llvm_cv_link_use_r" = yes ; then | 
|  | 7910 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7911 | cat >>confdefs.h <<\_ACEOF | 
|  | 7912 | #define HAVE_LINK_R 1 | 
|  | 7913 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7914 |  | 
|  | 7915 | fi | 
|  | 7916 |  | 
|  | 7917 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7918 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 | 
|  | 7919 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } | 
|  | 7920 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then | 
|  | 7921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7922 | else | 
|  | 7923 | ac_ext=c | 
|  | 7924 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7928 |  | 
|  | 7929 | oldcflags="$CFLAGS" | 
|  | 7930 | CFLAGS="$CFLAGS -Wl,-export-dynamic" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7931 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7932 | /* confdefs.h.  */ | 
|  | 7933 | _ACEOF | 
|  | 7934 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7935 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7936 | /* end confdefs.h.  */ | 
|  | 7937 |  | 
|  | 7938 | int | 
|  | 7939 | main () | 
|  | 7940 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7941 |  | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7942 | ; | 
|  | 7943 | return 0; | 
|  | 7944 | } | 
|  | 7945 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7946 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7947 | if { (ac_try="$ac_link" | 
|  | 7948 | case "(($ac_try" in | 
|  | 7949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7950 | *) ac_try_echo=$ac_try;; | 
|  | 7951 | esac | 
|  | 7952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7953 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7954 | ac_status=$? | 
|  | 7955 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7956 | rm -f conftest.er1 | 
|  | 7957 | cat conftest.err >&5 | 
|  | 7958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7959 | (exit $ac_status); } && | 
|  | 7960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 7967 | ac_status=$? | 
|  | 7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7969 | (exit $ac_status); }; } && | 
|  | 7970 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7971 | { (case "(($ac_try" in | 
|  | 7972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7973 | *) ac_try_echo=$ac_try;; | 
|  | 7974 | esac | 
|  | 7975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7976 | (eval "$ac_try") 2>&5 | 
|  | 7977 | ac_status=$? | 
|  | 7978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7979 | (exit $ac_status); }; }; then | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7980 | llvm_cv_link_use_export_dynamic=yes | 
|  | 7981 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7982 | echo "$as_me: failed program was:" >&5 | 
|  | 7983 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7984 |  | 
|  | 7985 | llvm_cv_link_use_export_dynamic=no | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7986 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7987 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7988 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7989 | conftest$ac_exeext conftest.$ac_ext | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7990 | CFLAGS="$oldcflags" | 
|  | 7991 | ac_ext=c | 
|  | 7992 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7996 |  | 
|  | 7997 |  | 
|  | 7998 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7999 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 | 
|  | 8000 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8001 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then | 
|  | 8002 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8003 | cat >>confdefs.h <<\_ACEOF | 
|  | 8004 | #define HAVE_LINK_EXPORT_DYNAMIC 1 | 
|  | 8005 | _ACEOF | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8006 |  | 
|  | 8007 | fi | 
|  | 8008 |  | 
|  | 8009 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8010 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 | 
|  | 8011 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } | 
|  | 8012 | if test "${llvm_cv_link_use_version_script+set}" = set; then | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8014 | else | 
|  | 8015 | ac_ext=c | 
|  | 8016 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8020 |  | 
|  | 8021 | oldcflags="$CFLAGS" | 
|  | 8022 |  | 
|  | 8023 | # The following code is from the autoconf manual, | 
|  | 8024 | # "11.13: Limitations of Usual Tools". | 
|  | 8025 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). | 
|  | 8026 | # Use mktemp if possible; otherwise fall back on mkdir, | 
|  | 8027 | # with $RANDOM to make collisions less likely. | 
|  | 8028 | : ${TMPDIR=/tmp} | 
|  | 8029 | { | 
|  | 8030 | tmp=` | 
|  | 8031 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null | 
|  | 8032 | ` && | 
|  | 8033 | test -n "$tmp" && test -d "$tmp" | 
|  | 8034 | } || { | 
|  | 8035 | tmp=$TMPDIR/foo$$-$RANDOM | 
|  | 8036 | (umask 077 && mkdir "$tmp") | 
|  | 8037 | } || exit $? | 
|  | 8038 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8039 | echo "{" > "$tmp/export.map" | 
|  | 8040 | echo "  global: main;" >> "$tmp/export.map" | 
|  | 8041 | echo "  local: *;" >> "$tmp/export.map" | 
|  | 8042 | echo "};" >> "$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8043 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8044 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8045 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8046 | /* confdefs.h.  */ | 
|  | 8047 | _ACEOF | 
|  | 8048 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8049 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8050 | /* end confdefs.h.  */ | 
|  | 8051 |  | 
|  | 8052 | int | 
|  | 8053 | main () | 
|  | 8054 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8055 |  | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8056 | ; | 
|  | 8057 | return 0; | 
|  | 8058 | } | 
|  | 8059 | _ACEOF | 
|  | 8060 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8061 | if { (ac_try="$ac_link" | 
|  | 8062 | case "(($ac_try" in | 
|  | 8063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8064 | *) ac_try_echo=$ac_try;; | 
|  | 8065 | esac | 
|  | 8066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8067 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8068 | ac_status=$? | 
|  | 8069 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8070 | rm -f conftest.er1 | 
|  | 8071 | cat conftest.err >&5 | 
|  | 8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8073 | (exit $ac_status); } && | 
|  | 8074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 8081 | ac_status=$? | 
|  | 8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8083 | (exit $ac_status); }; } && | 
|  | 8084 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8085 | { (case "(($ac_try" in | 
|  | 8086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8087 | *) ac_try_echo=$ac_try;; | 
|  | 8088 | esac | 
|  | 8089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8090 | (eval "$ac_try") 2>&5 | 
|  | 8091 | ac_status=$? | 
|  | 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8093 | (exit $ac_status); }; }; then | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8094 | llvm_cv_link_use_version_script=yes | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8095 | else | 
|  | 8096 | echo "$as_me: failed program was:" >&5 | 
|  | 8097 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8098 |  | 
| Dan Gohman | c699831 | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8099 | llvm_cv_link_use_version_script=no | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8100 | fi | 
|  | 8101 |  | 
|  | 8102 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8103 | conftest$ac_exeext conftest.$ac_ext | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8104 | rm "$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8105 | rmdir "$tmp" | 
|  | 8106 | CFLAGS="$oldcflags" | 
|  | 8107 | ac_ext=c | 
|  | 8108 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8112 |  | 
|  | 8113 |  | 
|  | 8114 | fi | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8115 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 | 
|  | 8116 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } | 
|  | 8117 | if test "$llvm_cv_link_use_version_script" = yes ; then | 
|  | 8118 | HAVE_LINK_VERSION_SCRIPT=1 | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8119 |  | 
|  | 8120 | fi | 
|  | 8121 |  | 
|  | 8122 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8123 |  | 
|  | 8124 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8125 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
|  | 8126 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | 
|  | 8127 | if test "${ac_cv_c_const+set}" = set; then | 
|  | 8128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8129 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8130 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8131 | /* confdefs.h.  */ | 
|  | 8132 | _ACEOF | 
|  | 8133 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8134 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8135 | /* end confdefs.h.  */ | 
|  | 8136 |  | 
|  | 8137 | int | 
|  | 8138 | main () | 
|  | 8139 | { | 
|  | 8140 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 8141 | #ifndef __cplusplus | 
|  | 8142 | /* Ultrix mips cc rejects this.  */ | 
|  | 8143 | typedef int charset[2]; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8144 | const charset x; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8145 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8146 | char const *const *ccp; | 
|  | 8147 | char **p; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8148 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 8149 | struct point {int x, y;}; | 
|  | 8150 | static struct point const zero = {0,0}; | 
|  | 8151 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 8152 | It does not let you subtract one const X* pointer from another in | 
|  | 8153 | an arm of an if-expression whose if-part is not a constant | 
|  | 8154 | expression */ | 
|  | 8155 | const char *g = "string"; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8156 | ccp = &g + (g ? g-g : 0); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8157 | /* HPUX 7.0 cc rejects these. */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8158 | ++ccp; | 
|  | 8159 | p = (char**) ccp; | 
|  | 8160 | ccp = (char const *const *) p; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8161 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 8162 | char *t; | 
|  | 8163 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|  | 8164 |  | 
|  | 8165 | *t++ = 0; | 
|  | 8166 | if (s) return 0; | 
|  | 8167 | } | 
|  | 8168 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 8169 | int x[] = {25, 17}; | 
|  | 8170 | const int *foo = &x[0]; | 
|  | 8171 | ++foo; | 
|  | 8172 | } | 
|  | 8173 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 8174 | typedef const int *iptr; | 
|  | 8175 | iptr p = 0; | 
|  | 8176 | ++p; | 
|  | 8177 | } | 
|  | 8178 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 8179 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 8180 | struct s { int j; const int *ap[3]; }; | 
|  | 8181 | struct s *b; b->j = 5; | 
|  | 8182 | } | 
|  | 8183 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 8184 | const int foo = 10; | 
|  | 8185 | if (!foo) return 0; | 
|  | 8186 | } | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8187 | return !x[0] && !zero.x; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8188 | #endif | 
|  | 8189 |  | 
|  | 8190 | ; | 
|  | 8191 | return 0; | 
|  | 8192 | } | 
|  | 8193 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8194 | rm -f conftest.$ac_objext | 
|  | 8195 | if { (ac_try="$ac_compile" | 
|  | 8196 | case "(($ac_try" in | 
|  | 8197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8198 | *) ac_try_echo=$ac_try;; | 
|  | 8199 | esac | 
|  | 8200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8201 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8202 | ac_status=$? | 
|  | 8203 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8204 | rm -f conftest.er1 | 
|  | 8205 | cat conftest.err >&5 | 
|  | 8206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8207 | (exit $ac_status); } && | 
|  | 8208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 8215 | ac_status=$? | 
|  | 8216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8217 | (exit $ac_status); }; } && | 
|  | 8218 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8219 | { (case "(($ac_try" in | 
|  | 8220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8221 | *) ac_try_echo=$ac_try;; | 
|  | 8222 | esac | 
|  | 8223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8224 | (eval "$ac_try") 2>&5 | 
|  | 8225 | ac_status=$? | 
|  | 8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8227 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8228 | ac_cv_c_const=yes | 
|  | 8229 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8230 | echo "$as_me: failed program was:" >&5 | 
|  | 8231 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8232 |  | 
|  | 8233 | ac_cv_c_const=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8234 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8235 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8237 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8238 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
|  | 8239 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8240 | if test $ac_cv_c_const = no; then | 
|  | 8241 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8242 | cat >>confdefs.h <<\_ACEOF | 
|  | 8243 | #define const | 
|  | 8244 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8245 |  | 
|  | 8246 | fi | 
|  | 8247 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8248 |  | 
|  | 8249 |  | 
|  | 8250 |  | 
|  | 8251 |  | 
|  | 8252 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8253 | ac_header_dirent=no | 
|  | 8254 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8255 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 8256 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 8257 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
|  | 8258 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8260 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8261 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8262 | /* confdefs.h.  */ | 
|  | 8263 | _ACEOF | 
|  | 8264 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8265 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8266 | /* end confdefs.h.  */ | 
|  | 8267 | #include <sys/types.h> | 
|  | 8268 | #include <$ac_hdr> | 
|  | 8269 |  | 
|  | 8270 | int | 
|  | 8271 | main () | 
|  | 8272 | { | 
|  | 8273 | if ((DIR *) 0) | 
|  | 8274 | return 0; | 
|  | 8275 | ; | 
|  | 8276 | return 0; | 
|  | 8277 | } | 
|  | 8278 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8279 | rm -f conftest.$ac_objext | 
|  | 8280 | if { (ac_try="$ac_compile" | 
|  | 8281 | case "(($ac_try" in | 
|  | 8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8283 | *) ac_try_echo=$ac_try;; | 
|  | 8284 | esac | 
|  | 8285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8286 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8287 | ac_status=$? | 
|  | 8288 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8289 | rm -f conftest.er1 | 
|  | 8290 | cat conftest.err >&5 | 
|  | 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8292 | (exit $ac_status); } && | 
|  | 8293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 8300 | ac_status=$? | 
|  | 8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8302 | (exit $ac_status); }; } && | 
|  | 8303 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8304 | { (case "(($ac_try" in | 
|  | 8305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8306 | *) ac_try_echo=$ac_try;; | 
|  | 8307 | esac | 
|  | 8308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8309 | (eval "$ac_try") 2>&5 | 
|  | 8310 | ac_status=$? | 
|  | 8311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8312 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8313 | eval "$as_ac_Header=yes" | 
|  | 8314 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8315 | echo "$as_me: failed program was:" >&5 | 
|  | 8316 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8317 |  | 
|  | 8318 | eval "$as_ac_Header=no" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8319 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8320 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8322 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8323 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8324 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8325 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8326 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8327 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8328 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8329 | _ACEOF | 
|  | 8330 |  | 
|  | 8331 | ac_header_dirent=$ac_hdr; break | 
|  | 8332 | fi | 
|  | 8333 |  | 
|  | 8334 | done | 
|  | 8335 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 8336 | if test $ac_header_dirent = dirent.h; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8337 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 8338 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 8339 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8341 | else | 
|  | 8342 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8343 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8344 | /* confdefs.h.  */ | 
|  | 8345 | _ACEOF | 
|  | 8346 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8347 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8348 | /* end confdefs.h.  */ | 
|  | 8349 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8350 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8351 | Use char because int might match the return type of a GCC | 
|  | 8352 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8353 | #ifdef __cplusplus | 
|  | 8354 | extern "C" | 
|  | 8355 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8356 | char opendir (); | 
|  | 8357 | int | 
|  | 8358 | main () | 
|  | 8359 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8360 | return opendir (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8361 | ; | 
|  | 8362 | return 0; | 
|  | 8363 | } | 
|  | 8364 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8365 | for ac_lib in '' dir; do | 
|  | 8366 | if test -z "$ac_lib"; then | 
|  | 8367 | ac_res="none required" | 
|  | 8368 | else | 
|  | 8369 | ac_res=-l$ac_lib | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8370 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8371 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8372 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8373 | if { (ac_try="$ac_link" | 
|  | 8374 | case "(($ac_try" in | 
|  | 8375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8376 | *) ac_try_echo=$ac_try;; | 
|  | 8377 | esac | 
|  | 8378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8379 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8380 | ac_status=$? | 
|  | 8381 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8382 | rm -f conftest.er1 | 
|  | 8383 | cat conftest.err >&5 | 
|  | 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8385 | (exit $ac_status); } && | 
|  | 8386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 8393 | ac_status=$? | 
|  | 8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8395 | (exit $ac_status); }; } && | 
|  | 8396 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8397 | { (case "(($ac_try" in | 
|  | 8398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8399 | *) ac_try_echo=$ac_try;; | 
|  | 8400 | esac | 
|  | 8401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8402 | (eval "$ac_try") 2>&5 | 
|  | 8403 | ac_status=$? | 
|  | 8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8405 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8406 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8407 | else | 
|  | 8408 | echo "$as_me: failed program was:" >&5 | 
|  | 8409 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8410 |  | 
|  | 8411 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8412 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8413 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8414 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8415 | conftest$ac_exeext | 
|  | 8416 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8417 | break | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8418 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8419 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8420 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8421 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8422 | else | 
|  | 8423 | ac_cv_search_opendir=no | 
|  | 8424 | fi | 
|  | 8425 | rm conftest.$ac_ext | 
|  | 8426 | LIBS=$ac_func_search_save_LIBS | 
|  | 8427 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8428 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 8429 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8430 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8431 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8432 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8433 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8434 | fi | 
|  | 8435 |  | 
|  | 8436 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8437 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 8438 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 8439 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8441 | else | 
|  | 8442 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8443 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8444 | /* confdefs.h.  */ | 
|  | 8445 | _ACEOF | 
|  | 8446 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8447 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8448 | /* end confdefs.h.  */ | 
|  | 8449 |  | 
|  | 8450 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8451 | Use char because int might match the return type of a GCC | 
|  | 8452 | builtin and then its argument prototype would still apply.  */ | 
|  | 8453 | #ifdef __cplusplus | 
|  | 8454 | extern "C" | 
|  | 8455 | #endif | 
|  | 8456 | char opendir (); | 
|  | 8457 | int | 
|  | 8458 | main () | 
|  | 8459 | { | 
|  | 8460 | return opendir (); | 
|  | 8461 | ; | 
|  | 8462 | return 0; | 
|  | 8463 | } | 
|  | 8464 | _ACEOF | 
|  | 8465 | for ac_lib in '' x; do | 
|  | 8466 | if test -z "$ac_lib"; then | 
|  | 8467 | ac_res="none required" | 
|  | 8468 | else | 
|  | 8469 | ac_res=-l$ac_lib | 
|  | 8470 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 8471 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8472 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8473 | if { (ac_try="$ac_link" | 
|  | 8474 | case "(($ac_try" in | 
|  | 8475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8476 | *) ac_try_echo=$ac_try;; | 
|  | 8477 | esac | 
|  | 8478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8479 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8480 | ac_status=$? | 
|  | 8481 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8482 | rm -f conftest.er1 | 
|  | 8483 | cat conftest.err >&5 | 
|  | 8484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8485 | (exit $ac_status); } && | 
|  | 8486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 8493 | ac_status=$? | 
|  | 8494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8495 | (exit $ac_status); }; } && | 
|  | 8496 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8497 | { (case "(($ac_try" in | 
|  | 8498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8499 | *) ac_try_echo=$ac_try;; | 
|  | 8500 | esac | 
|  | 8501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8502 | (eval "$ac_try") 2>&5 | 
|  | 8503 | ac_status=$? | 
|  | 8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8505 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8506 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8507 | else | 
|  | 8508 | echo "$as_me: failed program was:" >&5 | 
|  | 8509 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8510 |  | 
|  | 8511 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8512 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8513 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8514 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8515 | conftest$ac_exeext | 
|  | 8516 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8517 | break | 
|  | 8518 | fi | 
|  | 8519 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8520 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8521 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8522 | else | 
|  | 8523 | ac_cv_search_opendir=no | 
|  | 8524 | fi | 
|  | 8525 | rm conftest.$ac_ext | 
|  | 8526 | LIBS=$ac_func_search_save_LIBS | 
|  | 8527 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8528 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 8529 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8530 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8531 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8532 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 8533 |  | 
|  | 8534 | fi | 
|  | 8535 |  | 
|  | 8536 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8537 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8538 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8539 | for ac_header in dlfcn.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8540 | do | 
|  | 8541 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8542 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8543 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8544 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 8545 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8547 | fi | 
|  | 8548 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8549 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8550 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8551 | else | 
|  | 8552 | # Is the header compilable? | 
|  | 8553 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 8554 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 8555 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8556 | /* confdefs.h.  */ | 
|  | 8557 | _ACEOF | 
|  | 8558 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8559 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8560 | /* end confdefs.h.  */ | 
|  | 8561 | $ac_includes_default | 
|  | 8562 | #include <$ac_header> | 
|  | 8563 | _ACEOF | 
|  | 8564 | rm -f conftest.$ac_objext | 
|  | 8565 | if { (ac_try="$ac_compile" | 
|  | 8566 | case "(($ac_try" in | 
|  | 8567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8568 | *) ac_try_echo=$ac_try;; | 
|  | 8569 | esac | 
|  | 8570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8571 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8572 | ac_status=$? | 
|  | 8573 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8574 | rm -f conftest.er1 | 
|  | 8575 | cat conftest.err >&5 | 
|  | 8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8577 | (exit $ac_status); } && | 
|  | 8578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 8585 | ac_status=$? | 
|  | 8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8587 | (exit $ac_status); }; } && | 
|  | 8588 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8589 | { (case "(($ac_try" in | 
|  | 8590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8591 | *) ac_try_echo=$ac_try;; | 
|  | 8592 | esac | 
|  | 8593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8594 | (eval "$ac_try") 2>&5 | 
|  | 8595 | ac_status=$? | 
|  | 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8597 | (exit $ac_status); }; }; then | 
|  | 8598 | ac_header_compiler=yes | 
|  | 8599 | else | 
|  | 8600 | echo "$as_me: failed program was:" >&5 | 
|  | 8601 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8602 |  | 
|  | 8603 | ac_header_compiler=no | 
|  | 8604 | fi | 
|  | 8605 |  | 
|  | 8606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8607 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 8608 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 8609 |  | 
|  | 8610 | # Is the header present? | 
|  | 8611 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 8612 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 8613 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8614 | /* confdefs.h.  */ | 
|  | 8615 | _ACEOF | 
|  | 8616 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8617 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8618 | /* end confdefs.h.  */ | 
|  | 8619 | #include <$ac_header> | 
|  | 8620 | _ACEOF | 
|  | 8621 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 8622 | case "(($ac_try" in | 
|  | 8623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8624 | *) ac_try_echo=$ac_try;; | 
|  | 8625 | esac | 
|  | 8626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 8628 | ac_status=$? | 
|  | 8629 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8630 | rm -f conftest.er1 | 
|  | 8631 | cat conftest.err >&5 | 
|  | 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8633 | (exit $ac_status); } >/dev/null; then | 
|  | 8634 | if test -s conftest.err; then | 
|  | 8635 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 8636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 8637 | else | 
|  | 8638 | ac_cpp_err= | 
|  | 8639 | fi | 
|  | 8640 | else | 
|  | 8641 | ac_cpp_err=yes | 
|  | 8642 | fi | 
|  | 8643 | if test -z "$ac_cpp_err"; then | 
|  | 8644 | ac_header_preproc=yes | 
|  | 8645 | else | 
|  | 8646 | echo "$as_me: failed program was:" >&5 | 
|  | 8647 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8648 |  | 
|  | 8649 | ac_header_preproc=no | 
|  | 8650 | fi | 
|  | 8651 |  | 
|  | 8652 | rm -f conftest.err conftest.$ac_ext | 
|  | 8653 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 8654 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 8655 |  | 
|  | 8656 | # So?  What about this header? | 
|  | 8657 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 8658 | yes:no: ) | 
|  | 8659 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 8660 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 8661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 8662 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 8663 | ac_header_preproc=yes | 
|  | 8664 | ;; | 
|  | 8665 | no:yes:* ) | 
|  | 8666 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 8667 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 8668 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 8669 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 8670 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 8671 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 8672 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 8673 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 8674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 8675 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 8676 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 8677 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 8678 | ( cat <<\_ASBOX | 
|  | 8679 | ## ----------------------------------- ## | 
|  | 8680 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 8681 | ## ----------------------------------- ## | 
|  | 8682 | _ASBOX | 
|  | 8683 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 8684 | ;; | 
|  | 8685 | esac | 
|  | 8686 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8687 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 8688 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8690 | else | 
|  | 8691 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 8692 | fi | 
|  | 8693 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8694 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8695 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8696 |  | 
|  | 8697 | fi | 
|  | 8698 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8699 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8700 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8701 | _ACEOF | 
|  | 8702 |  | 
|  | 8703 | fi | 
|  | 8704 |  | 
|  | 8705 | done | 
|  | 8706 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8707 | # Check whether --enable-ltdl-install was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8708 | if test "${enable_ltdl_install+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8709 | enableval=$enable_ltdl_install; | 
|  | 8710 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8711 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8712 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8713 |  | 
|  | 8714 |  | 
|  | 8715 | if test x"${enable_ltdl_install-no}" != xno; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8716 | INSTALL_LTDL_TRUE= | 
|  | 8717 | INSTALL_LTDL_FALSE='#' | 
|  | 8718 | else | 
|  | 8719 | INSTALL_LTDL_TRUE='#' | 
|  | 8720 | INSTALL_LTDL_FALSE= | 
|  | 8721 | fi | 
|  | 8722 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8723 |  | 
|  | 8724 |  | 
|  | 8725 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8726 | CONVENIENCE_LTDL_TRUE= | 
|  | 8727 | CONVENIENCE_LTDL_FALSE='#' | 
|  | 8728 | else | 
|  | 8729 | CONVENIENCE_LTDL_TRUE='#' | 
|  | 8730 | CONVENIENCE_LTDL_FALSE= | 
|  | 8731 | fi | 
|  | 8732 |  | 
|  | 8733 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8734 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 8735 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8736 | library_names_spec= | 
|  | 8737 | libname_spec='lib$name' | 
|  | 8738 | soname_spec= | 
|  | 8739 | shrext_cmds=".so" | 
|  | 8740 | postinstall_cmds= | 
|  | 8741 | postuninstall_cmds= | 
|  | 8742 | finish_cmds= | 
|  | 8743 | finish_eval= | 
|  | 8744 | shlibpath_var= | 
|  | 8745 | shlibpath_overrides_runpath=unknown | 
|  | 8746 | version_type=none | 
|  | 8747 | dynamic_linker="$host_os ld.so" | 
|  | 8748 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 8749 | if test "$GCC" = yes; then | 
|  | 8750 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8751 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 8752 | # if the path contains ";" then we assume it to be the separator | 
|  | 8753 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 8754 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 8755 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 8756 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8757 | else | 
|  | 8758 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8759 | fi | 
|  | 8760 | else | 
|  | 8761 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 8762 | fi | 
|  | 8763 | need_lib_prefix=unknown | 
|  | 8764 | hardcode_into_libs=no | 
|  | 8765 |  | 
|  | 8766 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 8767 | # flags to be left without arguments | 
|  | 8768 | need_version=unknown | 
|  | 8769 |  | 
|  | 8770 | case $host_os in | 
|  | 8771 | aix3*) | 
|  | 8772 | version_type=linux | 
|  | 8773 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 8774 | shlibpath_var=LIBPATH | 
|  | 8775 |  | 
|  | 8776 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 8777 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8778 | ;; | 
|  | 8779 |  | 
|  | 8780 | aix4* | aix5*) | 
|  | 8781 | version_type=linux | 
|  | 8782 | need_lib_prefix=no | 
|  | 8783 | need_version=no | 
|  | 8784 | hardcode_into_libs=yes | 
|  | 8785 | if test "$host_cpu" = ia64; then | 
|  | 8786 | # AIX 5 supports IA64 | 
|  | 8787 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 8788 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8789 | else | 
|  | 8790 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 8791 | # for dependence libraries.  The import file would start with | 
|  | 8792 | # the line `#! .'.  This would cause the generated library to | 
|  | 8793 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 8794 | # development snapshots of GCC prior to 3.0. | 
|  | 8795 | case $host_os in | 
|  | 8796 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 8797 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 8798 | echo ' yes ' | 
|  | 8799 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 8800 | : | 
|  | 8801 | else | 
|  | 8802 | can_build_shared=no | 
|  | 8803 | fi | 
|  | 8804 | ;; | 
|  | 8805 | esac | 
|  | 8806 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 8807 | # soname into executable. Probably we can add versioning support to | 
|  | 8808 | # collect2, so additional links can be useful in future. | 
|  | 8809 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 8810 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 8811 | # instead of lib<name>.a to let people know that these are not | 
|  | 8812 | # typical AIX shared libraries. | 
|  | 8813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8814 | else | 
|  | 8815 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 8816 | # and later when we are not doing run time linking. | 
|  | 8817 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 8818 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8819 | fi | 
|  | 8820 | shlibpath_var=LIBPATH | 
|  | 8821 | fi | 
|  | 8822 | ;; | 
|  | 8823 |  | 
|  | 8824 | amigaos*) | 
|  | 8825 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 8826 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 8827 | 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' | 
|  | 8828 | ;; | 
|  | 8829 |  | 
|  | 8830 | beos*) | 
|  | 8831 | library_names_spec='${libname}${shared_ext}' | 
|  | 8832 | dynamic_linker="$host_os ld.so" | 
|  | 8833 | shlibpath_var=LIBRARY_PATH | 
|  | 8834 | ;; | 
|  | 8835 |  | 
|  | 8836 | bsdi[45]*) | 
|  | 8837 | version_type=linux | 
|  | 8838 | need_version=no | 
|  | 8839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8840 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8841 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 8842 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8843 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 8844 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 8845 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 8846 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 8847 | # libtool to hard-code these into programs | 
|  | 8848 | ;; | 
|  | 8849 |  | 
|  | 8850 | cygwin* | mingw* | pw32*) | 
|  | 8851 | version_type=windows | 
|  | 8852 | shrext_cmds=".dll" | 
|  | 8853 | need_version=no | 
|  | 8854 | need_lib_prefix=no | 
|  | 8855 |  | 
|  | 8856 | case $GCC,$host_os in | 
|  | 8857 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 8858 | library_names_spec='$libname.dll.a' | 
|  | 8859 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 8860 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 8861 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 8862 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 8863 | test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8864 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 8865 | chmod a+x \$dldir/$dlname' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8866 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 8867 | dlpath=$dir/\$dldll~ | 
|  | 8868 | $rm \$dlpath' | 
|  | 8869 | shlibpath_overrides_runpath=yes | 
|  | 8870 |  | 
|  | 8871 | case $host_os in | 
|  | 8872 | cygwin*) | 
|  | 8873 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 8874 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8875 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
|  | 8876 | ;; | 
|  | 8877 | mingw*) | 
|  | 8878 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 8879 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8880 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8881 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 8882 | # It is most probably a Windows format PATH printed by | 
|  | 8883 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 8884 | # path with ; separators, and with drive letters. We can handle the | 
|  | 8885 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 8886 | # especially as we might pass files found there to a mingw objdump, | 
|  | 8887 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 8888 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8889 | else | 
|  | 8890 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8891 | fi | 
|  | 8892 | ;; | 
|  | 8893 | pw32*) | 
|  | 8894 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8895 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8896 | ;; | 
|  | 8897 | esac | 
|  | 8898 | ;; | 
|  | 8899 |  | 
|  | 8900 | *) | 
|  | 8901 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 8902 | ;; | 
|  | 8903 | esac | 
|  | 8904 | dynamic_linker='Win32 ld.exe' | 
|  | 8905 | # FIXME: first we should search . and the directory the executable is in | 
|  | 8906 | shlibpath_var=PATH | 
|  | 8907 | ;; | 
|  | 8908 |  | 
|  | 8909 | darwin* | rhapsody*) | 
|  | 8910 | dynamic_linker="$host_os dyld" | 
|  | 8911 | version_type=darwin | 
|  | 8912 | need_lib_prefix=no | 
|  | 8913 | need_version=no | 
|  | 8914 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 8915 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 8916 | shlibpath_overrides_runpath=yes | 
|  | 8917 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 28d3e72 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8918 | shrext_cmds='.dylib' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8919 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 8920 | if test "$GCC" = yes; then | 
|  | 8921 | 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"` | 
|  | 8922 | else | 
|  | 8923 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
|  | 8924 | fi | 
|  | 8925 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 8926 | ;; | 
|  | 8927 |  | 
|  | 8928 | dgux*) | 
|  | 8929 | version_type=linux | 
|  | 8930 | need_lib_prefix=no | 
|  | 8931 | need_version=no | 
|  | 8932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 8933 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8934 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8935 | ;; | 
|  | 8936 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8937 | freebsd1.*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8938 | dynamic_linker=no | 
|  | 8939 | ;; | 
|  | 8940 |  | 
|  | 8941 | kfreebsd*-gnu) | 
|  | 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 | shlibpath_overrides_runpath=no | 
|  | 8949 | hardcode_into_libs=yes | 
|  | 8950 | dynamic_linker='GNU ld.so' | 
|  | 8951 | ;; | 
|  | 8952 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8953 | freebsd* | dragonfly*) | 
|  | 8954 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 8955 | # versioning mechanism, adjust this. | 
|  | 8956 | if test -x /usr/bin/objformat; then | 
|  | 8957 | objformat=`/usr/bin/objformat` | 
|  | 8958 | else | 
|  | 8959 | case $host_os in | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8960 | freebsd[123].*) objformat=aout ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8961 | *) objformat=elf ;; | 
|  | 8962 | esac | 
|  | 8963 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8964 | version_type=freebsd-$objformat | 
|  | 8965 | case $version_type in | 
|  | 8966 | freebsd-elf*) | 
|  | 8967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 8968 | need_version=no | 
|  | 8969 | need_lib_prefix=no | 
|  | 8970 | ;; | 
|  | 8971 | freebsd-*) | 
|  | 8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 8973 | need_version=yes | 
|  | 8974 | ;; | 
|  | 8975 | esac | 
|  | 8976 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8977 | case $host_os in | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8978 | freebsd2.*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8979 | shlibpath_overrides_runpath=yes | 
|  | 8980 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8981 | freebsd3.[01]* | freebsdelf3.[01]*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8982 | shlibpath_overrides_runpath=yes | 
|  | 8983 | hardcode_into_libs=yes | 
|  | 8984 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8985 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 8986 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8987 | shlibpath_overrides_runpath=no | 
|  | 8988 | hardcode_into_libs=yes | 
|  | 8989 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8990 | freebsd*) # from 4.6 on | 
|  | 8991 | shlibpath_overrides_runpath=yes | 
|  | 8992 | hardcode_into_libs=yes | 
|  | 8993 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8994 | esac | 
|  | 8995 | ;; | 
|  | 8996 |  | 
|  | 8997 | gnu*) | 
|  | 8998 | version_type=linux | 
|  | 8999 | need_lib_prefix=no | 
|  | 9000 | need_version=no | 
|  | 9001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 9002 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9003 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9004 | hardcode_into_libs=yes | 
|  | 9005 | ;; | 
|  | 9006 |  | 
|  | 9007 | hpux9* | hpux10* | hpux11*) | 
|  | 9008 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 9009 | # link against other versions. | 
|  | 9010 | version_type=sunos | 
|  | 9011 | need_lib_prefix=no | 
|  | 9012 | need_version=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9013 | case $host_cpu in | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9014 | ia64*) | 
|  | 9015 | shrext_cmds='.so' | 
|  | 9016 | hardcode_into_libs=yes | 
|  | 9017 | dynamic_linker="$host_os dld.so" | 
|  | 9018 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9019 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 9020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9021 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9022 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 9023 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 9024 | else | 
|  | 9025 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 9026 | fi | 
|  | 9027 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 9028 | ;; | 
|  | 9029 | hppa*64*) | 
|  | 9030 | shrext_cmds='.sl' | 
|  | 9031 | hardcode_into_libs=yes | 
|  | 9032 | dynamic_linker="$host_os dld.sl" | 
|  | 9033 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 9034 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 9035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9036 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9037 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 9038 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 9039 | ;; | 
|  | 9040 | *) | 
|  | 9041 | shrext_cmds='.sl' | 
|  | 9042 | dynamic_linker="$host_os dld.sl" | 
|  | 9043 | shlibpath_var=SHLIB_PATH | 
|  | 9044 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 9045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9046 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9047 | ;; | 
|  | 9048 | esac | 
|  | 9049 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 9050 | postinstall_cmds='chmod 555 $lib' | 
|  | 9051 | ;; | 
|  | 9052 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9053 | interix3*) | 
|  | 9054 | version_type=linux | 
|  | 9055 | need_lib_prefix=no | 
|  | 9056 | need_version=no | 
|  | 9057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 9058 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9059 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 9060 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9061 | shlibpath_overrides_runpath=no | 
|  | 9062 | hardcode_into_libs=yes | 
|  | 9063 | ;; | 
|  | 9064 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9065 | irix5* | irix6* | nonstopux*) | 
|  | 9066 | case $host_os in | 
|  | 9067 | nonstopux*) version_type=nonstopux ;; | 
|  | 9068 | *) | 
|  | 9069 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 9070 | version_type=linux | 
|  | 9071 | else | 
|  | 9072 | version_type=irix | 
|  | 9073 | fi ;; | 
|  | 9074 | esac | 
|  | 9075 | need_lib_prefix=no | 
|  | 9076 | need_version=no | 
|  | 9077 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 9079 | case $host_os in | 
|  | 9080 | irix5* | nonstopux*) | 
|  | 9081 | libsuff= shlibsuff= | 
|  | 9082 | ;; | 
|  | 9083 | *) | 
|  | 9084 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 9085 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 9086 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 9087 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 9088 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 9089 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 9090 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 9091 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 9092 | esac | 
|  | 9093 | ;; | 
|  | 9094 | esac | 
|  | 9095 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 9096 | shlibpath_overrides_runpath=no | 
|  | 9097 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 9098 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 9099 | hardcode_into_libs=yes | 
|  | 9100 | ;; | 
|  | 9101 |  | 
|  | 9102 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 9103 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 9104 | dynamic_linker=no | 
|  | 9105 | ;; | 
|  | 9106 |  | 
|  | 9107 | # This must be Linux ELF. | 
|  | 9108 | linux*) | 
|  | 9109 | version_type=linux | 
|  | 9110 | need_lib_prefix=no | 
|  | 9111 | need_version=no | 
|  | 9112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9113 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9114 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 9115 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9116 | shlibpath_overrides_runpath=no | 
|  | 9117 | # This implies no fast_install, which is unacceptable. | 
|  | 9118 | # Some rework will be needed to allow for fast_install | 
|  | 9119 | # before this can be enabled. | 
|  | 9120 | hardcode_into_libs=yes | 
|  | 9121 |  | 
|  | 9122 | # Append ld.so.conf contents to the search path | 
|  | 9123 | if test -f /etc/ld.so.conf; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9124 | 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 | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9125 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 9126 | fi | 
|  | 9127 |  | 
|  | 9128 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 9129 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 9130 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 9131 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 9132 | # people can always --disable-shared, the test was removed, and we | 
|  | 9133 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 9134 | dynamic_linker='GNU/Linux ld.so' | 
|  | 9135 | ;; | 
|  | 9136 |  | 
|  | 9137 | knetbsd*-gnu) | 
|  | 9138 | version_type=linux | 
|  | 9139 | need_lib_prefix=no | 
|  | 9140 | need_version=no | 
|  | 9141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 9142 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9143 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9144 | shlibpath_overrides_runpath=no | 
|  | 9145 | hardcode_into_libs=yes | 
|  | 9146 | dynamic_linker='GNU ld.so' | 
|  | 9147 | ;; | 
|  | 9148 |  | 
|  | 9149 | netbsd*) | 
|  | 9150 | version_type=sunos | 
|  | 9151 | need_lib_prefix=no | 
|  | 9152 | need_version=no | 
|  | 9153 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 9154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9155 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 9156 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 9157 | else | 
|  | 9158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 9159 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9160 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 9161 | fi | 
|  | 9162 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9163 | shlibpath_overrides_runpath=yes | 
|  | 9164 | hardcode_into_libs=yes | 
|  | 9165 | ;; | 
|  | 9166 |  | 
|  | 9167 | newsos6) | 
|  | 9168 | version_type=linux | 
|  | 9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9170 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9171 | shlibpath_overrides_runpath=yes | 
|  | 9172 | ;; | 
|  | 9173 |  | 
|  | 9174 | nto-qnx*) | 
|  | 9175 | version_type=linux | 
|  | 9176 | need_lib_prefix=no | 
|  | 9177 | need_version=no | 
|  | 9178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9179 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9180 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9181 | shlibpath_overrides_runpath=yes | 
|  | 9182 | ;; | 
|  | 9183 |  | 
|  | 9184 | openbsd*) | 
|  | 9185 | version_type=sunos | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9186 | sys_lib_dlsearch_path_spec="/usr/lib" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9187 | need_lib_prefix=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9188 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 9189 | case $host_os in | 
|  | 9190 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
|  | 9191 | *)                         need_version=no  ;; | 
|  | 9192 | esac | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 9195 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9196 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 9197 | case $host_os in | 
|  | 9198 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 9199 | shlibpath_overrides_runpath=no | 
|  | 9200 | ;; | 
|  | 9201 | *) | 
|  | 9202 | shlibpath_overrides_runpath=yes | 
|  | 9203 | ;; | 
|  | 9204 | esac | 
|  | 9205 | else | 
|  | 9206 | shlibpath_overrides_runpath=yes | 
|  | 9207 | fi | 
|  | 9208 | ;; | 
|  | 9209 |  | 
|  | 9210 | os2*) | 
|  | 9211 | libname_spec='$name' | 
|  | 9212 | shrext_cmds=".dll" | 
|  | 9213 | need_lib_prefix=no | 
|  | 9214 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 9215 | dynamic_linker='OS/2 ld.exe' | 
|  | 9216 | shlibpath_var=LIBPATH | 
|  | 9217 | ;; | 
|  | 9218 |  | 
|  | 9219 | osf3* | osf4* | osf5*) | 
|  | 9220 | version_type=osf | 
|  | 9221 | need_lib_prefix=no | 
|  | 9222 | need_version=no | 
|  | 9223 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9225 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9226 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 9227 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 9228 | ;; | 
|  | 9229 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9230 | solaris*) | 
|  | 9231 | version_type=linux | 
|  | 9232 | need_lib_prefix=no | 
|  | 9233 | need_version=no | 
|  | 9234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9235 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9236 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9237 | shlibpath_overrides_runpath=yes | 
|  | 9238 | hardcode_into_libs=yes | 
|  | 9239 | # ldd complains unless libraries are executable | 
|  | 9240 | postinstall_cmds='chmod +x $lib' | 
|  | 9241 | ;; | 
|  | 9242 |  | 
|  | 9243 | sunos4*) | 
|  | 9244 | version_type=sunos | 
|  | 9245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9246 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 9247 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9248 | shlibpath_overrides_runpath=yes | 
|  | 9249 | if test "$with_gnu_ld" = yes; then | 
|  | 9250 | need_lib_prefix=no | 
|  | 9251 | fi | 
|  | 9252 | need_version=yes | 
|  | 9253 | ;; | 
|  | 9254 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9255 | sysv4 | sysv4.3*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9256 | version_type=linux | 
|  | 9257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9258 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9259 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9260 | case $host_vendor in | 
|  | 9261 | sni) | 
|  | 9262 | shlibpath_overrides_runpath=no | 
|  | 9263 | need_lib_prefix=no | 
|  | 9264 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 9265 | runpath_var=LD_RUN_PATH | 
|  | 9266 | ;; | 
|  | 9267 | siemens) | 
|  | 9268 | need_lib_prefix=no | 
|  | 9269 | ;; | 
|  | 9270 | motorola) | 
|  | 9271 | need_lib_prefix=no | 
|  | 9272 | need_version=no | 
|  | 9273 | shlibpath_overrides_runpath=no | 
|  | 9274 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 9275 | ;; | 
|  | 9276 | esac | 
|  | 9277 | ;; | 
|  | 9278 |  | 
|  | 9279 | sysv4*MP*) | 
|  | 9280 | if test -d /usr/nec ;then | 
|  | 9281 | version_type=linux | 
|  | 9282 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 9283 | soname_spec='$libname${shared_ext}.$major' | 
|  | 9284 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9285 | fi | 
|  | 9286 | ;; | 
|  | 9287 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9288 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 9289 | version_type=freebsd-elf | 
|  | 9290 | need_lib_prefix=no | 
|  | 9291 | need_version=no | 
|  | 9292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 9293 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9294 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9295 | hardcode_into_libs=yes | 
|  | 9296 | if test "$with_gnu_ld" = yes; then | 
|  | 9297 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 9298 | shlibpath_overrides_runpath=no | 
|  | 9299 | else | 
|  | 9300 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 9301 | shlibpath_overrides_runpath=yes | 
|  | 9302 | case $host_os in | 
|  | 9303 | sco3.2v5*) | 
|  | 9304 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 9305 | ;; | 
|  | 9306 | esac | 
|  | 9307 | fi | 
|  | 9308 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 9309 | ;; | 
|  | 9310 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9311 | uts4*) | 
|  | 9312 | version_type=linux | 
|  | 9313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9314 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9315 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9316 | ;; | 
|  | 9317 |  | 
|  | 9318 | *) | 
|  | 9319 | dynamic_linker=no | 
|  | 9320 | ;; | 
|  | 9321 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9322 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 9323 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9324 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 9325 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9326 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 9327 | if test "$GCC" = yes; then | 
|  | 9328 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 9329 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9330 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9331 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9332 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
|  | 9333 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } | 
|  | 9334 | if test "${libltdl_cv_shlibext+set}" = set; then | 
|  | 9335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9336 | else | 
|  | 9337 |  | 
|  | 9338 | module=yes | 
|  | 9339 | eval libltdl_cv_shlibext=$shrext_cmds | 
|  | 9340 |  | 
|  | 9341 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9342 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
|  | 9343 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9344 | if test -n "$libltdl_cv_shlibext"; then | 
|  | 9345 |  | 
|  | 9346 | cat >>confdefs.h <<_ACEOF | 
|  | 9347 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
|  | 9348 | _ACEOF | 
|  | 9349 |  | 
|  | 9350 | fi | 
|  | 9351 |  | 
|  | 9352 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9353 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
|  | 9354 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } | 
|  | 9355 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
|  | 9356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9357 | else | 
|  | 9358 | libltdl_cv_shlibpath_var="$shlibpath_var" | 
|  | 9359 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9360 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
|  | 9361 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9362 | if test -n "$libltdl_cv_shlibpath_var"; then | 
|  | 9363 |  | 
|  | 9364 | cat >>confdefs.h <<_ACEOF | 
|  | 9365 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
|  | 9366 | _ACEOF | 
|  | 9367 |  | 
|  | 9368 | fi | 
|  | 9369 |  | 
|  | 9370 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9371 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
|  | 9372 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } | 
|  | 9373 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
|  | 9374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9375 | else | 
|  | 9376 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
|  | 9377 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9378 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
|  | 9379 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9380 | if test -n "$libltdl_cv_sys_search_path"; then | 
|  | 9381 | sys_search_path= | 
|  | 9382 | for dir in $libltdl_cv_sys_search_path; do | 
|  | 9383 | if test -z "$sys_search_path"; then | 
|  | 9384 | sys_search_path="$dir" | 
|  | 9385 | else | 
|  | 9386 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
|  | 9387 | fi | 
|  | 9388 | done | 
|  | 9389 |  | 
|  | 9390 | cat >>confdefs.h <<_ACEOF | 
|  | 9391 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
|  | 9392 | _ACEOF | 
|  | 9393 |  | 
|  | 9394 | fi | 
|  | 9395 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9396 | { echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 9397 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | 
|  | 9398 | if test "${libltdl_cv_objdir+set}" = set; then | 
|  | 9399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9400 | else | 
|  | 9401 | libltdl_cv_objdir="$objdir" | 
|  | 9402 | if test -n "$objdir"; then | 
|  | 9403 | : | 
|  | 9404 | else | 
|  | 9405 | rm -f .libs 2>/dev/null | 
|  | 9406 | mkdir .libs 2>/dev/null | 
|  | 9407 | if test -d .libs; then | 
|  | 9408 | libltdl_cv_objdir=.libs | 
|  | 9409 | else | 
|  | 9410 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 9411 | libltdl_cv_objdir=_libs | 
|  | 9412 | fi | 
|  | 9413 | rmdir .libs 2>/dev/null | 
|  | 9414 | fi | 
|  | 9415 |  | 
|  | 9416 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9417 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
|  | 9418 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9419 |  | 
|  | 9420 | cat >>confdefs.h <<_ACEOF | 
|  | 9421 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
|  | 9422 | _ACEOF | 
|  | 9423 |  | 
|  | 9424 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9425 |  | 
|  | 9426 |  | 
|  | 9427 |  | 
|  | 9428 |  | 
|  | 9429 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9430 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 9431 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | 
|  | 9432 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 9433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9434 | else | 
|  | 9435 |  | 
|  | 9436 | # These are sane defaults that work on at least a few old systems. | 
|  | 9437 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 9438 |  | 
|  | 9439 | # Character class describing NM global symbol codes. | 
|  | 9440 | symcode='[BCDEGRST]' | 
|  | 9441 |  | 
|  | 9442 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 9443 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 9444 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9445 | # Transform an extracted symbol line into a proper C declaration | 
|  | 9446 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 9447 |  | 
|  | 9448 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 9449 | 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'" | 
|  | 9450 |  | 
|  | 9451 | # Define system-specific variables. | 
|  | 9452 | case $host_os in | 
|  | 9453 | aix*) | 
|  | 9454 | symcode='[BCDT]' | 
|  | 9455 | ;; | 
|  | 9456 | cygwin* | mingw* | pw32*) | 
|  | 9457 | symcode='[ABCDGISTW]' | 
|  | 9458 | ;; | 
|  | 9459 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 9460 | if test "$host_cpu" = ia64; then | 
|  | 9461 | symcode='[ABCDEGRST]' | 
|  | 9462 | fi | 
|  | 9463 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 9464 | 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'" | 
|  | 9465 | ;; | 
|  | 9466 | linux*) | 
|  | 9467 | if test "$host_cpu" = ia64; then | 
|  | 9468 | symcode='[ABCDGIRSTW]' | 
|  | 9469 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 9470 | 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'" | 
|  | 9471 | fi | 
|  | 9472 | ;; | 
|  | 9473 | irix* | nonstopux*) | 
|  | 9474 | symcode='[BCDEGRST]' | 
|  | 9475 | ;; | 
|  | 9476 | osf*) | 
|  | 9477 | symcode='[BCDEGQRST]' | 
|  | 9478 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9479 | solaris*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9480 | symcode='[BDRT]' | 
|  | 9481 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9482 | sco3.2v5*) | 
|  | 9483 | symcode='[DT]' | 
|  | 9484 | ;; | 
|  | 9485 | sysv4.2uw2*) | 
|  | 9486 | symcode='[DT]' | 
|  | 9487 | ;; | 
|  | 9488 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 9489 | symcode='[ABDT]' | 
|  | 9490 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9491 | sysv4) | 
|  | 9492 | symcode='[DFNSTU]' | 
|  | 9493 | ;; | 
|  | 9494 | esac | 
|  | 9495 |  | 
|  | 9496 | # Handle CRLF in mingw tool chain | 
|  | 9497 | opt_cr= | 
|  | 9498 | case $build_os in | 
|  | 9499 | mingw*) | 
|  | 9500 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 9501 | ;; | 
|  | 9502 | esac | 
|  | 9503 |  | 
|  | 9504 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 9505 | case `$NM -V 2>&1` in | 
|  | 9506 | *GNU* | *'with BFD'*) | 
|  | 9507 | symcode='[ABCDGIRSTW]' ;; | 
|  | 9508 | esac | 
|  | 9509 |  | 
|  | 9510 | # Try without a prefix undercore, then with it. | 
|  | 9511 | for ac_symprfx in "" "_"; do | 
|  | 9512 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9513 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
|  | 9514 | symxfrm="\\1 $ac_symprfx\\2 \\2" | 
|  | 9515 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9516 | # Write the raw and C identifiers. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9517 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9518 |  | 
|  | 9519 | # Check to see that the pipe works correctly. | 
|  | 9520 | pipe_works=no | 
|  | 9521 |  | 
|  | 9522 | rm -f conftest* | 
|  | 9523 | cat > conftest.$ac_ext <<EOF | 
|  | 9524 | #ifdef __cplusplus | 
|  | 9525 | extern "C" { | 
|  | 9526 | #endif | 
|  | 9527 | char nm_test_var; | 
|  | 9528 | void nm_test_func(){} | 
|  | 9529 | #ifdef __cplusplus | 
|  | 9530 | } | 
|  | 9531 | #endif | 
|  | 9532 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 9533 | EOF | 
|  | 9534 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9536 | (eval $ac_compile) 2>&5 | 
|  | 9537 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9539 | (exit $ac_status); }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9540 | # Now try to grab the symbols. | 
|  | 9541 | nlist=conftest.nm | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9542 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9543 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 9544 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9546 | (exit $ac_status); } && test -s "$nlist"; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9547 | # Try sorting and uniquifying the output. | 
|  | 9548 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 9549 | mv -f "$nlist"T "$nlist" | 
|  | 9550 | else | 
|  | 9551 | rm -f "$nlist"T | 
|  | 9552 | fi | 
|  | 9553 |  | 
|  | 9554 | # Make sure that we snagged all the symbols we need. | 
|  | 9555 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 9556 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 9557 | cat <<EOF > conftest.$ac_ext | 
|  | 9558 | #ifdef __cplusplus | 
|  | 9559 | extern "C" { | 
|  | 9560 | #endif | 
|  | 9561 |  | 
|  | 9562 | EOF | 
|  | 9563 | # Now generate the symbol file. | 
|  | 9564 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 9565 |  | 
|  | 9566 | cat <<EOF >> conftest.$ac_ext | 
|  | 9567 | #if defined (__STDC__) && __STDC__ | 
|  | 9568 | # define lt_ptr_t void * | 
|  | 9569 | #else | 
|  | 9570 | # define lt_ptr_t char * | 
|  | 9571 | # define const | 
|  | 9572 | #endif | 
|  | 9573 |  | 
|  | 9574 | /* The mapping between symbol names and symbols. */ | 
|  | 9575 | const struct { | 
|  | 9576 | const char *name; | 
|  | 9577 | lt_ptr_t address; | 
|  | 9578 | } | 
|  | 9579 | lt_preloaded_symbols[] = | 
|  | 9580 | { | 
|  | 9581 | EOF | 
|  | 9582 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 9583 | cat <<\EOF >> conftest.$ac_ext | 
|  | 9584 | {0, (lt_ptr_t) 0} | 
|  | 9585 | }; | 
|  | 9586 |  | 
|  | 9587 | #ifdef __cplusplus | 
|  | 9588 | } | 
|  | 9589 | #endif | 
|  | 9590 | EOF | 
|  | 9591 | # Now try linking the two files. | 
|  | 9592 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 9593 | lt_save_LIBS="$LIBS" | 
|  | 9594 | lt_save_CFLAGS="$CFLAGS" | 
|  | 9595 | LIBS="conftstm.$ac_objext" | 
|  | 9596 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9598 | (eval $ac_link) 2>&5 | 
|  | 9599 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9601 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9602 | pipe_works=yes | 
|  | 9603 | fi | 
|  | 9604 | LIBS="$lt_save_LIBS" | 
|  | 9605 | CFLAGS="$lt_save_CFLAGS" | 
|  | 9606 | else | 
|  | 9607 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 9608 | fi | 
|  | 9609 | else | 
|  | 9610 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 9611 | fi | 
|  | 9612 | else | 
|  | 9613 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 9614 | fi | 
|  | 9615 | else | 
|  | 9616 | echo "$progname: failed program was:" >&5 | 
|  | 9617 | cat conftest.$ac_ext >&5 | 
|  | 9618 | fi | 
|  | 9619 | rm -f conftest* conftst* | 
|  | 9620 |  | 
|  | 9621 | # Do not use the global_symbol_pipe unless it works. | 
|  | 9622 | if test "$pipe_works" = yes; then | 
|  | 9623 | break | 
|  | 9624 | else | 
|  | 9625 | lt_cv_sys_global_symbol_pipe= | 
|  | 9626 | fi | 
|  | 9627 | done | 
|  | 9628 |  | 
|  | 9629 | fi | 
|  | 9630 |  | 
|  | 9631 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 9632 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 9633 | fi | 
|  | 9634 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9635 | { echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 9636 | echo "${ECHO_T}failed" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9637 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9638 | { echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 9639 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9640 | fi | 
|  | 9641 |  | 
|  | 9642 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9643 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
|  | 9644 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } | 
|  | 9645 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
|  | 9646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9647 | else | 
|  | 9648 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 9649 | libltdl_cv_preloaded_symbols=yes | 
|  | 9650 | else | 
|  | 9651 | libltdl_cv_preloaded_symbols=no | 
|  | 9652 | fi | 
|  | 9653 |  | 
|  | 9654 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9655 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
|  | 9656 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9657 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
|  | 9658 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9659 | cat >>confdefs.h <<\_ACEOF | 
|  | 9660 | #define HAVE_PRELOADED_SYMBOLS 1 | 
|  | 9661 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9662 |  | 
|  | 9663 | fi | 
|  | 9664 |  | 
|  | 9665 | LIBADD_DL= | 
|  | 9666 |  | 
|  | 9667 | ac_ext=c | 
|  | 9668 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 9669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 9670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 9671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 9672 |  | 
|  | 9673 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9674 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 9675 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | 
|  | 9676 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 9677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9678 | else | 
|  | 9679 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9680 | /* confdefs.h.  */ | 
|  | 9681 | _ACEOF | 
|  | 9682 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9683 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9684 | /* end confdefs.h.  */ | 
|  | 9685 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 9686 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9687 | #define shl_load innocuous_shl_load | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9688 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9689 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9690 | which can conflict with char shl_load (); below. | 
|  | 9691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9692 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9693 |  | 
|  | 9694 | #ifdef __STDC__ | 
|  | 9695 | # include <limits.h> | 
|  | 9696 | #else | 
|  | 9697 | # include <assert.h> | 
|  | 9698 | #endif | 
|  | 9699 |  | 
|  | 9700 | #undef shl_load | 
|  | 9701 |  | 
|  | 9702 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9703 | Use char because int might match the return type of a GCC | 
|  | 9704 | builtin and then its argument prototype would still apply.  */ | 
|  | 9705 | #ifdef __cplusplus | 
|  | 9706 | extern "C" | 
|  | 9707 | #endif | 
|  | 9708 | char shl_load (); | 
|  | 9709 | /* The GNU C library defines this for functions which it implements | 
|  | 9710 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9711 | something starting with __ and the normal name is an alias.  */ | 
|  | 9712 | #if defined __stub_shl_load || defined __stub___shl_load | 
|  | 9713 | choke me | 
|  | 9714 | #endif | 
|  | 9715 |  | 
|  | 9716 | int | 
|  | 9717 | main () | 
|  | 9718 | { | 
|  | 9719 | return shl_load (); | 
|  | 9720 | ; | 
|  | 9721 | return 0; | 
|  | 9722 | } | 
|  | 9723 | _ACEOF | 
|  | 9724 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9725 | if { (ac_try="$ac_link" | 
|  | 9726 | case "(($ac_try" in | 
|  | 9727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9728 | *) ac_try_echo=$ac_try;; | 
|  | 9729 | esac | 
|  | 9730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9731 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9732 | ac_status=$? | 
|  | 9733 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9734 | rm -f conftest.er1 | 
|  | 9735 | cat conftest.err >&5 | 
|  | 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9737 | (exit $ac_status); } && | 
|  | 9738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 9745 | ac_status=$? | 
|  | 9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9747 | (exit $ac_status); }; } && | 
|  | 9748 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9749 | { (case "(($ac_try" in | 
|  | 9750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9751 | *) ac_try_echo=$ac_try;; | 
|  | 9752 | esac | 
|  | 9753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9754 | (eval "$ac_try") 2>&5 | 
|  | 9755 | ac_status=$? | 
|  | 9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9757 | (exit $ac_status); }; }; then | 
|  | 9758 | ac_cv_func_shl_load=yes | 
|  | 9759 | else | 
|  | 9760 | echo "$as_me: failed program was:" >&5 | 
|  | 9761 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9762 |  | 
|  | 9763 | ac_cv_func_shl_load=no | 
|  | 9764 | fi | 
|  | 9765 |  | 
|  | 9766 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9767 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9768 | fi | 
|  | 9769 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 9770 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | 
|  | 9771 | if test $ac_cv_func_shl_load = yes; then | 
|  | 9772 |  | 
|  | 9773 | cat >>confdefs.h <<\_ACEOF | 
|  | 9774 | #define HAVE_SHL_LOAD 1 | 
|  | 9775 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9776 |  | 
|  | 9777 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9778 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 9779 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | 
|  | 9780 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 9781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9782 | else | 
|  | 9783 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9784 | LIBS="-ldld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9785 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9786 | /* confdefs.h.  */ | 
|  | 9787 | _ACEOF | 
|  | 9788 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9789 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9790 | /* end confdefs.h.  */ | 
|  | 9791 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9792 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9793 | Use char because int might match the return type of a GCC | 
|  | 9794 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9795 | #ifdef __cplusplus | 
|  | 9796 | extern "C" | 
|  | 9797 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9798 | char shl_load (); | 
|  | 9799 | int | 
|  | 9800 | main () | 
|  | 9801 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9802 | return shl_load (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9803 | ; | 
|  | 9804 | return 0; | 
|  | 9805 | } | 
|  | 9806 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9807 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9808 | if { (ac_try="$ac_link" | 
|  | 9809 | case "(($ac_try" in | 
|  | 9810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9811 | *) ac_try_echo=$ac_try;; | 
|  | 9812 | esac | 
|  | 9813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9814 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9815 | ac_status=$? | 
|  | 9816 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9817 | rm -f conftest.er1 | 
|  | 9818 | cat conftest.err >&5 | 
|  | 9819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9820 | (exit $ac_status); } && | 
|  | 9821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 9828 | ac_status=$? | 
|  | 9829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9830 | (exit $ac_status); }; } && | 
|  | 9831 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9832 | { (case "(($ac_try" in | 
|  | 9833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9834 | *) ac_try_echo=$ac_try;; | 
|  | 9835 | esac | 
|  | 9836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9837 | (eval "$ac_try") 2>&5 | 
|  | 9838 | ac_status=$? | 
|  | 9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9840 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9841 | ac_cv_lib_dld_shl_load=yes | 
|  | 9842 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9843 | echo "$as_me: failed program was:" >&5 | 
|  | 9844 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9845 |  | 
|  | 9846 | ac_cv_lib_dld_shl_load=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9847 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9848 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9849 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9850 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9851 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9852 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9853 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9854 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | 
|  | 9855 | if test $ac_cv_lib_dld_shl_load = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9856 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9857 | cat >>confdefs.h <<\_ACEOF | 
|  | 9858 | #define HAVE_SHL_LOAD 1 | 
|  | 9859 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9860 |  | 
|  | 9861 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 9862 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9863 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 9864 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 
|  | 9865 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 9866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9867 | else | 
|  | 9868 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9869 | LIBS="-ldl  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9870 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9871 | /* confdefs.h.  */ | 
|  | 9872 | _ACEOF | 
|  | 9873 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9874 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9875 | /* end confdefs.h.  */ | 
|  | 9876 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9877 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9878 | Use char because int might match the return type of a GCC | 
|  | 9879 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9880 | #ifdef __cplusplus | 
|  | 9881 | extern "C" | 
|  | 9882 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9883 | char dlopen (); | 
|  | 9884 | int | 
|  | 9885 | main () | 
|  | 9886 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9887 | return dlopen (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9888 | ; | 
|  | 9889 | return 0; | 
|  | 9890 | } | 
|  | 9891 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9892 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9893 | if { (ac_try="$ac_link" | 
|  | 9894 | case "(($ac_try" in | 
|  | 9895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9896 | *) ac_try_echo=$ac_try;; | 
|  | 9897 | esac | 
|  | 9898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9899 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9900 | ac_status=$? | 
|  | 9901 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9902 | rm -f conftest.er1 | 
|  | 9903 | cat conftest.err >&5 | 
|  | 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9905 | (exit $ac_status); } && | 
|  | 9906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 9913 | ac_status=$? | 
|  | 9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9915 | (exit $ac_status); }; } && | 
|  | 9916 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9917 | { (case "(($ac_try" in | 
|  | 9918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9919 | *) ac_try_echo=$ac_try;; | 
|  | 9920 | esac | 
|  | 9921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9922 | (eval "$ac_try") 2>&5 | 
|  | 9923 | ac_status=$? | 
|  | 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9925 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9926 | ac_cv_lib_dl_dlopen=yes | 
|  | 9927 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9928 | echo "$as_me: failed program was:" >&5 | 
|  | 9929 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9930 |  | 
|  | 9931 | ac_cv_lib_dl_dlopen=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9932 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9933 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9934 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9935 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9936 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9937 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9938 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9939 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | 
|  | 9940 | if test $ac_cv_lib_dl_dlopen = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9941 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9942 | cat >>confdefs.h <<\_ACEOF | 
|  | 9943 | #define HAVE_LIBDL 1 | 
|  | 9944 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9945 |  | 
|  | 9946 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
|  | 9947 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9948 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9949 | /* confdefs.h.  */ | 
|  | 9950 | _ACEOF | 
|  | 9951 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9952 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9953 | /* end confdefs.h.  */ | 
|  | 9954 | #if HAVE_DLFCN_H | 
|  | 9955 | #  include <dlfcn.h> | 
|  | 9956 | #endif | 
|  | 9957 |  | 
|  | 9958 | int | 
|  | 9959 | main () | 
|  | 9960 | { | 
|  | 9961 | dlopen(0, 0); | 
|  | 9962 | ; | 
|  | 9963 | return 0; | 
|  | 9964 | } | 
|  | 9965 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9966 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9967 | if { (ac_try="$ac_link" | 
|  | 9968 | case "(($ac_try" in | 
|  | 9969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9970 | *) ac_try_echo=$ac_try;; | 
|  | 9971 | esac | 
|  | 9972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9973 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9974 | ac_status=$? | 
|  | 9975 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9976 | rm -f conftest.er1 | 
|  | 9977 | cat conftest.err >&5 | 
|  | 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9979 | (exit $ac_status); } && | 
|  | 9980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 9987 | ac_status=$? | 
|  | 9988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9989 | (exit $ac_status); }; } && | 
|  | 9990 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9991 | { (case "(($ac_try" in | 
|  | 9992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9993 | *) ac_try_echo=$ac_try;; | 
|  | 9994 | esac | 
|  | 9995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9996 | (eval "$ac_try") 2>&5 | 
|  | 9997 | ac_status=$? | 
|  | 9998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9999 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10000 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10001 | cat >>confdefs.h <<\_ACEOF | 
|  | 10002 | #define HAVE_LIBDL 1 | 
|  | 10003 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | libltdl_cv_func_dlopen="yes" | 
|  | 10005 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10006 | echo "$as_me: failed program was:" >&5 | 
|  | 10007 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10008 |  | 
|  | 10009 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 10010 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | 
|  | 10011 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 10012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10013 | else | 
|  | 10014 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10015 | LIBS="-lsvld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10016 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10017 | /* confdefs.h.  */ | 
|  | 10018 | _ACEOF | 
|  | 10019 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10020 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10021 | /* end confdefs.h.  */ | 
|  | 10022 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10023 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10024 | Use char because int might match the return type of a GCC | 
|  | 10025 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10026 | #ifdef __cplusplus | 
|  | 10027 | extern "C" | 
|  | 10028 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10029 | char dlopen (); | 
|  | 10030 | int | 
|  | 10031 | main () | 
|  | 10032 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10033 | return dlopen (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10034 | ; | 
|  | 10035 | return 0; | 
|  | 10036 | } | 
|  | 10037 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10038 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10039 | if { (ac_try="$ac_link" | 
|  | 10040 | case "(($ac_try" in | 
|  | 10041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10042 | *) ac_try_echo=$ac_try;; | 
|  | 10043 | esac | 
|  | 10044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10045 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10046 | ac_status=$? | 
|  | 10047 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10048 | rm -f conftest.er1 | 
|  | 10049 | cat conftest.err >&5 | 
|  | 10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10051 | (exit $ac_status); } && | 
|  | 10052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 10059 | ac_status=$? | 
|  | 10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10061 | (exit $ac_status); }; } && | 
|  | 10062 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10063 | { (case "(($ac_try" in | 
|  | 10064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10065 | *) ac_try_echo=$ac_try;; | 
|  | 10066 | esac | 
|  | 10067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10068 | (eval "$ac_try") 2>&5 | 
|  | 10069 | ac_status=$? | 
|  | 10070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10071 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10072 | ac_cv_lib_svld_dlopen=yes | 
|  | 10073 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10074 | echo "$as_me: failed program was:" >&5 | 
|  | 10075 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10076 |  | 
|  | 10077 | ac_cv_lib_svld_dlopen=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10078 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10079 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10080 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10081 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10082 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10083 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10084 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 10085 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | 
|  | 10086 | if test $ac_cv_lib_svld_dlopen = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10087 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10088 | cat >>confdefs.h <<\_ACEOF | 
|  | 10089 | #define HAVE_LIBDL 1 | 
|  | 10090 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10091 |  | 
|  | 10092 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
|  | 10093 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10094 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 10095 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | 
|  | 10096 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 10097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10098 | else | 
|  | 10099 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10100 | LIBS="-ldld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10101 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10102 | /* confdefs.h.  */ | 
|  | 10103 | _ACEOF | 
|  | 10104 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10105 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10106 | /* end confdefs.h.  */ | 
|  | 10107 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10108 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10109 | Use char because int might match the return type of a GCC | 
|  | 10110 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10111 | #ifdef __cplusplus | 
|  | 10112 | extern "C" | 
|  | 10113 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10114 | char dld_link (); | 
|  | 10115 | int | 
|  | 10116 | main () | 
|  | 10117 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10118 | return dld_link (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10119 | ; | 
|  | 10120 | return 0; | 
|  | 10121 | } | 
|  | 10122 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10123 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10124 | if { (ac_try="$ac_link" | 
|  | 10125 | case "(($ac_try" in | 
|  | 10126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10127 | *) ac_try_echo=$ac_try;; | 
|  | 10128 | esac | 
|  | 10129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10130 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10131 | ac_status=$? | 
|  | 10132 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10133 | rm -f conftest.er1 | 
|  | 10134 | cat conftest.err >&5 | 
|  | 10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10136 | (exit $ac_status); } && | 
|  | 10137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 10144 | ac_status=$? | 
|  | 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10146 | (exit $ac_status); }; } && | 
|  | 10147 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10148 | { (case "(($ac_try" in | 
|  | 10149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10150 | *) ac_try_echo=$ac_try;; | 
|  | 10151 | esac | 
|  | 10152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10153 | (eval "$ac_try") 2>&5 | 
|  | 10154 | ac_status=$? | 
|  | 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10156 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10157 | ac_cv_lib_dld_dld_link=yes | 
|  | 10158 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10159 | echo "$as_me: failed program was:" >&5 | 
|  | 10160 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10161 |  | 
|  | 10162 | ac_cv_lib_dld_dld_link=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10164 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10165 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10166 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10167 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10168 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10169 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 10170 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | 
|  | 10171 | if test $ac_cv_lib_dld_dld_link = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10172 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10173 | cat >>confdefs.h <<\_ACEOF | 
|  | 10174 | #define HAVE_DLD 1 | 
|  | 10175 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10176 |  | 
|  | 10177 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 10178 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10179 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
|  | 10180 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } | 
|  | 10181 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
|  | 10182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10183 | else | 
|  | 10184 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10185 | /* confdefs.h.  */ | 
|  | 10186 | _ACEOF | 
|  | 10187 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10188 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10189 | /* end confdefs.h.  */ | 
|  | 10190 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
|  | 10191 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10192 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10193 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10194 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10195 | which can conflict with char _dyld_func_lookup (); below. | 
|  | 10196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10197 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10198 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10199 | #ifdef __STDC__ | 
|  | 10200 | # include <limits.h> | 
|  | 10201 | #else | 
|  | 10202 | # include <assert.h> | 
|  | 10203 | #endif | 
|  | 10204 |  | 
|  | 10205 | #undef _dyld_func_lookup | 
|  | 10206 |  | 
|  | 10207 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10208 | Use char because int might match the return type of a GCC | 
|  | 10209 | builtin and then its argument prototype would still apply.  */ | 
|  | 10210 | #ifdef __cplusplus | 
|  | 10211 | extern "C" | 
|  | 10212 | #endif | 
|  | 10213 | char _dyld_func_lookup (); | 
|  | 10214 | /* The GNU C library defines this for functions which it implements | 
|  | 10215 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10216 | something starting with __ and the normal name is an alias.  */ | 
|  | 10217 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup | 
|  | 10218 | choke me | 
|  | 10219 | #endif | 
|  | 10220 |  | 
|  | 10221 | int | 
|  | 10222 | main () | 
|  | 10223 | { | 
|  | 10224 | return _dyld_func_lookup (); | 
|  | 10225 | ; | 
|  | 10226 | return 0; | 
|  | 10227 | } | 
|  | 10228 | _ACEOF | 
|  | 10229 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10230 | if { (ac_try="$ac_link" | 
|  | 10231 | case "(($ac_try" in | 
|  | 10232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10233 | *) ac_try_echo=$ac_try;; | 
|  | 10234 | esac | 
|  | 10235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10236 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10237 | ac_status=$? | 
|  | 10238 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10239 | rm -f conftest.er1 | 
|  | 10240 | cat conftest.err >&5 | 
|  | 10241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10242 | (exit $ac_status); } && | 
|  | 10243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 10250 | ac_status=$? | 
|  | 10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10252 | (exit $ac_status); }; } && | 
|  | 10253 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10254 | { (case "(($ac_try" in | 
|  | 10255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10256 | *) ac_try_echo=$ac_try;; | 
|  | 10257 | esac | 
|  | 10258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10259 | (eval "$ac_try") 2>&5 | 
|  | 10260 | ac_status=$? | 
|  | 10261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10262 | (exit $ac_status); }; }; then | 
|  | 10263 | ac_cv_func__dyld_func_lookup=yes | 
|  | 10264 | else | 
|  | 10265 | echo "$as_me: failed program was:" >&5 | 
|  | 10266 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10267 |  | 
|  | 10268 | ac_cv_func__dyld_func_lookup=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10269 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10270 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10271 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10272 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10273 | fi | 
|  | 10274 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
|  | 10275 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } | 
|  | 10276 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
|  | 10277 |  | 
|  | 10278 | cat >>confdefs.h <<\_ACEOF | 
|  | 10279 | #define HAVE_DYLD 1 | 
|  | 10280 | _ACEOF | 
|  | 10281 |  | 
|  | 10282 | fi | 
|  | 10283 |  | 
|  | 10284 |  | 
|  | 10285 | fi | 
|  | 10286 |  | 
|  | 10287 |  | 
|  | 10288 | fi | 
|  | 10289 |  | 
|  | 10290 |  | 
|  | 10291 | fi | 
|  | 10292 |  | 
|  | 10293 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10294 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10295 |  | 
|  | 10296 | fi | 
|  | 10297 |  | 
|  | 10298 |  | 
|  | 10299 | fi | 
|  | 10300 |  | 
|  | 10301 |  | 
|  | 10302 | fi | 
|  | 10303 |  | 
|  | 10304 |  | 
|  | 10305 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
|  | 10306 | then | 
|  | 10307 | lt_save_LIBS="$LIBS" | 
|  | 10308 | LIBS="$LIBS $LIBADD_DL" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10309 |  | 
|  | 10310 | for ac_func in dlerror | 
|  | 10311 | do | 
|  | 10312 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10313 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 10314 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 10315 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10317 | else | 
|  | 10318 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10319 | /* confdefs.h.  */ | 
|  | 10320 | _ACEOF | 
|  | 10321 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10322 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10323 | /* end confdefs.h.  */ | 
|  | 10324 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 10325 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10326 | #define $ac_func innocuous_$ac_func | 
|  | 10327 |  | 
|  | 10328 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10329 | which can conflict with char $ac_func (); below. | 
|  | 10330 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10331 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 10332 |  | 
|  | 10333 | #ifdef __STDC__ | 
|  | 10334 | # include <limits.h> | 
|  | 10335 | #else | 
|  | 10336 | # include <assert.h> | 
|  | 10337 | #endif | 
|  | 10338 |  | 
|  | 10339 | #undef $ac_func | 
|  | 10340 |  | 
|  | 10341 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10342 | Use char because int might match the return type of a GCC | 
|  | 10343 | builtin and then its argument prototype would still apply.  */ | 
|  | 10344 | #ifdef __cplusplus | 
|  | 10345 | extern "C" | 
|  | 10346 | #endif | 
|  | 10347 | char $ac_func (); | 
|  | 10348 | /* The GNU C library defines this for functions which it implements | 
|  | 10349 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10350 | something starting with __ and the normal name is an alias.  */ | 
|  | 10351 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 10352 | choke me | 
|  | 10353 | #endif | 
|  | 10354 |  | 
|  | 10355 | int | 
|  | 10356 | main () | 
|  | 10357 | { | 
|  | 10358 | return $ac_func (); | 
|  | 10359 | ; | 
|  | 10360 | return 0; | 
|  | 10361 | } | 
|  | 10362 | _ACEOF | 
|  | 10363 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10364 | if { (ac_try="$ac_link" | 
|  | 10365 | case "(($ac_try" in | 
|  | 10366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10367 | *) ac_try_echo=$ac_try;; | 
|  | 10368 | esac | 
|  | 10369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10370 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10371 | ac_status=$? | 
|  | 10372 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10373 | rm -f conftest.er1 | 
|  | 10374 | cat conftest.err >&5 | 
|  | 10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10376 | (exit $ac_status); } && | 
|  | 10377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 10384 | ac_status=$? | 
|  | 10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10386 | (exit $ac_status); }; } && | 
|  | 10387 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10388 | { (case "(($ac_try" in | 
|  | 10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10390 | *) ac_try_echo=$ac_try;; | 
|  | 10391 | esac | 
|  | 10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10393 | (eval "$ac_try") 2>&5 | 
|  | 10394 | ac_status=$? | 
|  | 10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10396 | (exit $ac_status); }; }; then | 
|  | 10397 | eval "$as_ac_var=yes" | 
|  | 10398 | else | 
|  | 10399 | echo "$as_me: failed program was:" >&5 | 
|  | 10400 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10401 |  | 
|  | 10402 | eval "$as_ac_var=no" | 
|  | 10403 | fi | 
|  | 10404 |  | 
|  | 10405 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10406 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10407 | fi | 
|  | 10408 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 10409 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10410 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10411 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10412 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10413 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10414 | _ACEOF | 
|  | 10415 |  | 
|  | 10416 | fi | 
|  | 10417 | done | 
|  | 10418 |  | 
|  | 10419 | LIBS="$lt_save_LIBS" | 
|  | 10420 | fi | 
|  | 10421 | ac_ext=c | 
|  | 10422 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10426 |  | 
|  | 10427 |  | 
|  | 10428 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10429 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
|  | 10430 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } | 
|  | 10431 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
|  | 10432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10433 | else | 
|  | 10434 | ac_cv_sys_symbol_underscore=no | 
|  | 10435 | cat > conftest.$ac_ext <<EOF | 
|  | 10436 | void nm_test_func(){} | 
|  | 10437 | int main(){nm_test_func;return 0;} | 
|  | 10438 | EOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10440 | (eval $ac_compile) 2>&5 | 
|  | 10441 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10443 | (exit $ac_status); }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10444 | # Now try to grab the symbols. | 
|  | 10445 | ac_nlist=conftest.nm | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10446 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10447 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
|  | 10448 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10450 | (exit $ac_status); } && test -s "$ac_nlist"; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10451 | # See whether the symbols have a leading underscore. | 
|  | 10452 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
|  | 10453 | ac_cv_sys_symbol_underscore=yes | 
|  | 10454 | else | 
|  | 10455 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
|  | 10456 | : | 
|  | 10457 | else | 
|  | 10458 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
|  | 10459 | fi | 
|  | 10460 | fi | 
|  | 10461 | else | 
|  | 10462 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 10463 | fi | 
|  | 10464 | else | 
|  | 10465 | echo "configure: failed program was:" >&5 | 
|  | 10466 | cat conftest.c >&5 | 
|  | 10467 | fi | 
|  | 10468 | rm -rf conftest* | 
|  | 10469 |  | 
|  | 10470 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10471 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
|  | 10472 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10473 |  | 
|  | 10474 |  | 
|  | 10475 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
|  | 10476 | if test x"$libltdl_cv_func_dlopen" = xyes || | 
|  | 10477 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10478 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
|  | 10479 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } | 
|  | 10480 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
|  | 10481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10482 | else | 
|  | 10483 | libltdl_cv_need_uscore=unknown | 
|  | 10484 | save_LIBS="$LIBS" | 
|  | 10485 | LIBS="$LIBS $LIBADD_DL" | 
|  | 10486 | if test "$cross_compiling" = yes; then : | 
|  | 10487 | libltdl_cv_need_uscore=cross | 
|  | 10488 | else | 
|  | 10489 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 10490 | lt_status=$lt_dlunknown | 
|  | 10491 | cat > conftest.$ac_ext <<EOF | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame^] | 10492 | #line 10492 "configure" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10493 | #include "confdefs.h" | 
|  | 10494 |  | 
|  | 10495 | #if HAVE_DLFCN_H | 
|  | 10496 | #include <dlfcn.h> | 
|  | 10497 | #endif | 
|  | 10498 |  | 
|  | 10499 | #include <stdio.h> | 
|  | 10500 |  | 
|  | 10501 | #ifdef RTLD_GLOBAL | 
|  | 10502 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 10503 | #else | 
|  | 10504 | #  ifdef DL_GLOBAL | 
|  | 10505 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 10506 | #  else | 
|  | 10507 | #    define LT_DLGLOBAL		0 | 
|  | 10508 | #  endif | 
|  | 10509 | #endif | 
|  | 10510 |  | 
|  | 10511 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 10512 | find out it does not work in some platform. */ | 
|  | 10513 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 10514 | #  ifdef RTLD_LAZY | 
|  | 10515 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 10516 | #  else | 
|  | 10517 | #    ifdef DL_LAZY | 
|  | 10518 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 10519 | #    else | 
|  | 10520 | #      ifdef RTLD_NOW | 
|  | 10521 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 10522 | #      else | 
|  | 10523 | #        ifdef DL_NOW | 
|  | 10524 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 10525 | #        else | 
|  | 10526 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 10527 | #        endif | 
|  | 10528 | #      endif | 
|  | 10529 | #    endif | 
|  | 10530 | #  endif | 
|  | 10531 | #endif | 
|  | 10532 |  | 
|  | 10533 | #ifdef __cplusplus | 
|  | 10534 | extern "C" void exit (int); | 
|  | 10535 | #endif | 
|  | 10536 |  | 
|  | 10537 | void fnord() { int i=42;} | 
|  | 10538 | int main () | 
|  | 10539 | { | 
|  | 10540 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 10541 | int status = $lt_dlunknown; | 
|  | 10542 |  | 
|  | 10543 | if (self) | 
|  | 10544 | { | 
|  | 10545 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 10546 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 10547 | /* dlclose (self); */ | 
|  | 10548 | } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10549 | else | 
|  | 10550 | puts (dlerror ()); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10551 |  | 
|  | 10552 | exit (status); | 
|  | 10553 | } | 
|  | 10554 | EOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10556 | (eval $ac_link) 2>&5 | 
|  | 10557 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10559 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10560 | (./conftest; exit; ) >&5 2>/dev/null | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10561 | lt_status=$? | 
|  | 10562 | case x$lt_status in | 
|  | 10563 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
|  | 10564 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10565 | x$lt_dlunknown|x*)  ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10566 | esac | 
|  | 10567 | else : | 
|  | 10568 | # compilation failed | 
|  | 10569 |  | 
|  | 10570 | fi | 
|  | 10571 | fi | 
|  | 10572 | rm -fr conftest* | 
|  | 10573 |  | 
|  | 10574 | LIBS="$save_LIBS" | 
|  | 10575 |  | 
|  | 10576 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10577 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
|  | 10578 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | fi | 
|  | 10580 | fi | 
|  | 10581 |  | 
|  | 10582 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
|  | 10583 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10584 | cat >>confdefs.h <<\_ACEOF | 
|  | 10585 | #define NEED_USCORE 1 | 
|  | 10586 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10587 |  | 
|  | 10588 | fi | 
|  | 10589 |  | 
|  | 10590 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10591 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
|  | 10592 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } | 
|  | 10593 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
|  | 10594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10595 | else | 
|  | 10596 | # PORTME does your system automatically load deplibs for dlopen? | 
|  | 10597 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
|  | 10598 | # For now, we just catch OSes we know something about -- in the | 
|  | 10599 | # future, we'll try test this programmatically. | 
|  | 10600 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10601 | case "$host_os" in | 
|  | 10602 | aix3*|aix4.1.*|aix4.2.*) | 
|  | 10603 | # Unknown whether this is true for these versions of AIX, but | 
|  | 10604 | # we want this `case' here to explicitly catch those versions. | 
|  | 10605 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10606 | ;; | 
|  | 10607 | aix[45]*) | 
|  | 10608 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10609 | ;; | 
|  | 10610 | darwin*) | 
|  | 10611 | # Assuming the user has installed a libdl from somewhere, this is true | 
|  | 10612 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
|  | 10613 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10614 | ;; | 
|  | 10615 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
|  | 10616 | # GNU and its variants, using gnu ld.so (Glibc) | 
|  | 10617 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10618 | ;; | 
|  | 10619 | hpux10*|hpux11*) | 
|  | 10620 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10621 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10622 | interix*) | 
|  | 10623 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10624 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10625 | irix[12345]*|irix6.[01]*) | 
|  | 10626 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 
|  | 10627 | # know how it worked for any of those versions. | 
|  | 10628 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10629 | ;; | 
|  | 10630 | irix*) | 
|  | 10631 | # The case above catches anything before 6.2, and it's known that | 
|  | 10632 | # at 6.2 and later dlopen does load deplibs. | 
|  | 10633 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10634 | ;; | 
|  | 10635 | netbsd*) | 
|  | 10636 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10637 | ;; | 
|  | 10638 | openbsd*) | 
|  | 10639 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10640 | ;; | 
|  | 10641 | osf[1234]*) | 
|  | 10642 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
|  | 10643 | # it did *not* use an RPATH in a shared library to find objects the | 
| Chris Lattner | 0ab5e2c | 2011-04-15 05:18:47 +0000 | [diff] [blame] | 10644 | # library depends on, so we explicitly say `no'. | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10645 | libltdl_cv_sys_dlopen_deplibs=no | 
|  | 10646 | ;; | 
|  | 10647 | osf5.0|osf5.0a|osf5.1) | 
|  | 10648 | # dlopen *does* load deplibs and with the right loader patch applied | 
|  | 10649 | # it even uses RPATH in a shared library to search for shared objects | 
|  | 10650 | # that the library depends on, but there's no easy way to know if that | 
|  | 10651 | # patch is installed.  Since this is the case, all we can really | 
|  | 10652 | # say is unknown -- it depends on the patch being installed.  If | 
|  | 10653 | # it is, this changes to `yes'.  Without it, it would be `no'. | 
|  | 10654 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10655 | ;; | 
|  | 10656 | osf*) | 
|  | 10657 | # the two cases above should catch all versions of osf <= 5.1.  Read | 
|  | 10658 | # the comments above for what we know about them. | 
|  | 10659 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
|  | 10660 | # is used to find them so we can finally say `yes'. | 
|  | 10661 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10662 | ;; | 
|  | 10663 | solaris*) | 
|  | 10664 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10665 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10666 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 10667 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10668 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10669 | esac | 
|  | 10670 |  | 
|  | 10671 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10672 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
|  | 10673 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10674 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
|  | 10675 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10676 | cat >>confdefs.h <<\_ACEOF | 
|  | 10677 | #define LTDL_DLOPEN_DEPLIBS 1 | 
|  | 10678 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10679 |  | 
|  | 10680 | fi | 
|  | 10681 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10682 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10683 | for ac_header in argz.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10684 | do | 
|  | 10685 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 10686 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10687 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10691 | fi | 
|  | 10692 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10693 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10694 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10695 | else | 
|  | 10696 | # Is the header compilable? | 
|  | 10697 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 10698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 10699 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10700 | /* confdefs.h.  */ | 
|  | 10701 | _ACEOF | 
|  | 10702 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10703 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10704 | /* end confdefs.h.  */ | 
|  | 10705 | $ac_includes_default | 
|  | 10706 | #include <$ac_header> | 
|  | 10707 | _ACEOF | 
|  | 10708 | rm -f conftest.$ac_objext | 
|  | 10709 | if { (ac_try="$ac_compile" | 
|  | 10710 | case "(($ac_try" in | 
|  | 10711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10712 | *) ac_try_echo=$ac_try;; | 
|  | 10713 | esac | 
|  | 10714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10715 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10716 | ac_status=$? | 
|  | 10717 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10718 | rm -f conftest.er1 | 
|  | 10719 | cat conftest.err >&5 | 
|  | 10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10721 | (exit $ac_status); } && | 
|  | 10722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 10729 | ac_status=$? | 
|  | 10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10731 | (exit $ac_status); }; } && | 
|  | 10732 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10733 | { (case "(($ac_try" in | 
|  | 10734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10735 | *) ac_try_echo=$ac_try;; | 
|  | 10736 | esac | 
|  | 10737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10738 | (eval "$ac_try") 2>&5 | 
|  | 10739 | ac_status=$? | 
|  | 10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10741 | (exit $ac_status); }; }; then | 
|  | 10742 | ac_header_compiler=yes | 
|  | 10743 | else | 
|  | 10744 | echo "$as_me: failed program was:" >&5 | 
|  | 10745 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10746 |  | 
|  | 10747 | ac_header_compiler=no | 
|  | 10748 | fi | 
|  | 10749 |  | 
|  | 10750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10751 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 10752 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 10753 |  | 
|  | 10754 | # Is the header present? | 
|  | 10755 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 10756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 10757 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10758 | /* confdefs.h.  */ | 
|  | 10759 | _ACEOF | 
|  | 10760 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10761 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10762 | /* end confdefs.h.  */ | 
|  | 10763 | #include <$ac_header> | 
|  | 10764 | _ACEOF | 
|  | 10765 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 10766 | case "(($ac_try" in | 
|  | 10767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10768 | *) ac_try_echo=$ac_try;; | 
|  | 10769 | esac | 
|  | 10770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 10772 | ac_status=$? | 
|  | 10773 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10774 | rm -f conftest.er1 | 
|  | 10775 | cat conftest.err >&5 | 
|  | 10776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10777 | (exit $ac_status); } >/dev/null; then | 
|  | 10778 | if test -s conftest.err; then | 
|  | 10779 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 10780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 10781 | else | 
|  | 10782 | ac_cpp_err= | 
|  | 10783 | fi | 
|  | 10784 | else | 
|  | 10785 | ac_cpp_err=yes | 
|  | 10786 | fi | 
|  | 10787 | if test -z "$ac_cpp_err"; then | 
|  | 10788 | ac_header_preproc=yes | 
|  | 10789 | else | 
|  | 10790 | echo "$as_me: failed program was:" >&5 | 
|  | 10791 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10792 |  | 
|  | 10793 | ac_header_preproc=no | 
|  | 10794 | fi | 
|  | 10795 |  | 
|  | 10796 | rm -f conftest.err conftest.$ac_ext | 
|  | 10797 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 10798 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 10799 |  | 
|  | 10800 | # So?  What about this header? | 
|  | 10801 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 10802 | yes:no: ) | 
|  | 10803 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 10804 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 10805 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 10806 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 10807 | ac_header_preproc=yes | 
|  | 10808 | ;; | 
|  | 10809 | no:yes:* ) | 
|  | 10810 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 10811 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 10812 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 10813 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 10814 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 10815 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 10816 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 10817 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 10818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 10819 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 10820 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 10821 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 10822 | ( cat <<\_ASBOX | 
|  | 10823 | ## ----------------------------------- ## | 
|  | 10824 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 10825 | ## ----------------------------------- ## | 
|  | 10826 | _ASBOX | 
|  | 10827 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 10828 | ;; | 
|  | 10829 | esac | 
|  | 10830 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10832 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10834 | else | 
|  | 10835 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 10836 | fi | 
|  | 10837 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10838 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10839 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10840 |  | 
|  | 10841 | fi | 
|  | 10842 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10843 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10844 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10845 | _ACEOF | 
|  | 10846 |  | 
|  | 10847 | fi | 
|  | 10848 |  | 
|  | 10849 | done | 
|  | 10850 |  | 
|  | 10851 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10852 | { echo "$as_me:$LINENO: checking for error_t" >&5 | 
|  | 10853 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } | 
|  | 10854 | if test "${ac_cv_type_error_t+set}" = set; then | 
|  | 10855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10856 | else | 
|  | 10857 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10858 | /* confdefs.h.  */ | 
|  | 10859 | _ACEOF | 
|  | 10860 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10861 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10862 | /* end confdefs.h.  */ | 
|  | 10863 | #if HAVE_ARGZ_H | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10864 | #  include <argz.h> | 
|  | 10865 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10866 |  | 
|  | 10867 | typedef error_t ac__type_new_; | 
|  | 10868 | int | 
|  | 10869 | main () | 
|  | 10870 | { | 
|  | 10871 | if ((ac__type_new_ *) 0) | 
|  | 10872 | return 0; | 
|  | 10873 | if (sizeof (ac__type_new_)) | 
|  | 10874 | return 0; | 
|  | 10875 | ; | 
|  | 10876 | return 0; | 
|  | 10877 | } | 
|  | 10878 | _ACEOF | 
|  | 10879 | rm -f conftest.$ac_objext | 
|  | 10880 | if { (ac_try="$ac_compile" | 
|  | 10881 | case "(($ac_try" in | 
|  | 10882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10883 | *) ac_try_echo=$ac_try;; | 
|  | 10884 | esac | 
|  | 10885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10886 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10887 | ac_status=$? | 
|  | 10888 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10889 | rm -f conftest.er1 | 
|  | 10890 | cat conftest.err >&5 | 
|  | 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10892 | (exit $ac_status); } && | 
|  | 10893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 10900 | ac_status=$? | 
|  | 10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10902 | (exit $ac_status); }; } && | 
|  | 10903 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10904 | { (case "(($ac_try" in | 
|  | 10905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10906 | *) ac_try_echo=$ac_try;; | 
|  | 10907 | esac | 
|  | 10908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10909 | (eval "$ac_try") 2>&5 | 
|  | 10910 | ac_status=$? | 
|  | 10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10912 | (exit $ac_status); }; }; then | 
|  | 10913 | ac_cv_type_error_t=yes | 
|  | 10914 | else | 
|  | 10915 | echo "$as_me: failed program was:" >&5 | 
|  | 10916 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10917 |  | 
|  | 10918 | ac_cv_type_error_t=no | 
|  | 10919 | fi | 
|  | 10920 |  | 
|  | 10921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10922 | fi | 
|  | 10923 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
|  | 10924 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } | 
|  | 10925 | if test $ac_cv_type_error_t = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10926 |  | 
|  | 10927 | cat >>confdefs.h <<_ACEOF | 
|  | 10928 | #define HAVE_ERROR_T 1 | 
|  | 10929 | _ACEOF | 
|  | 10930 |  | 
|  | 10931 |  | 
|  | 10932 | else | 
|  | 10933 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10934 | cat >>confdefs.h <<\_ACEOF | 
|  | 10935 | #define error_t int | 
|  | 10936 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10937 |  | 
|  | 10938 | fi | 
|  | 10939 |  | 
|  | 10940 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10941 |  | 
|  | 10942 |  | 
|  | 10943 |  | 
|  | 10944 |  | 
|  | 10945 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10946 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10947 | do | 
|  | 10948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10949 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 10950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 10951 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10953 | else | 
|  | 10954 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10955 | /* confdefs.h.  */ | 
|  | 10956 | _ACEOF | 
|  | 10957 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10958 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10959 | /* end confdefs.h.  */ | 
|  | 10960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 10961 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10962 | #define $ac_func innocuous_$ac_func | 
|  | 10963 |  | 
|  | 10964 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10965 | which can conflict with char $ac_func (); below. | 
|  | 10966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10967 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 10968 |  | 
|  | 10969 | #ifdef __STDC__ | 
|  | 10970 | # include <limits.h> | 
|  | 10971 | #else | 
|  | 10972 | # include <assert.h> | 
|  | 10973 | #endif | 
|  | 10974 |  | 
|  | 10975 | #undef $ac_func | 
|  | 10976 |  | 
|  | 10977 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10978 | Use char because int might match the return type of a GCC | 
|  | 10979 | builtin and then its argument prototype would still apply.  */ | 
|  | 10980 | #ifdef __cplusplus | 
|  | 10981 | extern "C" | 
|  | 10982 | #endif | 
|  | 10983 | char $ac_func (); | 
|  | 10984 | /* The GNU C library defines this for functions which it implements | 
|  | 10985 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10986 | something starting with __ and the normal name is an alias.  */ | 
|  | 10987 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 10988 | choke me | 
|  | 10989 | #endif | 
|  | 10990 |  | 
|  | 10991 | int | 
|  | 10992 | main () | 
|  | 10993 | { | 
|  | 10994 | return $ac_func (); | 
|  | 10995 | ; | 
|  | 10996 | return 0; | 
|  | 10997 | } | 
|  | 10998 | _ACEOF | 
|  | 10999 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11000 | if { (ac_try="$ac_link" | 
|  | 11001 | case "(($ac_try" in | 
|  | 11002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11003 | *) ac_try_echo=$ac_try;; | 
|  | 11004 | esac | 
|  | 11005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11006 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11007 | ac_status=$? | 
|  | 11008 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11009 | rm -f conftest.er1 | 
|  | 11010 | cat conftest.err >&5 | 
|  | 11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11012 | (exit $ac_status); } && | 
|  | 11013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11020 | ac_status=$? | 
|  | 11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11022 | (exit $ac_status); }; } && | 
|  | 11023 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11024 | { (case "(($ac_try" in | 
|  | 11025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11026 | *) ac_try_echo=$ac_try;; | 
|  | 11027 | esac | 
|  | 11028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11029 | (eval "$ac_try") 2>&5 | 
|  | 11030 | ac_status=$? | 
|  | 11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11032 | (exit $ac_status); }; }; then | 
|  | 11033 | eval "$as_ac_var=yes" | 
|  | 11034 | else | 
|  | 11035 | echo "$as_me: failed program was:" >&5 | 
|  | 11036 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11037 |  | 
|  | 11038 | eval "$as_ac_var=no" | 
|  | 11039 | fi | 
|  | 11040 |  | 
|  | 11041 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11042 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11043 | fi | 
|  | 11044 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11045 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11046 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11047 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11048 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11050 | _ACEOF | 
|  | 11051 |  | 
|  | 11052 | fi | 
|  | 11053 | done | 
|  | 11054 |  | 
|  | 11055 |  | 
|  | 11056 |  | 
|  | 11057 |  | 
|  | 11058 |  | 
|  | 11059 |  | 
|  | 11060 |  | 
|  | 11061 |  | 
|  | 11062 |  | 
|  | 11063 |  | 
|  | 11064 |  | 
|  | 11065 |  | 
|  | 11066 |  | 
|  | 11067 |  | 
|  | 11068 |  | 
|  | 11069 |  | 
|  | 11070 |  | 
|  | 11071 |  | 
|  | 11072 |  | 
|  | 11073 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11074 |  | 
|  | 11075 |  | 
|  | 11076 |  | 
|  | 11077 |  | 
|  | 11078 |  | 
|  | 11079 |  | 
|  | 11080 |  | 
|  | 11081 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11082 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
|  | 11083 | stdio.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11084 | do | 
|  | 11085 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11087 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11089 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11091 | fi | 
|  | 11092 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11093 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11094 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11095 | else | 
|  | 11096 | # Is the header compilable? | 
|  | 11097 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11098 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11099 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11100 | /* confdefs.h.  */ | 
|  | 11101 | _ACEOF | 
|  | 11102 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11103 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11104 | /* end confdefs.h.  */ | 
|  | 11105 | $ac_includes_default | 
|  | 11106 | #include <$ac_header> | 
|  | 11107 | _ACEOF | 
|  | 11108 | rm -f conftest.$ac_objext | 
|  | 11109 | if { (ac_try="$ac_compile" | 
|  | 11110 | case "(($ac_try" in | 
|  | 11111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11112 | *) ac_try_echo=$ac_try;; | 
|  | 11113 | esac | 
|  | 11114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11115 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11116 | ac_status=$? | 
|  | 11117 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11118 | rm -f conftest.er1 | 
|  | 11119 | cat conftest.err >&5 | 
|  | 11120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11121 | (exit $ac_status); } && | 
|  | 11122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11129 | ac_status=$? | 
|  | 11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11131 | (exit $ac_status); }; } && | 
|  | 11132 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11133 | { (case "(($ac_try" in | 
|  | 11134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11135 | *) ac_try_echo=$ac_try;; | 
|  | 11136 | esac | 
|  | 11137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11138 | (eval "$ac_try") 2>&5 | 
|  | 11139 | ac_status=$? | 
|  | 11140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11141 | (exit $ac_status); }; }; then | 
|  | 11142 | ac_header_compiler=yes | 
|  | 11143 | else | 
|  | 11144 | echo "$as_me: failed program was:" >&5 | 
|  | 11145 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11146 |  | 
|  | 11147 | ac_header_compiler=no | 
|  | 11148 | fi | 
|  | 11149 |  | 
|  | 11150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11151 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11152 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11153 |  | 
|  | 11154 | # Is the header present? | 
|  | 11155 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11156 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11157 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11158 | /* confdefs.h.  */ | 
|  | 11159 | _ACEOF | 
|  | 11160 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11161 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11162 | /* end confdefs.h.  */ | 
|  | 11163 | #include <$ac_header> | 
|  | 11164 | _ACEOF | 
|  | 11165 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11166 | case "(($ac_try" in | 
|  | 11167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11168 | *) ac_try_echo=$ac_try;; | 
|  | 11169 | esac | 
|  | 11170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11172 | ac_status=$? | 
|  | 11173 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11174 | rm -f conftest.er1 | 
|  | 11175 | cat conftest.err >&5 | 
|  | 11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11177 | (exit $ac_status); } >/dev/null; then | 
|  | 11178 | if test -s conftest.err; then | 
|  | 11179 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11180 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11181 | else | 
|  | 11182 | ac_cpp_err= | 
|  | 11183 | fi | 
|  | 11184 | else | 
|  | 11185 | ac_cpp_err=yes | 
|  | 11186 | fi | 
|  | 11187 | if test -z "$ac_cpp_err"; then | 
|  | 11188 | ac_header_preproc=yes | 
|  | 11189 | else | 
|  | 11190 | echo "$as_me: failed program was:" >&5 | 
|  | 11191 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11192 |  | 
|  | 11193 | ac_header_preproc=no | 
|  | 11194 | fi | 
|  | 11195 |  | 
|  | 11196 | rm -f conftest.err conftest.$ac_ext | 
|  | 11197 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11198 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11199 |  | 
|  | 11200 | # So?  What about this header? | 
|  | 11201 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11202 | yes:no: ) | 
|  | 11203 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11204 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11206 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11207 | ac_header_preproc=yes | 
|  | 11208 | ;; | 
|  | 11209 | no:yes:* ) | 
|  | 11210 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11211 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11212 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11213 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11214 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11215 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11216 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11217 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11219 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11220 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11221 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11222 | ( cat <<\_ASBOX | 
|  | 11223 | ## ----------------------------------- ## | 
|  | 11224 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 11225 | ## ----------------------------------- ## | 
|  | 11226 | _ASBOX | 
|  | 11227 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11228 | ;; | 
|  | 11229 | esac | 
|  | 11230 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11232 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11234 | else | 
|  | 11235 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11236 | fi | 
|  | 11237 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11238 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11239 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11240 |  | 
|  | 11241 | fi | 
|  | 11242 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11243 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11244 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11245 | _ACEOF | 
|  | 11246 |  | 
|  | 11247 | fi | 
|  | 11248 |  | 
|  | 11249 | done | 
|  | 11250 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11251 |  | 
|  | 11252 |  | 
|  | 11253 |  | 
|  | 11254 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11255 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11256 | do | 
|  | 11257 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11258 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11259 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11261 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11263 | fi | 
|  | 11264 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11265 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11266 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11267 | else | 
|  | 11268 | # Is the header compilable? | 
|  | 11269 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11270 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11271 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11272 | /* confdefs.h.  */ | 
|  | 11273 | _ACEOF | 
|  | 11274 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11275 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11276 | /* end confdefs.h.  */ | 
|  | 11277 | $ac_includes_default | 
|  | 11278 | #include <$ac_header> | 
|  | 11279 | _ACEOF | 
|  | 11280 | rm -f conftest.$ac_objext | 
|  | 11281 | if { (ac_try="$ac_compile" | 
|  | 11282 | case "(($ac_try" in | 
|  | 11283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11284 | *) ac_try_echo=$ac_try;; | 
|  | 11285 | esac | 
|  | 11286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11287 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11288 | ac_status=$? | 
|  | 11289 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11290 | rm -f conftest.er1 | 
|  | 11291 | cat conftest.err >&5 | 
|  | 11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11293 | (exit $ac_status); } && | 
|  | 11294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11301 | ac_status=$? | 
|  | 11302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11303 | (exit $ac_status); }; } && | 
|  | 11304 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11305 | { (case "(($ac_try" in | 
|  | 11306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11307 | *) ac_try_echo=$ac_try;; | 
|  | 11308 | esac | 
|  | 11309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11310 | (eval "$ac_try") 2>&5 | 
|  | 11311 | ac_status=$? | 
|  | 11312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11313 | (exit $ac_status); }; }; then | 
|  | 11314 | ac_header_compiler=yes | 
|  | 11315 | else | 
|  | 11316 | echo "$as_me: failed program was:" >&5 | 
|  | 11317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11318 |  | 
|  | 11319 | ac_header_compiler=no | 
|  | 11320 | fi | 
|  | 11321 |  | 
|  | 11322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11323 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11324 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11325 |  | 
|  | 11326 | # Is the header present? | 
|  | 11327 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11328 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11329 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11330 | /* confdefs.h.  */ | 
|  | 11331 | _ACEOF | 
|  | 11332 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11333 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11334 | /* end confdefs.h.  */ | 
|  | 11335 | #include <$ac_header> | 
|  | 11336 | _ACEOF | 
|  | 11337 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11338 | case "(($ac_try" in | 
|  | 11339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11340 | *) ac_try_echo=$ac_try;; | 
|  | 11341 | esac | 
|  | 11342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11343 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11344 | ac_status=$? | 
|  | 11345 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11346 | rm -f conftest.er1 | 
|  | 11347 | cat conftest.err >&5 | 
|  | 11348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11349 | (exit $ac_status); } >/dev/null; then | 
|  | 11350 | if test -s conftest.err; then | 
|  | 11351 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11353 | else | 
|  | 11354 | ac_cpp_err= | 
|  | 11355 | fi | 
|  | 11356 | else | 
|  | 11357 | ac_cpp_err=yes | 
|  | 11358 | fi | 
|  | 11359 | if test -z "$ac_cpp_err"; then | 
|  | 11360 | ac_header_preproc=yes | 
|  | 11361 | else | 
|  | 11362 | echo "$as_me: failed program was:" >&5 | 
|  | 11363 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11364 |  | 
|  | 11365 | ac_header_preproc=no | 
|  | 11366 | fi | 
|  | 11367 |  | 
|  | 11368 | rm -f conftest.err conftest.$ac_ext | 
|  | 11369 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11370 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11371 |  | 
|  | 11372 | # So?  What about this header? | 
|  | 11373 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11374 | yes:no: ) | 
|  | 11375 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11376 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11377 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11378 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11379 | ac_header_preproc=yes | 
|  | 11380 | ;; | 
|  | 11381 | no:yes:* ) | 
|  | 11382 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11383 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11384 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11385 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11386 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11387 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11388 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11389 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11391 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11392 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11393 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11394 | ( cat <<\_ASBOX | 
|  | 11395 | ## ----------------------------------- ## | 
|  | 11396 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 11397 | ## ----------------------------------- ## | 
|  | 11398 | _ASBOX | 
|  | 11399 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11400 | ;; | 
|  | 11401 | esac | 
|  | 11402 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11404 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11406 | else | 
|  | 11407 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11408 | fi | 
|  | 11409 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11410 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11411 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11412 |  | 
|  | 11413 | fi | 
|  | 11414 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11415 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11416 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11417 | _ACEOF | 
|  | 11418 |  | 
|  | 11419 | fi | 
|  | 11420 |  | 
|  | 11421 | done | 
|  | 11422 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11423 |  | 
|  | 11424 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11425 | for ac_header in string.h strings.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11426 | do | 
|  | 11427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11429 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11433 | fi | 
|  | 11434 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11435 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11436 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11437 | else | 
|  | 11438 | # Is the header compilable? | 
|  | 11439 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11440 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11441 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11442 | /* confdefs.h.  */ | 
|  | 11443 | _ACEOF | 
|  | 11444 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11445 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11446 | /* end confdefs.h.  */ | 
|  | 11447 | $ac_includes_default | 
|  | 11448 | #include <$ac_header> | 
|  | 11449 | _ACEOF | 
|  | 11450 | rm -f conftest.$ac_objext | 
|  | 11451 | if { (ac_try="$ac_compile" | 
|  | 11452 | case "(($ac_try" in | 
|  | 11453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11454 | *) ac_try_echo=$ac_try;; | 
|  | 11455 | esac | 
|  | 11456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11457 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11458 | ac_status=$? | 
|  | 11459 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11460 | rm -f conftest.er1 | 
|  | 11461 | cat conftest.err >&5 | 
|  | 11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11463 | (exit $ac_status); } && | 
|  | 11464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11471 | ac_status=$? | 
|  | 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11473 | (exit $ac_status); }; } && | 
|  | 11474 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11475 | { (case "(($ac_try" in | 
|  | 11476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11477 | *) ac_try_echo=$ac_try;; | 
|  | 11478 | esac | 
|  | 11479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11480 | (eval "$ac_try") 2>&5 | 
|  | 11481 | ac_status=$? | 
|  | 11482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11483 | (exit $ac_status); }; }; then | 
|  | 11484 | ac_header_compiler=yes | 
|  | 11485 | else | 
|  | 11486 | echo "$as_me: failed program was:" >&5 | 
|  | 11487 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11488 |  | 
|  | 11489 | ac_header_compiler=no | 
|  | 11490 | fi | 
|  | 11491 |  | 
|  | 11492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11493 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11494 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11495 |  | 
|  | 11496 | # Is the header present? | 
|  | 11497 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11498 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11499 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11500 | /* confdefs.h.  */ | 
|  | 11501 | _ACEOF | 
|  | 11502 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11503 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11504 | /* end confdefs.h.  */ | 
|  | 11505 | #include <$ac_header> | 
|  | 11506 | _ACEOF | 
|  | 11507 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11508 | case "(($ac_try" in | 
|  | 11509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11510 | *) ac_try_echo=$ac_try;; | 
|  | 11511 | esac | 
|  | 11512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11514 | ac_status=$? | 
|  | 11515 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11516 | rm -f conftest.er1 | 
|  | 11517 | cat conftest.err >&5 | 
|  | 11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11519 | (exit $ac_status); } >/dev/null; then | 
|  | 11520 | if test -s conftest.err; then | 
|  | 11521 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11522 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11523 | else | 
|  | 11524 | ac_cpp_err= | 
|  | 11525 | fi | 
|  | 11526 | else | 
|  | 11527 | ac_cpp_err=yes | 
|  | 11528 | fi | 
|  | 11529 | if test -z "$ac_cpp_err"; then | 
|  | 11530 | ac_header_preproc=yes | 
|  | 11531 | else | 
|  | 11532 | echo "$as_me: failed program was:" >&5 | 
|  | 11533 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11534 |  | 
|  | 11535 | ac_header_preproc=no | 
|  | 11536 | fi | 
|  | 11537 |  | 
|  | 11538 | rm -f conftest.err conftest.$ac_ext | 
|  | 11539 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11540 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11541 |  | 
|  | 11542 | # So?  What about this header? | 
|  | 11543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11544 | yes:no: ) | 
|  | 11545 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11546 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11547 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11548 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11549 | ac_header_preproc=yes | 
|  | 11550 | ;; | 
|  | 11551 | no:yes:* ) | 
|  | 11552 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11553 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11554 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11555 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11556 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11557 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11558 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11559 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11561 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11562 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11563 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11564 | ( cat <<\_ASBOX | 
|  | 11565 | ## ----------------------------------- ## | 
|  | 11566 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 11567 | ## ----------------------------------- ## | 
|  | 11568 | _ASBOX | 
|  | 11569 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11570 | ;; | 
|  | 11571 | esac | 
|  | 11572 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11576 | else | 
|  | 11577 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11578 | fi | 
|  | 11579 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11580 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11581 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11582 |  | 
|  | 11583 | fi | 
|  | 11584 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11585 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11586 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11587 | _ACEOF | 
|  | 11588 | break | 
|  | 11589 | fi | 
|  | 11590 |  | 
|  | 11591 | done | 
|  | 11592 |  | 
|  | 11593 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11594 |  | 
|  | 11595 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11596 | for ac_func in strchr index | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11597 | do | 
|  | 11598 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11599 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11600 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11601 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11603 | else | 
|  | 11604 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11605 | /* confdefs.h.  */ | 
|  | 11606 | _ACEOF | 
|  | 11607 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11608 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11609 | /* end confdefs.h.  */ | 
|  | 11610 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11611 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11612 | #define $ac_func innocuous_$ac_func | 
|  | 11613 |  | 
|  | 11614 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11615 | which can conflict with char $ac_func (); below. | 
|  | 11616 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11617 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11618 |  | 
|  | 11619 | #ifdef __STDC__ | 
|  | 11620 | # include <limits.h> | 
|  | 11621 | #else | 
|  | 11622 | # include <assert.h> | 
|  | 11623 | #endif | 
|  | 11624 |  | 
|  | 11625 | #undef $ac_func | 
|  | 11626 |  | 
|  | 11627 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11628 | Use char because int might match the return type of a GCC | 
|  | 11629 | builtin and then its argument prototype would still apply.  */ | 
|  | 11630 | #ifdef __cplusplus | 
|  | 11631 | extern "C" | 
|  | 11632 | #endif | 
|  | 11633 | char $ac_func (); | 
|  | 11634 | /* The GNU C library defines this for functions which it implements | 
|  | 11635 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11636 | something starting with __ and the normal name is an alias.  */ | 
|  | 11637 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11638 | choke me | 
|  | 11639 | #endif | 
|  | 11640 |  | 
|  | 11641 | int | 
|  | 11642 | main () | 
|  | 11643 | { | 
|  | 11644 | return $ac_func (); | 
|  | 11645 | ; | 
|  | 11646 | return 0; | 
|  | 11647 | } | 
|  | 11648 | _ACEOF | 
|  | 11649 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11650 | if { (ac_try="$ac_link" | 
|  | 11651 | case "(($ac_try" in | 
|  | 11652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11653 | *) ac_try_echo=$ac_try;; | 
|  | 11654 | esac | 
|  | 11655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11656 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11657 | ac_status=$? | 
|  | 11658 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11659 | rm -f conftest.er1 | 
|  | 11660 | cat conftest.err >&5 | 
|  | 11661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11662 | (exit $ac_status); } && | 
|  | 11663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11670 | ac_status=$? | 
|  | 11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11672 | (exit $ac_status); }; } && | 
|  | 11673 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11674 | { (case "(($ac_try" in | 
|  | 11675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11676 | *) ac_try_echo=$ac_try;; | 
|  | 11677 | esac | 
|  | 11678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11679 | (eval "$ac_try") 2>&5 | 
|  | 11680 | ac_status=$? | 
|  | 11681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11682 | (exit $ac_status); }; }; then | 
|  | 11683 | eval "$as_ac_var=yes" | 
|  | 11684 | else | 
|  | 11685 | echo "$as_me: failed program was:" >&5 | 
|  | 11686 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11687 |  | 
|  | 11688 | eval "$as_ac_var=no" | 
|  | 11689 | fi | 
|  | 11690 |  | 
|  | 11691 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11692 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11693 | fi | 
|  | 11694 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11695 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11696 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11697 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11698 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11699 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11700 | _ACEOF | 
|  | 11701 | break | 
|  | 11702 | fi | 
|  | 11703 | done | 
|  | 11704 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11705 |  | 
|  | 11706 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11707 | for ac_func in strrchr rindex | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11708 | do | 
|  | 11709 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11710 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11711 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11712 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11714 | else | 
|  | 11715 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11716 | /* confdefs.h.  */ | 
|  | 11717 | _ACEOF | 
|  | 11718 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11719 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11720 | /* end confdefs.h.  */ | 
|  | 11721 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11722 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11723 | #define $ac_func innocuous_$ac_func | 
|  | 11724 |  | 
|  | 11725 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11726 | which can conflict with char $ac_func (); below. | 
|  | 11727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11728 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11729 |  | 
|  | 11730 | #ifdef __STDC__ | 
|  | 11731 | # include <limits.h> | 
|  | 11732 | #else | 
|  | 11733 | # include <assert.h> | 
|  | 11734 | #endif | 
|  | 11735 |  | 
|  | 11736 | #undef $ac_func | 
|  | 11737 |  | 
|  | 11738 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11739 | Use char because int might match the return type of a GCC | 
|  | 11740 | builtin and then its argument prototype would still apply.  */ | 
|  | 11741 | #ifdef __cplusplus | 
|  | 11742 | extern "C" | 
|  | 11743 | #endif | 
|  | 11744 | char $ac_func (); | 
|  | 11745 | /* The GNU C library defines this for functions which it implements | 
|  | 11746 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11747 | something starting with __ and the normal name is an alias.  */ | 
|  | 11748 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11749 | choke me | 
|  | 11750 | #endif | 
|  | 11751 |  | 
|  | 11752 | int | 
|  | 11753 | main () | 
|  | 11754 | { | 
|  | 11755 | return $ac_func (); | 
|  | 11756 | ; | 
|  | 11757 | return 0; | 
|  | 11758 | } | 
|  | 11759 | _ACEOF | 
|  | 11760 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11761 | if { (ac_try="$ac_link" | 
|  | 11762 | case "(($ac_try" in | 
|  | 11763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11764 | *) ac_try_echo=$ac_try;; | 
|  | 11765 | esac | 
|  | 11766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11767 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11768 | ac_status=$? | 
|  | 11769 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11770 | rm -f conftest.er1 | 
|  | 11771 | cat conftest.err >&5 | 
|  | 11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11773 | (exit $ac_status); } && | 
|  | 11774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11781 | ac_status=$? | 
|  | 11782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11783 | (exit $ac_status); }; } && | 
|  | 11784 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11785 | { (case "(($ac_try" in | 
|  | 11786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11787 | *) ac_try_echo=$ac_try;; | 
|  | 11788 | esac | 
|  | 11789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11790 | (eval "$ac_try") 2>&5 | 
|  | 11791 | ac_status=$? | 
|  | 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11793 | (exit $ac_status); }; }; then | 
|  | 11794 | eval "$as_ac_var=yes" | 
|  | 11795 | else | 
|  | 11796 | echo "$as_me: failed program was:" >&5 | 
|  | 11797 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11798 |  | 
|  | 11799 | eval "$as_ac_var=no" | 
|  | 11800 | fi | 
|  | 11801 |  | 
|  | 11802 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11803 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11804 | fi | 
|  | 11805 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11806 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11807 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11808 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11809 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11810 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11811 | _ACEOF | 
|  | 11812 | break | 
|  | 11813 | fi | 
|  | 11814 | done | 
|  | 11815 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11816 |  | 
|  | 11817 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11818 | for ac_func in memcpy bcopy | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11819 | do | 
|  | 11820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11821 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11823 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11825 | else | 
|  | 11826 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11827 | /* confdefs.h.  */ | 
|  | 11828 | _ACEOF | 
|  | 11829 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11830 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11831 | /* end confdefs.h.  */ | 
|  | 11832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11833 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11834 | #define $ac_func innocuous_$ac_func | 
|  | 11835 |  | 
|  | 11836 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11837 | which can conflict with char $ac_func (); below. | 
|  | 11838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11839 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11840 |  | 
|  | 11841 | #ifdef __STDC__ | 
|  | 11842 | # include <limits.h> | 
|  | 11843 | #else | 
|  | 11844 | # include <assert.h> | 
|  | 11845 | #endif | 
|  | 11846 |  | 
|  | 11847 | #undef $ac_func | 
|  | 11848 |  | 
|  | 11849 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11850 | Use char because int might match the return type of a GCC | 
|  | 11851 | builtin and then its argument prototype would still apply.  */ | 
|  | 11852 | #ifdef __cplusplus | 
|  | 11853 | extern "C" | 
|  | 11854 | #endif | 
|  | 11855 | char $ac_func (); | 
|  | 11856 | /* The GNU C library defines this for functions which it implements | 
|  | 11857 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11858 | something starting with __ and the normal name is an alias.  */ | 
|  | 11859 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11860 | choke me | 
|  | 11861 | #endif | 
|  | 11862 |  | 
|  | 11863 | int | 
|  | 11864 | main () | 
|  | 11865 | { | 
|  | 11866 | return $ac_func (); | 
|  | 11867 | ; | 
|  | 11868 | return 0; | 
|  | 11869 | } | 
|  | 11870 | _ACEOF | 
|  | 11871 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11872 | if { (ac_try="$ac_link" | 
|  | 11873 | case "(($ac_try" in | 
|  | 11874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11875 | *) ac_try_echo=$ac_try;; | 
|  | 11876 | esac | 
|  | 11877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11878 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11879 | ac_status=$? | 
|  | 11880 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11881 | rm -f conftest.er1 | 
|  | 11882 | cat conftest.err >&5 | 
|  | 11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11884 | (exit $ac_status); } && | 
|  | 11885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 11892 | ac_status=$? | 
|  | 11893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11894 | (exit $ac_status); }; } && | 
|  | 11895 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11896 | { (case "(($ac_try" in | 
|  | 11897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11898 | *) ac_try_echo=$ac_try;; | 
|  | 11899 | esac | 
|  | 11900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11901 | (eval "$ac_try") 2>&5 | 
|  | 11902 | ac_status=$? | 
|  | 11903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11904 | (exit $ac_status); }; }; then | 
|  | 11905 | eval "$as_ac_var=yes" | 
|  | 11906 | else | 
|  | 11907 | echo "$as_me: failed program was:" >&5 | 
|  | 11908 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11909 |  | 
|  | 11910 | eval "$as_ac_var=no" | 
|  | 11911 | fi | 
|  | 11912 |  | 
|  | 11913 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11914 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11915 | fi | 
|  | 11916 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11918 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11920 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11922 | _ACEOF | 
|  | 11923 | break | 
|  | 11924 | fi | 
|  | 11925 | done | 
|  | 11926 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11927 |  | 
|  | 11928 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11929 | for ac_func in memmove strcmp | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11930 | do | 
|  | 11931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11932 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11934 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11936 | else | 
|  | 11937 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11938 | /* confdefs.h.  */ | 
|  | 11939 | _ACEOF | 
|  | 11940 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11941 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11942 | /* end confdefs.h.  */ | 
|  | 11943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11944 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11945 | #define $ac_func innocuous_$ac_func | 
|  | 11946 |  | 
|  | 11947 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11948 | which can conflict with char $ac_func (); below. | 
|  | 11949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11950 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11951 |  | 
|  | 11952 | #ifdef __STDC__ | 
|  | 11953 | # include <limits.h> | 
|  | 11954 | #else | 
|  | 11955 | # include <assert.h> | 
|  | 11956 | #endif | 
|  | 11957 |  | 
|  | 11958 | #undef $ac_func | 
|  | 11959 |  | 
|  | 11960 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11961 | Use char because int might match the return type of a GCC | 
|  | 11962 | builtin and then its argument prototype would still apply.  */ | 
|  | 11963 | #ifdef __cplusplus | 
|  | 11964 | extern "C" | 
|  | 11965 | #endif | 
|  | 11966 | char $ac_func (); | 
|  | 11967 | /* The GNU C library defines this for functions which it implements | 
|  | 11968 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11969 | something starting with __ and the normal name is an alias.  */ | 
|  | 11970 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11971 | choke me | 
|  | 11972 | #endif | 
|  | 11973 |  | 
|  | 11974 | int | 
|  | 11975 | main () | 
|  | 11976 | { | 
|  | 11977 | return $ac_func (); | 
|  | 11978 | ; | 
|  | 11979 | return 0; | 
|  | 11980 | } | 
|  | 11981 | _ACEOF | 
|  | 11982 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11983 | if { (ac_try="$ac_link" | 
|  | 11984 | case "(($ac_try" in | 
|  | 11985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11986 | *) ac_try_echo=$ac_try;; | 
|  | 11987 | esac | 
|  | 11988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11989 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11990 | ac_status=$? | 
|  | 11991 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11992 | rm -f conftest.er1 | 
|  | 11993 | cat conftest.err >&5 | 
|  | 11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11995 | (exit $ac_status); } && | 
|  | 11996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12003 | ac_status=$? | 
|  | 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12005 | (exit $ac_status); }; } && | 
|  | 12006 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12007 | { (case "(($ac_try" in | 
|  | 12008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12009 | *) ac_try_echo=$ac_try;; | 
|  | 12010 | esac | 
|  | 12011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12012 | (eval "$ac_try") 2>&5 | 
|  | 12013 | ac_status=$? | 
|  | 12014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12015 | (exit $ac_status); }; }; then | 
|  | 12016 | eval "$as_ac_var=yes" | 
|  | 12017 | else | 
|  | 12018 | echo "$as_me: failed program was:" >&5 | 
|  | 12019 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12020 |  | 
|  | 12021 | eval "$as_ac_var=no" | 
|  | 12022 | fi | 
|  | 12023 |  | 
|  | 12024 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12025 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12026 | fi | 
|  | 12027 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 12028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 12029 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 12030 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12031 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12032 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12033 | _ACEOF | 
|  | 12034 |  | 
|  | 12035 | fi | 
|  | 12036 | done | 
|  | 12037 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12038 |  | 
|  | 12039 |  | 
|  | 12040 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12041 | for ac_func in closedir opendir readdir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12042 | do | 
|  | 12043 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12044 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 12045 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 12046 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 12047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12048 | else | 
|  | 12049 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12050 | /* confdefs.h.  */ | 
|  | 12051 | _ACEOF | 
|  | 12052 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12053 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12054 | /* end confdefs.h.  */ | 
|  | 12055 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 12056 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 12057 | #define $ac_func innocuous_$ac_func | 
|  | 12058 |  | 
|  | 12059 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 12060 | which can conflict with char $ac_func (); below. | 
|  | 12061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 12062 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 12063 |  | 
|  | 12064 | #ifdef __STDC__ | 
|  | 12065 | # include <limits.h> | 
|  | 12066 | #else | 
|  | 12067 | # include <assert.h> | 
|  | 12068 | #endif | 
|  | 12069 |  | 
|  | 12070 | #undef $ac_func | 
|  | 12071 |  | 
|  | 12072 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12073 | Use char because int might match the return type of a GCC | 
|  | 12074 | builtin and then its argument prototype would still apply.  */ | 
|  | 12075 | #ifdef __cplusplus | 
|  | 12076 | extern "C" | 
|  | 12077 | #endif | 
|  | 12078 | char $ac_func (); | 
|  | 12079 | /* The GNU C library defines this for functions which it implements | 
|  | 12080 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 12081 | something starting with __ and the normal name is an alias.  */ | 
|  | 12082 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 12083 | choke me | 
|  | 12084 | #endif | 
|  | 12085 |  | 
|  | 12086 | int | 
|  | 12087 | main () | 
|  | 12088 | { | 
|  | 12089 | return $ac_func (); | 
|  | 12090 | ; | 
|  | 12091 | return 0; | 
|  | 12092 | } | 
|  | 12093 | _ACEOF | 
|  | 12094 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12095 | if { (ac_try="$ac_link" | 
|  | 12096 | case "(($ac_try" in | 
|  | 12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12098 | *) ac_try_echo=$ac_try;; | 
|  | 12099 | esac | 
|  | 12100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12101 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12102 | ac_status=$? | 
|  | 12103 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12104 | rm -f conftest.er1 | 
|  | 12105 | cat conftest.err >&5 | 
|  | 12106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12107 | (exit $ac_status); } && | 
|  | 12108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12115 | ac_status=$? | 
|  | 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12117 | (exit $ac_status); }; } && | 
|  | 12118 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12119 | { (case "(($ac_try" in | 
|  | 12120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12121 | *) ac_try_echo=$ac_try;; | 
|  | 12122 | esac | 
|  | 12123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12124 | (eval "$ac_try") 2>&5 | 
|  | 12125 | ac_status=$? | 
|  | 12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12127 | (exit $ac_status); }; }; then | 
|  | 12128 | eval "$as_ac_var=yes" | 
|  | 12129 | else | 
|  | 12130 | echo "$as_me: failed program was:" >&5 | 
|  | 12131 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12132 |  | 
|  | 12133 | eval "$as_ac_var=no" | 
|  | 12134 | fi | 
|  | 12135 |  | 
|  | 12136 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12137 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12138 | fi | 
|  | 12139 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 12140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 12141 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 12142 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12144 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12145 | _ACEOF | 
|  | 12146 |  | 
|  | 12147 | fi | 
|  | 12148 | done | 
|  | 12149 |  | 
|  | 12150 |  | 
| Douglas Gregor | 1543661 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12151 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12152 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
|  | 12153 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12154 |  | 
| Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12155 | ICC=no | 
|  | 12156 | IXX=no | 
|  | 12157 | case $CC in | 
|  | 12158 | icc*|icpc*) | 
|  | 12159 | ICC=yes | 
|  | 12160 | IXX=yes | 
|  | 12161 | ;; | 
|  | 12162 | *) | 
|  | 12163 | ;; | 
|  | 12164 | esac | 
|  | 12165 |  | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12166 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
|  | 12167 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12168 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
|  | 12169 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
|  | 12170 | { (exit 1); exit 1; }; } | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12171 | fi | 
|  | 12172 |  | 
|  | 12173 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
|  | 12174 | then | 
| Eric Christopher | 8d842da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12175 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 | 
|  | 12176 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12177 | { (exit 1); exit 1; }; } | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12178 | fi | 
|  | 12179 |  | 
| Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12180 | if test "$GCC" = "yes" | 
|  | 12181 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12182 | cat >conftest.$ac_ext <<_ACEOF | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12183 | #if !defined(__GNUC__) || __GNUC__ < 3 | 
|  | 12184 | #error Unsupported GCC version | 
|  | 12185 | #endif | 
|  | 12186 |  | 
|  | 12187 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12188 | rm -f conftest.$ac_objext | 
|  | 12189 | if { (ac_try="$ac_compile" | 
|  | 12190 | case "(($ac_try" in | 
|  | 12191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12192 | *) ac_try_echo=$ac_try;; | 
|  | 12193 | esac | 
|  | 12194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12195 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 12196 | ac_status=$? | 
|  | 12197 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12198 | rm -f conftest.er1 | 
|  | 12199 | cat conftest.err >&5 | 
|  | 12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12201 | (exit $ac_status); } && | 
|  | 12202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12209 | ac_status=$? | 
|  | 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12211 | (exit $ac_status); }; } && | 
|  | 12212 | { ac_try='test -s conftest.$ac_objext' | 
|  | 12213 | { (case "(($ac_try" in | 
|  | 12214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12215 | *) ac_try_echo=$ac_try;; | 
|  | 12216 | esac | 
|  | 12217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12218 | (eval "$ac_try") 2>&5 | 
|  | 12219 | ac_status=$? | 
|  | 12220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12221 | (exit $ac_status); }; }; then | 
|  | 12222 | : | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12223 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12224 | echo "$as_me: failed program was:" >&5 | 
|  | 12225 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12226 |  | 
|  | 12227 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
|  | 12228 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
|  | 12229 | { (exit 1); exit 1; }; } | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12230 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12231 |  | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12233 | fi | 
|  | 12234 |  | 
|  | 12235 | if test -z "$llvm_cv_gnu_make_command" | 
|  | 12236 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12237 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
|  | 12238 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
|  | 12239 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12240 | fi | 
|  | 12241 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12242 | { echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 12243 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12244 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12245 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 | 
|  | 12246 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12247 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` | 
|  | 12248 |  | 
|  | 12249 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` | 
|  | 12250 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12251 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 | 
|  | 12252 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12253 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12254 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12255 |  | 
|  | 12256 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 | 
|  | 12257 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } | 
|  | 12258 | if test "${ac_cv_lib_m_sin+set}" = set; then | 
|  | 12259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12260 | else | 
|  | 12261 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12262 | LIBS="-lm  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12263 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12264 | /* confdefs.h.  */ | 
|  | 12265 | _ACEOF | 
|  | 12266 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12267 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12268 | /* end confdefs.h.  */ | 
|  | 12269 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12270 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12271 | Use char because int might match the return type of a GCC | 
|  | 12272 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12273 | #ifdef __cplusplus | 
|  | 12274 | extern "C" | 
|  | 12275 | #endif | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12276 | char sin (); | 
|  | 12277 | int | 
|  | 12278 | main () | 
|  | 12279 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12280 | return sin (); | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12281 | ; | 
|  | 12282 | return 0; | 
|  | 12283 | } | 
|  | 12284 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12285 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12286 | if { (ac_try="$ac_link" | 
|  | 12287 | case "(($ac_try" in | 
|  | 12288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12289 | *) ac_try_echo=$ac_try;; | 
|  | 12290 | esac | 
|  | 12291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12292 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12293 | ac_status=$? | 
|  | 12294 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12295 | rm -f conftest.er1 | 
|  | 12296 | cat conftest.err >&5 | 
|  | 12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12298 | (exit $ac_status); } && | 
|  | 12299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12306 | ac_status=$? | 
|  | 12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12308 | (exit $ac_status); }; } && | 
|  | 12309 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12310 | { (case "(($ac_try" in | 
|  | 12311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12312 | *) ac_try_echo=$ac_try;; | 
|  | 12313 | esac | 
|  | 12314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12315 | (eval "$ac_try") 2>&5 | 
|  | 12316 | ac_status=$? | 
|  | 12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12318 | (exit $ac_status); }; }; then | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12319 | ac_cv_lib_m_sin=yes | 
|  | 12320 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12321 | echo "$as_me: failed program was:" >&5 | 
|  | 12322 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12323 |  | 
|  | 12324 | ac_cv_lib_m_sin=no | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12325 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12326 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12327 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12328 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12329 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12330 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12331 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | 
|  | 12332 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } | 
|  | 12333 | if test $ac_cv_lib_m_sin = yes; then | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12334 | cat >>confdefs.h <<_ACEOF | 
|  | 12335 | #define HAVE_LIBM 1 | 
|  | 12336 | _ACEOF | 
|  | 12337 |  | 
|  | 12338 | LIBS="-lm $LIBS" | 
|  | 12339 |  | 
|  | 12340 | fi | 
|  | 12341 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12342 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12343 |  | 
|  | 12344 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 | 
|  | 12345 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } | 
|  | 12346 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then | 
|  | 12347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12348 | else | 
|  | 12349 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12350 | LIBS="-limagehlp  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12351 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12352 | /* confdefs.h.  */ | 
|  | 12353 | _ACEOF | 
|  | 12354 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12355 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12356 | /* end confdefs.h.  */ | 
|  | 12357 |  | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12358 |  | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12359 | int | 
|  | 12360 | main () | 
|  | 12361 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12362 | return main (); | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12363 | ; | 
|  | 12364 | return 0; | 
|  | 12365 | } | 
|  | 12366 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12367 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12368 | if { (ac_try="$ac_link" | 
|  | 12369 | case "(($ac_try" in | 
|  | 12370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12371 | *) ac_try_echo=$ac_try;; | 
|  | 12372 | esac | 
|  | 12373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12374 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12375 | ac_status=$? | 
|  | 12376 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12377 | rm -f conftest.er1 | 
|  | 12378 | cat conftest.err >&5 | 
|  | 12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12380 | (exit $ac_status); } && | 
|  | 12381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12388 | ac_status=$? | 
|  | 12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12390 | (exit $ac_status); }; } && | 
|  | 12391 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12392 | { (case "(($ac_try" in | 
|  | 12393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12394 | *) ac_try_echo=$ac_try;; | 
|  | 12395 | esac | 
|  | 12396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12397 | (eval "$ac_try") 2>&5 | 
|  | 12398 | ac_status=$? | 
|  | 12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12400 | (exit $ac_status); }; }; then | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12401 | ac_cv_lib_imagehlp_main=yes | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12402 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12403 | echo "$as_me: failed program was:" >&5 | 
|  | 12404 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12405 |  | 
|  | 12406 | ac_cv_lib_imagehlp_main=no | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12407 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12408 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12409 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12410 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12411 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12412 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12413 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 | 
|  | 12414 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } | 
|  | 12415 | if test $ac_cv_lib_imagehlp_main = yes; then | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12416 | cat >>confdefs.h <<_ACEOF | 
|  | 12417 | #define HAVE_LIBIMAGEHLP 1 | 
|  | 12418 | _ACEOF | 
|  | 12419 |  | 
|  | 12420 | LIBS="-limagehlp $LIBS" | 
|  | 12421 |  | 
|  | 12422 | fi | 
|  | 12423 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12424 |  | 
|  | 12425 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 | 
|  | 12426 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } | 
|  | 12427 | if test "${ac_cv_lib_psapi_main+set}" = set; then | 
|  | 12428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12429 | else | 
|  | 12430 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12431 | LIBS="-lpsapi  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12432 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12433 | /* confdefs.h.  */ | 
|  | 12434 | _ACEOF | 
|  | 12435 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12436 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12437 | /* end confdefs.h.  */ | 
|  | 12438 |  | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12439 |  | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12440 | int | 
|  | 12441 | main () | 
|  | 12442 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12443 | return main (); | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12444 | ; | 
|  | 12445 | return 0; | 
|  | 12446 | } | 
|  | 12447 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12448 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12449 | if { (ac_try="$ac_link" | 
|  | 12450 | case "(($ac_try" in | 
|  | 12451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12452 | *) ac_try_echo=$ac_try;; | 
|  | 12453 | esac | 
|  | 12454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12455 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12456 | ac_status=$? | 
|  | 12457 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12458 | rm -f conftest.er1 | 
|  | 12459 | cat conftest.err >&5 | 
|  | 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12461 | (exit $ac_status); } && | 
|  | 12462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12469 | ac_status=$? | 
|  | 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12471 | (exit $ac_status); }; } && | 
|  | 12472 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12473 | { (case "(($ac_try" in | 
|  | 12474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12475 | *) ac_try_echo=$ac_try;; | 
|  | 12476 | esac | 
|  | 12477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12478 | (eval "$ac_try") 2>&5 | 
|  | 12479 | ac_status=$? | 
|  | 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12481 | (exit $ac_status); }; }; then | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12482 | ac_cv_lib_psapi_main=yes | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12483 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12484 | echo "$as_me: failed program was:" >&5 | 
|  | 12485 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12486 |  | 
|  | 12487 | ac_cv_lib_psapi_main=no | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12488 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12489 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12490 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12491 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12492 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12493 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12494 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 | 
|  | 12495 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } | 
|  | 12496 | if test $ac_cv_lib_psapi_main = yes; then | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12497 | cat >>confdefs.h <<_ACEOF | 
|  | 12498 | #define HAVE_LIBPSAPI 1 | 
|  | 12499 | _ACEOF | 
|  | 12500 |  | 
|  | 12501 | LIBS="-lpsapi $LIBS" | 
|  | 12502 |  | 
|  | 12503 | fi | 
|  | 12504 |  | 
|  | 12505 | fi | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12506 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12507 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
|  | 12508 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | 
|  | 12509 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 12510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12511 | else | 
|  | 12512 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12513 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12514 | /* confdefs.h.  */ | 
|  | 12515 | _ACEOF | 
|  | 12516 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12517 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12518 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12519 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12520 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12521 | Use char because int might match the return type of a GCC | 
|  | 12522 | builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12523 | #ifdef __cplusplus | 
|  | 12524 | extern "C" | 
|  | 12525 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12526 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12527 | int | 
|  | 12528 | main () | 
|  | 12529 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12530 | return dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12531 | ; | 
|  | 12532 | return 0; | 
|  | 12533 | } | 
|  | 12534 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12535 | for ac_lib in '' dl; do | 
|  | 12536 | if test -z "$ac_lib"; then | 
|  | 12537 | ac_res="none required" | 
|  | 12538 | else | 
|  | 12539 | ac_res=-l$ac_lib | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12540 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12541 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12542 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12543 | if { (ac_try="$ac_link" | 
|  | 12544 | case "(($ac_try" in | 
|  | 12545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12546 | *) ac_try_echo=$ac_try;; | 
|  | 12547 | esac | 
|  | 12548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12549 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12550 | ac_status=$? | 
|  | 12551 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12552 | rm -f conftest.er1 | 
|  | 12553 | cat conftest.err >&5 | 
|  | 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12555 | (exit $ac_status); } && | 
|  | 12556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12563 | ac_status=$? | 
|  | 12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12565 | (exit $ac_status); }; } && | 
|  | 12566 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12567 | { (case "(($ac_try" in | 
|  | 12568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12569 | *) ac_try_echo=$ac_try;; | 
|  | 12570 | esac | 
|  | 12571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12572 | (eval "$ac_try") 2>&5 | 
|  | 12573 | ac_status=$? | 
|  | 12574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12575 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12576 | ac_cv_search_dlopen=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12577 | else | 
|  | 12578 | echo "$as_me: failed program was:" >&5 | 
|  | 12579 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12580 |  | 
|  | 12581 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12582 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12583 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12584 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12585 | conftest$ac_exeext | 
|  | 12586 | if test "${ac_cv_search_dlopen+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12587 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12588 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12589 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12590 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 12591 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12592 | else | 
|  | 12593 | ac_cv_search_dlopen=no | 
|  | 12594 | fi | 
|  | 12595 | rm conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12596 | LIBS=$ac_func_search_save_LIBS | 
|  | 12597 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12598 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
|  | 12599 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12600 | ac_res=$ac_cv_search_dlopen | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12601 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12602 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12603 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12604 | cat >>confdefs.h <<\_ACEOF | 
|  | 12605 | #define HAVE_DLOPEN 1 | 
|  | 12606 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12607 |  | 
|  | 12608 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12609 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
|  | 12610 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12611 | fi | 
|  | 12612 |  | 
|  | 12613 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12614 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12615 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 | 
|  | 12616 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } | 
|  | 12617 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
|  | 12618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12619 | else | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12620 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12621 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12622 | /* confdefs.h.  */ | 
|  | 12623 | _ACEOF | 
|  | 12624 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12625 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12626 | /* end confdefs.h.  */ | 
|  | 12627 |  | 
|  | 12628 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12629 | Use char because int might match the return type of a GCC | 
|  | 12630 | builtin and then its argument prototype would still apply.  */ | 
|  | 12631 | #ifdef __cplusplus | 
|  | 12632 | extern "C" | 
|  | 12633 | #endif | 
|  | 12634 | char ffi_call (); | 
|  | 12635 | int | 
|  | 12636 | main () | 
|  | 12637 | { | 
|  | 12638 | return ffi_call (); | 
|  | 12639 | ; | 
|  | 12640 | return 0; | 
|  | 12641 | } | 
|  | 12642 | _ACEOF | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12643 | for ac_lib in '' ffi; do | 
|  | 12644 | if test -z "$ac_lib"; then | 
|  | 12645 | ac_res="none required" | 
|  | 12646 | else | 
|  | 12647 | ac_res=-l$ac_lib | 
|  | 12648 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 12649 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12650 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12651 | if { (ac_try="$ac_link" | 
|  | 12652 | case "(($ac_try" in | 
|  | 12653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12654 | *) ac_try_echo=$ac_try;; | 
|  | 12655 | esac | 
|  | 12656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12657 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12658 | ac_status=$? | 
|  | 12659 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12660 | rm -f conftest.er1 | 
|  | 12661 | cat conftest.err >&5 | 
|  | 12662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12663 | (exit $ac_status); } && | 
|  | 12664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12671 | ac_status=$? | 
|  | 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12673 | (exit $ac_status); }; } && | 
|  | 12674 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12675 | { (case "(($ac_try" in | 
|  | 12676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12677 | *) ac_try_echo=$ac_try;; | 
|  | 12678 | esac | 
|  | 12679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12680 | (eval "$ac_try") 2>&5 | 
|  | 12681 | ac_status=$? | 
|  | 12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12683 | (exit $ac_status); }; }; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12684 | ac_cv_search_ffi_call=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12685 | else | 
|  | 12686 | echo "$as_me: failed program was:" >&5 | 
|  | 12687 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12688 |  | 
|  | 12689 |  | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12690 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12691 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12692 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12693 | conftest$ac_exeext | 
|  | 12694 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12695 | break | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12696 | fi | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12697 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12698 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
|  | 12699 | : | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12700 | else | 
|  | 12701 | ac_cv_search_ffi_call=no | 
|  | 12702 | fi | 
|  | 12703 | rm conftest.$ac_ext | 
|  | 12704 | LIBS=$ac_func_search_save_LIBS | 
|  | 12705 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12706 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 | 
|  | 12707 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12708 | ac_res=$ac_cv_search_ffi_call | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12709 | if test "$ac_res" != no; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12710 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 12711 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12712 | cat >>confdefs.h <<\_ACEOF | 
|  | 12713 | #define HAVE_FFI_CALL 1 | 
|  | 12714 | _ACEOF | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12715 |  | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12716 | else | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12717 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 | 
|  | 12718 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} | 
|  | 12719 | { (exit 1); exit 1; }; } | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12720 | fi | 
|  | 12721 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12722 | fi | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12723 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12724 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
|  | 12725 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } | 
|  | 12726 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 12727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12728 | else | 
|  | 12729 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12730 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12731 | /* confdefs.h.  */ | 
|  | 12732 | _ACEOF | 
|  | 12733 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12734 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12735 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12736 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12737 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12738 | Use char because int might match the return type of a GCC | 
|  | 12739 | builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12740 | #ifdef __cplusplus | 
|  | 12741 | extern "C" | 
|  | 12742 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12743 | char mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12744 | int | 
|  | 12745 | main () | 
|  | 12746 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12747 | return mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12748 | ; | 
|  | 12749 | return 0; | 
|  | 12750 | } | 
|  | 12751 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12752 | for ac_lib in '' malloc; do | 
|  | 12753 | if test -z "$ac_lib"; then | 
|  | 12754 | ac_res="none required" | 
|  | 12755 | else | 
|  | 12756 | ac_res=-l$ac_lib | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12757 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12758 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12759 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12760 | if { (ac_try="$ac_link" | 
|  | 12761 | case "(($ac_try" in | 
|  | 12762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12763 | *) ac_try_echo=$ac_try;; | 
|  | 12764 | esac | 
|  | 12765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12766 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12767 | ac_status=$? | 
|  | 12768 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12769 | rm -f conftest.er1 | 
|  | 12770 | cat conftest.err >&5 | 
|  | 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12772 | (exit $ac_status); } && | 
|  | 12773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12780 | ac_status=$? | 
|  | 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12782 | (exit $ac_status); }; } && | 
|  | 12783 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12784 | { (case "(($ac_try" in | 
|  | 12785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12786 | *) ac_try_echo=$ac_try;; | 
|  | 12787 | esac | 
|  | 12788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12789 | (eval "$ac_try") 2>&5 | 
|  | 12790 | ac_status=$? | 
|  | 12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12792 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12793 | ac_cv_search_mallinfo=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12794 | else | 
|  | 12795 | echo "$as_me: failed program was:" >&5 | 
|  | 12796 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12797 |  | 
|  | 12798 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12799 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12800 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12801 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12802 | conftest$ac_exeext | 
|  | 12803 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12804 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12805 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12807 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 12808 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12809 | else | 
|  | 12810 | ac_cv_search_mallinfo=no | 
|  | 12811 | fi | 
|  | 12812 | rm conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12813 | LIBS=$ac_func_search_save_LIBS | 
|  | 12814 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12815 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
|  | 12816 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12817 | ac_res=$ac_cv_search_mallinfo | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12818 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12819 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12820 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12821 | cat >>confdefs.h <<\_ACEOF | 
|  | 12822 | #define HAVE_MALLINFO 1 | 
|  | 12823 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12824 |  | 
|  | 12825 | fi | 
|  | 12826 |  | 
|  | 12827 |  | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12828 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12829 |  | 
|  | 12830 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | 
|  | 12831 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } | 
|  | 12832 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | 
|  | 12833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12834 | else | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12835 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12836 | LIBS="-lpthread  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12837 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12838 | /* confdefs.h.  */ | 
|  | 12839 | _ACEOF | 
|  | 12840 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12841 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12842 | /* end confdefs.h.  */ | 
|  | 12843 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12844 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12845 | Use char because int might match the return type of a GCC | 
|  | 12846 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12847 | #ifdef __cplusplus | 
|  | 12848 | extern "C" | 
|  | 12849 | #endif | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12850 | char pthread_mutex_init (); | 
|  | 12851 | int | 
|  | 12852 | main () | 
|  | 12853 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12854 | return pthread_mutex_init (); | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12855 | ; | 
|  | 12856 | return 0; | 
|  | 12857 | } | 
|  | 12858 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12859 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12860 | if { (ac_try="$ac_link" | 
|  | 12861 | case "(($ac_try" in | 
|  | 12862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12863 | *) ac_try_echo=$ac_try;; | 
|  | 12864 | esac | 
|  | 12865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12866 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12867 | ac_status=$? | 
|  | 12868 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12869 | rm -f conftest.er1 | 
|  | 12870 | cat conftest.err >&5 | 
|  | 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12872 | (exit $ac_status); } && | 
|  | 12873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12880 | ac_status=$? | 
|  | 12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12882 | (exit $ac_status); }; } && | 
|  | 12883 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12884 | { (case "(($ac_try" in | 
|  | 12885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12886 | *) ac_try_echo=$ac_try;; | 
|  | 12887 | esac | 
|  | 12888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12889 | (eval "$ac_try") 2>&5 | 
|  | 12890 | ac_status=$? | 
|  | 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12892 | (exit $ac_status); }; }; then | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12893 | ac_cv_lib_pthread_pthread_mutex_init=yes | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12894 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12895 | echo "$as_me: failed program was:" >&5 | 
|  | 12896 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12897 |  | 
|  | 12898 | ac_cv_lib_pthread_pthread_mutex_init=no | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12899 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12900 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12901 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12902 | conftest$ac_exeext conftest.$ac_ext | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12903 | LIBS=$ac_check_lib_save_LIBS | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12904 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12905 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | 
|  | 12906 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } | 
|  | 12907 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12908 | cat >>confdefs.h <<_ACEOF | 
|  | 12909 | #define HAVE_LIBPTHREAD 1 | 
| Edward O'Callaghan | a5314b8 | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12910 | _ACEOF | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12911 |  | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12912 | LIBS="-lpthread $LIBS" | 
|  | 12913 |  | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12914 | fi | 
|  | 12915 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12916 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
|  | 12917 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | 
|  | 12918 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 12919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12920 | else | 
|  | 12921 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12922 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12923 | /* confdefs.h.  */ | 
|  | 12924 | _ACEOF | 
|  | 12925 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12926 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12927 | /* end confdefs.h.  */ | 
|  | 12928 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12929 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12930 | Use char because int might match the return type of a GCC | 
|  | 12931 | builtin and then its argument prototype would still apply.  */ | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12932 | #ifdef __cplusplus | 
|  | 12933 | extern "C" | 
|  | 12934 | #endif | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12935 | char pthread_mutex_lock (); | 
|  | 12936 | int | 
|  | 12937 | main () | 
|  | 12938 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12939 | return pthread_mutex_lock (); | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12940 | ; | 
|  | 12941 | return 0; | 
|  | 12942 | } | 
|  | 12943 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12944 | for ac_lib in '' pthread; do | 
|  | 12945 | if test -z "$ac_lib"; then | 
|  | 12946 | ac_res="none required" | 
|  | 12947 | else | 
|  | 12948 | ac_res=-l$ac_lib | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12949 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12950 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12951 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12952 | if { (ac_try="$ac_link" | 
|  | 12953 | case "(($ac_try" in | 
|  | 12954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12955 | *) ac_try_echo=$ac_try;; | 
|  | 12956 | esac | 
|  | 12957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12958 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12959 | ac_status=$? | 
|  | 12960 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12961 | rm -f conftest.er1 | 
|  | 12962 | cat conftest.err >&5 | 
|  | 12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12964 | (exit $ac_status); } && | 
|  | 12965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 12972 | ac_status=$? | 
|  | 12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12974 | (exit $ac_status); }; } && | 
|  | 12975 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12976 | { (case "(($ac_try" in | 
|  | 12977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12978 | *) ac_try_echo=$ac_try;; | 
|  | 12979 | esac | 
|  | 12980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12981 | (eval "$ac_try") 2>&5 | 
|  | 12982 | ac_status=$? | 
|  | 12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12984 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12985 | ac_cv_search_pthread_mutex_lock=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12986 | else | 
|  | 12987 | echo "$as_me: failed program was:" >&5 | 
|  | 12988 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12989 |  | 
|  | 12990 |  | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12991 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12992 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12993 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12994 | conftest$ac_exeext | 
|  | 12995 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12996 | break | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12997 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12998 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12999 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 13000 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13001 | else | 
|  | 13002 | ac_cv_search_pthread_mutex_lock=no | 
|  | 13003 | fi | 
|  | 13004 | rm conftest.$ac_ext | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13005 | LIBS=$ac_func_search_save_LIBS | 
|  | 13006 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13007 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
|  | 13008 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13009 | ac_res=$ac_cv_search_pthread_mutex_lock | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13010 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13011 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13012 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13013 | cat >>confdefs.h <<\_ACEOF | 
|  | 13014 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
|  | 13015 | _ACEOF | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13016 |  | 
|  | 13017 | fi | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13018 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13019 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 | 
|  | 13020 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } | 
|  | 13021 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
|  | 13022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13023 | else | 
|  | 13024 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13025 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13026 | /* confdefs.h.  */ | 
|  | 13027 | _ACEOF | 
|  | 13028 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13029 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13030 | /* end confdefs.h.  */ | 
|  | 13031 |  | 
|  | 13032 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13033 | Use char because int might match the return type of a GCC | 
|  | 13034 | builtin and then its argument prototype would still apply.  */ | 
|  | 13035 | #ifdef __cplusplus | 
|  | 13036 | extern "C" | 
|  | 13037 | #endif | 
|  | 13038 | char pthread_rwlock_init (); | 
|  | 13039 | int | 
|  | 13040 | main () | 
|  | 13041 | { | 
|  | 13042 | return pthread_rwlock_init (); | 
|  | 13043 | ; | 
|  | 13044 | return 0; | 
|  | 13045 | } | 
|  | 13046 | _ACEOF | 
|  | 13047 | for ac_lib in '' pthread; do | 
|  | 13048 | if test -z "$ac_lib"; then | 
|  | 13049 | ac_res="none required" | 
|  | 13050 | else | 
|  | 13051 | ac_res=-l$ac_lib | 
|  | 13052 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13053 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13054 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13055 | if { (ac_try="$ac_link" | 
|  | 13056 | case "(($ac_try" in | 
|  | 13057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13058 | *) ac_try_echo=$ac_try;; | 
|  | 13059 | esac | 
|  | 13060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13061 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13062 | ac_status=$? | 
|  | 13063 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13064 | rm -f conftest.er1 | 
|  | 13065 | cat conftest.err >&5 | 
|  | 13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13067 | (exit $ac_status); } && | 
|  | 13068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13075 | ac_status=$? | 
|  | 13076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13077 | (exit $ac_status); }; } && | 
|  | 13078 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13079 | { (case "(($ac_try" in | 
|  | 13080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13081 | *) ac_try_echo=$ac_try;; | 
|  | 13082 | esac | 
|  | 13083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13084 | (eval "$ac_try") 2>&5 | 
|  | 13085 | ac_status=$? | 
|  | 13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13087 | (exit $ac_status); }; }; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13088 | ac_cv_search_pthread_rwlock_init=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13089 | else | 
|  | 13090 | echo "$as_me: failed program was:" >&5 | 
|  | 13091 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13092 |  | 
|  | 13093 |  | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13094 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13095 |  | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13096 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13097 | conftest$ac_exeext | 
|  | 13098 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13099 | break | 
|  | 13100 | fi | 
|  | 13101 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13102 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
|  | 13103 | : | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13104 | else | 
|  | 13105 | ac_cv_search_pthread_rwlock_init=no | 
|  | 13106 | fi | 
|  | 13107 | rm conftest.$ac_ext | 
|  | 13108 | LIBS=$ac_func_search_save_LIBS | 
|  | 13109 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13110 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 | 
|  | 13111 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13112 | ac_res=$ac_cv_search_pthread_rwlock_init | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13113 | if test "$ac_res" != no; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13114 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13115 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13116 | cat >>confdefs.h <<\_ACEOF | 
|  | 13117 | #define HAVE_PTHREAD_RWLOCK_INIT 1 | 
|  | 13118 | _ACEOF | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13119 |  | 
|  | 13120 | fi | 
|  | 13121 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13122 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 | 
|  | 13123 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } | 
|  | 13124 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
|  | 13125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13126 | else | 
|  | 13127 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13128 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13129 | /* confdefs.h.  */ | 
|  | 13130 | _ACEOF | 
|  | 13131 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13132 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13133 | /* end confdefs.h.  */ | 
|  | 13134 |  | 
|  | 13135 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13136 | Use char because int might match the return type of a GCC | 
|  | 13137 | builtin and then its argument prototype would still apply.  */ | 
|  | 13138 | #ifdef __cplusplus | 
|  | 13139 | extern "C" | 
|  | 13140 | #endif | 
|  | 13141 | char pthread_getspecific (); | 
|  | 13142 | int | 
|  | 13143 | main () | 
|  | 13144 | { | 
|  | 13145 | return pthread_getspecific (); | 
|  | 13146 | ; | 
|  | 13147 | return 0; | 
|  | 13148 | } | 
|  | 13149 | _ACEOF | 
|  | 13150 | for ac_lib in '' pthread; do | 
|  | 13151 | if test -z "$ac_lib"; then | 
|  | 13152 | ac_res="none required" | 
|  | 13153 | else | 
|  | 13154 | ac_res=-l$ac_lib | 
|  | 13155 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13156 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13157 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13158 | if { (ac_try="$ac_link" | 
|  | 13159 | case "(($ac_try" in | 
|  | 13160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13161 | *) ac_try_echo=$ac_try;; | 
|  | 13162 | esac | 
|  | 13163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13164 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13165 | ac_status=$? | 
|  | 13166 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13167 | rm -f conftest.er1 | 
|  | 13168 | cat conftest.err >&5 | 
|  | 13169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13170 | (exit $ac_status); } && | 
|  | 13171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13178 | ac_status=$? | 
|  | 13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13180 | (exit $ac_status); }; } && | 
|  | 13181 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13182 | { (case "(($ac_try" in | 
|  | 13183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13184 | *) ac_try_echo=$ac_try;; | 
|  | 13185 | esac | 
|  | 13186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13187 | (eval "$ac_try") 2>&5 | 
|  | 13188 | ac_status=$? | 
|  | 13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13190 | (exit $ac_status); }; }; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13191 | ac_cv_search_pthread_getspecific=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13192 | else | 
|  | 13193 | echo "$as_me: failed program was:" >&5 | 
|  | 13194 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13195 |  | 
|  | 13196 |  | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13197 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13198 |  | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13199 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13200 | conftest$ac_exeext | 
|  | 13201 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13202 | break | 
|  | 13203 | fi | 
|  | 13204 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13205 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
|  | 13206 | : | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13207 | else | 
|  | 13208 | ac_cv_search_pthread_getspecific=no | 
|  | 13209 | fi | 
|  | 13210 | rm conftest.$ac_ext | 
|  | 13211 | LIBS=$ac_func_search_save_LIBS | 
|  | 13212 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13213 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 | 
|  | 13214 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13215 | ac_res=$ac_cv_search_pthread_getspecific | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13216 | if test "$ac_res" != no; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13217 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13218 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13219 | cat >>confdefs.h <<\_ACEOF | 
|  | 13220 | #define HAVE_PTHREAD_GETSPECIFIC 1 | 
|  | 13221 | _ACEOF | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13222 |  | 
|  | 13223 | fi | 
|  | 13224 |  | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13225 | fi | 
| Brian Gaeke | d3de6c0 | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13226 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13227 |  | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13228 | # Check whether --with-udis86 was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13229 | if test "${with_udis86+set}" = set; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13230 | withval=$with_udis86; | 
|  | 13231 | USE_UDIS86=1 | 
|  | 13232 |  | 
|  | 13233 | case "$withval" in | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13234 | /usr/lib|yes) ;; | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13235 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; | 
|  | 13236 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13237 |  | 
|  | 13238 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 | 
|  | 13239 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } | 
|  | 13240 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then | 
|  | 13241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13242 | else | 
|  | 13243 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13244 | LIBS="-ludis86  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13245 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13246 | /* confdefs.h.  */ | 
|  | 13247 | _ACEOF | 
|  | 13248 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13249 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13250 | /* end confdefs.h.  */ | 
|  | 13251 |  | 
|  | 13252 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13253 | Use char because int might match the return type of a GCC | 
|  | 13254 | builtin and then its argument prototype would still apply.  */ | 
|  | 13255 | #ifdef __cplusplus | 
|  | 13256 | extern "C" | 
|  | 13257 | #endif | 
|  | 13258 | char ud_init (); | 
|  | 13259 | int | 
|  | 13260 | main () | 
|  | 13261 | { | 
|  | 13262 | return ud_init (); | 
|  | 13263 | ; | 
|  | 13264 | return 0; | 
|  | 13265 | } | 
|  | 13266 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13267 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13268 | if { (ac_try="$ac_link" | 
|  | 13269 | case "(($ac_try" in | 
|  | 13270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13271 | *) ac_try_echo=$ac_try;; | 
|  | 13272 | esac | 
|  | 13273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13274 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13275 | ac_status=$? | 
|  | 13276 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13277 | rm -f conftest.er1 | 
|  | 13278 | cat conftest.err >&5 | 
|  | 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13280 | (exit $ac_status); } && | 
|  | 13281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13288 | ac_status=$? | 
|  | 13289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13290 | (exit $ac_status); }; } && | 
|  | 13291 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13292 | { (case "(($ac_try" in | 
|  | 13293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13294 | *) ac_try_echo=$ac_try;; | 
|  | 13295 | esac | 
|  | 13296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13297 | (eval "$ac_try") 2>&5 | 
|  | 13298 | ac_status=$? | 
|  | 13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13300 | (exit $ac_status); }; }; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13301 | ac_cv_lib_udis86_ud_init=yes | 
|  | 13302 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13303 | echo "$as_me: failed program was:" >&5 | 
|  | 13304 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13305 |  | 
|  | 13306 | ac_cv_lib_udis86_ud_init=no | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13307 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13308 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13309 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13310 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13311 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13312 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13313 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 | 
|  | 13314 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } | 
|  | 13315 | if test $ac_cv_lib_udis86_ud_init = yes; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13316 | cat >>confdefs.h <<_ACEOF | 
|  | 13317 | #define HAVE_LIBUDIS86 1 | 
|  | 13318 | _ACEOF | 
|  | 13319 |  | 
|  | 13320 | LIBS="-ludis86 $LIBS" | 
|  | 13321 |  | 
|  | 13322 | else | 
|  | 13323 |  | 
|  | 13324 | echo "Error! You need to have libudis86 around." | 
|  | 13325 | exit -1 | 
|  | 13326 |  | 
|  | 13327 | fi | 
|  | 13328 |  | 
|  | 13329 |  | 
|  | 13330 | else | 
|  | 13331 | USE_UDIS86=0 | 
|  | 13332 |  | 
|  | 13333 | fi | 
|  | 13334 |  | 
|  | 13335 |  | 
|  | 13336 | cat >>confdefs.h <<_ACEOF | 
|  | 13337 | #define USE_UDIS86 $USE_UDIS86 | 
|  | 13338 | _ACEOF | 
|  | 13339 |  | 
|  | 13340 |  | 
|  | 13341 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13342 | # Check whether --with-oprofile was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13343 | if test "${with_oprofile+set}" = set; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13344 | withval=$with_oprofile; | 
|  | 13345 | USE_OPROFILE=1 | 
|  | 13346 |  | 
|  | 13347 | case "$withval" in | 
|  | 13348 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13349 | no) llvm_cv_oppath= | 
|  | 13350 | USE_OPROFILE=0 | 
|  | 13351 | ;; | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13352 | *) llvm_cv_oppath="${withval}/lib/oprofile" | 
|  | 13353 | CPPFLAGS="-I${withval}/include";; | 
|  | 13354 | esac | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13355 | if test -n "$llvm_cv_oppath" ; then | 
|  | 13356 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13357 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 | 
|  | 13358 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } | 
|  | 13359 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
|  | 13360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13361 | else | 
|  | 13362 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13363 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13364 | /* confdefs.h.  */ | 
|  | 13365 | _ACEOF | 
|  | 13366 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13367 | cat >>conftest.$ac_ext <<_ACEOF | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13368 | /* end confdefs.h.  */ | 
|  | 13369 |  | 
|  | 13370 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13371 | Use char because int might match the return type of a GCC | 
|  | 13372 | builtin and then its argument prototype would still apply.  */ | 
|  | 13373 | #ifdef __cplusplus | 
|  | 13374 | extern "C" | 
|  | 13375 | #endif | 
|  | 13376 | char bfd_init (); | 
|  | 13377 | int | 
|  | 13378 | main () | 
|  | 13379 | { | 
|  | 13380 | return bfd_init (); | 
|  | 13381 | ; | 
|  | 13382 | return 0; | 
|  | 13383 | } | 
|  | 13384 | _ACEOF | 
|  | 13385 | for ac_lib in '' bfd; do | 
|  | 13386 | if test -z "$ac_lib"; then | 
|  | 13387 | ac_res="none required" | 
|  | 13388 | else | 
|  | 13389 | ac_res=-l$ac_lib | 
|  | 13390 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13391 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13392 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13393 | if { (ac_try="$ac_link" | 
|  | 13394 | case "(($ac_try" in | 
|  | 13395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13396 | *) ac_try_echo=$ac_try;; | 
|  | 13397 | esac | 
|  | 13398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13399 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13400 | ac_status=$? | 
|  | 13401 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13402 | rm -f conftest.er1 | 
|  | 13403 | cat conftest.err >&5 | 
|  | 13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13405 | (exit $ac_status); } && | 
|  | 13406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13413 | ac_status=$? | 
|  | 13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13415 | (exit $ac_status); }; } && | 
|  | 13416 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13417 | { (case "(($ac_try" in | 
|  | 13418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13419 | *) ac_try_echo=$ac_try;; | 
|  | 13420 | esac | 
|  | 13421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13422 | (eval "$ac_try") 2>&5 | 
|  | 13423 | ac_status=$? | 
|  | 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13425 | (exit $ac_status); }; }; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13426 | ac_cv_search_bfd_init=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13427 | else | 
|  | 13428 | echo "$as_me: failed program was:" >&5 | 
|  | 13429 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13430 |  | 
|  | 13431 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13432 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13433 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13434 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13435 | conftest$ac_exeext | 
|  | 13436 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13437 | break | 
|  | 13438 | fi | 
|  | 13439 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13440 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
|  | 13441 | : | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13442 | else | 
|  | 13443 | ac_cv_search_bfd_init=no | 
|  | 13444 | fi | 
|  | 13445 | rm conftest.$ac_ext | 
|  | 13446 | LIBS=$ac_func_search_save_LIBS | 
|  | 13447 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13448 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 | 
|  | 13449 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13450 | ac_res=$ac_cv_search_bfd_init | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13451 | if test "$ac_res" != no; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13453 |  | 
|  | 13454 | fi | 
|  | 13455 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13456 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 | 
|  | 13457 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } | 
|  | 13458 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
|  | 13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13460 | else | 
|  | 13461 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13462 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13463 | /* confdefs.h.  */ | 
|  | 13464 | _ACEOF | 
|  | 13465 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13466 | cat >>conftest.$ac_ext <<_ACEOF | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13467 | /* end confdefs.h.  */ | 
|  | 13468 |  | 
|  | 13469 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13470 | Use char because int might match the return type of a GCC | 
|  | 13471 | builtin and then its argument prototype would still apply.  */ | 
|  | 13472 | #ifdef __cplusplus | 
|  | 13473 | extern "C" | 
|  | 13474 | #endif | 
|  | 13475 | char op_open_agent (); | 
|  | 13476 | int | 
|  | 13477 | main () | 
|  | 13478 | { | 
|  | 13479 | return op_open_agent (); | 
|  | 13480 | ; | 
|  | 13481 | return 0; | 
|  | 13482 | } | 
|  | 13483 | _ACEOF | 
|  | 13484 | for ac_lib in '' opagent; do | 
|  | 13485 | if test -z "$ac_lib"; then | 
|  | 13486 | ac_res="none required" | 
|  | 13487 | else | 
|  | 13488 | ac_res=-l$ac_lib | 
|  | 13489 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13490 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13491 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13492 | if { (ac_try="$ac_link" | 
|  | 13493 | case "(($ac_try" in | 
|  | 13494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13495 | *) ac_try_echo=$ac_try;; | 
|  | 13496 | esac | 
|  | 13497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13498 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13499 | ac_status=$? | 
|  | 13500 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13501 | rm -f conftest.er1 | 
|  | 13502 | cat conftest.err >&5 | 
|  | 13503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13504 | (exit $ac_status); } && | 
|  | 13505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13512 | ac_status=$? | 
|  | 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13514 | (exit $ac_status); }; } && | 
|  | 13515 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13516 | { (case "(($ac_try" in | 
|  | 13517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13518 | *) ac_try_echo=$ac_try;; | 
|  | 13519 | esac | 
|  | 13520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13521 | (eval "$ac_try") 2>&5 | 
|  | 13522 | ac_status=$? | 
|  | 13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13524 | (exit $ac_status); }; }; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13525 | ac_cv_search_op_open_agent=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13526 | else | 
|  | 13527 | echo "$as_me: failed program was:" >&5 | 
|  | 13528 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13529 |  | 
|  | 13530 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13531 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13532 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13533 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13534 | conftest$ac_exeext | 
|  | 13535 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13536 | break | 
|  | 13537 | fi | 
|  | 13538 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13539 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
|  | 13540 | : | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13541 | else | 
|  | 13542 | ac_cv_search_op_open_agent=no | 
|  | 13543 | fi | 
|  | 13544 | rm conftest.$ac_ext | 
|  | 13545 | LIBS=$ac_func_search_save_LIBS | 
|  | 13546 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13547 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 | 
|  | 13548 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13549 | ac_res=$ac_cv_search_op_open_agent | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13550 | if test "$ac_res" != no; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13551 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13552 |  | 
|  | 13553 | else | 
|  | 13554 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13555 | echo "Error! You need to have libopagent around." | 
|  | 13556 | exit -1 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13557 |  | 
|  | 13558 | fi | 
|  | 13559 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13560 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13561 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
|  | 13562 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
|  | 13563 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13565 | fi | 
|  | 13566 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
|  | 13567 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
|  | 13568 | else | 
|  | 13569 | # Is the header compilable? | 
|  | 13570 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 | 
|  | 13571 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } | 
|  | 13572 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13573 | /* confdefs.h.  */ | 
|  | 13574 | _ACEOF | 
|  | 13575 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13576 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13577 | /* end confdefs.h.  */ | 
|  | 13578 | $ac_includes_default | 
|  | 13579 | #include <opagent.h> | 
|  | 13580 | _ACEOF | 
|  | 13581 | rm -f conftest.$ac_objext | 
|  | 13582 | if { (ac_try="$ac_compile" | 
|  | 13583 | case "(($ac_try" in | 
|  | 13584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13585 | *) ac_try_echo=$ac_try;; | 
|  | 13586 | esac | 
|  | 13587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13588 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13589 | ac_status=$? | 
|  | 13590 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13591 | rm -f conftest.er1 | 
|  | 13592 | cat conftest.err >&5 | 
|  | 13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13594 | (exit $ac_status); } && | 
|  | 13595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13602 | ac_status=$? | 
|  | 13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13604 | (exit $ac_status); }; } && | 
|  | 13605 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13606 | { (case "(($ac_try" in | 
|  | 13607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13608 | *) ac_try_echo=$ac_try;; | 
|  | 13609 | esac | 
|  | 13610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13611 | (eval "$ac_try") 2>&5 | 
|  | 13612 | ac_status=$? | 
|  | 13613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13614 | (exit $ac_status); }; }; then | 
|  | 13615 | ac_header_compiler=yes | 
|  | 13616 | else | 
|  | 13617 | echo "$as_me: failed program was:" >&5 | 
|  | 13618 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13619 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13620 | ac_header_compiler=no | 
|  | 13621 | fi | 
|  | 13622 |  | 
|  | 13623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13624 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 13625 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 13626 |  | 
|  | 13627 | # Is the header present? | 
|  | 13628 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 | 
|  | 13629 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } | 
|  | 13630 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13631 | /* confdefs.h.  */ | 
|  | 13632 | _ACEOF | 
|  | 13633 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13634 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13635 | /* end confdefs.h.  */ | 
|  | 13636 | #include <opagent.h> | 
|  | 13637 | _ACEOF | 
|  | 13638 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 13639 | case "(($ac_try" in | 
|  | 13640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13641 | *) ac_try_echo=$ac_try;; | 
|  | 13642 | esac | 
|  | 13643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 13645 | ac_status=$? | 
|  | 13646 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13647 | rm -f conftest.er1 | 
|  | 13648 | cat conftest.err >&5 | 
|  | 13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13650 | (exit $ac_status); } >/dev/null; then | 
|  | 13651 | if test -s conftest.err; then | 
|  | 13652 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 13653 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 13654 | else | 
|  | 13655 | ac_cpp_err= | 
|  | 13656 | fi | 
|  | 13657 | else | 
|  | 13658 | ac_cpp_err=yes | 
|  | 13659 | fi | 
|  | 13660 | if test -z "$ac_cpp_err"; then | 
|  | 13661 | ac_header_preproc=yes | 
|  | 13662 | else | 
|  | 13663 | echo "$as_me: failed program was:" >&5 | 
|  | 13664 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13665 |  | 
|  | 13666 | ac_header_preproc=no | 
|  | 13667 | fi | 
|  | 13668 |  | 
|  | 13669 | rm -f conftest.err conftest.$ac_ext | 
|  | 13670 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 13671 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 13672 |  | 
|  | 13673 | # So?  What about this header? | 
|  | 13674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 13675 | yes:no: ) | 
|  | 13676 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 13677 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 13678 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 | 
|  | 13679 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} | 
|  | 13680 | ac_header_preproc=yes | 
|  | 13681 | ;; | 
|  | 13682 | no:yes:* ) | 
|  | 13683 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 | 
|  | 13684 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} | 
|  | 13685 | { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5 | 
|  | 13686 | echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;} | 
|  | 13687 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 | 
|  | 13688 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} | 
|  | 13689 | { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 13690 | echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 13691 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 | 
|  | 13692 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} | 
|  | 13693 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 | 
|  | 13694 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} | 
|  | 13695 | ( cat <<\_ASBOX | 
|  | 13696 | ## ----------------------------------- ## | 
|  | 13697 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 13698 | ## ----------------------------------- ## | 
|  | 13699 | _ASBOX | 
|  | 13700 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 13701 | ;; | 
|  | 13702 | esac | 
|  | 13703 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
|  | 13704 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
|  | 13705 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13707 | else | 
|  | 13708 | ac_cv_header_opagent_h=$ac_header_preproc | 
|  | 13709 | fi | 
|  | 13710 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
|  | 13711 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
|  | 13712 |  | 
|  | 13713 | fi | 
|  | 13714 | if test $ac_cv_header_opagent_h = yes; then | 
|  | 13715 | : | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13716 | else | 
|  | 13717 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13718 | echo "Error! You need to have opagent.h around." | 
|  | 13719 | exit -1 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13720 |  | 
|  | 13721 | fi | 
|  | 13722 |  | 
|  | 13723 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13724 | fi | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13725 |  | 
|  | 13726 | else | 
|  | 13727 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13728 | USE_OPROFILE=0 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13729 |  | 
|  | 13730 |  | 
|  | 13731 | fi | 
|  | 13732 |  | 
|  | 13733 |  | 
|  | 13734 | cat >>confdefs.h <<_ACEOF | 
|  | 13735 | #define USE_OPROFILE $USE_OPROFILE | 
|  | 13736 | _ACEOF | 
|  | 13737 |  | 
|  | 13738 |  | 
|  | 13739 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13740 |  | 
|  | 13741 |  | 
|  | 13742 |  | 
|  | 13743 |  | 
|  | 13744 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13745 | ac_header_dirent=no | 
|  | 13746 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13747 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 13748 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 13749 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
|  | 13750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 13751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13752 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13753 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13754 | /* confdefs.h.  */ | 
|  | 13755 | _ACEOF | 
|  | 13756 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13757 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13758 | /* end confdefs.h.  */ | 
|  | 13759 | #include <sys/types.h> | 
|  | 13760 | #include <$ac_hdr> | 
|  | 13761 |  | 
|  | 13762 | int | 
|  | 13763 | main () | 
|  | 13764 | { | 
|  | 13765 | if ((DIR *) 0) | 
|  | 13766 | return 0; | 
|  | 13767 | ; | 
|  | 13768 | return 0; | 
|  | 13769 | } | 
|  | 13770 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13771 | rm -f conftest.$ac_objext | 
|  | 13772 | if { (ac_try="$ac_compile" | 
|  | 13773 | case "(($ac_try" in | 
|  | 13774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13775 | *) ac_try_echo=$ac_try;; | 
|  | 13776 | esac | 
|  | 13777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13778 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13779 | ac_status=$? | 
|  | 13780 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13781 | rm -f conftest.er1 | 
|  | 13782 | cat conftest.err >&5 | 
|  | 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13784 | (exit $ac_status); } && | 
|  | 13785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13792 | ac_status=$? | 
|  | 13793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13794 | (exit $ac_status); }; } && | 
|  | 13795 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13796 | { (case "(($ac_try" in | 
|  | 13797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13798 | *) ac_try_echo=$ac_try;; | 
|  | 13799 | esac | 
|  | 13800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13801 | (eval "$ac_try") 2>&5 | 
|  | 13802 | ac_status=$? | 
|  | 13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13804 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13805 | eval "$as_ac_Header=yes" | 
|  | 13806 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13807 | echo "$as_me: failed program was:" >&5 | 
|  | 13808 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13809 |  | 
|  | 13810 | eval "$as_ac_Header=no" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13811 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13812 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13814 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13815 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 13816 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 13817 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 13818 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13819 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13820 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13821 | _ACEOF | 
|  | 13822 |  | 
|  | 13823 | ac_header_dirent=$ac_hdr; break | 
|  | 13824 | fi | 
|  | 13825 |  | 
|  | 13826 | done | 
|  | 13827 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 13828 | if test $ac_header_dirent = dirent.h; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13829 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 13830 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 13831 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 13832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13833 | else | 
|  | 13834 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13835 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13836 | /* confdefs.h.  */ | 
|  | 13837 | _ACEOF | 
|  | 13838 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13839 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13840 | /* end confdefs.h.  */ | 
|  | 13841 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13842 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13843 | Use char because int might match the return type of a GCC | 
|  | 13844 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13845 | #ifdef __cplusplus | 
|  | 13846 | extern "C" | 
|  | 13847 | #endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13848 | char opendir (); | 
|  | 13849 | int | 
|  | 13850 | main () | 
|  | 13851 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13852 | return opendir (); | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13853 | ; | 
|  | 13854 | return 0; | 
|  | 13855 | } | 
|  | 13856 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13857 | for ac_lib in '' dir; do | 
|  | 13858 | if test -z "$ac_lib"; then | 
|  | 13859 | ac_res="none required" | 
|  | 13860 | else | 
|  | 13861 | ac_res=-l$ac_lib | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13862 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13863 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13864 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13865 | if { (ac_try="$ac_link" | 
|  | 13866 | case "(($ac_try" in | 
|  | 13867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13868 | *) ac_try_echo=$ac_try;; | 
|  | 13869 | esac | 
|  | 13870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13871 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13872 | ac_status=$? | 
|  | 13873 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13874 | rm -f conftest.er1 | 
|  | 13875 | cat conftest.err >&5 | 
|  | 13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13877 | (exit $ac_status); } && | 
|  | 13878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13885 | ac_status=$? | 
|  | 13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13887 | (exit $ac_status); }; } && | 
|  | 13888 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13889 | { (case "(($ac_try" in | 
|  | 13890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13891 | *) ac_try_echo=$ac_try;; | 
|  | 13892 | esac | 
|  | 13893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13894 | (eval "$ac_try") 2>&5 | 
|  | 13895 | ac_status=$? | 
|  | 13896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13897 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13898 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13899 | else | 
|  | 13900 | echo "$as_me: failed program was:" >&5 | 
|  | 13901 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13902 |  | 
|  | 13903 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13904 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13905 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13906 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13907 | conftest$ac_exeext | 
|  | 13908 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13909 | break | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13910 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13911 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13912 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 13913 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13914 | else | 
|  | 13915 | ac_cv_search_opendir=no | 
|  | 13916 | fi | 
|  | 13917 | rm conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13918 | LIBS=$ac_func_search_save_LIBS | 
|  | 13919 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13920 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 13921 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13922 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13923 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13924 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13925 |  | 
|  | 13926 | fi | 
|  | 13927 |  | 
|  | 13928 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13929 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 13930 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 13931 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 13932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13933 | else | 
|  | 13934 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13935 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13936 | /* confdefs.h.  */ | 
|  | 13937 | _ACEOF | 
|  | 13938 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13939 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13940 | /* end confdefs.h.  */ | 
|  | 13941 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13942 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13943 | Use char because int might match the return type of a GCC | 
|  | 13944 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13945 | #ifdef __cplusplus | 
|  | 13946 | extern "C" | 
|  | 13947 | #endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13948 | char opendir (); | 
|  | 13949 | int | 
|  | 13950 | main () | 
|  | 13951 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13952 | return opendir (); | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13953 | ; | 
|  | 13954 | return 0; | 
|  | 13955 | } | 
|  | 13956 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13957 | for ac_lib in '' x; do | 
|  | 13958 | if test -z "$ac_lib"; then | 
|  | 13959 | ac_res="none required" | 
|  | 13960 | else | 
|  | 13961 | ac_res=-l$ac_lib | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13962 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13963 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13964 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13965 | if { (ac_try="$ac_link" | 
|  | 13966 | case "(($ac_try" in | 
|  | 13967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13968 | *) ac_try_echo=$ac_try;; | 
|  | 13969 | esac | 
|  | 13970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13971 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13972 | ac_status=$? | 
|  | 13973 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13974 | rm -f conftest.er1 | 
|  | 13975 | cat conftest.err >&5 | 
|  | 13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13977 | (exit $ac_status); } && | 
|  | 13978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 13985 | ac_status=$? | 
|  | 13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13987 | (exit $ac_status); }; } && | 
|  | 13988 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13989 | { (case "(($ac_try" in | 
|  | 13990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13991 | *) ac_try_echo=$ac_try;; | 
|  | 13992 | esac | 
|  | 13993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13994 | (eval "$ac_try") 2>&5 | 
|  | 13995 | ac_status=$? | 
|  | 13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13997 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13998 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13999 | else | 
|  | 14000 | echo "$as_me: failed program was:" >&5 | 
|  | 14001 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14002 |  | 
|  | 14003 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14004 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14005 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14006 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14007 | conftest$ac_exeext | 
|  | 14008 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14009 | break | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14010 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14011 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14012 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14013 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14014 | else | 
|  | 14015 | ac_cv_search_opendir=no | 
|  | 14016 | fi | 
|  | 14017 | rm conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14018 | LIBS=$ac_func_search_save_LIBS | 
|  | 14019 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14020 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 14021 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14022 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14023 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14024 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14025 |  | 
|  | 14026 | fi | 
|  | 14027 |  | 
|  | 14028 | fi | 
|  | 14029 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14030 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
|  | 14031 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } | 
|  | 14032 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
|  | 14033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14034 | else | 
|  | 14035 | ac_ext=c | 
|  | 14036 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14040 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14041 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14042 | /* confdefs.h.  */ | 
|  | 14043 | _ACEOF | 
|  | 14044 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14045 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14046 | /* end confdefs.h.  */ | 
|  | 14047 | #include <sys/mman.h> | 
|  | 14048 | #include <unistd.h> | 
|  | 14049 | #include <fcntl.h> | 
|  | 14050 | int | 
|  | 14051 | main () | 
|  | 14052 | { | 
|  | 14053 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
|  | 14054 | ; | 
|  | 14055 | return 0; | 
|  | 14056 | } | 
|  | 14057 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14058 | rm -f conftest.$ac_objext | 
|  | 14059 | if { (ac_try="$ac_compile" | 
|  | 14060 | case "(($ac_try" in | 
|  | 14061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14062 | *) ac_try_echo=$ac_try;; | 
|  | 14063 | esac | 
|  | 14064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14065 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14066 | ac_status=$? | 
|  | 14067 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14068 | rm -f conftest.er1 | 
|  | 14069 | cat conftest.err >&5 | 
|  | 14070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14071 | (exit $ac_status); } && | 
|  | 14072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14079 | ac_status=$? | 
|  | 14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14081 | (exit $ac_status); }; } && | 
|  | 14082 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14083 | { (case "(($ac_try" in | 
|  | 14084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14085 | *) ac_try_echo=$ac_try;; | 
|  | 14086 | esac | 
|  | 14087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14088 | (eval "$ac_try") 2>&5 | 
|  | 14089 | ac_status=$? | 
|  | 14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14091 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14092 | ac_cv_header_mmap_anon=yes | 
|  | 14093 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14094 | echo "$as_me: failed program was:" >&5 | 
|  | 14095 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14096 |  | 
|  | 14097 | ac_cv_header_mmap_anon=no | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14098 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14099 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14101 | ac_ext=c | 
|  | 14102 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14106 |  | 
|  | 14107 |  | 
|  | 14108 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14109 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
|  | 14110 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14111 | if test "$ac_cv_header_mmap_anon" = yes; then | 
|  | 14112 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14113 | cat >>confdefs.h <<\_ACEOF | 
|  | 14114 | #define HAVE_MMAP_ANONYMOUS 1 | 
|  | 14115 | _ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14116 |  | 
|  | 14117 | fi | 
|  | 14118 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14119 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | 
|  | 14120 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } | 
|  | 14121 | if test "${ac_cv_header_stat_broken+set}" = set; then | 
|  | 14122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14123 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14124 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14125 | /* confdefs.h.  */ | 
|  | 14126 | _ACEOF | 
|  | 14127 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14128 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14129 | /* end confdefs.h.  */ | 
|  | 14130 | #include <sys/types.h> | 
|  | 14131 | #include <sys/stat.h> | 
|  | 14132 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14133 | #if defined S_ISBLK && defined S_IFDIR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14134 | # if S_ISBLK (S_IFDIR) | 
|  | 14135 | You lose. | 
|  | 14136 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14137 | #endif | 
|  | 14138 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14139 | #if defined S_ISBLK && defined S_IFCHR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14140 | # if S_ISBLK (S_IFCHR) | 
|  | 14141 | You lose. | 
|  | 14142 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14143 | #endif | 
|  | 14144 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14145 | #if defined S_ISLNK && defined S_IFREG | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14146 | # if S_ISLNK (S_IFREG) | 
|  | 14147 | You lose. | 
|  | 14148 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14149 | #endif | 
|  | 14150 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14151 | #if defined S_ISSOCK && defined S_IFREG | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14152 | # if S_ISSOCK (S_IFREG) | 
|  | 14153 | You lose. | 
|  | 14154 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14155 | #endif | 
|  | 14156 |  | 
|  | 14157 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 14159 | $EGREP "You lose" >/dev/null 2>&1; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14160 | ac_cv_header_stat_broken=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14161 | else | 
|  | 14162 | ac_cv_header_stat_broken=no | 
| Mikhail Glushenkov | 4308aa5 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14163 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14164 | rm -f conftest* | 
|  | 14165 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14166 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14167 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 | 
|  | 14168 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14169 | if test $ac_cv_header_stat_broken = yes; then | 
|  | 14170 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14171 | cat >>confdefs.h <<\_ACEOF | 
|  | 14172 | #define STAT_MACROS_BROKEN 1 | 
|  | 14173 | _ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14174 |  | 
|  | 14175 | fi | 
|  | 14176 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14177 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|  | 14178 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | 
|  | 14179 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
|  | 14180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14181 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14182 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14183 | /* confdefs.h.  */ | 
|  | 14184 | _ACEOF | 
|  | 14185 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14186 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14187 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14188 | #include <sys/types.h> | 
|  | 14189 | #include <sys/wait.h> | 
|  | 14190 | #ifndef WEXITSTATUS | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14191 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14192 | #endif | 
|  | 14193 | #ifndef WIFEXITED | 
|  | 14194 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|  | 14195 | #endif | 
|  | 14196 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14197 | int | 
|  | 14198 | main () | 
|  | 14199 | { | 
|  | 14200 | int s; | 
|  | 14201 | wait (&s); | 
|  | 14202 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|  | 14203 | ; | 
|  | 14204 | return 0; | 
|  | 14205 | } | 
|  | 14206 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14207 | rm -f conftest.$ac_objext | 
|  | 14208 | if { (ac_try="$ac_compile" | 
|  | 14209 | case "(($ac_try" in | 
|  | 14210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14211 | *) ac_try_echo=$ac_try;; | 
|  | 14212 | esac | 
|  | 14213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14214 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14215 | ac_status=$? | 
|  | 14216 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14217 | rm -f conftest.er1 | 
|  | 14218 | cat conftest.err >&5 | 
|  | 14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14220 | (exit $ac_status); } && | 
|  | 14221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14228 | ac_status=$? | 
|  | 14229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14230 | (exit $ac_status); }; } && | 
|  | 14231 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14232 | { (case "(($ac_try" in | 
|  | 14233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14234 | *) ac_try_echo=$ac_try;; | 
|  | 14235 | esac | 
|  | 14236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14237 | (eval "$ac_try") 2>&5 | 
|  | 14238 | ac_status=$? | 
|  | 14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14240 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14241 | ac_cv_header_sys_wait_h=yes | 
|  | 14242 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14243 | echo "$as_me: failed program was:" >&5 | 
|  | 14244 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14245 |  | 
|  | 14246 | ac_cv_header_sys_wait_h=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14247 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14248 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14250 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14251 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
|  | 14252 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14253 | if test $ac_cv_header_sys_wait_h = yes; then | 
|  | 14254 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14255 | cat >>confdefs.h <<\_ACEOF | 
|  | 14256 | #define HAVE_SYS_WAIT_H 1 | 
|  | 14257 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14258 |  | 
|  | 14259 | fi | 
|  | 14260 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14261 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 14262 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | 
|  | 14263 | if test "${ac_cv_header_time+set}" = set; then | 
|  | 14264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14265 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14266 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14267 | /* confdefs.h.  */ | 
|  | 14268 | _ACEOF | 
|  | 14269 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14270 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14271 | /* end confdefs.h.  */ | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14272 | #include <sys/types.h> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14273 | #include <sys/time.h> | 
|  | 14274 | #include <time.h> | 
|  | 14275 |  | 
|  | 14276 | int | 
|  | 14277 | main () | 
|  | 14278 | { | 
|  | 14279 | if ((struct tm *) 0) | 
|  | 14280 | return 0; | 
|  | 14281 | ; | 
|  | 14282 | return 0; | 
|  | 14283 | } | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14284 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14285 | rm -f conftest.$ac_objext | 
|  | 14286 | if { (ac_try="$ac_compile" | 
|  | 14287 | case "(($ac_try" in | 
|  | 14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14289 | *) ac_try_echo=$ac_try;; | 
|  | 14290 | esac | 
|  | 14291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14292 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14293 | ac_status=$? | 
|  | 14294 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14295 | rm -f conftest.er1 | 
|  | 14296 | cat conftest.err >&5 | 
|  | 14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14298 | (exit $ac_status); } && | 
|  | 14299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14306 | ac_status=$? | 
|  | 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14308 | (exit $ac_status); }; } && | 
|  | 14309 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14310 | { (case "(($ac_try" in | 
|  | 14311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14312 | *) ac_try_echo=$ac_try;; | 
|  | 14313 | esac | 
|  | 14314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14315 | (eval "$ac_try") 2>&5 | 
|  | 14316 | ac_status=$? | 
|  | 14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14318 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14319 | ac_cv_header_time=yes | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14320 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14321 | echo "$as_me: failed program was:" >&5 | 
|  | 14322 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14323 |  | 
|  | 14324 | ac_cv_header_time=no | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14325 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14326 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14328 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14329 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
|  | 14330 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14331 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14332 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14333 | cat >>confdefs.h <<\_ACEOF | 
|  | 14334 | #define TIME_WITH_SYS_TIME 1 | 
|  | 14335 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14336 |  | 
|  | 14337 | fi | 
|  | 14338 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14339 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14340 |  | 
|  | 14341 |  | 
|  | 14342 |  | 
|  | 14343 |  | 
|  | 14344 |  | 
|  | 14345 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14346 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14347 | do | 
|  | 14348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14350 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14352 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14354 | fi | 
|  | 14355 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14357 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14358 | else | 
|  | 14359 | # Is the header compilable? | 
|  | 14360 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14362 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14363 | /* confdefs.h.  */ | 
|  | 14364 | _ACEOF | 
|  | 14365 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14366 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14367 | /* end confdefs.h.  */ | 
|  | 14368 | $ac_includes_default | 
|  | 14369 | #include <$ac_header> | 
|  | 14370 | _ACEOF | 
|  | 14371 | rm -f conftest.$ac_objext | 
|  | 14372 | if { (ac_try="$ac_compile" | 
|  | 14373 | case "(($ac_try" in | 
|  | 14374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14375 | *) ac_try_echo=$ac_try;; | 
|  | 14376 | esac | 
|  | 14377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14378 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14379 | ac_status=$? | 
|  | 14380 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14381 | rm -f conftest.er1 | 
|  | 14382 | cat conftest.err >&5 | 
|  | 14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14384 | (exit $ac_status); } && | 
|  | 14385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14392 | ac_status=$? | 
|  | 14393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14394 | (exit $ac_status); }; } && | 
|  | 14395 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14396 | { (case "(($ac_try" in | 
|  | 14397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14398 | *) ac_try_echo=$ac_try;; | 
|  | 14399 | esac | 
|  | 14400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14401 | (eval "$ac_try") 2>&5 | 
|  | 14402 | ac_status=$? | 
|  | 14403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14404 | (exit $ac_status); }; }; then | 
|  | 14405 | ac_header_compiler=yes | 
|  | 14406 | else | 
|  | 14407 | echo "$as_me: failed program was:" >&5 | 
|  | 14408 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14409 |  | 
|  | 14410 | ac_header_compiler=no | 
|  | 14411 | fi | 
|  | 14412 |  | 
|  | 14413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14414 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14415 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14416 |  | 
|  | 14417 | # Is the header present? | 
|  | 14418 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14420 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14421 | /* confdefs.h.  */ | 
|  | 14422 | _ACEOF | 
|  | 14423 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14424 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14425 | /* end confdefs.h.  */ | 
|  | 14426 | #include <$ac_header> | 
|  | 14427 | _ACEOF | 
|  | 14428 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14429 | case "(($ac_try" in | 
|  | 14430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14431 | *) ac_try_echo=$ac_try;; | 
|  | 14432 | esac | 
|  | 14433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14435 | ac_status=$? | 
|  | 14436 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14437 | rm -f conftest.er1 | 
|  | 14438 | cat conftest.err >&5 | 
|  | 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14440 | (exit $ac_status); } >/dev/null; then | 
|  | 14441 | if test -s conftest.err; then | 
|  | 14442 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14444 | else | 
|  | 14445 | ac_cpp_err= | 
|  | 14446 | fi | 
|  | 14447 | else | 
|  | 14448 | ac_cpp_err=yes | 
|  | 14449 | fi | 
|  | 14450 | if test -z "$ac_cpp_err"; then | 
|  | 14451 | ac_header_preproc=yes | 
|  | 14452 | else | 
|  | 14453 | echo "$as_me: failed program was:" >&5 | 
|  | 14454 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14455 |  | 
|  | 14456 | ac_header_preproc=no | 
|  | 14457 | fi | 
|  | 14458 |  | 
|  | 14459 | rm -f conftest.err conftest.$ac_ext | 
|  | 14460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14461 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14462 |  | 
|  | 14463 | # So?  What about this header? | 
|  | 14464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14465 | yes:no: ) | 
|  | 14466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14470 | ac_header_preproc=yes | 
|  | 14471 | ;; | 
|  | 14472 | no:yes:* ) | 
|  | 14473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14475 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14476 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14479 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14480 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14485 | ( cat <<\_ASBOX | 
|  | 14486 | ## ----------------------------------- ## | 
|  | 14487 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 14488 | ## ----------------------------------- ## | 
|  | 14489 | _ASBOX | 
|  | 14490 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14491 | ;; | 
|  | 14492 | esac | 
|  | 14493 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14495 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14497 | else | 
|  | 14498 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14499 | fi | 
|  | 14500 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14501 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14502 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14503 |  | 
|  | 14504 | fi | 
|  | 14505 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14506 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14507 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14508 | _ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14509 |  | 
|  | 14510 | fi | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14511 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14512 | done | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14513 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14514 |  | 
|  | 14515 |  | 
|  | 14516 |  | 
|  | 14517 |  | 
|  | 14518 |  | 
|  | 14519 |  | 
| Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14520 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14521 | do | 
|  | 14522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14524 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14528 | fi | 
|  | 14529 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14531 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14532 | else | 
|  | 14533 | # Is the header compilable? | 
|  | 14534 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14535 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14536 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14537 | /* confdefs.h.  */ | 
|  | 14538 | _ACEOF | 
|  | 14539 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14540 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14541 | /* end confdefs.h.  */ | 
|  | 14542 | $ac_includes_default | 
|  | 14543 | #include <$ac_header> | 
|  | 14544 | _ACEOF | 
|  | 14545 | rm -f conftest.$ac_objext | 
|  | 14546 | if { (ac_try="$ac_compile" | 
|  | 14547 | case "(($ac_try" in | 
|  | 14548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14549 | *) ac_try_echo=$ac_try;; | 
|  | 14550 | esac | 
|  | 14551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14552 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14553 | ac_status=$? | 
|  | 14554 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14555 | rm -f conftest.er1 | 
|  | 14556 | cat conftest.err >&5 | 
|  | 14557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14558 | (exit $ac_status); } && | 
|  | 14559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14566 | ac_status=$? | 
|  | 14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14568 | (exit $ac_status); }; } && | 
|  | 14569 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14570 | { (case "(($ac_try" in | 
|  | 14571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14572 | *) ac_try_echo=$ac_try;; | 
|  | 14573 | esac | 
|  | 14574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14575 | (eval "$ac_try") 2>&5 | 
|  | 14576 | ac_status=$? | 
|  | 14577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14578 | (exit $ac_status); }; }; then | 
|  | 14579 | ac_header_compiler=yes | 
|  | 14580 | else | 
|  | 14581 | echo "$as_me: failed program was:" >&5 | 
|  | 14582 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14583 |  | 
|  | 14584 | ac_header_compiler=no | 
|  | 14585 | fi | 
|  | 14586 |  | 
|  | 14587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14588 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14589 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14590 |  | 
|  | 14591 | # Is the header present? | 
|  | 14592 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14593 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14594 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14595 | /* confdefs.h.  */ | 
|  | 14596 | _ACEOF | 
|  | 14597 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14598 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14599 | /* end confdefs.h.  */ | 
|  | 14600 | #include <$ac_header> | 
|  | 14601 | _ACEOF | 
|  | 14602 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14603 | case "(($ac_try" in | 
|  | 14604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14605 | *) ac_try_echo=$ac_try;; | 
|  | 14606 | esac | 
|  | 14607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14609 | ac_status=$? | 
|  | 14610 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14611 | rm -f conftest.er1 | 
|  | 14612 | cat conftest.err >&5 | 
|  | 14613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14614 | (exit $ac_status); } >/dev/null; then | 
|  | 14615 | if test -s conftest.err; then | 
|  | 14616 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14618 | else | 
|  | 14619 | ac_cpp_err= | 
|  | 14620 | fi | 
|  | 14621 | else | 
|  | 14622 | ac_cpp_err=yes | 
|  | 14623 | fi | 
|  | 14624 | if test -z "$ac_cpp_err"; then | 
|  | 14625 | ac_header_preproc=yes | 
|  | 14626 | else | 
|  | 14627 | echo "$as_me: failed program was:" >&5 | 
|  | 14628 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14629 |  | 
|  | 14630 | ac_header_preproc=no | 
|  | 14631 | fi | 
|  | 14632 |  | 
|  | 14633 | rm -f conftest.err conftest.$ac_ext | 
|  | 14634 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14635 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14636 |  | 
|  | 14637 | # So?  What about this header? | 
|  | 14638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14639 | yes:no: ) | 
|  | 14640 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14641 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14643 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14644 | ac_header_preproc=yes | 
|  | 14645 | ;; | 
|  | 14646 | no:yes:* ) | 
|  | 14647 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14648 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14649 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14650 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14651 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14652 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14653 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14654 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14656 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14657 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14658 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14659 | ( cat <<\_ASBOX | 
|  | 14660 | ## ----------------------------------- ## | 
|  | 14661 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 14662 | ## ----------------------------------- ## | 
|  | 14663 | _ASBOX | 
|  | 14664 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14665 | ;; | 
|  | 14666 | esac | 
|  | 14667 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14669 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14671 | else | 
|  | 14672 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14673 | fi | 
|  | 14674 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14675 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14676 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14677 |  | 
|  | 14678 | fi | 
|  | 14679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14680 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14682 | _ACEOF | 
|  | 14683 |  | 
|  | 14684 | fi | 
|  | 14685 |  | 
|  | 14686 | done | 
|  | 14687 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14688 |  | 
|  | 14689 |  | 
| Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14690 | for ac_header in utime.h windows.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14691 | do | 
|  | 14692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14694 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14696 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14698 | fi | 
|  | 14699 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14700 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14701 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14702 | else | 
|  | 14703 | # Is the header compilable? | 
|  | 14704 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14705 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14706 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14707 | /* confdefs.h.  */ | 
|  | 14708 | _ACEOF | 
|  | 14709 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14710 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14711 | /* end confdefs.h.  */ | 
|  | 14712 | $ac_includes_default | 
|  | 14713 | #include <$ac_header> | 
|  | 14714 | _ACEOF | 
|  | 14715 | rm -f conftest.$ac_objext | 
|  | 14716 | if { (ac_try="$ac_compile" | 
|  | 14717 | case "(($ac_try" in | 
|  | 14718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14719 | *) ac_try_echo=$ac_try;; | 
|  | 14720 | esac | 
|  | 14721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14722 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14723 | ac_status=$? | 
|  | 14724 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14725 | rm -f conftest.er1 | 
|  | 14726 | cat conftest.err >&5 | 
|  | 14727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14728 | (exit $ac_status); } && | 
|  | 14729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14736 | ac_status=$? | 
|  | 14737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14738 | (exit $ac_status); }; } && | 
|  | 14739 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14740 | { (case "(($ac_try" in | 
|  | 14741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14742 | *) ac_try_echo=$ac_try;; | 
|  | 14743 | esac | 
|  | 14744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14745 | (eval "$ac_try") 2>&5 | 
|  | 14746 | ac_status=$? | 
|  | 14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14748 | (exit $ac_status); }; }; then | 
|  | 14749 | ac_header_compiler=yes | 
|  | 14750 | else | 
|  | 14751 | echo "$as_me: failed program was:" >&5 | 
|  | 14752 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14753 |  | 
|  | 14754 | ac_header_compiler=no | 
|  | 14755 | fi | 
|  | 14756 |  | 
|  | 14757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14758 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14759 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14760 |  | 
|  | 14761 | # Is the header present? | 
|  | 14762 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14763 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14764 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14765 | /* confdefs.h.  */ | 
|  | 14766 | _ACEOF | 
|  | 14767 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14768 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14769 | /* end confdefs.h.  */ | 
|  | 14770 | #include <$ac_header> | 
|  | 14771 | _ACEOF | 
|  | 14772 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14773 | case "(($ac_try" in | 
|  | 14774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14775 | *) ac_try_echo=$ac_try;; | 
|  | 14776 | esac | 
|  | 14777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14778 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14779 | ac_status=$? | 
|  | 14780 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14781 | rm -f conftest.er1 | 
|  | 14782 | cat conftest.err >&5 | 
|  | 14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14784 | (exit $ac_status); } >/dev/null; then | 
|  | 14785 | if test -s conftest.err; then | 
|  | 14786 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14787 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14788 | else | 
|  | 14789 | ac_cpp_err= | 
|  | 14790 | fi | 
|  | 14791 | else | 
|  | 14792 | ac_cpp_err=yes | 
|  | 14793 | fi | 
|  | 14794 | if test -z "$ac_cpp_err"; then | 
|  | 14795 | ac_header_preproc=yes | 
|  | 14796 | else | 
|  | 14797 | echo "$as_me: failed program was:" >&5 | 
|  | 14798 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14799 |  | 
|  | 14800 | ac_header_preproc=no | 
|  | 14801 | fi | 
|  | 14802 |  | 
|  | 14803 | rm -f conftest.err conftest.$ac_ext | 
|  | 14804 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14805 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14806 |  | 
|  | 14807 | # So?  What about this header? | 
|  | 14808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14809 | yes:no: ) | 
|  | 14810 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14811 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14813 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14814 | ac_header_preproc=yes | 
|  | 14815 | ;; | 
|  | 14816 | no:yes:* ) | 
|  | 14817 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14818 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14819 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14820 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14821 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14822 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14823 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14824 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14826 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14827 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14828 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14829 | ( cat <<\_ASBOX | 
|  | 14830 | ## ----------------------------------- ## | 
|  | 14831 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 14832 | ## ----------------------------------- ## | 
|  | 14833 | _ASBOX | 
|  | 14834 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14835 | ;; | 
|  | 14836 | esac | 
|  | 14837 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14839 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14841 | else | 
|  | 14842 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14843 | fi | 
|  | 14844 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14845 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14846 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14847 |  | 
|  | 14848 | fi | 
|  | 14849 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14850 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14851 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14852 | _ACEOF | 
|  | 14853 |  | 
|  | 14854 | fi | 
|  | 14855 |  | 
|  | 14856 | done | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14857 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14858 |  | 
|  | 14859 |  | 
|  | 14860 |  | 
|  | 14861 |  | 
| Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 14862 |  | 
|  | 14863 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14864 | do | 
|  | 14865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14866 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14867 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14869 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14871 | fi | 
|  | 14872 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14873 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14874 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14875 | else | 
|  | 14876 | # Is the header compilable? | 
|  | 14877 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14878 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14879 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14880 | /* confdefs.h.  */ | 
|  | 14881 | _ACEOF | 
|  | 14882 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14883 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14884 | /* end confdefs.h.  */ | 
|  | 14885 | $ac_includes_default | 
|  | 14886 | #include <$ac_header> | 
|  | 14887 | _ACEOF | 
|  | 14888 | rm -f conftest.$ac_objext | 
|  | 14889 | if { (ac_try="$ac_compile" | 
|  | 14890 | case "(($ac_try" in | 
|  | 14891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14892 | *) ac_try_echo=$ac_try;; | 
|  | 14893 | esac | 
|  | 14894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14895 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14896 | ac_status=$? | 
|  | 14897 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14898 | rm -f conftest.er1 | 
|  | 14899 | cat conftest.err >&5 | 
|  | 14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14901 | (exit $ac_status); } && | 
|  | 14902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 14909 | ac_status=$? | 
|  | 14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14911 | (exit $ac_status); }; } && | 
|  | 14912 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14913 | { (case "(($ac_try" in | 
|  | 14914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14915 | *) ac_try_echo=$ac_try;; | 
|  | 14916 | esac | 
|  | 14917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14918 | (eval "$ac_try") 2>&5 | 
|  | 14919 | ac_status=$? | 
|  | 14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14921 | (exit $ac_status); }; }; then | 
|  | 14922 | ac_header_compiler=yes | 
|  | 14923 | else | 
|  | 14924 | echo "$as_me: failed program was:" >&5 | 
|  | 14925 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14926 |  | 
|  | 14927 | ac_header_compiler=no | 
|  | 14928 | fi | 
|  | 14929 |  | 
|  | 14930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14931 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14932 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14933 |  | 
|  | 14934 | # Is the header present? | 
|  | 14935 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14937 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14938 | /* confdefs.h.  */ | 
|  | 14939 | _ACEOF | 
|  | 14940 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14941 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14942 | /* end confdefs.h.  */ | 
|  | 14943 | #include <$ac_header> | 
|  | 14944 | _ACEOF | 
|  | 14945 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14946 | case "(($ac_try" in | 
|  | 14947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14948 | *) ac_try_echo=$ac_try;; | 
|  | 14949 | esac | 
|  | 14950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14951 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14952 | ac_status=$? | 
|  | 14953 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14954 | rm -f conftest.er1 | 
|  | 14955 | cat conftest.err >&5 | 
|  | 14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14957 | (exit $ac_status); } >/dev/null; then | 
|  | 14958 | if test -s conftest.err; then | 
|  | 14959 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14960 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14961 | else | 
|  | 14962 | ac_cpp_err= | 
|  | 14963 | fi | 
|  | 14964 | else | 
|  | 14965 | ac_cpp_err=yes | 
|  | 14966 | fi | 
|  | 14967 | if test -z "$ac_cpp_err"; then | 
|  | 14968 | ac_header_preproc=yes | 
|  | 14969 | else | 
|  | 14970 | echo "$as_me: failed program was:" >&5 | 
|  | 14971 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14972 |  | 
|  | 14973 | ac_header_preproc=no | 
|  | 14974 | fi | 
|  | 14975 |  | 
|  | 14976 | rm -f conftest.err conftest.$ac_ext | 
|  | 14977 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14978 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14979 |  | 
|  | 14980 | # So?  What about this header? | 
|  | 14981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14982 | yes:no: ) | 
|  | 14983 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14984 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14986 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14987 | ac_header_preproc=yes | 
|  | 14988 | ;; | 
|  | 14989 | no:yes:* ) | 
|  | 14990 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14991 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14992 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14993 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14994 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14995 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14996 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14997 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14999 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15000 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15001 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15002 | ( cat <<\_ASBOX | 
|  | 15003 | ## ----------------------------------- ## | 
|  | 15004 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 15005 | ## ----------------------------------- ## | 
|  | 15006 | _ASBOX | 
|  | 15007 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15008 | ;; | 
|  | 15009 | esac | 
|  | 15010 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15011 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15014 | else | 
|  | 15015 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15016 | fi | 
|  | 15017 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15018 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15019 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15020 |  | 
|  | 15021 | fi | 
|  | 15022 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15023 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15024 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15025 | _ACEOF | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15026 |  | 
|  | 15027 | fi | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15028 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15029 | done | 
|  | 15030 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15031 |  | 
|  | 15032 |  | 
|  | 15033 |  | 
|  | 15034 |  | 
| Douglas Gregor | 1543661 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15035 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15036 | do | 
|  | 15037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15039 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15041 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15043 | fi | 
|  | 15044 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15045 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15046 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15047 | else | 
|  | 15048 | # Is the header compilable? | 
|  | 15049 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15050 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15051 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15052 | /* confdefs.h.  */ | 
|  | 15053 | _ACEOF | 
|  | 15054 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15055 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15056 | /* end confdefs.h.  */ | 
|  | 15057 | $ac_includes_default | 
|  | 15058 | #include <$ac_header> | 
|  | 15059 | _ACEOF | 
|  | 15060 | rm -f conftest.$ac_objext | 
|  | 15061 | if { (ac_try="$ac_compile" | 
|  | 15062 | case "(($ac_try" in | 
|  | 15063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15064 | *) ac_try_echo=$ac_try;; | 
|  | 15065 | esac | 
|  | 15066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15067 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15068 | ac_status=$? | 
|  | 15069 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15070 | rm -f conftest.er1 | 
|  | 15071 | cat conftest.err >&5 | 
|  | 15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15073 | (exit $ac_status); } && | 
|  | 15074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 15081 | ac_status=$? | 
|  | 15082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15083 | (exit $ac_status); }; } && | 
|  | 15084 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15085 | { (case "(($ac_try" in | 
|  | 15086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15087 | *) ac_try_echo=$ac_try;; | 
|  | 15088 | esac | 
|  | 15089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15090 | (eval "$ac_try") 2>&5 | 
|  | 15091 | ac_status=$? | 
|  | 15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15093 | (exit $ac_status); }; }; then | 
|  | 15094 | ac_header_compiler=yes | 
|  | 15095 | else | 
|  | 15096 | echo "$as_me: failed program was:" >&5 | 
|  | 15097 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15098 |  | 
|  | 15099 | ac_header_compiler=no | 
|  | 15100 | fi | 
|  | 15101 |  | 
|  | 15102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15103 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15104 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15105 |  | 
|  | 15106 | # Is the header present? | 
|  | 15107 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15109 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15110 | /* confdefs.h.  */ | 
|  | 15111 | _ACEOF | 
|  | 15112 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15113 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15114 | /* end confdefs.h.  */ | 
|  | 15115 | #include <$ac_header> | 
|  | 15116 | _ACEOF | 
|  | 15117 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15118 | case "(($ac_try" in | 
|  | 15119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15120 | *) ac_try_echo=$ac_try;; | 
|  | 15121 | esac | 
|  | 15122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15123 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15124 | ac_status=$? | 
|  | 15125 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15126 | rm -f conftest.er1 | 
|  | 15127 | cat conftest.err >&5 | 
|  | 15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15129 | (exit $ac_status); } >/dev/null; then | 
|  | 15130 | if test -s conftest.err; then | 
|  | 15131 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15132 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15133 | else | 
|  | 15134 | ac_cpp_err= | 
|  | 15135 | fi | 
|  | 15136 | else | 
|  | 15137 | ac_cpp_err=yes | 
|  | 15138 | fi | 
|  | 15139 | if test -z "$ac_cpp_err"; then | 
|  | 15140 | ac_header_preproc=yes | 
|  | 15141 | else | 
|  | 15142 | echo "$as_me: failed program was:" >&5 | 
|  | 15143 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15144 |  | 
|  | 15145 | ac_header_preproc=no | 
|  | 15146 | fi | 
|  | 15147 |  | 
|  | 15148 | rm -f conftest.err conftest.$ac_ext | 
|  | 15149 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15150 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15151 |  | 
|  | 15152 | # So?  What about this header? | 
|  | 15153 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15154 | yes:no: ) | 
|  | 15155 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15156 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15158 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15159 | ac_header_preproc=yes | 
|  | 15160 | ;; | 
|  | 15161 | no:yes:* ) | 
|  | 15162 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15163 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15164 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15165 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15166 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15167 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15168 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15169 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15171 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15172 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15173 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15174 | ( cat <<\_ASBOX | 
|  | 15175 | ## ----------------------------------- ## | 
|  | 15176 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 15177 | ## ----------------------------------- ## | 
|  | 15178 | _ASBOX | 
|  | 15179 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15180 | ;; | 
|  | 15181 | esac | 
|  | 15182 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15186 | else | 
|  | 15187 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15188 | fi | 
|  | 15189 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15190 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15191 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15192 |  | 
|  | 15193 | fi | 
|  | 15194 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15195 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15196 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15197 | _ACEOF | 
|  | 15198 |  | 
|  | 15199 | fi | 
|  | 15200 |  | 
|  | 15201 | done | 
|  | 15202 |  | 
| Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15203 |  | 
|  | 15204 | for ac_header in valgrind/valgrind.h | 
|  | 15205 | do | 
|  | 15206 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15208 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15209 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15210 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15212 | fi | 
|  | 15213 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15214 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15215 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15216 | else | 
|  | 15217 | # Is the header compilable? | 
|  | 15218 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15220 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15221 | /* confdefs.h.  */ | 
|  | 15222 | _ACEOF | 
|  | 15223 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15224 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15225 | /* end confdefs.h.  */ | 
|  | 15226 | $ac_includes_default | 
|  | 15227 | #include <$ac_header> | 
|  | 15228 | _ACEOF | 
|  | 15229 | rm -f conftest.$ac_objext | 
|  | 15230 | if { (ac_try="$ac_compile" | 
|  | 15231 | case "(($ac_try" in | 
|  | 15232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15233 | *) ac_try_echo=$ac_try;; | 
|  | 15234 | esac | 
|  | 15235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15236 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15237 | ac_status=$? | 
|  | 15238 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15239 | rm -f conftest.er1 | 
|  | 15240 | cat conftest.err >&5 | 
|  | 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15242 | (exit $ac_status); } && | 
|  | 15243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 15250 | ac_status=$? | 
|  | 15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15252 | (exit $ac_status); }; } && | 
|  | 15253 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15254 | { (case "(($ac_try" in | 
|  | 15255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15256 | *) ac_try_echo=$ac_try;; | 
|  | 15257 | esac | 
|  | 15258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15259 | (eval "$ac_try") 2>&5 | 
|  | 15260 | ac_status=$? | 
|  | 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15262 | (exit $ac_status); }; }; then | 
|  | 15263 | ac_header_compiler=yes | 
|  | 15264 | else | 
|  | 15265 | echo "$as_me: failed program was:" >&5 | 
|  | 15266 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15267 |  | 
|  | 15268 | ac_header_compiler=no | 
|  | 15269 | fi | 
|  | 15270 |  | 
|  | 15271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15272 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15273 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15274 |  | 
|  | 15275 | # Is the header present? | 
|  | 15276 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15278 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15279 | /* confdefs.h.  */ | 
|  | 15280 | _ACEOF | 
|  | 15281 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15282 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15283 | /* end confdefs.h.  */ | 
|  | 15284 | #include <$ac_header> | 
|  | 15285 | _ACEOF | 
|  | 15286 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15287 | case "(($ac_try" in | 
|  | 15288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15289 | *) ac_try_echo=$ac_try;; | 
|  | 15290 | esac | 
|  | 15291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15292 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15293 | ac_status=$? | 
|  | 15294 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15295 | rm -f conftest.er1 | 
|  | 15296 | cat conftest.err >&5 | 
|  | 15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15298 | (exit $ac_status); } >/dev/null; then | 
|  | 15299 | if test -s conftest.err; then | 
|  | 15300 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15302 | else | 
|  | 15303 | ac_cpp_err= | 
|  | 15304 | fi | 
|  | 15305 | else | 
|  | 15306 | ac_cpp_err=yes | 
|  | 15307 | fi | 
|  | 15308 | if test -z "$ac_cpp_err"; then | 
|  | 15309 | ac_header_preproc=yes | 
|  | 15310 | else | 
|  | 15311 | echo "$as_me: failed program was:" >&5 | 
|  | 15312 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15313 |  | 
|  | 15314 | ac_header_preproc=no | 
|  | 15315 | fi | 
|  | 15316 |  | 
|  | 15317 | rm -f conftest.err conftest.$ac_ext | 
|  | 15318 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15319 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15320 |  | 
|  | 15321 | # So?  What about this header? | 
|  | 15322 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15323 | yes:no: ) | 
|  | 15324 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15325 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15327 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15328 | ac_header_preproc=yes | 
|  | 15329 | ;; | 
|  | 15330 | no:yes:* ) | 
|  | 15331 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15332 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15333 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15334 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15335 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15336 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15337 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15338 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15341 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15342 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15343 | ( cat <<\_ASBOX | 
|  | 15344 | ## ----------------------------------- ## | 
|  | 15345 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 15346 | ## ----------------------------------- ## | 
|  | 15347 | _ASBOX | 
|  | 15348 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15349 | ;; | 
|  | 15350 | esac | 
|  | 15351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15355 | else | 
|  | 15356 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15357 | fi | 
|  | 15358 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15359 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15360 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15361 |  | 
|  | 15362 | fi | 
|  | 15363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 15364 | cat >>confdefs.h <<_ACEOF | 
|  | 15365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15366 | _ACEOF | 
|  | 15367 |  | 
|  | 15368 | fi | 
|  | 15369 |  | 
|  | 15370 | done | 
|  | 15371 |  | 
| Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15372 |  | 
|  | 15373 | for ac_header in fenv.h | 
|  | 15374 | do | 
|  | 15375 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15377 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15379 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15381 | fi | 
|  | 15382 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15383 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15384 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15385 | else | 
|  | 15386 | # Is the header compilable? | 
|  | 15387 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15388 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15389 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15390 | /* confdefs.h.  */ | 
|  | 15391 | _ACEOF | 
|  | 15392 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15393 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15394 | /* end confdefs.h.  */ | 
|  | 15395 | $ac_includes_default | 
|  | 15396 | #include <$ac_header> | 
|  | 15397 | _ACEOF | 
|  | 15398 | rm -f conftest.$ac_objext | 
|  | 15399 | if { (ac_try="$ac_compile" | 
|  | 15400 | case "(($ac_try" in | 
|  | 15401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15402 | *) ac_try_echo=$ac_try;; | 
|  | 15403 | esac | 
|  | 15404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15405 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15406 | ac_status=$? | 
|  | 15407 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15408 | rm -f conftest.er1 | 
|  | 15409 | cat conftest.err >&5 | 
|  | 15410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15411 | (exit $ac_status); } && | 
|  | 15412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 15419 | ac_status=$? | 
|  | 15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15421 | (exit $ac_status); }; } && | 
|  | 15422 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15423 | { (case "(($ac_try" in | 
|  | 15424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15425 | *) ac_try_echo=$ac_try;; | 
|  | 15426 | esac | 
|  | 15427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15428 | (eval "$ac_try") 2>&5 | 
|  | 15429 | ac_status=$? | 
|  | 15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15431 | (exit $ac_status); }; }; then | 
|  | 15432 | ac_header_compiler=yes | 
|  | 15433 | else | 
|  | 15434 | echo "$as_me: failed program was:" >&5 | 
|  | 15435 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15436 |  | 
|  | 15437 | ac_header_compiler=no | 
|  | 15438 | fi | 
|  | 15439 |  | 
|  | 15440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15441 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15442 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15443 |  | 
|  | 15444 | # Is the header present? | 
|  | 15445 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15446 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15447 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15448 | /* confdefs.h.  */ | 
|  | 15449 | _ACEOF | 
|  | 15450 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15451 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15452 | /* end confdefs.h.  */ | 
|  | 15453 | #include <$ac_header> | 
|  | 15454 | _ACEOF | 
|  | 15455 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15456 | case "(($ac_try" in | 
|  | 15457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15458 | *) ac_try_echo=$ac_try;; | 
|  | 15459 | esac | 
|  | 15460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15461 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15462 | ac_status=$? | 
|  | 15463 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15464 | rm -f conftest.er1 | 
|  | 15465 | cat conftest.err >&5 | 
|  | 15466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15467 | (exit $ac_status); } >/dev/null; then | 
|  | 15468 | if test -s conftest.err; then | 
|  | 15469 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15471 | else | 
|  | 15472 | ac_cpp_err= | 
|  | 15473 | fi | 
|  | 15474 | else | 
|  | 15475 | ac_cpp_err=yes | 
|  | 15476 | fi | 
|  | 15477 | if test -z "$ac_cpp_err"; then | 
|  | 15478 | ac_header_preproc=yes | 
|  | 15479 | else | 
|  | 15480 | echo "$as_me: failed program was:" >&5 | 
|  | 15481 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15482 |  | 
|  | 15483 | ac_header_preproc=no | 
|  | 15484 | fi | 
|  | 15485 |  | 
|  | 15486 | rm -f conftest.err conftest.$ac_ext | 
|  | 15487 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15488 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15489 |  | 
|  | 15490 | # So?  What about this header? | 
|  | 15491 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15492 | yes:no: ) | 
|  | 15493 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15494 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15495 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15496 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15497 | ac_header_preproc=yes | 
|  | 15498 | ;; | 
|  | 15499 | no:yes:* ) | 
|  | 15500 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15501 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15502 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15503 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15504 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15505 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15506 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15507 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15509 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15510 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15511 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15512 | ( cat <<\_ASBOX | 
|  | 15513 | ## ----------------------------------- ## | 
|  | 15514 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 15515 | ## ----------------------------------- ## | 
|  | 15516 | _ASBOX | 
|  | 15517 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15518 | ;; | 
|  | 15519 | esac | 
|  | 15520 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15522 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15524 | else | 
|  | 15525 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15526 | fi | 
|  | 15527 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15528 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15529 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15530 |  | 
|  | 15531 | fi | 
|  | 15532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 15533 | cat >>confdefs.h <<_ACEOF | 
|  | 15534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15535 | _ACEOF | 
|  | 15536 |  | 
|  | 15537 | fi | 
|  | 15538 |  | 
|  | 15539 | done | 
|  | 15540 |  | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15541 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15542 |  | 
|  | 15543 | for ac_header in pthread.h | 
|  | 15544 | do | 
|  | 15545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15551 | fi | 
|  | 15552 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15553 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15554 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15555 | else | 
|  | 15556 | # Is the header compilable? | 
|  | 15557 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15559 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15560 | /* confdefs.h.  */ | 
|  | 15561 | _ACEOF | 
|  | 15562 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15563 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15564 | /* end confdefs.h.  */ | 
|  | 15565 | $ac_includes_default | 
|  | 15566 | #include <$ac_header> | 
|  | 15567 | _ACEOF | 
|  | 15568 | rm -f conftest.$ac_objext | 
|  | 15569 | if { (ac_try="$ac_compile" | 
|  | 15570 | case "(($ac_try" in | 
|  | 15571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15572 | *) ac_try_echo=$ac_try;; | 
|  | 15573 | esac | 
|  | 15574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15575 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15576 | ac_status=$? | 
|  | 15577 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15578 | rm -f conftest.er1 | 
|  | 15579 | cat conftest.err >&5 | 
|  | 15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15581 | (exit $ac_status); } && | 
|  | 15582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 15589 | ac_status=$? | 
|  | 15590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15591 | (exit $ac_status); }; } && | 
|  | 15592 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15593 | { (case "(($ac_try" in | 
|  | 15594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15595 | *) ac_try_echo=$ac_try;; | 
|  | 15596 | esac | 
|  | 15597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15598 | (eval "$ac_try") 2>&5 | 
|  | 15599 | ac_status=$? | 
|  | 15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15601 | (exit $ac_status); }; }; then | 
|  | 15602 | ac_header_compiler=yes | 
|  | 15603 | else | 
|  | 15604 | echo "$as_me: failed program was:" >&5 | 
|  | 15605 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15606 |  | 
|  | 15607 | ac_header_compiler=no | 
|  | 15608 | fi | 
|  | 15609 |  | 
|  | 15610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15611 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15612 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15613 |  | 
|  | 15614 | # Is the header present? | 
|  | 15615 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15616 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15617 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15618 | /* confdefs.h.  */ | 
|  | 15619 | _ACEOF | 
|  | 15620 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15621 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15622 | /* end confdefs.h.  */ | 
|  | 15623 | #include <$ac_header> | 
|  | 15624 | _ACEOF | 
|  | 15625 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15626 | case "(($ac_try" in | 
|  | 15627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15628 | *) ac_try_echo=$ac_try;; | 
|  | 15629 | esac | 
|  | 15630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15632 | ac_status=$? | 
|  | 15633 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15634 | rm -f conftest.er1 | 
|  | 15635 | cat conftest.err >&5 | 
|  | 15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15637 | (exit $ac_status); } >/dev/null; then | 
|  | 15638 | if test -s conftest.err; then | 
|  | 15639 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15640 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15641 | else | 
|  | 15642 | ac_cpp_err= | 
|  | 15643 | fi | 
|  | 15644 | else | 
|  | 15645 | ac_cpp_err=yes | 
|  | 15646 | fi | 
|  | 15647 | if test -z "$ac_cpp_err"; then | 
|  | 15648 | ac_header_preproc=yes | 
|  | 15649 | else | 
|  | 15650 | echo "$as_me: failed program was:" >&5 | 
|  | 15651 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15652 |  | 
|  | 15653 | ac_header_preproc=no | 
|  | 15654 | fi | 
|  | 15655 |  | 
|  | 15656 | rm -f conftest.err conftest.$ac_ext | 
|  | 15657 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15658 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15659 |  | 
|  | 15660 | # So?  What about this header? | 
|  | 15661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15662 | yes:no: ) | 
|  | 15663 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15664 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15666 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15667 | ac_header_preproc=yes | 
|  | 15668 | ;; | 
|  | 15669 | no:yes:* ) | 
|  | 15670 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15671 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15672 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15673 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15674 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15675 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15676 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15677 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15679 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15680 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15681 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15682 | ( cat <<\_ASBOX | 
|  | 15683 | ## ----------------------------------- ## | 
|  | 15684 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 15685 | ## ----------------------------------- ## | 
|  | 15686 | _ASBOX | 
|  | 15687 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15688 | ;; | 
|  | 15689 | esac | 
|  | 15690 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15692 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15694 | else | 
|  | 15695 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15696 | fi | 
|  | 15697 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15698 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15699 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15700 |  | 
|  | 15701 | fi | 
|  | 15702 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15703 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15704 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15705 | _ACEOF | 
|  | 15706 | HAVE_PTHREAD=1 | 
| Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15707 |  | 
|  | 15708 | else | 
|  | 15709 | HAVE_PTHREAD=0 | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15710 |  | 
|  | 15711 | fi | 
|  | 15712 |  | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15713 | done | 
| Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15714 |  | 
|  | 15715 | else | 
|  | 15716 | HAVE_PTHREAD=0 | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15717 |  | 
|  | 15718 | fi | 
| Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15719 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15720 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15721 |  | 
|  | 15722 |  | 
|  | 15723 | for ac_header in ffi.h ffi/ffi.h | 
|  | 15724 | do | 
|  | 15725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15727 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15731 | fi | 
|  | 15732 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15733 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15734 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15735 | else | 
|  | 15736 | # Is the header compilable? | 
|  | 15737 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15738 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15739 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15740 | /* confdefs.h.  */ | 
|  | 15741 | _ACEOF | 
|  | 15742 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15743 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15744 | /* end confdefs.h.  */ | 
|  | 15745 | $ac_includes_default | 
|  | 15746 | #include <$ac_header> | 
|  | 15747 | _ACEOF | 
|  | 15748 | rm -f conftest.$ac_objext | 
|  | 15749 | if { (ac_try="$ac_compile" | 
|  | 15750 | case "(($ac_try" in | 
|  | 15751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15752 | *) ac_try_echo=$ac_try;; | 
|  | 15753 | esac | 
|  | 15754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15755 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15756 | ac_status=$? | 
|  | 15757 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15758 | rm -f conftest.er1 | 
|  | 15759 | cat conftest.err >&5 | 
|  | 15760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15761 | (exit $ac_status); } && | 
|  | 15762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 15769 | ac_status=$? | 
|  | 15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15771 | (exit $ac_status); }; } && | 
|  | 15772 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15773 | { (case "(($ac_try" in | 
|  | 15774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15775 | *) ac_try_echo=$ac_try;; | 
|  | 15776 | esac | 
|  | 15777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15778 | (eval "$ac_try") 2>&5 | 
|  | 15779 | ac_status=$? | 
|  | 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15781 | (exit $ac_status); }; }; then | 
|  | 15782 | ac_header_compiler=yes | 
|  | 15783 | else | 
|  | 15784 | echo "$as_me: failed program was:" >&5 | 
|  | 15785 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15786 |  | 
|  | 15787 | ac_header_compiler=no | 
|  | 15788 | fi | 
|  | 15789 |  | 
|  | 15790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15791 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15792 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15793 |  | 
|  | 15794 | # Is the header present? | 
|  | 15795 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15796 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15797 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15798 | /* confdefs.h.  */ | 
|  | 15799 | _ACEOF | 
|  | 15800 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15801 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15802 | /* end confdefs.h.  */ | 
|  | 15803 | #include <$ac_header> | 
|  | 15804 | _ACEOF | 
|  | 15805 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15806 | case "(($ac_try" in | 
|  | 15807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15808 | *) ac_try_echo=$ac_try;; | 
|  | 15809 | esac | 
|  | 15810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15812 | ac_status=$? | 
|  | 15813 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15814 | rm -f conftest.er1 | 
|  | 15815 | cat conftest.err >&5 | 
|  | 15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15817 | (exit $ac_status); } >/dev/null; then | 
|  | 15818 | if test -s conftest.err; then | 
|  | 15819 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15820 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15821 | else | 
|  | 15822 | ac_cpp_err= | 
|  | 15823 | fi | 
|  | 15824 | else | 
|  | 15825 | ac_cpp_err=yes | 
|  | 15826 | fi | 
|  | 15827 | if test -z "$ac_cpp_err"; then | 
|  | 15828 | ac_header_preproc=yes | 
|  | 15829 | else | 
|  | 15830 | echo "$as_me: failed program was:" >&5 | 
|  | 15831 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15832 |  | 
|  | 15833 | ac_header_preproc=no | 
|  | 15834 | fi | 
|  | 15835 |  | 
|  | 15836 | rm -f conftest.err conftest.$ac_ext | 
|  | 15837 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15838 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15839 |  | 
|  | 15840 | # So?  What about this header? | 
|  | 15841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15842 | yes:no: ) | 
|  | 15843 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15844 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15846 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15847 | ac_header_preproc=yes | 
|  | 15848 | ;; | 
|  | 15849 | no:yes:* ) | 
|  | 15850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15852 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15853 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15854 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15855 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15856 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15857 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15859 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15860 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15861 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15862 | ( cat <<\_ASBOX | 
|  | 15863 | ## ----------------------------------- ## | 
|  | 15864 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 15865 | ## ----------------------------------- ## | 
|  | 15866 | _ASBOX | 
|  | 15867 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15868 | ;; | 
|  | 15869 | esac | 
|  | 15870 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15871 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15872 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15874 | else | 
|  | 15875 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15876 | fi | 
|  | 15877 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15879 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15880 |  | 
|  | 15881 | fi | 
|  | 15882 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15883 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15884 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15885 | _ACEOF | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15886 |  | 
|  | 15887 | fi | 
|  | 15888 |  | 
|  | 15889 | done | 
|  | 15890 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15891 | fi | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15892 |  | 
| Nick Lewycky | c94134d | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 15893 |  | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 15894 | for ac_header in CrashReporterClient.h | 
|  | 15895 | do | 
|  | 15896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15897 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15898 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15900 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15902 | fi | 
|  | 15903 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15904 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15905 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15906 | else | 
|  | 15907 | # Is the header compilable? | 
|  | 15908 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15910 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15911 | /* confdefs.h.  */ | 
|  | 15912 | _ACEOF | 
|  | 15913 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15914 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15915 | /* end confdefs.h.  */ | 
|  | 15916 | $ac_includes_default | 
|  | 15917 | #include <$ac_header> | 
|  | 15918 | _ACEOF | 
|  | 15919 | rm -f conftest.$ac_objext | 
|  | 15920 | if { (ac_try="$ac_compile" | 
|  | 15921 | case "(($ac_try" in | 
|  | 15922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15923 | *) ac_try_echo=$ac_try;; | 
|  | 15924 | esac | 
|  | 15925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15926 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15927 | ac_status=$? | 
|  | 15928 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15929 | rm -f conftest.er1 | 
|  | 15930 | cat conftest.err >&5 | 
|  | 15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15932 | (exit $ac_status); } && | 
|  | 15933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 15940 | ac_status=$? | 
|  | 15941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15942 | (exit $ac_status); }; } && | 
|  | 15943 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15944 | { (case "(($ac_try" in | 
|  | 15945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15946 | *) ac_try_echo=$ac_try;; | 
|  | 15947 | esac | 
|  | 15948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15949 | (eval "$ac_try") 2>&5 | 
|  | 15950 | ac_status=$? | 
|  | 15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15952 | (exit $ac_status); }; }; then | 
|  | 15953 | ac_header_compiler=yes | 
|  | 15954 | else | 
|  | 15955 | echo "$as_me: failed program was:" >&5 | 
|  | 15956 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15957 |  | 
|  | 15958 | ac_header_compiler=no | 
|  | 15959 | fi | 
|  | 15960 |  | 
|  | 15961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15962 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15963 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15964 |  | 
|  | 15965 | # Is the header present? | 
|  | 15966 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15967 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15968 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15969 | /* confdefs.h.  */ | 
|  | 15970 | _ACEOF | 
|  | 15971 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15972 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15973 | /* end confdefs.h.  */ | 
|  | 15974 | #include <$ac_header> | 
|  | 15975 | _ACEOF | 
|  | 15976 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15977 | case "(($ac_try" in | 
|  | 15978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15979 | *) ac_try_echo=$ac_try;; | 
|  | 15980 | esac | 
|  | 15981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15983 | ac_status=$? | 
|  | 15984 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15985 | rm -f conftest.er1 | 
|  | 15986 | cat conftest.err >&5 | 
|  | 15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15988 | (exit $ac_status); } >/dev/null; then | 
|  | 15989 | if test -s conftest.err; then | 
|  | 15990 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15992 | else | 
|  | 15993 | ac_cpp_err= | 
|  | 15994 | fi | 
|  | 15995 | else | 
|  | 15996 | ac_cpp_err=yes | 
|  | 15997 | fi | 
|  | 15998 | if test -z "$ac_cpp_err"; then | 
|  | 15999 | ac_header_preproc=yes | 
|  | 16000 | else | 
|  | 16001 | echo "$as_me: failed program was:" >&5 | 
|  | 16002 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16003 |  | 
|  | 16004 | ac_header_preproc=no | 
|  | 16005 | fi | 
|  | 16006 |  | 
|  | 16007 | rm -f conftest.err conftest.$ac_ext | 
|  | 16008 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 16009 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 16010 |  | 
|  | 16011 | # So?  What about this header? | 
|  | 16012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 16013 | yes:no: ) | 
|  | 16014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 16015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 16016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 16017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 16018 | ac_header_preproc=yes | 
|  | 16019 | ;; | 
|  | 16020 | no:yes:* ) | 
|  | 16021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 16022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 16023 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 16024 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 16025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 16026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 16027 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 16028 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 16029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 16030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 16031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 16032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 16033 | ( cat <<\_ASBOX | 
|  | 16034 | ## ----------------------------------- ## | 
|  | 16035 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 16036 | ## ----------------------------------- ## | 
|  | 16037 | _ASBOX | 
|  | 16038 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 16039 | ;; | 
|  | 16040 | esac | 
|  | 16041 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16045 | else | 
|  | 16046 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 16047 | fi | 
|  | 16048 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16050 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16051 |  | 
|  | 16052 | fi | 
|  | 16053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 16054 | cat >>confdefs.h <<_ACEOF | 
|  | 16055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 16056 | _ACEOF | 
|  | 16057 |  | 
|  | 16058 | fi | 
|  | 16059 |  | 
|  | 16060 | done | 
|  | 16061 |  | 
|  | 16062 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16063 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 | 
|  | 16064 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16065 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16066 | /* confdefs.h.  */ | 
|  | 16067 | _ACEOF | 
|  | 16068 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16069 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16070 | /* end confdefs.h.  */ | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16071 | extern const char *__crashreporter_info__; | 
|  | 16072 | int main() { | 
|  | 16073 | __crashreporter_info__ = "test"; | 
|  | 16074 | return 0; | 
|  | 16075 | } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16076 |  | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16077 | _ACEOF | 
|  | 16078 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16079 | if { (ac_try="$ac_link" | 
|  | 16080 | case "(($ac_try" in | 
|  | 16081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16082 | *) ac_try_echo=$ac_try;; | 
|  | 16083 | esac | 
|  | 16084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16085 | (eval "$ac_link") 2>conftest.er1 | 
|  | 16086 | ac_status=$? | 
|  | 16087 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16088 | rm -f conftest.er1 | 
|  | 16089 | cat conftest.err >&5 | 
|  | 16090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16091 | (exit $ac_status); } && | 
|  | 16092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16099 | ac_status=$? | 
|  | 16100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16101 | (exit $ac_status); }; } && | 
|  | 16102 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16103 | { (case "(($ac_try" in | 
|  | 16104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16105 | *) ac_try_echo=$ac_try;; | 
|  | 16106 | esac | 
|  | 16107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16108 | (eval "$ac_try") 2>&5 | 
|  | 16109 | ac_status=$? | 
|  | 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16111 | (exit $ac_status); }; }; then | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16112 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 16113 | echo "${ECHO_T}yes" >&6; } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16114 |  | 
|  | 16115 | cat >>confdefs.h <<\_ACEOF | 
|  | 16116 | #define HAVE_CRASHREPORTER_INFO 1 | 
|  | 16117 | _ACEOF | 
|  | 16118 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16119 | else | 
|  | 16120 | echo "$as_me: failed program was:" >&5 | 
|  | 16121 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16122 |  | 
|  | 16123 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 16124 | echo "${ECHO_T}no" >&6; } | 
|  | 16125 |  | 
|  | 16126 | cat >>confdefs.h <<\_ACEOF | 
|  | 16127 | #define HAVE_CRASHREPORTER_INFO 0 | 
|  | 16128 | _ACEOF | 
|  | 16129 |  | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16130 | fi | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16131 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16132 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16133 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16134 |  | 
|  | 16135 |  | 
| Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16136 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16137 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16138 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 | 
|  | 16139 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } | 
|  | 16140 | if test "${ac_cv_huge_val_sanity+set}" = set; then | 
|  | 16141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16142 | else | 
|  | 16143 |  | 
| Reid Spencer | 7b7ab9c | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16144 | ac_ext=cpp | 
|  | 16145 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 16146 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16147 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16148 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16149 |  | 
| Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16150 | ac_save_CXXFLAGS=$CXXFLAGS | 
| Reid Spencer | 7b7ab9c | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16151 | CXXFLAGS=-pedantic | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16152 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16153 | ac_cv_huge_val_sanity=yes | 
|  | 16154 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16155 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16156 | /* confdefs.h.  */ | 
|  | 16157 | _ACEOF | 
|  | 16158 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16159 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16160 | /* end confdefs.h.  */ | 
|  | 16161 | #include <math.h> | 
|  | 16162 | int | 
|  | 16163 | main () | 
|  | 16164 | { | 
|  | 16165 | double x = HUGE_VAL; return x != x; | 
|  | 16166 | ; | 
|  | 16167 | return 0; | 
|  | 16168 | } | 
|  | 16169 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16170 | rm -f conftest$ac_exeext | 
|  | 16171 | if { (ac_try="$ac_link" | 
|  | 16172 | case "(($ac_try" in | 
|  | 16173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16174 | *) ac_try_echo=$ac_try;; | 
|  | 16175 | esac | 
|  | 16176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16177 | (eval "$ac_link") 2>&5 | 
|  | 16178 | ac_status=$? | 
|  | 16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 16181 | { (case "(($ac_try" in | 
|  | 16182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16183 | *) ac_try_echo=$ac_try;; | 
|  | 16184 | esac | 
|  | 16185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16186 | (eval "$ac_try") 2>&5 | 
|  | 16187 | ac_status=$? | 
|  | 16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16189 | (exit $ac_status); }; }; then | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16190 | ac_cv_huge_val_sanity=yes | 
|  | 16191 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16192 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 16193 | echo "$as_me: failed program was:" >&5 | 
|  | 16194 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16195 |  | 
|  | 16196 | ( exit $ac_status ) | 
|  | 16197 | ac_cv_huge_val_sanity=no | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16198 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16199 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16200 | fi | 
|  | 16201 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16202 |  | 
| Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16203 | CXXFLAGS=$ac_save_CXXFLAGS | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16204 | ac_ext=c | 
|  | 16205 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 16209 |  | 
|  | 16210 |  | 
|  | 16211 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16212 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 | 
|  | 16213 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16214 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity | 
|  | 16215 |  | 
|  | 16216 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16217 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | 
|  | 16218 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | 
|  | 16219 | if test "${ac_cv_type_pid_t+set}" = set; then | 
|  | 16220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16221 | else | 
|  | 16222 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16223 | /* confdefs.h.  */ | 
|  | 16224 | _ACEOF | 
|  | 16225 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16226 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16227 | /* end confdefs.h.  */ | 
|  | 16228 | $ac_includes_default | 
|  | 16229 | typedef pid_t ac__type_new_; | 
|  | 16230 | int | 
|  | 16231 | main () | 
|  | 16232 | { | 
|  | 16233 | if ((ac__type_new_ *) 0) | 
|  | 16234 | return 0; | 
|  | 16235 | if (sizeof (ac__type_new_)) | 
|  | 16236 | return 0; | 
|  | 16237 | ; | 
|  | 16238 | return 0; | 
|  | 16239 | } | 
|  | 16240 | _ACEOF | 
|  | 16241 | rm -f conftest.$ac_objext | 
|  | 16242 | if { (ac_try="$ac_compile" | 
|  | 16243 | case "(($ac_try" in | 
|  | 16244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16245 | *) ac_try_echo=$ac_try;; | 
|  | 16246 | esac | 
|  | 16247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16248 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16249 | ac_status=$? | 
|  | 16250 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16251 | rm -f conftest.er1 | 
|  | 16252 | cat conftest.err >&5 | 
|  | 16253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16254 | (exit $ac_status); } && | 
|  | 16255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16262 | ac_status=$? | 
|  | 16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16264 | (exit $ac_status); }; } && | 
|  | 16265 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16266 | { (case "(($ac_try" in | 
|  | 16267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16268 | *) ac_try_echo=$ac_try;; | 
|  | 16269 | esac | 
|  | 16270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16271 | (eval "$ac_try") 2>&5 | 
|  | 16272 | ac_status=$? | 
|  | 16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16274 | (exit $ac_status); }; }; then | 
|  | 16275 | ac_cv_type_pid_t=yes | 
|  | 16276 | else | 
|  | 16277 | echo "$as_me: failed program was:" >&5 | 
|  | 16278 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16279 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16280 | ac_cv_type_pid_t=no | 
|  | 16281 | fi | 
|  | 16282 |  | 
|  | 16283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16284 | fi | 
|  | 16285 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
|  | 16286 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | 
|  | 16287 | if test $ac_cv_type_pid_t = yes; then | 
|  | 16288 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16289 | else | 
|  | 16290 |  | 
|  | 16291 | cat >>confdefs.h <<_ACEOF | 
|  | 16292 | #define pid_t int | 
|  | 16293 | _ACEOF | 
|  | 16294 |  | 
|  | 16295 | fi | 
|  | 16296 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16297 | { echo "$as_me:$LINENO: checking for size_t" >&5 | 
|  | 16298 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | 
|  | 16299 | if test "${ac_cv_type_size_t+set}" = set; then | 
|  | 16300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16301 | else | 
|  | 16302 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16303 | /* confdefs.h.  */ | 
|  | 16304 | _ACEOF | 
|  | 16305 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16306 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16307 | /* end confdefs.h.  */ | 
|  | 16308 | $ac_includes_default | 
|  | 16309 | typedef size_t ac__type_new_; | 
|  | 16310 | int | 
|  | 16311 | main () | 
|  | 16312 | { | 
|  | 16313 | if ((ac__type_new_ *) 0) | 
|  | 16314 | return 0; | 
|  | 16315 | if (sizeof (ac__type_new_)) | 
|  | 16316 | return 0; | 
|  | 16317 | ; | 
|  | 16318 | return 0; | 
|  | 16319 | } | 
|  | 16320 | _ACEOF | 
|  | 16321 | rm -f conftest.$ac_objext | 
|  | 16322 | if { (ac_try="$ac_compile" | 
|  | 16323 | case "(($ac_try" in | 
|  | 16324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16325 | *) ac_try_echo=$ac_try;; | 
|  | 16326 | esac | 
|  | 16327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16328 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16329 | ac_status=$? | 
|  | 16330 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16331 | rm -f conftest.er1 | 
|  | 16332 | cat conftest.err >&5 | 
|  | 16333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16334 | (exit $ac_status); } && | 
|  | 16335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16342 | ac_status=$? | 
|  | 16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16344 | (exit $ac_status); }; } && | 
|  | 16345 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16346 | { (case "(($ac_try" in | 
|  | 16347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16348 | *) ac_try_echo=$ac_try;; | 
|  | 16349 | esac | 
|  | 16350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16351 | (eval "$ac_try") 2>&5 | 
|  | 16352 | ac_status=$? | 
|  | 16353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16354 | (exit $ac_status); }; }; then | 
|  | 16355 | ac_cv_type_size_t=yes | 
|  | 16356 | else | 
|  | 16357 | echo "$as_me: failed program was:" >&5 | 
|  | 16358 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16359 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16360 | ac_cv_type_size_t=no | 
|  | 16361 | fi | 
|  | 16362 |  | 
|  | 16363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16364 | fi | 
|  | 16365 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
|  | 16366 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | 
|  | 16367 | if test $ac_cv_type_size_t = yes; then | 
|  | 16368 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16369 | else | 
|  | 16370 |  | 
|  | 16371 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16372 | #define size_t unsigned int | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16373 | _ACEOF | 
|  | 16374 |  | 
|  | 16375 | fi | 
|  | 16376 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16377 |  | 
|  | 16378 | cat >>confdefs.h <<_ACEOF | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16379 | #define RETSIGTYPE void | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16380 | _ACEOF | 
|  | 16381 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16382 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 16383 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | 
|  | 16384 | if test "${ac_cv_struct_tm+set}" = set; then | 
|  | 16385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16386 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16387 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16388 | /* confdefs.h.  */ | 
|  | 16389 | _ACEOF | 
|  | 16390 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16391 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16392 | /* end confdefs.h.  */ | 
|  | 16393 | #include <sys/types.h> | 
|  | 16394 | #include <time.h> | 
|  | 16395 |  | 
|  | 16396 | int | 
|  | 16397 | main () | 
|  | 16398 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16399 | struct tm *tp; tp->tm_sec; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16400 | ; | 
|  | 16401 | return 0; | 
|  | 16402 | } | 
|  | 16403 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16404 | rm -f conftest.$ac_objext | 
|  | 16405 | if { (ac_try="$ac_compile" | 
|  | 16406 | case "(($ac_try" in | 
|  | 16407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16408 | *) ac_try_echo=$ac_try;; | 
|  | 16409 | esac | 
|  | 16410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16411 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16412 | ac_status=$? | 
|  | 16413 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16414 | rm -f conftest.er1 | 
|  | 16415 | cat conftest.err >&5 | 
|  | 16416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16417 | (exit $ac_status); } && | 
|  | 16418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16425 | ac_status=$? | 
|  | 16426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16427 | (exit $ac_status); }; } && | 
|  | 16428 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16429 | { (case "(($ac_try" in | 
|  | 16430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16431 | *) ac_try_echo=$ac_try;; | 
|  | 16432 | esac | 
|  | 16433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16434 | (eval "$ac_try") 2>&5 | 
|  | 16435 | ac_status=$? | 
|  | 16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16437 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16438 | ac_cv_struct_tm=time.h | 
|  | 16439 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16440 | echo "$as_me: failed program was:" >&5 | 
|  | 16441 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16442 |  | 
|  | 16443 | ac_cv_struct_tm=sys/time.h | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16444 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16445 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16447 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16448 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
|  | 16449 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16450 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 16451 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16452 | cat >>confdefs.h <<\_ACEOF | 
|  | 16453 | #define TM_IN_SYS_TIME 1 | 
|  | 16454 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16455 |  | 
|  | 16456 | fi | 
|  | 16457 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16458 | { echo "$as_me:$LINENO: checking for int64_t" >&5 | 
|  | 16459 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } | 
|  | 16460 | if test "${ac_cv_type_int64_t+set}" = set; then | 
|  | 16461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16462 | else | 
|  | 16463 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16464 | /* confdefs.h.  */ | 
|  | 16465 | _ACEOF | 
|  | 16466 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16467 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16468 | /* end confdefs.h.  */ | 
|  | 16469 | $ac_includes_default | 
|  | 16470 | typedef int64_t ac__type_new_; | 
|  | 16471 | int | 
|  | 16472 | main () | 
|  | 16473 | { | 
|  | 16474 | if ((ac__type_new_ *) 0) | 
|  | 16475 | return 0; | 
|  | 16476 | if (sizeof (ac__type_new_)) | 
|  | 16477 | return 0; | 
|  | 16478 | ; | 
|  | 16479 | return 0; | 
|  | 16480 | } | 
|  | 16481 | _ACEOF | 
|  | 16482 | rm -f conftest.$ac_objext | 
|  | 16483 | if { (ac_try="$ac_compile" | 
|  | 16484 | case "(($ac_try" in | 
|  | 16485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16486 | *) ac_try_echo=$ac_try;; | 
|  | 16487 | esac | 
|  | 16488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16489 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16490 | ac_status=$? | 
|  | 16491 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16492 | rm -f conftest.er1 | 
|  | 16493 | cat conftest.err >&5 | 
|  | 16494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16495 | (exit $ac_status); } && | 
|  | 16496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16503 | ac_status=$? | 
|  | 16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16505 | (exit $ac_status); }; } && | 
|  | 16506 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16507 | { (case "(($ac_try" in | 
|  | 16508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16509 | *) ac_try_echo=$ac_try;; | 
|  | 16510 | esac | 
|  | 16511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16512 | (eval "$ac_try") 2>&5 | 
|  | 16513 | ac_status=$? | 
|  | 16514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16515 | (exit $ac_status); }; }; then | 
|  | 16516 | ac_cv_type_int64_t=yes | 
|  | 16517 | else | 
|  | 16518 | echo "$as_me: failed program was:" >&5 | 
|  | 16519 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16520 |  | 
|  | 16521 | ac_cv_type_int64_t=no | 
|  | 16522 | fi | 
|  | 16523 |  | 
|  | 16524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16525 | fi | 
|  | 16526 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
|  | 16527 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } | 
|  | 16528 | if test $ac_cv_type_int64_t = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16529 |  | 
|  | 16530 | cat >>confdefs.h <<_ACEOF | 
|  | 16531 | #define HAVE_INT64_T 1 | 
|  | 16532 | _ACEOF | 
|  | 16533 |  | 
|  | 16534 |  | 
|  | 16535 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16536 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
|  | 16537 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
|  | 16538 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16539 | fi | 
|  | 16540 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16541 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
|  | 16542 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } | 
|  | 16543 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
|  | 16544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16545 | else | 
|  | 16546 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16547 | /* confdefs.h.  */ | 
|  | 16548 | _ACEOF | 
|  | 16549 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16550 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16551 | /* end confdefs.h.  */ | 
|  | 16552 | $ac_includes_default | 
|  | 16553 | typedef uint64_t ac__type_new_; | 
|  | 16554 | int | 
|  | 16555 | main () | 
|  | 16556 | { | 
|  | 16557 | if ((ac__type_new_ *) 0) | 
|  | 16558 | return 0; | 
|  | 16559 | if (sizeof (ac__type_new_)) | 
|  | 16560 | return 0; | 
|  | 16561 | ; | 
|  | 16562 | return 0; | 
|  | 16563 | } | 
|  | 16564 | _ACEOF | 
|  | 16565 | rm -f conftest.$ac_objext | 
|  | 16566 | if { (ac_try="$ac_compile" | 
|  | 16567 | case "(($ac_try" in | 
|  | 16568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16569 | *) ac_try_echo=$ac_try;; | 
|  | 16570 | esac | 
|  | 16571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16572 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16573 | ac_status=$? | 
|  | 16574 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16575 | rm -f conftest.er1 | 
|  | 16576 | cat conftest.err >&5 | 
|  | 16577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16578 | (exit $ac_status); } && | 
|  | 16579 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16586 | ac_status=$? | 
|  | 16587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16588 | (exit $ac_status); }; } && | 
|  | 16589 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16590 | { (case "(($ac_try" in | 
|  | 16591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16592 | *) ac_try_echo=$ac_try;; | 
|  | 16593 | esac | 
|  | 16594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16595 | (eval "$ac_try") 2>&5 | 
|  | 16596 | ac_status=$? | 
|  | 16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16598 | (exit $ac_status); }; }; then | 
|  | 16599 | ac_cv_type_uint64_t=yes | 
|  | 16600 | else | 
|  | 16601 | echo "$as_me: failed program was:" >&5 | 
|  | 16602 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16603 |  | 
|  | 16604 | ac_cv_type_uint64_t=no | 
|  | 16605 | fi | 
|  | 16606 |  | 
|  | 16607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16608 | fi | 
|  | 16609 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
|  | 16610 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } | 
|  | 16611 | if test $ac_cv_type_uint64_t = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16612 |  | 
|  | 16613 | cat >>confdefs.h <<_ACEOF | 
|  | 16614 | #define HAVE_UINT64_T 1 | 
|  | 16615 | _ACEOF | 
|  | 16616 |  | 
|  | 16617 |  | 
|  | 16618 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16619 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
|  | 16620 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } | 
|  | 16621 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
|  | 16622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16623 | else | 
|  | 16624 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16625 | /* confdefs.h.  */ | 
|  | 16626 | _ACEOF | 
|  | 16627 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16628 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16629 | /* end confdefs.h.  */ | 
|  | 16630 | $ac_includes_default | 
|  | 16631 | typedef u_int64_t ac__type_new_; | 
|  | 16632 | int | 
|  | 16633 | main () | 
|  | 16634 | { | 
|  | 16635 | if ((ac__type_new_ *) 0) | 
|  | 16636 | return 0; | 
|  | 16637 | if (sizeof (ac__type_new_)) | 
|  | 16638 | return 0; | 
|  | 16639 | ; | 
|  | 16640 | return 0; | 
|  | 16641 | } | 
|  | 16642 | _ACEOF | 
|  | 16643 | rm -f conftest.$ac_objext | 
|  | 16644 | if { (ac_try="$ac_compile" | 
|  | 16645 | case "(($ac_try" in | 
|  | 16646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16647 | *) ac_try_echo=$ac_try;; | 
|  | 16648 | esac | 
|  | 16649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16650 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16651 | ac_status=$? | 
|  | 16652 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16653 | rm -f conftest.er1 | 
|  | 16654 | cat conftest.err >&5 | 
|  | 16655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16656 | (exit $ac_status); } && | 
|  | 16657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16664 | ac_status=$? | 
|  | 16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16666 | (exit $ac_status); }; } && | 
|  | 16667 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16668 | { (case "(($ac_try" in | 
|  | 16669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16670 | *) ac_try_echo=$ac_try;; | 
|  | 16671 | esac | 
|  | 16672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16673 | (eval "$ac_try") 2>&5 | 
|  | 16674 | ac_status=$? | 
|  | 16675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16676 | (exit $ac_status); }; }; then | 
|  | 16677 | ac_cv_type_u_int64_t=yes | 
|  | 16678 | else | 
|  | 16679 | echo "$as_me: failed program was:" >&5 | 
|  | 16680 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16681 |  | 
|  | 16682 | ac_cv_type_u_int64_t=no | 
|  | 16683 | fi | 
|  | 16684 |  | 
|  | 16685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16686 | fi | 
|  | 16687 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
|  | 16688 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } | 
|  | 16689 | if test $ac_cv_type_u_int64_t = yes; then | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16690 |  | 
|  | 16691 | cat >>confdefs.h <<_ACEOF | 
|  | 16692 | #define HAVE_U_INT64_T 1 | 
|  | 16693 | _ACEOF | 
|  | 16694 |  | 
|  | 16695 |  | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16696 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16697 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
|  | 16698 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
|  | 16699 | { (exit 1); exit 1; }; } | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16700 | fi | 
|  | 16701 |  | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16702 | fi | 
|  | 16703 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16704 |  | 
|  | 16705 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16706 |  | 
|  | 16707 |  | 
|  | 16708 |  | 
|  | 16709 |  | 
|  | 16710 |  | 
|  | 16711 |  | 
|  | 16712 |  | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16713 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16714 | do | 
|  | 16715 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 16716 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 16717 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 16718 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16720 | else | 
|  | 16721 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16722 | /* confdefs.h.  */ | 
|  | 16723 | _ACEOF | 
|  | 16724 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16725 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16726 | /* end confdefs.h.  */ | 
|  | 16727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 16728 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 16729 | #define $ac_func innocuous_$ac_func | 
|  | 16730 |  | 
|  | 16731 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 16732 | which can conflict with char $ac_func (); below. | 
|  | 16733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16734 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16735 |  | 
|  | 16736 | #ifdef __STDC__ | 
|  | 16737 | # include <limits.h> | 
|  | 16738 | #else | 
|  | 16739 | # include <assert.h> | 
|  | 16740 | #endif | 
|  | 16741 |  | 
|  | 16742 | #undef $ac_func | 
|  | 16743 |  | 
|  | 16744 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16745 | Use char because int might match the return type of a GCC | 
|  | 16746 | builtin and then its argument prototype would still apply.  */ | 
|  | 16747 | #ifdef __cplusplus | 
|  | 16748 | extern "C" | 
|  | 16749 | #endif | 
|  | 16750 | char $ac_func (); | 
|  | 16751 | /* The GNU C library defines this for functions which it implements | 
|  | 16752 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16753 | something starting with __ and the normal name is an alias.  */ | 
|  | 16754 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 16755 | choke me | 
|  | 16756 | #endif | 
|  | 16757 |  | 
|  | 16758 | int | 
|  | 16759 | main () | 
|  | 16760 | { | 
|  | 16761 | return $ac_func (); | 
|  | 16762 | ; | 
|  | 16763 | return 0; | 
|  | 16764 | } | 
|  | 16765 | _ACEOF | 
|  | 16766 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16767 | if { (ac_try="$ac_link" | 
|  | 16768 | case "(($ac_try" in | 
|  | 16769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16770 | *) ac_try_echo=$ac_try;; | 
|  | 16771 | esac | 
|  | 16772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16773 | (eval "$ac_link") 2>conftest.er1 | 
|  | 16774 | ac_status=$? | 
|  | 16775 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16776 | rm -f conftest.er1 | 
|  | 16777 | cat conftest.err >&5 | 
|  | 16778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16779 | (exit $ac_status); } && | 
|  | 16780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16787 | ac_status=$? | 
|  | 16788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16789 | (exit $ac_status); }; } && | 
|  | 16790 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16791 | { (case "(($ac_try" in | 
|  | 16792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16793 | *) ac_try_echo=$ac_try;; | 
|  | 16794 | esac | 
|  | 16795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16796 | (eval "$ac_try") 2>&5 | 
|  | 16797 | ac_status=$? | 
|  | 16798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16799 | (exit $ac_status); }; }; then | 
|  | 16800 | eval "$as_ac_var=yes" | 
|  | 16801 | else | 
|  | 16802 | echo "$as_me: failed program was:" >&5 | 
|  | 16803 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16804 |  | 
|  | 16805 | eval "$as_ac_var=no" | 
|  | 16806 | fi | 
|  | 16807 |  | 
|  | 16808 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16809 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16810 | fi | 
|  | 16811 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 16812 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16813 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16814 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16815 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16816 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16817 | _ACEOF | 
|  | 16818 |  | 
|  | 16819 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16820 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16821 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16822 |  | 
|  | 16823 |  | 
|  | 16824 |  | 
|  | 16825 |  | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16826 | for ac_func in powf fmodf strtof round | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16827 | do | 
|  | 16828 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 16829 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 16830 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 16831 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16833 | else | 
|  | 16834 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16835 | /* confdefs.h.  */ | 
|  | 16836 | _ACEOF | 
|  | 16837 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16838 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16839 | /* end confdefs.h.  */ | 
|  | 16840 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 16841 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 16842 | #define $ac_func innocuous_$ac_func | 
|  | 16843 |  | 
|  | 16844 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 16845 | which can conflict with char $ac_func (); below. | 
|  | 16846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16847 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16848 |  | 
|  | 16849 | #ifdef __STDC__ | 
|  | 16850 | # include <limits.h> | 
|  | 16851 | #else | 
|  | 16852 | # include <assert.h> | 
|  | 16853 | #endif | 
|  | 16854 |  | 
|  | 16855 | #undef $ac_func | 
|  | 16856 |  | 
|  | 16857 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16858 | Use char because int might match the return type of a GCC | 
|  | 16859 | builtin and then its argument prototype would still apply.  */ | 
|  | 16860 | #ifdef __cplusplus | 
|  | 16861 | extern "C" | 
|  | 16862 | #endif | 
|  | 16863 | char $ac_func (); | 
|  | 16864 | /* The GNU C library defines this for functions which it implements | 
|  | 16865 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16866 | something starting with __ and the normal name is an alias.  */ | 
|  | 16867 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 16868 | choke me | 
|  | 16869 | #endif | 
|  | 16870 |  | 
|  | 16871 | int | 
|  | 16872 | main () | 
|  | 16873 | { | 
|  | 16874 | return $ac_func (); | 
|  | 16875 | ; | 
|  | 16876 | return 0; | 
|  | 16877 | } | 
|  | 16878 | _ACEOF | 
|  | 16879 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16880 | if { (ac_try="$ac_link" | 
|  | 16881 | case "(($ac_try" in | 
|  | 16882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16883 | *) ac_try_echo=$ac_try;; | 
|  | 16884 | esac | 
|  | 16885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16886 | (eval "$ac_link") 2>conftest.er1 | 
|  | 16887 | ac_status=$? | 
|  | 16888 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16889 | rm -f conftest.er1 | 
|  | 16890 | cat conftest.err >&5 | 
|  | 16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16892 | (exit $ac_status); } && | 
|  | 16893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 16900 | ac_status=$? | 
|  | 16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16902 | (exit $ac_status); }; } && | 
|  | 16903 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16904 | { (case "(($ac_try" in | 
|  | 16905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16906 | *) ac_try_echo=$ac_try;; | 
|  | 16907 | esac | 
|  | 16908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16909 | (eval "$ac_try") 2>&5 | 
|  | 16910 | ac_status=$? | 
|  | 16911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16912 | (exit $ac_status); }; }; then | 
|  | 16913 | eval "$as_ac_var=yes" | 
|  | 16914 | else | 
|  | 16915 | echo "$as_me: failed program was:" >&5 | 
|  | 16916 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16917 |  | 
|  | 16918 | eval "$as_ac_var=no" | 
|  | 16919 | fi | 
|  | 16920 |  | 
|  | 16921 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16922 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16923 | fi | 
|  | 16924 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 16925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16926 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16927 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16928 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16929 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16930 | _ACEOF | 
|  | 16931 |  | 
|  | 16932 | fi | 
|  | 16933 | done | 
|  | 16934 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16935 |  | 
|  | 16936 |  | 
|  | 16937 |  | 
|  | 16938 |  | 
|  | 16939 |  | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 16940 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16941 | do | 
|  | 16942 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 16943 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 16944 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 16945 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16947 | else | 
|  | 16948 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16949 | /* confdefs.h.  */ | 
|  | 16950 | _ACEOF | 
|  | 16951 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16952 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16953 | /* end confdefs.h.  */ | 
|  | 16954 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 16955 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 16956 | #define $ac_func innocuous_$ac_func | 
|  | 16957 |  | 
|  | 16958 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 16959 | which can conflict with char $ac_func (); below. | 
|  | 16960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16961 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16962 |  | 
|  | 16963 | #ifdef __STDC__ | 
|  | 16964 | # include <limits.h> | 
|  | 16965 | #else | 
|  | 16966 | # include <assert.h> | 
|  | 16967 | #endif | 
|  | 16968 |  | 
|  | 16969 | #undef $ac_func | 
|  | 16970 |  | 
|  | 16971 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16972 | Use char because int might match the return type of a GCC | 
|  | 16973 | builtin and then its argument prototype would still apply.  */ | 
|  | 16974 | #ifdef __cplusplus | 
|  | 16975 | extern "C" | 
|  | 16976 | #endif | 
|  | 16977 | char $ac_func (); | 
|  | 16978 | /* The GNU C library defines this for functions which it implements | 
|  | 16979 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16980 | something starting with __ and the normal name is an alias.  */ | 
|  | 16981 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 16982 | choke me | 
|  | 16983 | #endif | 
|  | 16984 |  | 
|  | 16985 | int | 
|  | 16986 | main () | 
|  | 16987 | { | 
|  | 16988 | return $ac_func (); | 
|  | 16989 | ; | 
|  | 16990 | return 0; | 
|  | 16991 | } | 
|  | 16992 | _ACEOF | 
|  | 16993 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16994 | if { (ac_try="$ac_link" | 
|  | 16995 | case "(($ac_try" in | 
|  | 16996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16997 | *) ac_try_echo=$ac_try;; | 
|  | 16998 | esac | 
|  | 16999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17000 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17001 | ac_status=$? | 
|  | 17002 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17003 | rm -f conftest.er1 | 
|  | 17004 | cat conftest.err >&5 | 
|  | 17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17006 | (exit $ac_status); } && | 
|  | 17007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17014 | ac_status=$? | 
|  | 17015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17016 | (exit $ac_status); }; } && | 
|  | 17017 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17018 | { (case "(($ac_try" in | 
|  | 17019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17020 | *) ac_try_echo=$ac_try;; | 
|  | 17021 | esac | 
|  | 17022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17023 | (eval "$ac_try") 2>&5 | 
|  | 17024 | ac_status=$? | 
|  | 17025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17026 | (exit $ac_status); }; }; then | 
|  | 17027 | eval "$as_ac_var=yes" | 
|  | 17028 | else | 
|  | 17029 | echo "$as_me: failed program was:" >&5 | 
|  | 17030 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17031 |  | 
|  | 17032 | eval "$as_ac_var=no" | 
|  | 17033 | fi | 
|  | 17034 |  | 
|  | 17035 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17036 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17037 | fi | 
|  | 17038 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17039 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17040 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17041 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17042 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17043 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17044 | _ACEOF | 
|  | 17045 |  | 
|  | 17046 | fi | 
|  | 17047 | done | 
|  | 17048 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17049 |  | 
|  | 17050 |  | 
|  | 17051 |  | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17052 | for ac_func in isatty mkdtemp mkstemp | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17053 | do | 
|  | 17054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17055 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17057 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17059 | else | 
|  | 17060 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17061 | /* confdefs.h.  */ | 
|  | 17062 | _ACEOF | 
|  | 17063 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17064 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17065 | /* end confdefs.h.  */ | 
|  | 17066 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17067 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17068 | #define $ac_func innocuous_$ac_func | 
|  | 17069 |  | 
|  | 17070 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17071 | which can conflict with char $ac_func (); below. | 
|  | 17072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17073 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17074 |  | 
|  | 17075 | #ifdef __STDC__ | 
|  | 17076 | # include <limits.h> | 
|  | 17077 | #else | 
|  | 17078 | # include <assert.h> | 
|  | 17079 | #endif | 
|  | 17080 |  | 
|  | 17081 | #undef $ac_func | 
|  | 17082 |  | 
|  | 17083 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17084 | Use char because int might match the return type of a GCC | 
|  | 17085 | builtin and then its argument prototype would still apply.  */ | 
|  | 17086 | #ifdef __cplusplus | 
|  | 17087 | extern "C" | 
|  | 17088 | #endif | 
|  | 17089 | char $ac_func (); | 
|  | 17090 | /* The GNU C library defines this for functions which it implements | 
|  | 17091 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17092 | something starting with __ and the normal name is an alias.  */ | 
|  | 17093 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17094 | choke me | 
|  | 17095 | #endif | 
|  | 17096 |  | 
|  | 17097 | int | 
|  | 17098 | main () | 
|  | 17099 | { | 
|  | 17100 | return $ac_func (); | 
|  | 17101 | ; | 
|  | 17102 | return 0; | 
|  | 17103 | } | 
|  | 17104 | _ACEOF | 
|  | 17105 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17106 | if { (ac_try="$ac_link" | 
|  | 17107 | case "(($ac_try" in | 
|  | 17108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17109 | *) ac_try_echo=$ac_try;; | 
|  | 17110 | esac | 
|  | 17111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17112 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17113 | ac_status=$? | 
|  | 17114 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17115 | rm -f conftest.er1 | 
|  | 17116 | cat conftest.err >&5 | 
|  | 17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17118 | (exit $ac_status); } && | 
|  | 17119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17126 | ac_status=$? | 
|  | 17127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17128 | (exit $ac_status); }; } && | 
|  | 17129 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17130 | { (case "(($ac_try" in | 
|  | 17131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17132 | *) ac_try_echo=$ac_try;; | 
|  | 17133 | esac | 
|  | 17134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17135 | (eval "$ac_try") 2>&5 | 
|  | 17136 | ac_status=$? | 
|  | 17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17138 | (exit $ac_status); }; }; then | 
|  | 17139 | eval "$as_ac_var=yes" | 
|  | 17140 | else | 
|  | 17141 | echo "$as_me: failed program was:" >&5 | 
|  | 17142 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17143 |  | 
|  | 17144 | eval "$as_ac_var=no" | 
|  | 17145 | fi | 
|  | 17146 |  | 
|  | 17147 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17148 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17149 | fi | 
|  | 17150 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17151 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17152 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17153 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17154 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17155 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17156 | _ACEOF | 
|  | 17157 |  | 
|  | 17158 | fi | 
|  | 17159 | done | 
|  | 17160 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17161 |  | 
|  | 17162 |  | 
|  | 17163 |  | 
|  | 17164 |  | 
|  | 17165 |  | 
| Eric Christopher | dea3bda | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17166 |  | 
| Benjamin Kramer | e1effb0 | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17167 |  | 
|  | 17168 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17169 | do | 
|  | 17170 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17171 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17172 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17173 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17175 | else | 
|  | 17176 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17177 | /* confdefs.h.  */ | 
|  | 17178 | _ACEOF | 
|  | 17179 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17180 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17181 | /* end confdefs.h.  */ | 
|  | 17182 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17183 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17184 | #define $ac_func innocuous_$ac_func | 
|  | 17185 |  | 
|  | 17186 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17187 | which can conflict with char $ac_func (); below. | 
|  | 17188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17189 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17190 |  | 
|  | 17191 | #ifdef __STDC__ | 
|  | 17192 | # include <limits.h> | 
|  | 17193 | #else | 
|  | 17194 | # include <assert.h> | 
|  | 17195 | #endif | 
|  | 17196 |  | 
|  | 17197 | #undef $ac_func | 
|  | 17198 |  | 
|  | 17199 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17200 | Use char because int might match the return type of a GCC | 
|  | 17201 | builtin and then its argument prototype would still apply.  */ | 
|  | 17202 | #ifdef __cplusplus | 
|  | 17203 | extern "C" | 
|  | 17204 | #endif | 
|  | 17205 | char $ac_func (); | 
|  | 17206 | /* The GNU C library defines this for functions which it implements | 
|  | 17207 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17208 | something starting with __ and the normal name is an alias.  */ | 
|  | 17209 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17210 | choke me | 
|  | 17211 | #endif | 
|  | 17212 |  | 
|  | 17213 | int | 
|  | 17214 | main () | 
|  | 17215 | { | 
|  | 17216 | return $ac_func (); | 
|  | 17217 | ; | 
|  | 17218 | return 0; | 
|  | 17219 | } | 
|  | 17220 | _ACEOF | 
|  | 17221 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17222 | if { (ac_try="$ac_link" | 
|  | 17223 | case "(($ac_try" in | 
|  | 17224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17225 | *) ac_try_echo=$ac_try;; | 
|  | 17226 | esac | 
|  | 17227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17228 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17229 | ac_status=$? | 
|  | 17230 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17231 | rm -f conftest.er1 | 
|  | 17232 | cat conftest.err >&5 | 
|  | 17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17234 | (exit $ac_status); } && | 
|  | 17235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17242 | ac_status=$? | 
|  | 17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17244 | (exit $ac_status); }; } && | 
|  | 17245 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17246 | { (case "(($ac_try" in | 
|  | 17247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17248 | *) ac_try_echo=$ac_try;; | 
|  | 17249 | esac | 
|  | 17250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17251 | (eval "$ac_try") 2>&5 | 
|  | 17252 | ac_status=$? | 
|  | 17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17254 | (exit $ac_status); }; }; then | 
|  | 17255 | eval "$as_ac_var=yes" | 
|  | 17256 | else | 
|  | 17257 | echo "$as_me: failed program was:" >&5 | 
|  | 17258 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17259 |  | 
|  | 17260 | eval "$as_ac_var=no" | 
|  | 17261 | fi | 
|  | 17262 |  | 
|  | 17263 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17264 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17265 | fi | 
|  | 17266 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17267 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17268 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17269 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17270 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17271 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17272 | _ACEOF | 
|  | 17273 |  | 
|  | 17274 | fi | 
|  | 17275 | done | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17276 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17277 |  | 
|  | 17278 |  | 
|  | 17279 |  | 
| NAKAMURA Takumi | 18911180 | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17280 | for ac_func in strerror strerror_r setenv | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17281 | do | 
|  | 17282 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17283 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17284 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17285 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17287 | else | 
|  | 17288 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17289 | /* confdefs.h.  */ | 
|  | 17290 | _ACEOF | 
|  | 17291 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17292 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17293 | /* end confdefs.h.  */ | 
|  | 17294 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17295 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17296 | #define $ac_func innocuous_$ac_func | 
|  | 17297 |  | 
|  | 17298 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17299 | which can conflict with char $ac_func (); below. | 
|  | 17300 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17301 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17302 |  | 
|  | 17303 | #ifdef __STDC__ | 
|  | 17304 | # include <limits.h> | 
|  | 17305 | #else | 
|  | 17306 | # include <assert.h> | 
|  | 17307 | #endif | 
|  | 17308 |  | 
|  | 17309 | #undef $ac_func | 
|  | 17310 |  | 
|  | 17311 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17312 | Use char because int might match the return type of a GCC | 
|  | 17313 | builtin and then its argument prototype would still apply.  */ | 
|  | 17314 | #ifdef __cplusplus | 
|  | 17315 | extern "C" | 
|  | 17316 | #endif | 
|  | 17317 | char $ac_func (); | 
|  | 17318 | /* The GNU C library defines this for functions which it implements | 
|  | 17319 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17320 | something starting with __ and the normal name is an alias.  */ | 
|  | 17321 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17322 | choke me | 
|  | 17323 | #endif | 
|  | 17324 |  | 
|  | 17325 | int | 
|  | 17326 | main () | 
|  | 17327 | { | 
|  | 17328 | return $ac_func (); | 
|  | 17329 | ; | 
|  | 17330 | return 0; | 
|  | 17331 | } | 
|  | 17332 | _ACEOF | 
|  | 17333 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17334 | if { (ac_try="$ac_link" | 
|  | 17335 | case "(($ac_try" in | 
|  | 17336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17337 | *) ac_try_echo=$ac_try;; | 
|  | 17338 | esac | 
|  | 17339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17340 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17341 | ac_status=$? | 
|  | 17342 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17343 | rm -f conftest.er1 | 
|  | 17344 | cat conftest.err >&5 | 
|  | 17345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17346 | (exit $ac_status); } && | 
|  | 17347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17354 | ac_status=$? | 
|  | 17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17356 | (exit $ac_status); }; } && | 
|  | 17357 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17358 | { (case "(($ac_try" in | 
|  | 17359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17360 | *) ac_try_echo=$ac_try;; | 
|  | 17361 | esac | 
|  | 17362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17363 | (eval "$ac_try") 2>&5 | 
|  | 17364 | ac_status=$? | 
|  | 17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17366 | (exit $ac_status); }; }; then | 
|  | 17367 | eval "$as_ac_var=yes" | 
|  | 17368 | else | 
|  | 17369 | echo "$as_me: failed program was:" >&5 | 
|  | 17370 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17371 |  | 
|  | 17372 | eval "$as_ac_var=no" | 
|  | 17373 | fi | 
|  | 17374 |  | 
|  | 17375 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17376 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17377 | fi | 
|  | 17378 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17379 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17380 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17381 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17382 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17383 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17384 | _ACEOF | 
|  | 17385 |  | 
|  | 17386 | fi | 
|  | 17387 | done | 
|  | 17388 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17389 |  | 
|  | 17390 |  | 
|  | 17391 |  | 
|  | 17392 |  | 
| Chris Lattner | 8147902 | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17393 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17394 | do | 
|  | 17395 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17396 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17397 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17398 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17400 | else | 
|  | 17401 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17402 | /* confdefs.h.  */ | 
|  | 17403 | _ACEOF | 
|  | 17404 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17405 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17406 | /* end confdefs.h.  */ | 
|  | 17407 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17408 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17409 | #define $ac_func innocuous_$ac_func | 
|  | 17410 |  | 
|  | 17411 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17412 | which can conflict with char $ac_func (); below. | 
|  | 17413 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17414 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17415 |  | 
|  | 17416 | #ifdef __STDC__ | 
|  | 17417 | # include <limits.h> | 
|  | 17418 | #else | 
|  | 17419 | # include <assert.h> | 
|  | 17420 | #endif | 
|  | 17421 |  | 
|  | 17422 | #undef $ac_func | 
|  | 17423 |  | 
|  | 17424 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17425 | Use char because int might match the return type of a GCC | 
|  | 17426 | builtin and then its argument prototype would still apply.  */ | 
|  | 17427 | #ifdef __cplusplus | 
|  | 17428 | extern "C" | 
|  | 17429 | #endif | 
|  | 17430 | char $ac_func (); | 
|  | 17431 | /* The GNU C library defines this for functions which it implements | 
|  | 17432 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17433 | something starting with __ and the normal name is an alias.  */ | 
|  | 17434 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17435 | choke me | 
|  | 17436 | #endif | 
|  | 17437 |  | 
|  | 17438 | int | 
|  | 17439 | main () | 
|  | 17440 | { | 
|  | 17441 | return $ac_func (); | 
|  | 17442 | ; | 
|  | 17443 | return 0; | 
|  | 17444 | } | 
|  | 17445 | _ACEOF | 
|  | 17446 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17447 | if { (ac_try="$ac_link" | 
|  | 17448 | case "(($ac_try" in | 
|  | 17449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17450 | *) ac_try_echo=$ac_try;; | 
|  | 17451 | esac | 
|  | 17452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17453 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17454 | ac_status=$? | 
|  | 17455 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17456 | rm -f conftest.er1 | 
|  | 17457 | cat conftest.err >&5 | 
|  | 17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17459 | (exit $ac_status); } && | 
|  | 17460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17467 | ac_status=$? | 
|  | 17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17469 | (exit $ac_status); }; } && | 
|  | 17470 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17471 | { (case "(($ac_try" in | 
|  | 17472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17473 | *) ac_try_echo=$ac_try;; | 
|  | 17474 | esac | 
|  | 17475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17476 | (eval "$ac_try") 2>&5 | 
|  | 17477 | ac_status=$? | 
|  | 17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17479 | (exit $ac_status); }; }; then | 
|  | 17480 | eval "$as_ac_var=yes" | 
|  | 17481 | else | 
|  | 17482 | echo "$as_me: failed program was:" >&5 | 
|  | 17483 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17484 |  | 
|  | 17485 | eval "$as_ac_var=no" | 
|  | 17486 | fi | 
|  | 17487 |  | 
|  | 17488 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17489 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17490 | fi | 
|  | 17491 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17492 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17493 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17494 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17495 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17496 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17497 | _ACEOF | 
|  | 17498 |  | 
|  | 17499 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17500 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17501 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17502 |  | 
|  | 17503 |  | 
|  | 17504 |  | 
|  | 17505 |  | 
| Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17506 |  | 
|  | 17507 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17508 | do | 
|  | 17509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17510 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17512 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17514 | else | 
|  | 17515 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17516 | /* confdefs.h.  */ | 
|  | 17517 | _ACEOF | 
|  | 17518 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17519 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17520 | /* end confdefs.h.  */ | 
|  | 17521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17522 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17523 | #define $ac_func innocuous_$ac_func | 
|  | 17524 |  | 
|  | 17525 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17526 | which can conflict with char $ac_func (); below. | 
|  | 17527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17528 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17529 |  | 
|  | 17530 | #ifdef __STDC__ | 
|  | 17531 | # include <limits.h> | 
|  | 17532 | #else | 
|  | 17533 | # include <assert.h> | 
|  | 17534 | #endif | 
|  | 17535 |  | 
|  | 17536 | #undef $ac_func | 
|  | 17537 |  | 
|  | 17538 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17539 | Use char because int might match the return type of a GCC | 
|  | 17540 | builtin and then its argument prototype would still apply.  */ | 
|  | 17541 | #ifdef __cplusplus | 
|  | 17542 | extern "C" | 
|  | 17543 | #endif | 
|  | 17544 | char $ac_func (); | 
|  | 17545 | /* The GNU C library defines this for functions which it implements | 
|  | 17546 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17547 | something starting with __ and the normal name is an alias.  */ | 
|  | 17548 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17549 | choke me | 
|  | 17550 | #endif | 
|  | 17551 |  | 
|  | 17552 | int | 
|  | 17553 | main () | 
|  | 17554 | { | 
|  | 17555 | return $ac_func (); | 
|  | 17556 | ; | 
|  | 17557 | return 0; | 
|  | 17558 | } | 
|  | 17559 | _ACEOF | 
|  | 17560 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17561 | if { (ac_try="$ac_link" | 
|  | 17562 | case "(($ac_try" in | 
|  | 17563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17564 | *) ac_try_echo=$ac_try;; | 
|  | 17565 | esac | 
|  | 17566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17567 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17568 | ac_status=$? | 
|  | 17569 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17570 | rm -f conftest.er1 | 
|  | 17571 | cat conftest.err >&5 | 
|  | 17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17573 | (exit $ac_status); } && | 
|  | 17574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17581 | ac_status=$? | 
|  | 17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17583 | (exit $ac_status); }; } && | 
|  | 17584 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17585 | { (case "(($ac_try" in | 
|  | 17586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17587 | *) ac_try_echo=$ac_try;; | 
|  | 17588 | esac | 
|  | 17589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17590 | (eval "$ac_try") 2>&5 | 
|  | 17591 | ac_status=$? | 
|  | 17592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17593 | (exit $ac_status); }; }; then | 
|  | 17594 | eval "$as_ac_var=yes" | 
|  | 17595 | else | 
|  | 17596 | echo "$as_me: failed program was:" >&5 | 
|  | 17597 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17598 |  | 
|  | 17599 | eval "$as_ac_var=no" | 
|  | 17600 | fi | 
|  | 17601 |  | 
|  | 17602 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17603 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17604 | fi | 
|  | 17605 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17606 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17607 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17608 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17609 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17610 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17611 | _ACEOF | 
|  | 17612 |  | 
|  | 17613 | fi | 
|  | 17614 | done | 
|  | 17615 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17616 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
|  | 17617 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } | 
|  | 17618 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
|  | 17619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17620 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17621 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17622 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17626 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17627 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17628 | llvmac_cv_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17629 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17630 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17631 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17632 | /* confdefs.h.  */ | 
|  | 17633 | _ACEOF | 
|  | 17634 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17635 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17636 | /* end confdefs.h.  */ | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17637 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17638 | #include <stdio.h> | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17639 | #include <stdlib.h> | 
|  | 17640 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17641 | int | 
|  | 17642 | main () | 
|  | 17643 | { | 
|  | 17644 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17645 | volatile double A, B; | 
|  | 17646 | char Buffer[100]; | 
|  | 17647 | A = 1; | 
|  | 17648 | A /= 10.0; | 
|  | 17649 | sprintf(Buffer, "%a", A); | 
|  | 17650 | B = atof(Buffer); | 
|  | 17651 | if (A != B) | 
|  | 17652 | return (1); | 
|  | 17653 | if (A != 0x1.999999999999ap-4) | 
|  | 17654 | return (1); | 
|  | 17655 | return (0); | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17656 | ; | 
|  | 17657 | return 0; | 
|  | 17658 | } | 
|  | 17659 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17660 | rm -f conftest$ac_exeext | 
|  | 17661 | if { (ac_try="$ac_link" | 
|  | 17662 | case "(($ac_try" in | 
|  | 17663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17664 | *) ac_try_echo=$ac_try;; | 
|  | 17665 | esac | 
|  | 17666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17667 | (eval "$ac_link") 2>&5 | 
|  | 17668 | ac_status=$? | 
|  | 17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 17671 | { (case "(($ac_try" in | 
|  | 17672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17673 | *) ac_try_echo=$ac_try;; | 
|  | 17674 | esac | 
|  | 17675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17676 | (eval "$ac_try") 2>&5 | 
|  | 17677 | ac_status=$? | 
|  | 17678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17679 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17680 | llvm_cv_c_printf_a=yes | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17681 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17682 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 17683 | echo "$as_me: failed program was:" >&5 | 
|  | 17684 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17685 |  | 
|  | 17686 | ( exit $ac_status ) | 
|  | 17687 | llvmac_cv_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17688 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17690 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17691 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17692 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17693 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17694 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17698 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17699 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17700 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
|  | 17701 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17702 | if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17703 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17704 | cat >>confdefs.h <<\_ACEOF | 
|  | 17705 | #define HAVE_PRINTF_A 1 | 
|  | 17706 | _ACEOF | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17707 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17708 | fi | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17709 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17710 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17711 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
|  | 17712 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } | 
|  | 17713 | if test "${ac_cv_func_rand48+set}" = set; then | 
|  | 17714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17715 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17716 | ac_ext=cpp | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17717 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 17718 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17719 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17720 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 17721 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17722 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17723 | /* confdefs.h.  */ | 
|  | 17724 | _ACEOF | 
|  | 17725 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17726 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17727 | /* end confdefs.h.  */ | 
|  | 17728 | #include <stdlib.h> | 
|  | 17729 | int | 
|  | 17730 | main () | 
|  | 17731 | { | 
|  | 17732 | srand48(0);lrand48();drand48(); | 
|  | 17733 | ; | 
|  | 17734 | return 0; | 
|  | 17735 | } | 
|  | 17736 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17737 | rm -f conftest.$ac_objext | 
|  | 17738 | if { (ac_try="$ac_compile" | 
|  | 17739 | case "(($ac_try" in | 
|  | 17740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17741 | *) ac_try_echo=$ac_try;; | 
|  | 17742 | esac | 
|  | 17743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17744 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 17745 | ac_status=$? | 
|  | 17746 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17747 | rm -f conftest.er1 | 
|  | 17748 | cat conftest.err >&5 | 
|  | 17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17750 | (exit $ac_status); } && | 
|  | 17751 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17758 | ac_status=$? | 
|  | 17759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17760 | (exit $ac_status); }; } && | 
|  | 17761 | { ac_try='test -s conftest.$ac_objext' | 
|  | 17762 | { (case "(($ac_try" in | 
|  | 17763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17764 | *) ac_try_echo=$ac_try;; | 
|  | 17765 | esac | 
|  | 17766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17767 | (eval "$ac_try") 2>&5 | 
|  | 17768 | ac_status=$? | 
|  | 17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17770 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17771 | ac_cv_func_rand48=yes | 
|  | 17772 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17773 | echo "$as_me: failed program was:" >&5 | 
|  | 17774 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17775 |  | 
|  | 17776 | ac_cv_func_rand48=no | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17777 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17778 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17780 | ac_ext=c | 
|  | 17781 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17785 |  | 
|  | 17786 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17787 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
|  | 17788 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17789 |  | 
|  | 17790 | if test "$ac_cv_func_rand48" = "yes" ; then | 
|  | 17791 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17792 | cat >>confdefs.h <<\_ACEOF | 
|  | 17793 | #define HAVE_RAND48 1 | 
|  | 17794 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17795 |  | 
|  | 17796 | fi | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17797 |  | 
|  | 17798 |  | 
| NAKAMURA Takumi | 18911180 | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17799 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 | 
|  | 17800 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } | 
|  | 17801 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then | 
|  | 17802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17803 | else | 
|  | 17804 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17805 | /* confdefs.h.  */ | 
|  | 17806 | _ACEOF | 
|  | 17807 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17808 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17809 | /* end confdefs.h.  */ | 
|  | 17810 | $ac_includes_default | 
|  | 17811 | int | 
|  | 17812 | main () | 
|  | 17813 | { | 
|  | 17814 | #ifndef strerror_s | 
|  | 17815 | char *p = (char *) strerror_s; | 
|  | 17816 | return !p; | 
|  | 17817 | #endif | 
|  | 17818 |  | 
|  | 17819 | ; | 
|  | 17820 | return 0; | 
|  | 17821 | } | 
|  | 17822 | _ACEOF | 
|  | 17823 | rm -f conftest.$ac_objext | 
|  | 17824 | if { (ac_try="$ac_compile" | 
|  | 17825 | case "(($ac_try" in | 
|  | 17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17827 | *) ac_try_echo=$ac_try;; | 
|  | 17828 | esac | 
|  | 17829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17830 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 17831 | ac_status=$? | 
|  | 17832 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17833 | rm -f conftest.er1 | 
|  | 17834 | cat conftest.err >&5 | 
|  | 17835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17836 | (exit $ac_status); } && | 
|  | 17837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17838 | { (case "(($ac_try" in | 
|  | 17839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17840 | *) ac_try_echo=$ac_try;; | 
|  | 17841 | esac | 
|  | 17842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17843 | (eval "$ac_try") 2>&5 | 
|  | 17844 | ac_status=$? | 
|  | 17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17846 | (exit $ac_status); }; } && | 
|  | 17847 | { ac_try='test -s conftest.$ac_objext' | 
|  | 17848 | { (case "(($ac_try" in | 
|  | 17849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17850 | *) ac_try_echo=$ac_try;; | 
|  | 17851 | esac | 
|  | 17852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17853 | (eval "$ac_try") 2>&5 | 
|  | 17854 | ac_status=$? | 
|  | 17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17856 | (exit $ac_status); }; }; then | 
|  | 17857 | ac_cv_have_decl_strerror_s=yes | 
|  | 17858 | else | 
|  | 17859 | echo "$as_me: failed program was:" >&5 | 
|  | 17860 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17861 |  | 
|  | 17862 | ac_cv_have_decl_strerror_s=no | 
|  | 17863 | fi | 
|  | 17864 |  | 
|  | 17865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 17866 | fi | 
|  | 17867 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 | 
|  | 17868 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } | 
|  | 17869 | if test $ac_cv_have_decl_strerror_s = yes; then | 
|  | 17870 |  | 
|  | 17871 | cat >>confdefs.h <<_ACEOF | 
|  | 17872 | #define HAVE_DECL_STRERROR_S 1 | 
|  | 17873 | _ACEOF | 
|  | 17874 |  | 
|  | 17875 |  | 
|  | 17876 | else | 
|  | 17877 | cat >>confdefs.h <<_ACEOF | 
|  | 17878 | #define HAVE_DECL_STRERROR_S 0 | 
|  | 17879 | _ACEOF | 
|  | 17880 |  | 
|  | 17881 |  | 
|  | 17882 | fi | 
|  | 17883 |  | 
|  | 17884 |  | 
|  | 17885 |  | 
| NAKAMURA Takumi | 03a541f | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 17886 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 17887 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 | 
|  | 17888 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } | 
|  | 17889 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then | 
|  | 17890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17891 | else | 
|  | 17892 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17893 | LIBS="-lgcc  $LIBS" | 
|  | 17894 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17895 | /* confdefs.h.  */ | 
|  | 17896 | _ACEOF | 
|  | 17897 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17898 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17899 | /* end confdefs.h.  */ | 
|  | 17900 |  | 
|  | 17901 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17902 | Use char because int might match the return type of a GCC | 
|  | 17903 | builtin and then its argument prototype would still apply.  */ | 
|  | 17904 | #ifdef __cplusplus | 
|  | 17905 | extern "C" | 
|  | 17906 | #endif | 
|  | 17907 | char _alloca (); | 
|  | 17908 | int | 
|  | 17909 | main () | 
|  | 17910 | { | 
|  | 17911 | return _alloca (); | 
|  | 17912 | ; | 
|  | 17913 | return 0; | 
|  | 17914 | } | 
|  | 17915 | _ACEOF | 
|  | 17916 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17917 | if { (ac_try="$ac_link" | 
|  | 17918 | case "(($ac_try" in | 
|  | 17919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17920 | *) ac_try_echo=$ac_try;; | 
|  | 17921 | esac | 
|  | 17922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17923 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17924 | ac_status=$? | 
|  | 17925 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17926 | rm -f conftest.er1 | 
|  | 17927 | cat conftest.err >&5 | 
|  | 17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17929 | (exit $ac_status); } && | 
|  | 17930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17937 | ac_status=$? | 
|  | 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17939 | (exit $ac_status); }; } && | 
|  | 17940 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17941 | { (case "(($ac_try" in | 
|  | 17942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17943 | *) ac_try_echo=$ac_try;; | 
|  | 17944 | esac | 
|  | 17945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17946 | (eval "$ac_try") 2>&5 | 
|  | 17947 | ac_status=$? | 
|  | 17948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17949 | (exit $ac_status); }; }; then | 
|  | 17950 | ac_cv_lib_gcc__alloca=yes | 
|  | 17951 | else | 
|  | 17952 | echo "$as_me: failed program was:" >&5 | 
|  | 17953 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17954 |  | 
|  | 17955 | ac_cv_lib_gcc__alloca=no | 
|  | 17956 | fi | 
|  | 17957 |  | 
|  | 17958 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17959 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17960 | LIBS=$ac_check_lib_save_LIBS | 
|  | 17961 | fi | 
|  | 17962 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 | 
|  | 17963 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } | 
|  | 17964 | if test $ac_cv_lib_gcc__alloca = yes; then | 
|  | 17965 |  | 
|  | 17966 | cat >>confdefs.h <<\_ACEOF | 
|  | 17967 | #define HAVE__ALLOCA 1 | 
|  | 17968 | _ACEOF | 
|  | 17969 |  | 
|  | 17970 | fi | 
|  | 17971 |  | 
|  | 17972 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 | 
|  | 17973 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } | 
|  | 17974 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then | 
|  | 17975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17976 | else | 
|  | 17977 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17978 | LIBS="-lgcc  $LIBS" | 
|  | 17979 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17980 | /* confdefs.h.  */ | 
|  | 17981 | _ACEOF | 
|  | 17982 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17983 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17984 | /* end confdefs.h.  */ | 
|  | 17985 |  | 
|  | 17986 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17987 | Use char because int might match the return type of a GCC | 
|  | 17988 | builtin and then its argument prototype would still apply.  */ | 
|  | 17989 | #ifdef __cplusplus | 
|  | 17990 | extern "C" | 
|  | 17991 | #endif | 
|  | 17992 | char __alloca (); | 
|  | 17993 | int | 
|  | 17994 | main () | 
|  | 17995 | { | 
|  | 17996 | return __alloca (); | 
|  | 17997 | ; | 
|  | 17998 | return 0; | 
|  | 17999 | } | 
|  | 18000 | _ACEOF | 
|  | 18001 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18002 | if { (ac_try="$ac_link" | 
|  | 18003 | case "(($ac_try" in | 
|  | 18004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18005 | *) ac_try_echo=$ac_try;; | 
|  | 18006 | esac | 
|  | 18007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18008 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18009 | ac_status=$? | 
|  | 18010 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18011 | rm -f conftest.er1 | 
|  | 18012 | cat conftest.err >&5 | 
|  | 18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18014 | (exit $ac_status); } && | 
|  | 18015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18022 | ac_status=$? | 
|  | 18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18024 | (exit $ac_status); }; } && | 
|  | 18025 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18026 | { (case "(($ac_try" in | 
|  | 18027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18028 | *) ac_try_echo=$ac_try;; | 
|  | 18029 | esac | 
|  | 18030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18031 | (eval "$ac_try") 2>&5 | 
|  | 18032 | ac_status=$? | 
|  | 18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18034 | (exit $ac_status); }; }; then | 
|  | 18035 | ac_cv_lib_gcc___alloca=yes | 
|  | 18036 | else | 
|  | 18037 | echo "$as_me: failed program was:" >&5 | 
|  | 18038 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18039 |  | 
|  | 18040 | ac_cv_lib_gcc___alloca=no | 
|  | 18041 | fi | 
|  | 18042 |  | 
|  | 18043 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18044 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18045 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18046 | fi | 
|  | 18047 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 | 
|  | 18048 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } | 
|  | 18049 | if test $ac_cv_lib_gcc___alloca = yes; then | 
|  | 18050 |  | 
|  | 18051 | cat >>confdefs.h <<\_ACEOF | 
|  | 18052 | #define HAVE___ALLOCA 1 | 
|  | 18053 | _ACEOF | 
|  | 18054 |  | 
|  | 18055 | fi | 
|  | 18056 |  | 
|  | 18057 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 | 
|  | 18058 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } | 
|  | 18059 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then | 
|  | 18060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18061 | else | 
|  | 18062 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18063 | LIBS="-lgcc  $LIBS" | 
|  | 18064 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18065 | /* confdefs.h.  */ | 
|  | 18066 | _ACEOF | 
|  | 18067 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18068 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18069 | /* end confdefs.h.  */ | 
|  | 18070 |  | 
|  | 18071 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18072 | Use char because int might match the return type of a GCC | 
|  | 18073 | builtin and then its argument prototype would still apply.  */ | 
|  | 18074 | #ifdef __cplusplus | 
|  | 18075 | extern "C" | 
|  | 18076 | #endif | 
|  | 18077 | char __chkstk (); | 
|  | 18078 | int | 
|  | 18079 | main () | 
|  | 18080 | { | 
|  | 18081 | return __chkstk (); | 
|  | 18082 | ; | 
|  | 18083 | return 0; | 
|  | 18084 | } | 
|  | 18085 | _ACEOF | 
|  | 18086 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18087 | if { (ac_try="$ac_link" | 
|  | 18088 | case "(($ac_try" in | 
|  | 18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18090 | *) ac_try_echo=$ac_try;; | 
|  | 18091 | esac | 
|  | 18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18093 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18094 | ac_status=$? | 
|  | 18095 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18096 | rm -f conftest.er1 | 
|  | 18097 | cat conftest.err >&5 | 
|  | 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18099 | (exit $ac_status); } && | 
|  | 18100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18107 | ac_status=$? | 
|  | 18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18109 | (exit $ac_status); }; } && | 
|  | 18110 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18111 | { (case "(($ac_try" in | 
|  | 18112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18113 | *) ac_try_echo=$ac_try;; | 
|  | 18114 | esac | 
|  | 18115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18116 | (eval "$ac_try") 2>&5 | 
|  | 18117 | ac_status=$? | 
|  | 18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18119 | (exit $ac_status); }; }; then | 
|  | 18120 | ac_cv_lib_gcc___chkstk=yes | 
|  | 18121 | else | 
|  | 18122 | echo "$as_me: failed program was:" >&5 | 
|  | 18123 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18124 |  | 
|  | 18125 | ac_cv_lib_gcc___chkstk=no | 
|  | 18126 | fi | 
|  | 18127 |  | 
|  | 18128 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18129 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18130 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18131 | fi | 
|  | 18132 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 | 
|  | 18133 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } | 
|  | 18134 | if test $ac_cv_lib_gcc___chkstk = yes; then | 
|  | 18135 |  | 
|  | 18136 | cat >>confdefs.h <<\_ACEOF | 
|  | 18137 | #define HAVE___CHKSTK 1 | 
|  | 18138 | _ACEOF | 
|  | 18139 |  | 
|  | 18140 | fi | 
|  | 18141 |  | 
|  | 18142 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 | 
|  | 18143 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } | 
|  | 18144 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then | 
|  | 18145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18146 | else | 
|  | 18147 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18148 | LIBS="-lgcc  $LIBS" | 
|  | 18149 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18150 | /* confdefs.h.  */ | 
|  | 18151 | _ACEOF | 
|  | 18152 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18153 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18154 | /* end confdefs.h.  */ | 
|  | 18155 |  | 
|  | 18156 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18157 | Use char because int might match the return type of a GCC | 
|  | 18158 | builtin and then its argument prototype would still apply.  */ | 
|  | 18159 | #ifdef __cplusplus | 
|  | 18160 | extern "C" | 
|  | 18161 | #endif | 
|  | 18162 | char ___chkstk (); | 
|  | 18163 | int | 
|  | 18164 | main () | 
|  | 18165 | { | 
|  | 18166 | return ___chkstk (); | 
|  | 18167 | ; | 
|  | 18168 | return 0; | 
|  | 18169 | } | 
|  | 18170 | _ACEOF | 
|  | 18171 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18172 | if { (ac_try="$ac_link" | 
|  | 18173 | case "(($ac_try" in | 
|  | 18174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18175 | *) ac_try_echo=$ac_try;; | 
|  | 18176 | esac | 
|  | 18177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18178 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18179 | ac_status=$? | 
|  | 18180 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18181 | rm -f conftest.er1 | 
|  | 18182 | cat conftest.err >&5 | 
|  | 18183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18184 | (exit $ac_status); } && | 
|  | 18185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18192 | ac_status=$? | 
|  | 18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18194 | (exit $ac_status); }; } && | 
|  | 18195 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18196 | { (case "(($ac_try" in | 
|  | 18197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18198 | *) ac_try_echo=$ac_try;; | 
|  | 18199 | esac | 
|  | 18200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18201 | (eval "$ac_try") 2>&5 | 
|  | 18202 | ac_status=$? | 
|  | 18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18204 | (exit $ac_status); }; }; then | 
|  | 18205 | ac_cv_lib_gcc____chkstk=yes | 
|  | 18206 | else | 
|  | 18207 | echo "$as_me: failed program was:" >&5 | 
|  | 18208 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18209 |  | 
|  | 18210 | ac_cv_lib_gcc____chkstk=no | 
|  | 18211 | fi | 
|  | 18212 |  | 
|  | 18213 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18214 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18215 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18216 | fi | 
|  | 18217 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 | 
|  | 18218 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } | 
|  | 18219 | if test $ac_cv_lib_gcc____chkstk = yes; then | 
|  | 18220 |  | 
|  | 18221 | cat >>confdefs.h <<\_ACEOF | 
|  | 18222 | #define HAVE____CHKSTK 1 | 
|  | 18223 | _ACEOF | 
|  | 18224 |  | 
|  | 18225 | fi | 
|  | 18226 |  | 
|  | 18227 |  | 
|  | 18228 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 | 
|  | 18229 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18230 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then | 
|  | 18231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18232 | else | 
|  | 18233 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18234 | LIBS="-lgcc  $LIBS" | 
|  | 18235 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18236 | /* confdefs.h.  */ | 
|  | 18237 | _ACEOF | 
|  | 18238 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18239 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18240 | /* end confdefs.h.  */ | 
|  | 18241 |  | 
|  | 18242 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18243 | Use char because int might match the return type of a GCC | 
|  | 18244 | builtin and then its argument prototype would still apply.  */ | 
|  | 18245 | #ifdef __cplusplus | 
|  | 18246 | extern "C" | 
|  | 18247 | #endif | 
|  | 18248 | char __ashldi3 (); | 
|  | 18249 | int | 
|  | 18250 | main () | 
|  | 18251 | { | 
|  | 18252 | return __ashldi3 (); | 
|  | 18253 | ; | 
|  | 18254 | return 0; | 
|  | 18255 | } | 
|  | 18256 | _ACEOF | 
|  | 18257 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18258 | if { (ac_try="$ac_link" | 
|  | 18259 | case "(($ac_try" in | 
|  | 18260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18261 | *) ac_try_echo=$ac_try;; | 
|  | 18262 | esac | 
|  | 18263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18264 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18265 | ac_status=$? | 
|  | 18266 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18267 | rm -f conftest.er1 | 
|  | 18268 | cat conftest.err >&5 | 
|  | 18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18270 | (exit $ac_status); } && | 
|  | 18271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18278 | ac_status=$? | 
|  | 18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18280 | (exit $ac_status); }; } && | 
|  | 18281 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18282 | { (case "(($ac_try" in | 
|  | 18283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18284 | *) ac_try_echo=$ac_try;; | 
|  | 18285 | esac | 
|  | 18286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18287 | (eval "$ac_try") 2>&5 | 
|  | 18288 | ac_status=$? | 
|  | 18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18290 | (exit $ac_status); }; }; then | 
|  | 18291 | ac_cv_lib_gcc___ashldi3=yes | 
|  | 18292 | else | 
|  | 18293 | echo "$as_me: failed program was:" >&5 | 
|  | 18294 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18295 |  | 
|  | 18296 | ac_cv_lib_gcc___ashldi3=no | 
|  | 18297 | fi | 
|  | 18298 |  | 
|  | 18299 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18300 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18301 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18302 | fi | 
|  | 18303 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 | 
|  | 18304 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } | 
|  | 18305 | if test $ac_cv_lib_gcc___ashldi3 = yes; then | 
|  | 18306 |  | 
|  | 18307 | cat >>confdefs.h <<\_ACEOF | 
|  | 18308 | #define HAVE___ASHLDI3 1 | 
|  | 18309 | _ACEOF | 
|  | 18310 |  | 
|  | 18311 | fi | 
|  | 18312 |  | 
|  | 18313 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 | 
|  | 18314 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18315 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then | 
|  | 18316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18317 | else | 
|  | 18318 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18319 | LIBS="-lgcc  $LIBS" | 
|  | 18320 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18321 | /* confdefs.h.  */ | 
|  | 18322 | _ACEOF | 
|  | 18323 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18324 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18325 | /* end confdefs.h.  */ | 
|  | 18326 |  | 
|  | 18327 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18328 | Use char because int might match the return type of a GCC | 
|  | 18329 | builtin and then its argument prototype would still apply.  */ | 
|  | 18330 | #ifdef __cplusplus | 
|  | 18331 | extern "C" | 
|  | 18332 | #endif | 
|  | 18333 | char __ashrdi3 (); | 
|  | 18334 | int | 
|  | 18335 | main () | 
|  | 18336 | { | 
|  | 18337 | return __ashrdi3 (); | 
|  | 18338 | ; | 
|  | 18339 | return 0; | 
|  | 18340 | } | 
|  | 18341 | _ACEOF | 
|  | 18342 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18343 | if { (ac_try="$ac_link" | 
|  | 18344 | case "(($ac_try" in | 
|  | 18345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18346 | *) ac_try_echo=$ac_try;; | 
|  | 18347 | esac | 
|  | 18348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18349 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18350 | ac_status=$? | 
|  | 18351 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18352 | rm -f conftest.er1 | 
|  | 18353 | cat conftest.err >&5 | 
|  | 18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18355 | (exit $ac_status); } && | 
|  | 18356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18363 | ac_status=$? | 
|  | 18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18365 | (exit $ac_status); }; } && | 
|  | 18366 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18367 | { (case "(($ac_try" in | 
|  | 18368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18369 | *) ac_try_echo=$ac_try;; | 
|  | 18370 | esac | 
|  | 18371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18372 | (eval "$ac_try") 2>&5 | 
|  | 18373 | ac_status=$? | 
|  | 18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18375 | (exit $ac_status); }; }; then | 
|  | 18376 | ac_cv_lib_gcc___ashrdi3=yes | 
|  | 18377 | else | 
|  | 18378 | echo "$as_me: failed program was:" >&5 | 
|  | 18379 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18380 |  | 
|  | 18381 | ac_cv_lib_gcc___ashrdi3=no | 
|  | 18382 | fi | 
|  | 18383 |  | 
|  | 18384 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18385 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18386 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18387 | fi | 
|  | 18388 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 | 
|  | 18389 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } | 
|  | 18390 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then | 
|  | 18391 |  | 
|  | 18392 | cat >>confdefs.h <<\_ACEOF | 
|  | 18393 | #define HAVE___ASHRDI3 1 | 
|  | 18394 | _ACEOF | 
|  | 18395 |  | 
|  | 18396 | fi | 
|  | 18397 |  | 
|  | 18398 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 | 
|  | 18399 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18400 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then | 
|  | 18401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18402 | else | 
|  | 18403 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18404 | LIBS="-lgcc  $LIBS" | 
|  | 18405 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18406 | /* confdefs.h.  */ | 
|  | 18407 | _ACEOF | 
|  | 18408 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18409 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18410 | /* end confdefs.h.  */ | 
|  | 18411 |  | 
|  | 18412 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18413 | Use char because int might match the return type of a GCC | 
|  | 18414 | builtin and then its argument prototype would still apply.  */ | 
|  | 18415 | #ifdef __cplusplus | 
|  | 18416 | extern "C" | 
|  | 18417 | #endif | 
|  | 18418 | char __divdi3 (); | 
|  | 18419 | int | 
|  | 18420 | main () | 
|  | 18421 | { | 
|  | 18422 | return __divdi3 (); | 
|  | 18423 | ; | 
|  | 18424 | return 0; | 
|  | 18425 | } | 
|  | 18426 | _ACEOF | 
|  | 18427 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18428 | if { (ac_try="$ac_link" | 
|  | 18429 | case "(($ac_try" in | 
|  | 18430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18431 | *) ac_try_echo=$ac_try;; | 
|  | 18432 | esac | 
|  | 18433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18434 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18435 | ac_status=$? | 
|  | 18436 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18437 | rm -f conftest.er1 | 
|  | 18438 | cat conftest.err >&5 | 
|  | 18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18440 | (exit $ac_status); } && | 
|  | 18441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18448 | ac_status=$? | 
|  | 18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18450 | (exit $ac_status); }; } && | 
|  | 18451 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18452 | { (case "(($ac_try" in | 
|  | 18453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18454 | *) ac_try_echo=$ac_try;; | 
|  | 18455 | esac | 
|  | 18456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18457 | (eval "$ac_try") 2>&5 | 
|  | 18458 | ac_status=$? | 
|  | 18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18460 | (exit $ac_status); }; }; then | 
|  | 18461 | ac_cv_lib_gcc___divdi3=yes | 
|  | 18462 | else | 
|  | 18463 | echo "$as_me: failed program was:" >&5 | 
|  | 18464 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18465 |  | 
|  | 18466 | ac_cv_lib_gcc___divdi3=no | 
|  | 18467 | fi | 
|  | 18468 |  | 
|  | 18469 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18470 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18471 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18472 | fi | 
|  | 18473 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 | 
|  | 18474 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } | 
|  | 18475 | if test $ac_cv_lib_gcc___divdi3 = yes; then | 
|  | 18476 |  | 
|  | 18477 | cat >>confdefs.h <<\_ACEOF | 
|  | 18478 | #define HAVE___DIVDI3 1 | 
|  | 18479 | _ACEOF | 
|  | 18480 |  | 
|  | 18481 | fi | 
|  | 18482 |  | 
|  | 18483 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 | 
|  | 18484 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } | 
|  | 18485 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then | 
|  | 18486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18487 | else | 
|  | 18488 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18489 | LIBS="-lgcc  $LIBS" | 
|  | 18490 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18491 | /* confdefs.h.  */ | 
|  | 18492 | _ACEOF | 
|  | 18493 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18494 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18495 | /* end confdefs.h.  */ | 
|  | 18496 |  | 
|  | 18497 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18498 | Use char because int might match the return type of a GCC | 
|  | 18499 | builtin and then its argument prototype would still apply.  */ | 
|  | 18500 | #ifdef __cplusplus | 
|  | 18501 | extern "C" | 
|  | 18502 | #endif | 
|  | 18503 | char __fixdfdi (); | 
|  | 18504 | int | 
|  | 18505 | main () | 
|  | 18506 | { | 
|  | 18507 | return __fixdfdi (); | 
|  | 18508 | ; | 
|  | 18509 | return 0; | 
|  | 18510 | } | 
|  | 18511 | _ACEOF | 
|  | 18512 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18513 | if { (ac_try="$ac_link" | 
|  | 18514 | case "(($ac_try" in | 
|  | 18515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18516 | *) ac_try_echo=$ac_try;; | 
|  | 18517 | esac | 
|  | 18518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18519 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18520 | ac_status=$? | 
|  | 18521 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18522 | rm -f conftest.er1 | 
|  | 18523 | cat conftest.err >&5 | 
|  | 18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18525 | (exit $ac_status); } && | 
|  | 18526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18533 | ac_status=$? | 
|  | 18534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18535 | (exit $ac_status); }; } && | 
|  | 18536 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18537 | { (case "(($ac_try" in | 
|  | 18538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18539 | *) ac_try_echo=$ac_try;; | 
|  | 18540 | esac | 
|  | 18541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18542 | (eval "$ac_try") 2>&5 | 
|  | 18543 | ac_status=$? | 
|  | 18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18545 | (exit $ac_status); }; }; then | 
|  | 18546 | ac_cv_lib_gcc___fixdfdi=yes | 
|  | 18547 | else | 
|  | 18548 | echo "$as_me: failed program was:" >&5 | 
|  | 18549 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18550 |  | 
|  | 18551 | ac_cv_lib_gcc___fixdfdi=no | 
|  | 18552 | fi | 
|  | 18553 |  | 
|  | 18554 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18555 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18556 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18557 | fi | 
|  | 18558 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 | 
|  | 18559 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } | 
|  | 18560 | if test $ac_cv_lib_gcc___fixdfdi = yes; then | 
|  | 18561 |  | 
|  | 18562 | cat >>confdefs.h <<\_ACEOF | 
|  | 18563 | #define HAVE___FIXDFDI 1 | 
|  | 18564 | _ACEOF | 
|  | 18565 |  | 
|  | 18566 | fi | 
|  | 18567 |  | 
|  | 18568 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 | 
|  | 18569 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } | 
|  | 18570 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then | 
|  | 18571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18572 | else | 
|  | 18573 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18574 | LIBS="-lgcc  $LIBS" | 
|  | 18575 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18576 | /* confdefs.h.  */ | 
|  | 18577 | _ACEOF | 
|  | 18578 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18579 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18580 | /* end confdefs.h.  */ | 
|  | 18581 |  | 
|  | 18582 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18583 | Use char because int might match the return type of a GCC | 
|  | 18584 | builtin and then its argument prototype would still apply.  */ | 
|  | 18585 | #ifdef __cplusplus | 
|  | 18586 | extern "C" | 
|  | 18587 | #endif | 
|  | 18588 | char __fixsfdi (); | 
|  | 18589 | int | 
|  | 18590 | main () | 
|  | 18591 | { | 
|  | 18592 | return __fixsfdi (); | 
|  | 18593 | ; | 
|  | 18594 | return 0; | 
|  | 18595 | } | 
|  | 18596 | _ACEOF | 
|  | 18597 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18598 | if { (ac_try="$ac_link" | 
|  | 18599 | case "(($ac_try" in | 
|  | 18600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18601 | *) ac_try_echo=$ac_try;; | 
|  | 18602 | esac | 
|  | 18603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18604 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18605 | ac_status=$? | 
|  | 18606 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18607 | rm -f conftest.er1 | 
|  | 18608 | cat conftest.err >&5 | 
|  | 18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18610 | (exit $ac_status); } && | 
|  | 18611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18618 | ac_status=$? | 
|  | 18619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18620 | (exit $ac_status); }; } && | 
|  | 18621 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18622 | { (case "(($ac_try" in | 
|  | 18623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18624 | *) ac_try_echo=$ac_try;; | 
|  | 18625 | esac | 
|  | 18626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18627 | (eval "$ac_try") 2>&5 | 
|  | 18628 | ac_status=$? | 
|  | 18629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18630 | (exit $ac_status); }; }; then | 
|  | 18631 | ac_cv_lib_gcc___fixsfdi=yes | 
|  | 18632 | else | 
|  | 18633 | echo "$as_me: failed program was:" >&5 | 
|  | 18634 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18635 |  | 
|  | 18636 | ac_cv_lib_gcc___fixsfdi=no | 
|  | 18637 | fi | 
|  | 18638 |  | 
|  | 18639 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18640 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18641 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18642 | fi | 
|  | 18643 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 | 
|  | 18644 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } | 
|  | 18645 | if test $ac_cv_lib_gcc___fixsfdi = yes; then | 
|  | 18646 |  | 
|  | 18647 | cat >>confdefs.h <<\_ACEOF | 
|  | 18648 | #define HAVE___FIXSFDI 1 | 
|  | 18649 | _ACEOF | 
|  | 18650 |  | 
|  | 18651 | fi | 
|  | 18652 |  | 
|  | 18653 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 | 
|  | 18654 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } | 
|  | 18655 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then | 
|  | 18656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18657 | else | 
|  | 18658 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18659 | LIBS="-lgcc  $LIBS" | 
|  | 18660 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18661 | /* confdefs.h.  */ | 
|  | 18662 | _ACEOF | 
|  | 18663 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18664 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18665 | /* end confdefs.h.  */ | 
|  | 18666 |  | 
|  | 18667 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18668 | Use char because int might match the return type of a GCC | 
|  | 18669 | builtin and then its argument prototype would still apply.  */ | 
|  | 18670 | #ifdef __cplusplus | 
|  | 18671 | extern "C" | 
|  | 18672 | #endif | 
|  | 18673 | char __floatdidf (); | 
|  | 18674 | int | 
|  | 18675 | main () | 
|  | 18676 | { | 
|  | 18677 | return __floatdidf (); | 
|  | 18678 | ; | 
|  | 18679 | return 0; | 
|  | 18680 | } | 
|  | 18681 | _ACEOF | 
|  | 18682 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18683 | if { (ac_try="$ac_link" | 
|  | 18684 | case "(($ac_try" in | 
|  | 18685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18686 | *) ac_try_echo=$ac_try;; | 
|  | 18687 | esac | 
|  | 18688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18689 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18690 | ac_status=$? | 
|  | 18691 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18692 | rm -f conftest.er1 | 
|  | 18693 | cat conftest.err >&5 | 
|  | 18694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18695 | (exit $ac_status); } && | 
|  | 18696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18703 | ac_status=$? | 
|  | 18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18705 | (exit $ac_status); }; } && | 
|  | 18706 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18707 | { (case "(($ac_try" in | 
|  | 18708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18709 | *) ac_try_echo=$ac_try;; | 
|  | 18710 | esac | 
|  | 18711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18712 | (eval "$ac_try") 2>&5 | 
|  | 18713 | ac_status=$? | 
|  | 18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18715 | (exit $ac_status); }; }; then | 
|  | 18716 | ac_cv_lib_gcc___floatdidf=yes | 
|  | 18717 | else | 
|  | 18718 | echo "$as_me: failed program was:" >&5 | 
|  | 18719 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18720 |  | 
|  | 18721 | ac_cv_lib_gcc___floatdidf=no | 
|  | 18722 | fi | 
|  | 18723 |  | 
|  | 18724 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18725 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18726 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18727 | fi | 
|  | 18728 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 | 
|  | 18729 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } | 
|  | 18730 | if test $ac_cv_lib_gcc___floatdidf = yes; then | 
|  | 18731 |  | 
|  | 18732 | cat >>confdefs.h <<\_ACEOF | 
|  | 18733 | #define HAVE___FLOATDIDF 1 | 
|  | 18734 | _ACEOF | 
|  | 18735 |  | 
|  | 18736 | fi | 
|  | 18737 |  | 
|  | 18738 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 | 
|  | 18739 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18740 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then | 
|  | 18741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18742 | else | 
|  | 18743 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18744 | LIBS="-lgcc  $LIBS" | 
|  | 18745 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18746 | /* confdefs.h.  */ | 
|  | 18747 | _ACEOF | 
|  | 18748 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18749 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18750 | /* end confdefs.h.  */ | 
|  | 18751 |  | 
|  | 18752 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18753 | Use char because int might match the return type of a GCC | 
|  | 18754 | builtin and then its argument prototype would still apply.  */ | 
|  | 18755 | #ifdef __cplusplus | 
|  | 18756 | extern "C" | 
|  | 18757 | #endif | 
|  | 18758 | char __lshrdi3 (); | 
|  | 18759 | int | 
|  | 18760 | main () | 
|  | 18761 | { | 
|  | 18762 | return __lshrdi3 (); | 
|  | 18763 | ; | 
|  | 18764 | return 0; | 
|  | 18765 | } | 
|  | 18766 | _ACEOF | 
|  | 18767 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18768 | if { (ac_try="$ac_link" | 
|  | 18769 | case "(($ac_try" in | 
|  | 18770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18771 | *) ac_try_echo=$ac_try;; | 
|  | 18772 | esac | 
|  | 18773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18774 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18775 | ac_status=$? | 
|  | 18776 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18777 | rm -f conftest.er1 | 
|  | 18778 | cat conftest.err >&5 | 
|  | 18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18780 | (exit $ac_status); } && | 
|  | 18781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18788 | ac_status=$? | 
|  | 18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18790 | (exit $ac_status); }; } && | 
|  | 18791 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18792 | { (case "(($ac_try" in | 
|  | 18793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18794 | *) ac_try_echo=$ac_try;; | 
|  | 18795 | esac | 
|  | 18796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18797 | (eval "$ac_try") 2>&5 | 
|  | 18798 | ac_status=$? | 
|  | 18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18800 | (exit $ac_status); }; }; then | 
|  | 18801 | ac_cv_lib_gcc___lshrdi3=yes | 
|  | 18802 | else | 
|  | 18803 | echo "$as_me: failed program was:" >&5 | 
|  | 18804 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18805 |  | 
|  | 18806 | ac_cv_lib_gcc___lshrdi3=no | 
|  | 18807 | fi | 
|  | 18808 |  | 
|  | 18809 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18810 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18811 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18812 | fi | 
|  | 18813 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 | 
|  | 18814 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } | 
|  | 18815 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then | 
|  | 18816 |  | 
|  | 18817 | cat >>confdefs.h <<\_ACEOF | 
|  | 18818 | #define HAVE___LSHRDI3 1 | 
|  | 18819 | _ACEOF | 
|  | 18820 |  | 
|  | 18821 | fi | 
|  | 18822 |  | 
|  | 18823 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 | 
|  | 18824 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18825 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then | 
|  | 18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18827 | else | 
|  | 18828 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18829 | LIBS="-lgcc  $LIBS" | 
|  | 18830 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18831 | /* confdefs.h.  */ | 
|  | 18832 | _ACEOF | 
|  | 18833 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18834 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18835 | /* end confdefs.h.  */ | 
|  | 18836 |  | 
|  | 18837 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18838 | Use char because int might match the return type of a GCC | 
|  | 18839 | builtin and then its argument prototype would still apply.  */ | 
|  | 18840 | #ifdef __cplusplus | 
|  | 18841 | extern "C" | 
|  | 18842 | #endif | 
|  | 18843 | char __moddi3 (); | 
|  | 18844 | int | 
|  | 18845 | main () | 
|  | 18846 | { | 
|  | 18847 | return __moddi3 (); | 
|  | 18848 | ; | 
|  | 18849 | return 0; | 
|  | 18850 | } | 
|  | 18851 | _ACEOF | 
|  | 18852 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18853 | if { (ac_try="$ac_link" | 
|  | 18854 | case "(($ac_try" in | 
|  | 18855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18856 | *) ac_try_echo=$ac_try;; | 
|  | 18857 | esac | 
|  | 18858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18859 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18860 | ac_status=$? | 
|  | 18861 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18862 | rm -f conftest.er1 | 
|  | 18863 | cat conftest.err >&5 | 
|  | 18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18865 | (exit $ac_status); } && | 
|  | 18866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18873 | ac_status=$? | 
|  | 18874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18875 | (exit $ac_status); }; } && | 
|  | 18876 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18877 | { (case "(($ac_try" in | 
|  | 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18879 | *) ac_try_echo=$ac_try;; | 
|  | 18880 | esac | 
|  | 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18882 | (eval "$ac_try") 2>&5 | 
|  | 18883 | ac_status=$? | 
|  | 18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18885 | (exit $ac_status); }; }; then | 
|  | 18886 | ac_cv_lib_gcc___moddi3=yes | 
|  | 18887 | else | 
|  | 18888 | echo "$as_me: failed program was:" >&5 | 
|  | 18889 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18890 |  | 
|  | 18891 | ac_cv_lib_gcc___moddi3=no | 
|  | 18892 | fi | 
|  | 18893 |  | 
|  | 18894 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18895 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18896 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18897 | fi | 
|  | 18898 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 | 
|  | 18899 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } | 
|  | 18900 | if test $ac_cv_lib_gcc___moddi3 = yes; then | 
|  | 18901 |  | 
|  | 18902 | cat >>confdefs.h <<\_ACEOF | 
|  | 18903 | #define HAVE___MODDI3 1 | 
|  | 18904 | _ACEOF | 
|  | 18905 |  | 
|  | 18906 | fi | 
|  | 18907 |  | 
|  | 18908 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 | 
|  | 18909 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18910 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then | 
|  | 18911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18912 | else | 
|  | 18913 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18914 | LIBS="-lgcc  $LIBS" | 
|  | 18915 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18916 | /* confdefs.h.  */ | 
|  | 18917 | _ACEOF | 
|  | 18918 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18919 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18920 | /* end confdefs.h.  */ | 
|  | 18921 |  | 
|  | 18922 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18923 | Use char because int might match the return type of a GCC | 
|  | 18924 | builtin and then its argument prototype would still apply.  */ | 
|  | 18925 | #ifdef __cplusplus | 
|  | 18926 | extern "C" | 
|  | 18927 | #endif | 
|  | 18928 | char __udivdi3 (); | 
|  | 18929 | int | 
|  | 18930 | main () | 
|  | 18931 | { | 
|  | 18932 | return __udivdi3 (); | 
|  | 18933 | ; | 
|  | 18934 | return 0; | 
|  | 18935 | } | 
|  | 18936 | _ACEOF | 
|  | 18937 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18938 | if { (ac_try="$ac_link" | 
|  | 18939 | case "(($ac_try" in | 
|  | 18940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18941 | *) ac_try_echo=$ac_try;; | 
|  | 18942 | esac | 
|  | 18943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18944 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18945 | ac_status=$? | 
|  | 18946 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18947 | rm -f conftest.er1 | 
|  | 18948 | cat conftest.err >&5 | 
|  | 18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18950 | (exit $ac_status); } && | 
|  | 18951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18958 | ac_status=$? | 
|  | 18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18960 | (exit $ac_status); }; } && | 
|  | 18961 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18962 | { (case "(($ac_try" in | 
|  | 18963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18964 | *) ac_try_echo=$ac_try;; | 
|  | 18965 | esac | 
|  | 18966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18967 | (eval "$ac_try") 2>&5 | 
|  | 18968 | ac_status=$? | 
|  | 18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18970 | (exit $ac_status); }; }; then | 
|  | 18971 | ac_cv_lib_gcc___udivdi3=yes | 
|  | 18972 | else | 
|  | 18973 | echo "$as_me: failed program was:" >&5 | 
|  | 18974 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18975 |  | 
|  | 18976 | ac_cv_lib_gcc___udivdi3=no | 
|  | 18977 | fi | 
|  | 18978 |  | 
|  | 18979 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18980 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18981 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18982 | fi | 
|  | 18983 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 | 
|  | 18984 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } | 
|  | 18985 | if test $ac_cv_lib_gcc___udivdi3 = yes; then | 
|  | 18986 |  | 
|  | 18987 | cat >>confdefs.h <<\_ACEOF | 
|  | 18988 | #define HAVE___UDIVDI3 1 | 
|  | 18989 | _ACEOF | 
|  | 18990 |  | 
|  | 18991 | fi | 
|  | 18992 |  | 
|  | 18993 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 | 
|  | 18994 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18995 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then | 
|  | 18996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18997 | else | 
|  | 18998 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18999 | LIBS="-lgcc  $LIBS" | 
|  | 19000 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19001 | /* confdefs.h.  */ | 
|  | 19002 | _ACEOF | 
|  | 19003 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19004 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19005 | /* end confdefs.h.  */ | 
|  | 19006 |  | 
|  | 19007 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19008 | Use char because int might match the return type of a GCC | 
|  | 19009 | builtin and then its argument prototype would still apply.  */ | 
|  | 19010 | #ifdef __cplusplus | 
|  | 19011 | extern "C" | 
|  | 19012 | #endif | 
|  | 19013 | char __umoddi3 (); | 
|  | 19014 | int | 
|  | 19015 | main () | 
|  | 19016 | { | 
|  | 19017 | return __umoddi3 (); | 
|  | 19018 | ; | 
|  | 19019 | return 0; | 
|  | 19020 | } | 
|  | 19021 | _ACEOF | 
|  | 19022 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19023 | if { (ac_try="$ac_link" | 
|  | 19024 | case "(($ac_try" in | 
|  | 19025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19026 | *) ac_try_echo=$ac_try;; | 
|  | 19027 | esac | 
|  | 19028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19029 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19030 | ac_status=$? | 
|  | 19031 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19032 | rm -f conftest.er1 | 
|  | 19033 | cat conftest.err >&5 | 
|  | 19034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19035 | (exit $ac_status); } && | 
|  | 19036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19043 | ac_status=$? | 
|  | 19044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19045 | (exit $ac_status); }; } && | 
|  | 19046 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19047 | { (case "(($ac_try" in | 
|  | 19048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19049 | *) ac_try_echo=$ac_try;; | 
|  | 19050 | esac | 
|  | 19051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19052 | (eval "$ac_try") 2>&5 | 
|  | 19053 | ac_status=$? | 
|  | 19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19055 | (exit $ac_status); }; }; then | 
|  | 19056 | ac_cv_lib_gcc___umoddi3=yes | 
|  | 19057 | else | 
|  | 19058 | echo "$as_me: failed program was:" >&5 | 
|  | 19059 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19060 |  | 
|  | 19061 | ac_cv_lib_gcc___umoddi3=no | 
|  | 19062 | fi | 
|  | 19063 |  | 
|  | 19064 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19065 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19066 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19067 | fi | 
|  | 19068 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 | 
|  | 19069 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } | 
|  | 19070 | if test $ac_cv_lib_gcc___umoddi3 = yes; then | 
|  | 19071 |  | 
|  | 19072 | cat >>confdefs.h <<\_ACEOF | 
|  | 19073 | #define HAVE___UMODDI3 1 | 
|  | 19074 | _ACEOF | 
|  | 19075 |  | 
|  | 19076 | fi | 
|  | 19077 |  | 
|  | 19078 |  | 
|  | 19079 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 | 
|  | 19080 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } | 
|  | 19081 | if test "${ac_cv_lib_gcc___main+set}" = set; then | 
|  | 19082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19083 | else | 
|  | 19084 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19085 | LIBS="-lgcc  $LIBS" | 
|  | 19086 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19087 | /* confdefs.h.  */ | 
|  | 19088 | _ACEOF | 
|  | 19089 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19090 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19091 | /* end confdefs.h.  */ | 
|  | 19092 |  | 
|  | 19093 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19094 | Use char because int might match the return type of a GCC | 
|  | 19095 | builtin and then its argument prototype would still apply.  */ | 
|  | 19096 | #ifdef __cplusplus | 
|  | 19097 | extern "C" | 
|  | 19098 | #endif | 
|  | 19099 | char __main (); | 
|  | 19100 | int | 
|  | 19101 | main () | 
|  | 19102 | { | 
|  | 19103 | return __main (); | 
|  | 19104 | ; | 
|  | 19105 | return 0; | 
|  | 19106 | } | 
|  | 19107 | _ACEOF | 
|  | 19108 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19109 | if { (ac_try="$ac_link" | 
|  | 19110 | case "(($ac_try" in | 
|  | 19111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19112 | *) ac_try_echo=$ac_try;; | 
|  | 19113 | esac | 
|  | 19114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19115 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19116 | ac_status=$? | 
|  | 19117 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19118 | rm -f conftest.er1 | 
|  | 19119 | cat conftest.err >&5 | 
|  | 19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19121 | (exit $ac_status); } && | 
|  | 19122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19129 | ac_status=$? | 
|  | 19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19131 | (exit $ac_status); }; } && | 
|  | 19132 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19133 | { (case "(($ac_try" in | 
|  | 19134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19135 | *) ac_try_echo=$ac_try;; | 
|  | 19136 | esac | 
|  | 19137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19138 | (eval "$ac_try") 2>&5 | 
|  | 19139 | ac_status=$? | 
|  | 19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19141 | (exit $ac_status); }; }; then | 
|  | 19142 | ac_cv_lib_gcc___main=yes | 
|  | 19143 | else | 
|  | 19144 | echo "$as_me: failed program was:" >&5 | 
|  | 19145 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19146 |  | 
|  | 19147 | ac_cv_lib_gcc___main=no | 
|  | 19148 | fi | 
|  | 19149 |  | 
|  | 19150 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19151 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19152 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19153 | fi | 
|  | 19154 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 | 
|  | 19155 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } | 
|  | 19156 | if test $ac_cv_lib_gcc___main = yes; then | 
|  | 19157 |  | 
|  | 19158 | cat >>confdefs.h <<\_ACEOF | 
|  | 19159 | #define HAVE___MAIN 1 | 
|  | 19160 | _ACEOF | 
|  | 19161 |  | 
|  | 19162 | fi | 
|  | 19163 |  | 
|  | 19164 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 | 
|  | 19165 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } | 
|  | 19166 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then | 
|  | 19167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19168 | else | 
|  | 19169 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19170 | LIBS="-lgcc  $LIBS" | 
|  | 19171 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19172 | /* confdefs.h.  */ | 
|  | 19173 | _ACEOF | 
|  | 19174 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19175 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19176 | /* end confdefs.h.  */ | 
|  | 19177 |  | 
|  | 19178 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19179 | Use char because int might match the return type of a GCC | 
|  | 19180 | builtin and then its argument prototype would still apply.  */ | 
|  | 19181 | #ifdef __cplusplus | 
|  | 19182 | extern "C" | 
|  | 19183 | #endif | 
|  | 19184 | char __cmpdi2 (); | 
|  | 19185 | int | 
|  | 19186 | main () | 
|  | 19187 | { | 
|  | 19188 | return __cmpdi2 (); | 
|  | 19189 | ; | 
|  | 19190 | return 0; | 
|  | 19191 | } | 
|  | 19192 | _ACEOF | 
|  | 19193 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19194 | if { (ac_try="$ac_link" | 
|  | 19195 | case "(($ac_try" in | 
|  | 19196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19197 | *) ac_try_echo=$ac_try;; | 
|  | 19198 | esac | 
|  | 19199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19200 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19201 | ac_status=$? | 
|  | 19202 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19203 | rm -f conftest.er1 | 
|  | 19204 | cat conftest.err >&5 | 
|  | 19205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19206 | (exit $ac_status); } && | 
|  | 19207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19214 | ac_status=$? | 
|  | 19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19216 | (exit $ac_status); }; } && | 
|  | 19217 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19218 | { (case "(($ac_try" in | 
|  | 19219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19220 | *) ac_try_echo=$ac_try;; | 
|  | 19221 | esac | 
|  | 19222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19223 | (eval "$ac_try") 2>&5 | 
|  | 19224 | ac_status=$? | 
|  | 19225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19226 | (exit $ac_status); }; }; then | 
|  | 19227 | ac_cv_lib_gcc___cmpdi2=yes | 
|  | 19228 | else | 
|  | 19229 | echo "$as_me: failed program was:" >&5 | 
|  | 19230 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19231 |  | 
|  | 19232 | ac_cv_lib_gcc___cmpdi2=no | 
|  | 19233 | fi | 
|  | 19234 |  | 
|  | 19235 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19236 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19237 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19238 | fi | 
|  | 19239 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 | 
|  | 19240 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } | 
|  | 19241 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then | 
|  | 19242 |  | 
|  | 19243 | cat >>confdefs.h <<\_ACEOF | 
|  | 19244 | #define HAVE___CMPDI2 1 | 
|  | 19245 | _ACEOF | 
|  | 19246 |  | 
|  | 19247 | fi | 
|  | 19248 |  | 
|  | 19249 | fi | 
|  | 19250 |  | 
| NAKAMURA Takumi | 4471f82 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19251 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 19252 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 | 
|  | 19253 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } | 
|  | 19254 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19255 | #include <windows.h> | 
|  | 19256 | #include <imagehlp.h> | 
|  | 19257 | extern void foo(PENUMLOADED_MODULES_CALLBACK); | 
|  | 19258 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); | 
|  | 19259 | _ACEOF | 
|  | 19260 | rm -f conftest.$ac_objext | 
|  | 19261 | if { (ac_try="$ac_compile" | 
|  | 19262 | case "(($ac_try" in | 
|  | 19263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19264 | *) ac_try_echo=$ac_try;; | 
|  | 19265 | esac | 
|  | 19266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19267 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19268 | ac_status=$? | 
|  | 19269 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19270 | rm -f conftest.er1 | 
|  | 19271 | cat conftest.err >&5 | 
|  | 19272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19273 | (exit $ac_status); } && | 
|  | 19274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19281 | ac_status=$? | 
|  | 19282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19283 | (exit $ac_status); }; } && | 
|  | 19284 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19285 | { (case "(($ac_try" in | 
|  | 19286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19287 | *) ac_try_echo=$ac_try;; | 
|  | 19288 | esac | 
|  | 19289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19290 | (eval "$ac_try") 2>&5 | 
|  | 19291 | ac_status=$? | 
|  | 19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19293 | (exit $ac_status); }; }; then | 
|  | 19294 |  | 
|  | 19295 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 19296 | echo "${ECHO_T}yes" >&6; } | 
|  | 19297 | llvm_cv_win32_elmcb_pcstr="PCSTR" | 
|  | 19298 |  | 
|  | 19299 | else | 
|  | 19300 | echo "$as_me: failed program was:" >&5 | 
|  | 19301 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19302 |  | 
|  | 19303 |  | 
|  | 19304 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19305 | echo "${ECHO_T}no" >&6; } | 
|  | 19306 | llvm_cv_win32_elmcb_pcstr="PSTR" | 
|  | 19307 |  | 
|  | 19308 | fi | 
|  | 19309 |  | 
|  | 19310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 19311 |  | 
|  | 19312 | cat >>confdefs.h <<_ACEOF | 
|  | 19313 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr | 
|  | 19314 | _ACEOF | 
|  | 19315 |  | 
|  | 19316 | fi | 
|  | 19317 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19318 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19319 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
|  | 19320 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } | 
|  | 19321 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
|  | 19322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19323 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19324 | ac_ext=cpp | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19325 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19326 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19327 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19328 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19329 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19330 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19331 | /* confdefs.h.  */ | 
|  | 19332 | _ACEOF | 
|  | 19333 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19334 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19335 | /* end confdefs.h.  */ | 
|  | 19336 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19337 | int | 
|  | 19338 | main () | 
|  | 19339 | { | 
|  | 19340 | float f; isnan(f); | 
|  | 19341 | ; | 
|  | 19342 | return 0; | 
|  | 19343 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19344 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19345 | rm -f conftest.$ac_objext | 
|  | 19346 | if { (ac_try="$ac_compile" | 
|  | 19347 | case "(($ac_try" in | 
|  | 19348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19349 | *) ac_try_echo=$ac_try;; | 
|  | 19350 | esac | 
|  | 19351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19352 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19353 | ac_status=$? | 
|  | 19354 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19355 | rm -f conftest.er1 | 
|  | 19356 | cat conftest.err >&5 | 
|  | 19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19358 | (exit $ac_status); } && | 
|  | 19359 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19366 | ac_status=$? | 
|  | 19367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19368 | (exit $ac_status); }; } && | 
|  | 19369 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19370 | { (case "(($ac_try" in | 
|  | 19371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19372 | *) ac_try_echo=$ac_try;; | 
|  | 19373 | esac | 
|  | 19374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19375 | (eval "$ac_try") 2>&5 | 
|  | 19376 | ac_status=$? | 
|  | 19377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19378 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19379 | ac_cv_func_isnan_in_math_h=yes | 
|  | 19380 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19381 | echo "$as_me: failed program was:" >&5 | 
|  | 19382 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19383 |  | 
|  | 19384 | ac_cv_func_isnan_in_math_h=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19385 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19386 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19388 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19389 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19393 |  | 
|  | 19394 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19395 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
|  | 19396 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19397 |  | 
|  | 19398 |  | 
|  | 19399 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19400 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19401 | cat >>confdefs.h <<\_ACEOF | 
|  | 19402 | #define HAVE_ISNAN_IN_MATH_H 1 | 
|  | 19403 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19404 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19405 | fi | 
|  | 19406 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19407 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
|  | 19408 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } | 
|  | 19409 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
|  | 19410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19411 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19412 | ac_ext=cpp | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19413 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19417 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19418 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19419 | /* confdefs.h.  */ | 
|  | 19420 | _ACEOF | 
|  | 19421 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19422 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19423 | /* end confdefs.h.  */ | 
|  | 19424 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19425 | int | 
|  | 19426 | main () | 
|  | 19427 | { | 
|  | 19428 | float f; isnan(f); | 
|  | 19429 | ; | 
|  | 19430 | return 0; | 
|  | 19431 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19432 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19433 | rm -f conftest.$ac_objext | 
|  | 19434 | if { (ac_try="$ac_compile" | 
|  | 19435 | case "(($ac_try" in | 
|  | 19436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19437 | *) ac_try_echo=$ac_try;; | 
|  | 19438 | esac | 
|  | 19439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19440 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19441 | ac_status=$? | 
|  | 19442 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19443 | rm -f conftest.er1 | 
|  | 19444 | cat conftest.err >&5 | 
|  | 19445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19446 | (exit $ac_status); } && | 
|  | 19447 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19454 | ac_status=$? | 
|  | 19455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19456 | (exit $ac_status); }; } && | 
|  | 19457 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19458 | { (case "(($ac_try" in | 
|  | 19459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19460 | *) ac_try_echo=$ac_try;; | 
|  | 19461 | esac | 
|  | 19462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19463 | (eval "$ac_try") 2>&5 | 
|  | 19464 | ac_status=$? | 
|  | 19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19466 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19467 | ac_cv_func_isnan_in_cmath=yes | 
|  | 19468 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19469 | echo "$as_me: failed program was:" >&5 | 
|  | 19470 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19471 |  | 
|  | 19472 | ac_cv_func_isnan_in_cmath=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19473 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19474 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19476 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19477 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19481 |  | 
|  | 19482 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19483 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
|  | 19484 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19485 |  | 
|  | 19486 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19487 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19488 | cat >>confdefs.h <<\_ACEOF | 
|  | 19489 | #define HAVE_ISNAN_IN_CMATH 1 | 
|  | 19490 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19491 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19492 | fi | 
|  | 19493 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19494 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
|  | 19495 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } | 
|  | 19496 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
|  | 19497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19498 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19499 | ac_ext=cpp | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19500 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19501 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19502 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19503 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19504 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19505 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19506 | /* confdefs.h.  */ | 
|  | 19507 | _ACEOF | 
|  | 19508 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19509 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19510 | /* end confdefs.h.  */ | 
|  | 19511 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19512 | int | 
|  | 19513 | main () | 
|  | 19514 | { | 
|  | 19515 | float f; std::isnan(f); | 
|  | 19516 | ; | 
|  | 19517 | return 0; | 
|  | 19518 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19519 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19520 | rm -f conftest.$ac_objext | 
|  | 19521 | if { (ac_try="$ac_compile" | 
|  | 19522 | case "(($ac_try" in | 
|  | 19523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19524 | *) ac_try_echo=$ac_try;; | 
|  | 19525 | esac | 
|  | 19526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19527 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19528 | ac_status=$? | 
|  | 19529 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19530 | rm -f conftest.er1 | 
|  | 19531 | cat conftest.err >&5 | 
|  | 19532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19533 | (exit $ac_status); } && | 
|  | 19534 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19541 | ac_status=$? | 
|  | 19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19543 | (exit $ac_status); }; } && | 
|  | 19544 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19545 | { (case "(($ac_try" in | 
|  | 19546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19547 | *) ac_try_echo=$ac_try;; | 
|  | 19548 | esac | 
|  | 19549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19550 | (eval "$ac_try") 2>&5 | 
|  | 19551 | ac_status=$? | 
|  | 19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19553 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19554 | ac_cv_func_std_isnan_in_cmath=yes | 
|  | 19555 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19556 | echo "$as_me: failed program was:" >&5 | 
|  | 19557 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19558 |  | 
|  | 19559 | ac_cv_func_std_isnan_in_cmath=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19560 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19561 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19563 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19564 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19568 |  | 
|  | 19569 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19570 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
|  | 19571 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19572 |  | 
|  | 19573 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19574 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19575 | cat >>confdefs.h <<\_ACEOF | 
|  | 19576 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
|  | 19577 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19578 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19579 | fi | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19580 |  | 
|  | 19581 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19582 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
|  | 19583 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } | 
|  | 19584 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
|  | 19585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19586 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19587 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19588 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19589 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19590 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19591 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19592 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19593 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19594 | /* confdefs.h.  */ | 
|  | 19595 | _ACEOF | 
|  | 19596 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19597 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19598 | /* end confdefs.h.  */ | 
|  | 19599 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19600 | int | 
|  | 19601 | main () | 
|  | 19602 | { | 
|  | 19603 | float f; isinf(f); | 
|  | 19604 | ; | 
|  | 19605 | return 0; | 
|  | 19606 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19607 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19608 | rm -f conftest.$ac_objext | 
|  | 19609 | if { (ac_try="$ac_compile" | 
|  | 19610 | case "(($ac_try" in | 
|  | 19611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19612 | *) ac_try_echo=$ac_try;; | 
|  | 19613 | esac | 
|  | 19614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19615 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19616 | ac_status=$? | 
|  | 19617 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19618 | rm -f conftest.er1 | 
|  | 19619 | cat conftest.err >&5 | 
|  | 19620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19621 | (exit $ac_status); } && | 
|  | 19622 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19629 | ac_status=$? | 
|  | 19630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19631 | (exit $ac_status); }; } && | 
|  | 19632 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19633 | { (case "(($ac_try" in | 
|  | 19634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19635 | *) ac_try_echo=$ac_try;; | 
|  | 19636 | esac | 
|  | 19637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19638 | (eval "$ac_try") 2>&5 | 
|  | 19639 | ac_status=$? | 
|  | 19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19641 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19642 | ac_cv_func_isinf_in_math_h=yes | 
|  | 19643 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19644 | echo "$as_me: failed program was:" >&5 | 
|  | 19645 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19646 |  | 
|  | 19647 | ac_cv_func_isinf_in_math_h=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19648 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19649 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19651 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19652 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19656 |  | 
|  | 19657 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19658 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
|  | 19659 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19660 |  | 
|  | 19661 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19662 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19663 | cat >>confdefs.h <<\_ACEOF | 
|  | 19664 | #define HAVE_ISINF_IN_MATH_H 1 | 
|  | 19665 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19666 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19667 | fi | 
|  | 19668 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19669 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
|  | 19670 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } | 
|  | 19671 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
|  | 19672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19673 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19674 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19675 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19679 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19680 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19681 | /* confdefs.h.  */ | 
|  | 19682 | _ACEOF | 
|  | 19683 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19684 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19685 | /* end confdefs.h.  */ | 
|  | 19686 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19687 | int | 
|  | 19688 | main () | 
|  | 19689 | { | 
|  | 19690 | float f; isinf(f); | 
|  | 19691 | ; | 
|  | 19692 | return 0; | 
|  | 19693 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19694 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19695 | rm -f conftest.$ac_objext | 
|  | 19696 | if { (ac_try="$ac_compile" | 
|  | 19697 | case "(($ac_try" in | 
|  | 19698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19699 | *) ac_try_echo=$ac_try;; | 
|  | 19700 | esac | 
|  | 19701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19702 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19703 | ac_status=$? | 
|  | 19704 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19705 | rm -f conftest.er1 | 
|  | 19706 | cat conftest.err >&5 | 
|  | 19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19708 | (exit $ac_status); } && | 
|  | 19709 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19716 | ac_status=$? | 
|  | 19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19718 | (exit $ac_status); }; } && | 
|  | 19719 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19720 | { (case "(($ac_try" in | 
|  | 19721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19722 | *) ac_try_echo=$ac_try;; | 
|  | 19723 | esac | 
|  | 19724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19725 | (eval "$ac_try") 2>&5 | 
|  | 19726 | ac_status=$? | 
|  | 19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19728 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19729 | ac_cv_func_isinf_in_cmath=yes | 
|  | 19730 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19731 | echo "$as_me: failed program was:" >&5 | 
|  | 19732 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19733 |  | 
|  | 19734 | ac_cv_func_isinf_in_cmath=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19735 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19736 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19738 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19739 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19743 |  | 
|  | 19744 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19745 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
|  | 19746 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19747 |  | 
|  | 19748 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19749 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19750 | cat >>confdefs.h <<\_ACEOF | 
|  | 19751 | #define HAVE_ISINF_IN_CMATH 1 | 
|  | 19752 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19753 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19754 | fi | 
|  | 19755 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19756 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
|  | 19757 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } | 
|  | 19758 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
|  | 19759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19760 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19761 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19762 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19763 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19764 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19765 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19766 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19767 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19768 | /* confdefs.h.  */ | 
|  | 19769 | _ACEOF | 
|  | 19770 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19771 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19772 | /* end confdefs.h.  */ | 
|  | 19773 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19774 | int | 
|  | 19775 | main () | 
|  | 19776 | { | 
|  | 19777 | float f; std::isinf(f)} | 
|  | 19778 | ; | 
|  | 19779 | return 0; | 
|  | 19780 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19781 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19782 | rm -f conftest.$ac_objext | 
|  | 19783 | if { (ac_try="$ac_compile" | 
|  | 19784 | case "(($ac_try" in | 
|  | 19785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19786 | *) ac_try_echo=$ac_try;; | 
|  | 19787 | esac | 
|  | 19788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19789 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19790 | ac_status=$? | 
|  | 19791 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19792 | rm -f conftest.er1 | 
|  | 19793 | cat conftest.err >&5 | 
|  | 19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19795 | (exit $ac_status); } && | 
|  | 19796 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19803 | ac_status=$? | 
|  | 19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19805 | (exit $ac_status); }; } && | 
|  | 19806 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19807 | { (case "(($ac_try" in | 
|  | 19808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19809 | *) ac_try_echo=$ac_try;; | 
|  | 19810 | esac | 
|  | 19811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19812 | (eval "$ac_try") 2>&5 | 
|  | 19813 | ac_status=$? | 
|  | 19814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19815 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19816 | ac_cv_func_std_isinf_in_cmath=yes | 
|  | 19817 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19818 | echo "$as_me: failed program was:" >&5 | 
|  | 19819 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19820 |  | 
|  | 19821 | ac_cv_func_std_isinf_in_cmath=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19822 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19823 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19825 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19826 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19830 |  | 
|  | 19831 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19832 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
|  | 19833 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19834 |  | 
|  | 19835 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19836 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19837 | cat >>confdefs.h <<\_ACEOF | 
|  | 19838 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
|  | 19839 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19840 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19841 | fi | 
|  | 19842 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19843 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
|  | 19844 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } | 
|  | 19845 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
|  | 19846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19847 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19848 | ac_ext=cpp | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19849 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19850 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19851 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19852 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19853 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19854 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19855 | /* confdefs.h.  */ | 
|  | 19856 | _ACEOF | 
|  | 19857 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19858 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19859 | /* end confdefs.h.  */ | 
|  | 19860 | #include <ieeefp.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19861 | int | 
|  | 19862 | main () | 
|  | 19863 | { | 
|  | 19864 | float f; finite(f); | 
|  | 19865 | ; | 
|  | 19866 | return 0; | 
|  | 19867 | } | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19868 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19869 | rm -f conftest.$ac_objext | 
|  | 19870 | if { (ac_try="$ac_compile" | 
|  | 19871 | case "(($ac_try" in | 
|  | 19872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19873 | *) ac_try_echo=$ac_try;; | 
|  | 19874 | esac | 
|  | 19875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19876 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19877 | ac_status=$? | 
|  | 19878 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19879 | rm -f conftest.er1 | 
|  | 19880 | cat conftest.err >&5 | 
|  | 19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19882 | (exit $ac_status); } && | 
|  | 19883 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19890 | ac_status=$? | 
|  | 19891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19892 | (exit $ac_status); }; } && | 
|  | 19893 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19894 | { (case "(($ac_try" in | 
|  | 19895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19896 | *) ac_try_echo=$ac_try;; | 
|  | 19897 | esac | 
|  | 19898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19899 | (eval "$ac_try") 2>&5 | 
|  | 19900 | ac_status=$? | 
|  | 19901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19902 | (exit $ac_status); }; }; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19903 | ac_cv_func_finite_in_ieeefp_h=yes | 
|  | 19904 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19905 | echo "$as_me: failed program was:" >&5 | 
|  | 19906 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19907 |  | 
|  | 19908 | ac_cv_func_finite_in_ieeefp_h=no | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19909 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19910 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19912 | ac_ext=c | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19913 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19917 |  | 
|  | 19918 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19919 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
|  | 19920 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19921 |  | 
| Brian Gaeke | ae050e0 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19922 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19923 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19924 | cat >>confdefs.h <<\_ACEOF | 
|  | 19925 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
|  | 19926 | _ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19927 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19928 | fi | 
|  | 19929 |  | 
|  | 19930 |  | 
|  | 19931 |  | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19932 | if test "$llvm_cv_platform_type" = "Unix" ; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19933 |  | 
|  | 19934 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19935 | for ac_header in stdlib.h unistd.h | 
|  | 19936 | do | 
|  | 19937 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 19938 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 19939 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 19940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 19941 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 19942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19943 | fi | 
|  | 19944 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 19945 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 19946 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 19947 | else | 
|  | 19948 | # Is the header compilable? | 
|  | 19949 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 19950 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 19951 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19952 | /* confdefs.h.  */ | 
|  | 19953 | _ACEOF | 
|  | 19954 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19955 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19956 | /* end confdefs.h.  */ | 
|  | 19957 | $ac_includes_default | 
|  | 19958 | #include <$ac_header> | 
|  | 19959 | _ACEOF | 
|  | 19960 | rm -f conftest.$ac_objext | 
|  | 19961 | if { (ac_try="$ac_compile" | 
|  | 19962 | case "(($ac_try" in | 
|  | 19963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19964 | *) ac_try_echo=$ac_try;; | 
|  | 19965 | esac | 
|  | 19966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19967 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19968 | ac_status=$? | 
|  | 19969 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19970 | rm -f conftest.er1 | 
|  | 19971 | cat conftest.err >&5 | 
|  | 19972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19973 | (exit $ac_status); } && | 
|  | 19974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 19981 | ac_status=$? | 
|  | 19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19983 | (exit $ac_status); }; } && | 
|  | 19984 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19985 | { (case "(($ac_try" in | 
|  | 19986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19987 | *) ac_try_echo=$ac_try;; | 
|  | 19988 | esac | 
|  | 19989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19990 | (eval "$ac_try") 2>&5 | 
|  | 19991 | ac_status=$? | 
|  | 19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19993 | (exit $ac_status); }; }; then | 
|  | 19994 | ac_header_compiler=yes | 
|  | 19995 | else | 
|  | 19996 | echo "$as_me: failed program was:" >&5 | 
|  | 19997 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19998 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19999 | ac_header_compiler=no | 
|  | 20000 | fi | 
|  | 20001 |  | 
|  | 20002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20003 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 20004 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 20005 |  | 
|  | 20006 | # Is the header present? | 
|  | 20007 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 20008 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 20009 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20010 | /* confdefs.h.  */ | 
|  | 20011 | _ACEOF | 
|  | 20012 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20013 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20014 | /* end confdefs.h.  */ | 
|  | 20015 | #include <$ac_header> | 
|  | 20016 | _ACEOF | 
|  | 20017 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 20018 | case "(($ac_try" in | 
|  | 20019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20020 | *) ac_try_echo=$ac_try;; | 
|  | 20021 | esac | 
|  | 20022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20023 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 20024 | ac_status=$? | 
|  | 20025 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20026 | rm -f conftest.er1 | 
|  | 20027 | cat conftest.err >&5 | 
|  | 20028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20029 | (exit $ac_status); } >/dev/null; then | 
|  | 20030 | if test -s conftest.err; then | 
|  | 20031 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 20032 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 20033 | else | 
|  | 20034 | ac_cpp_err= | 
|  | 20035 | fi | 
|  | 20036 | else | 
|  | 20037 | ac_cpp_err=yes | 
|  | 20038 | fi | 
|  | 20039 | if test -z "$ac_cpp_err"; then | 
|  | 20040 | ac_header_preproc=yes | 
|  | 20041 | else | 
|  | 20042 | echo "$as_me: failed program was:" >&5 | 
|  | 20043 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20044 |  | 
|  | 20045 | ac_header_preproc=no | 
|  | 20046 | fi | 
|  | 20047 |  | 
|  | 20048 | rm -f conftest.err conftest.$ac_ext | 
|  | 20049 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 20050 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 20051 |  | 
|  | 20052 | # So?  What about this header? | 
|  | 20053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 20054 | yes:no: ) | 
|  | 20055 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 20056 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 20057 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 20058 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 20059 | ac_header_preproc=yes | 
|  | 20060 | ;; | 
|  | 20061 | no:yes:* ) | 
|  | 20062 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 20063 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 20064 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 20065 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 20066 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 20067 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 20068 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 20069 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 20070 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 20071 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 20072 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 20073 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 20074 | ( cat <<\_ASBOX | 
|  | 20075 | ## ----------------------------------- ## | 
|  | 20076 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 20077 | ## ----------------------------------- ## | 
|  | 20078 | _ASBOX | 
|  | 20079 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 20080 | ;; | 
|  | 20081 | esac | 
|  | 20082 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 20084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20086 | else | 
|  | 20087 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 20088 | fi | 
|  | 20089 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 20090 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20091 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20092 |  | 
|  | 20093 | fi | 
|  | 20094 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20095 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20096 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20097 | _ACEOF | 
|  | 20098 |  | 
|  | 20099 | fi | 
|  | 20100 |  | 
|  | 20101 | done | 
|  | 20102 |  | 
|  | 20103 |  | 
|  | 20104 | for ac_func in getpagesize | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20105 | do | 
|  | 20106 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20107 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20108 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 20109 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20111 | else | 
|  | 20112 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20113 | /* confdefs.h.  */ | 
|  | 20114 | _ACEOF | 
|  | 20115 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20116 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20117 | /* end confdefs.h.  */ | 
|  | 20118 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 20119 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 20120 | #define $ac_func innocuous_$ac_func | 
|  | 20121 |  | 
|  | 20122 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 20123 | which can conflict with char $ac_func (); below. | 
|  | 20124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20125 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20126 |  | 
|  | 20127 | #ifdef __STDC__ | 
|  | 20128 | # include <limits.h> | 
|  | 20129 | #else | 
|  | 20130 | # include <assert.h> | 
|  | 20131 | #endif | 
|  | 20132 |  | 
|  | 20133 | #undef $ac_func | 
|  | 20134 |  | 
|  | 20135 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20136 | Use char because int might match the return type of a GCC | 
|  | 20137 | builtin and then its argument prototype would still apply.  */ | 
|  | 20138 | #ifdef __cplusplus | 
|  | 20139 | extern "C" | 
|  | 20140 | #endif | 
|  | 20141 | char $ac_func (); | 
|  | 20142 | /* The GNU C library defines this for functions which it implements | 
|  | 20143 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20144 | something starting with __ and the normal name is an alias.  */ | 
|  | 20145 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 20146 | choke me | 
|  | 20147 | #endif | 
|  | 20148 |  | 
|  | 20149 | int | 
|  | 20150 | main () | 
|  | 20151 | { | 
|  | 20152 | return $ac_func (); | 
|  | 20153 | ; | 
|  | 20154 | return 0; | 
|  | 20155 | } | 
|  | 20156 | _ACEOF | 
|  | 20157 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20158 | if { (ac_try="$ac_link" | 
|  | 20159 | case "(($ac_try" in | 
|  | 20160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20161 | *) ac_try_echo=$ac_try;; | 
|  | 20162 | esac | 
|  | 20163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20164 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20165 | ac_status=$? | 
|  | 20166 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20167 | rm -f conftest.er1 | 
|  | 20168 | cat conftest.err >&5 | 
|  | 20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20170 | (exit $ac_status); } && | 
|  | 20171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 20178 | ac_status=$? | 
|  | 20179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20180 | (exit $ac_status); }; } && | 
|  | 20181 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20182 | { (case "(($ac_try" in | 
|  | 20183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20184 | *) ac_try_echo=$ac_try;; | 
|  | 20185 | esac | 
|  | 20186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20187 | (eval "$ac_try") 2>&5 | 
|  | 20188 | ac_status=$? | 
|  | 20189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20190 | (exit $ac_status); }; }; then | 
|  | 20191 | eval "$as_ac_var=yes" | 
|  | 20192 | else | 
|  | 20193 | echo "$as_me: failed program was:" >&5 | 
|  | 20194 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20195 |  | 
|  | 20196 | eval "$as_ac_var=no" | 
|  | 20197 | fi | 
|  | 20198 |  | 
|  | 20199 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20200 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20201 | fi | 
|  | 20202 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 20203 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20204 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20205 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20206 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20207 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20208 | _ACEOF | 
|  | 20209 |  | 
|  | 20210 | fi | 
|  | 20211 | done | 
|  | 20212 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20213 | { echo "$as_me:$LINENO: checking for working mmap" >&5 | 
|  | 20214 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | 
|  | 20215 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
|  | 20216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20217 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20218 | if test "$cross_compiling" = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20219 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 20220 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20221 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20222 | /* confdefs.h.  */ | 
|  | 20223 | _ACEOF | 
|  | 20224 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20225 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20226 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20227 | $ac_includes_default | 
|  | 20228 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 20229 | #undef malloc | 
|  | 20230 |  | 
|  | 20231 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 20232 | Here is a matrix of mmap possibilities: | 
|  | 20233 | mmap private not fixed | 
|  | 20234 | mmap private fixed at somewhere currently unmapped | 
|  | 20235 | mmap private fixed at somewhere already mapped | 
|  | 20236 | mmap shared not fixed | 
|  | 20237 | mmap shared fixed at somewhere currently unmapped | 
|  | 20238 | mmap shared fixed at somewhere already mapped | 
|  | 20239 | For private mappings, we should verify that changes cannot be read() | 
|  | 20240 | back from the file, nor mmap's back from the file at a different | 
|  | 20241 | address.  (There have been systems where private was not correctly | 
|  | 20242 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 20243 | VM page cache was not coherent with the file system buffer cache | 
|  | 20244 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 20245 | For shared mappings, we should conversely verify that changes get | 
|  | 20246 | propagated back to all the places they're supposed to be. | 
|  | 20247 |  | 
|  | 20248 | Grep wants private fixed already mapped. | 
|  | 20249 | The main things grep needs to know about mmap are: | 
|  | 20250 | * does it exist and is it safe to write into the mmap'd area | 
|  | 20251 | * how to use it (BSD variants)  */ | 
|  | 20252 |  | 
|  | 20253 | #include <fcntl.h> | 
|  | 20254 | #include <sys/mman.h> | 
|  | 20255 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20256 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20257 | char *malloc (); | 
|  | 20258 | #endif | 
|  | 20259 |  | 
|  | 20260 | /* This mess was copied from the GNU getpagesize.h.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20261 | #if !HAVE_GETPAGESIZE | 
|  | 20262 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 20263 | # if !HAVE_SYS_PARAM_H | 
|  | 20264 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 20265 | # endif | 
|  | 20266 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20267 | # ifdef _SC_PAGESIZE | 
|  | 20268 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 20269 | # else /* no _SC_PAGESIZE */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20270 | #  if HAVE_SYS_PARAM_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20271 | #   include <sys/param.h> | 
|  | 20272 | #   ifdef EXEC_PAGESIZE | 
|  | 20273 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 20274 | #   else /* no EXEC_PAGESIZE */ | 
|  | 20275 | #    ifdef NBPG | 
|  | 20276 | #     define getpagesize() NBPG * CLSIZE | 
|  | 20277 | #     ifndef CLSIZE | 
|  | 20278 | #      define CLSIZE 1 | 
|  | 20279 | #     endif /* no CLSIZE */ | 
|  | 20280 | #    else /* no NBPG */ | 
|  | 20281 | #     ifdef NBPC | 
|  | 20282 | #      define getpagesize() NBPC | 
|  | 20283 | #     else /* no NBPC */ | 
|  | 20284 | #      ifdef PAGESIZE | 
|  | 20285 | #       define getpagesize() PAGESIZE | 
|  | 20286 | #      endif /* PAGESIZE */ | 
|  | 20287 | #     endif /* no NBPC */ | 
|  | 20288 | #    endif /* no NBPG */ | 
|  | 20289 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 20290 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 20291 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 20292 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 20293 | # endif /* no _SC_PAGESIZE */ | 
|  | 20294 |  | 
|  | 20295 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 20296 |  | 
|  | 20297 | int | 
|  | 20298 | main () | 
|  | 20299 | { | 
|  | 20300 | char *data, *data2, *data3; | 
|  | 20301 | int i, pagesize; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20302 | int fd; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20303 |  | 
|  | 20304 | pagesize = getpagesize (); | 
|  | 20305 |  | 
|  | 20306 | /* First, make a file with some known garbage in it. */ | 
|  | 20307 | data = (char *) malloc (pagesize); | 
|  | 20308 | if (!data) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20309 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20310 | for (i = 0; i < pagesize; ++i) | 
|  | 20311 | *(data + i) = rand (); | 
|  | 20312 | umask (0); | 
|  | 20313 | fd = creat ("conftest.mmap", 0600); | 
|  | 20314 | if (fd < 0) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20315 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20316 | if (write (fd, data, pagesize) != pagesize) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20317 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20318 | close (fd); | 
|  | 20319 |  | 
|  | 20320 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 20321 | something else allocated at it.  If we can, also make sure that | 
|  | 20322 | we see the same garbage.  */ | 
|  | 20323 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 20324 | if (fd < 0) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20325 | return 1; | 
|  | 20326 | data2 = (char *) malloc (2 * pagesize); | 
|  | 20327 | if (!data2) | 
|  | 20328 | return 1; | 
|  | 20329 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20330 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20331 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20332 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20333 | for (i = 0; i < pagesize; ++i) | 
|  | 20334 | if (*(data + i) != *(data2 + i)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20335 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20336 |  | 
|  | 20337 | /* Finally, make sure that changes to the mapped area do not | 
|  | 20338 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 20339 | some variants of i386 svr4.0.)  */ | 
|  | 20340 | for (i = 0; i < pagesize; ++i) | 
|  | 20341 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 20342 | data3 = (char *) malloc (pagesize); | 
|  | 20343 | if (!data3) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20344 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20345 | if (read (fd, data3, pagesize) != pagesize) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20346 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20347 | for (i = 0; i < pagesize; ++i) | 
|  | 20348 | if (*(data + i) != *(data3 + i)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20349 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20350 | close (fd); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20351 | return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20352 | } | 
|  | 20353 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20354 | rm -f conftest$ac_exeext | 
|  | 20355 | if { (ac_try="$ac_link" | 
|  | 20356 | case "(($ac_try" in | 
|  | 20357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20358 | *) ac_try_echo=$ac_try;; | 
|  | 20359 | esac | 
|  | 20360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20361 | (eval "$ac_link") 2>&5 | 
|  | 20362 | ac_status=$? | 
|  | 20363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20365 | { (case "(($ac_try" in | 
|  | 20366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20367 | *) ac_try_echo=$ac_try;; | 
|  | 20368 | esac | 
|  | 20369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20370 | (eval "$ac_try") 2>&5 | 
|  | 20371 | ac_status=$? | 
|  | 20372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20373 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20374 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 20375 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20376 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20377 | echo "$as_me: failed program was:" >&5 | 
|  | 20378 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20379 |  | 
|  | 20380 | ( exit $ac_status ) | 
|  | 20381 | ac_cv_func_mmap_fixed_mapped=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20382 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20384 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20385 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20386 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20387 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20388 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
|  | 20389 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20390 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 20391 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20392 | cat >>confdefs.h <<\_ACEOF | 
|  | 20393 | #define HAVE_MMAP 1 | 
|  | 20394 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20395 |  | 
|  | 20396 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20397 | rm -f conftest.mmap | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20398 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20399 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
|  | 20400 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } | 
|  | 20401 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
|  | 20402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20404 | ac_ext=c | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20405 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20409 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20410 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20411 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20412 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20413 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20414 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20415 | /* confdefs.h.  */ | 
|  | 20416 | _ACEOF | 
|  | 20417 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20418 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20419 | /* end confdefs.h.  */ | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20420 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20421 | #include <sys/types.h> | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20422 | #include <sys/mman.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20423 | #include <fcntl.h> | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20424 |  | 
|  | 20425 | int | 
|  | 20426 | main () | 
|  | 20427 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20428 |  | 
|  | 20429 | int fd; | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20430 | fd = creat ("foo",0777); | 
|  | 20431 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
|  | 20432 | unlink ("foo"); | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20433 | return (fd != (int) MAP_FAILED); | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20434 | ; | 
|  | 20435 | return 0; | 
|  | 20436 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20437 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20438 | rm -f conftest$ac_exeext | 
|  | 20439 | if { (ac_try="$ac_link" | 
|  | 20440 | case "(($ac_try" in | 
|  | 20441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20442 | *) ac_try_echo=$ac_try;; | 
|  | 20443 | esac | 
|  | 20444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20445 | (eval "$ac_link") 2>&5 | 
|  | 20446 | ac_status=$? | 
|  | 20447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20449 | { (case "(($ac_try" in | 
|  | 20450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20451 | *) ac_try_echo=$ac_try;; | 
|  | 20452 | esac | 
|  | 20453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20454 | (eval "$ac_try") 2>&5 | 
|  | 20455 | ac_status=$? | 
|  | 20456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20457 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20458 | ac_cv_func_mmap_file=yes | 
|  | 20459 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20460 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20461 | echo "$as_me: failed program was:" >&5 | 
|  | 20462 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20463 |  | 
|  | 20464 | ( exit $ac_status ) | 
|  | 20465 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20466 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20467 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20468 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20469 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20470 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20471 | ac_ext=c | 
|  | 20472 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20476 |  | 
|  | 20477 |  | 
|  | 20478 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20479 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
|  | 20480 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20481 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20482 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20483 | cat >>confdefs.h <<\_ACEOF | 
|  | 20484 | #define HAVE_MMAP_FILE | 
|  | 20485 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20486 |  | 
|  | 20487 | MMAP_FILE=yes | 
|  | 20488 |  | 
|  | 20489 | fi | 
|  | 20490 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20491 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 | 
|  | 20492 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } | 
|  | 20493 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then | 
|  | 20494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20495 | else | 
| Reid Spencer | 3d745d4 | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20496 | if test "$llvm_cv_os_type" = "Interix" ; then | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20497 | ac_cv_need_dev_zero_for_mmap=yes | 
|  | 20498 | else | 
|  | 20499 | ac_cv_need_dev_zero_for_mmap=no | 
|  | 20500 | fi | 
|  | 20501 |  | 
|  | 20502 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20503 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 | 
|  | 20504 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20505 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then | 
|  | 20506 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20507 | cat >>confdefs.h <<\_ACEOF | 
|  | 20508 | #define NEED_DEV_ZERO_FOR_MMAP 1 | 
|  | 20509 | _ACEOF | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20510 |  | 
|  | 20511 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20512 |  | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20513 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
|  | 20514 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20515 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 | 
|  | 20516 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20517 | fi | 
|  | 20518 | if test "$ac_cv_func_mmap_file" = "no" | 
|  | 20519 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20520 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
|  | 20521 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20522 | fi | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20523 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20524 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20525 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 | 
|  | 20526 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } | 
| Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20527 | ac_ext=cpp | 
|  | 20528 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20529 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20530 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20531 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20532 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20533 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20534 | /* confdefs.h.  */ | 
|  | 20535 | _ACEOF | 
|  | 20536 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20537 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20538 | /* end confdefs.h.  */ | 
|  | 20539 | int main() { | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20540 | volatile unsigned long val = 1; | 
|  | 20541 | __sync_synchronize(); | 
|  | 20542 | __sync_val_compare_and_swap(&val, 1, 0); | 
| Owen Anderson | 8d0fe6f | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20543 | __sync_add_and_fetch(&val, 1); | 
|  | 20544 | __sync_sub_and_fetch(&val, 1); | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20545 | return 0; | 
|  | 20546 | } | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20547 |  | 
|  | 20548 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20549 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20550 | if { (ac_try="$ac_link" | 
|  | 20551 | case "(($ac_try" in | 
|  | 20552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20553 | *) ac_try_echo=$ac_try;; | 
|  | 20554 | esac | 
|  | 20555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20556 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20557 | ac_status=$? | 
|  | 20558 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20559 | rm -f conftest.er1 | 
|  | 20560 | cat conftest.err >&5 | 
|  | 20561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20562 | (exit $ac_status); } && | 
|  | 20563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 20570 | ac_status=$? | 
|  | 20571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20572 | (exit $ac_status); }; } && | 
|  | 20573 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20574 | { (case "(($ac_try" in | 
|  | 20575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20576 | *) ac_try_echo=$ac_try;; | 
|  | 20577 | esac | 
|  | 20578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20579 | (eval "$ac_try") 2>&5 | 
|  | 20580 | ac_status=$? | 
|  | 20581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20582 | (exit $ac_status); }; }; then | 
| Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20583 | ac_ext=c | 
|  | 20584 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20588 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20589 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 20590 | echo "${ECHO_T}yes" >&6; } | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20591 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20592 | cat >>confdefs.h <<\_ACEOF | 
| Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20593 | #define LLVM_HAS_ATOMICS 1 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20594 | _ACEOF | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20595 |  | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20596 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20597 | echo "$as_me: failed program was:" >&5 | 
|  | 20598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20599 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20600 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20601 | echo "${ECHO_T}no" >&6; } | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20602 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20603 | cat >>confdefs.h <<\_ACEOF | 
| Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20604 | #define LLVM_HAS_ATOMICS 0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20605 | _ACEOF | 
|  | 20606 |  | 
|  | 20607 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 | 
|  | 20608 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20609 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20610 |  | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20611 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20612 | conftest$ac_exeext conftest.$ac_ext | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20613 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20614 |  | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20615 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20616 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 | 
|  | 20617 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } | 
|  | 20618 | if test "${llvm_cv_linux_mixed+set}" = set; then | 
|  | 20619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20620 | else | 
|  | 20621 | ac_ext=c | 
|  | 20622 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20626 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20627 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20628 | /* confdefs.h.  */ | 
|  | 20629 | _ACEOF | 
|  | 20630 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20631 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20632 | /* end confdefs.h.  */ | 
|  | 20633 | #ifndef __x86_64__ | 
|  | 20634 | error: Not x86-64 even if uname says so! | 
|  | 20635 | #endif | 
|  | 20636 |  | 
|  | 20637 | int | 
|  | 20638 | main () | 
|  | 20639 | { | 
|  | 20640 |  | 
|  | 20641 | ; | 
|  | 20642 | return 0; | 
|  | 20643 | } | 
|  | 20644 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20645 | rm -f conftest.$ac_objext | 
|  | 20646 | if { (ac_try="$ac_compile" | 
|  | 20647 | case "(($ac_try" in | 
|  | 20648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20649 | *) ac_try_echo=$ac_try;; | 
|  | 20650 | esac | 
|  | 20651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20652 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20653 | ac_status=$? | 
|  | 20654 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20655 | rm -f conftest.er1 | 
|  | 20656 | cat conftest.err >&5 | 
|  | 20657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20658 | (exit $ac_status); } && | 
|  | 20659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 20666 | ac_status=$? | 
|  | 20667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20668 | (exit $ac_status); }; } && | 
|  | 20669 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20670 | { (case "(($ac_try" in | 
|  | 20671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20672 | *) ac_try_echo=$ac_try;; | 
|  | 20673 | esac | 
|  | 20674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20675 | (eval "$ac_try") 2>&5 | 
|  | 20676 | ac_status=$? | 
|  | 20677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20678 | (exit $ac_status); }; }; then | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20679 | llvm_cv_linux_mixed=no | 
|  | 20680 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20681 | echo "$as_me: failed program was:" >&5 | 
|  | 20682 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20683 |  | 
|  | 20684 | llvm_cv_linux_mixed=yes | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20685 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20686 |  | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20688 | ac_ext=c | 
|  | 20689 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20693 |  | 
|  | 20694 |  | 
|  | 20695 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20696 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 | 
|  | 20697 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20698 |  | 
|  | 20699 | if test "$llvm_cv_linux_mixed" = "yes"; then | 
|  | 20700 | llvm_cv_target_arch="x86" | 
|  | 20701 | ARCH="x86" | 
|  | 20702 | fi | 
|  | 20703 | fi | 
|  | 20704 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20705 |  | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20706 | for ac_func in __dso_handle | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20707 | do | 
|  | 20708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20709 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 20711 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20713 | else | 
|  | 20714 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20715 | /* confdefs.h.  */ | 
|  | 20716 | _ACEOF | 
|  | 20717 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20718 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20719 | /* end confdefs.h.  */ | 
|  | 20720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 20721 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 20722 | #define $ac_func innocuous_$ac_func | 
|  | 20723 |  | 
|  | 20724 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 20725 | which can conflict with char $ac_func (); below. | 
|  | 20726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20727 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20728 |  | 
|  | 20729 | #ifdef __STDC__ | 
|  | 20730 | # include <limits.h> | 
|  | 20731 | #else | 
|  | 20732 | # include <assert.h> | 
|  | 20733 | #endif | 
|  | 20734 |  | 
|  | 20735 | #undef $ac_func | 
|  | 20736 |  | 
|  | 20737 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20738 | Use char because int might match the return type of a GCC | 
|  | 20739 | builtin and then its argument prototype would still apply.  */ | 
|  | 20740 | #ifdef __cplusplus | 
|  | 20741 | extern "C" | 
|  | 20742 | #endif | 
|  | 20743 | char $ac_func (); | 
|  | 20744 | /* The GNU C library defines this for functions which it implements | 
|  | 20745 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20746 | something starting with __ and the normal name is an alias.  */ | 
|  | 20747 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 20748 | choke me | 
|  | 20749 | #endif | 
|  | 20750 |  | 
|  | 20751 | int | 
|  | 20752 | main () | 
|  | 20753 | { | 
|  | 20754 | return $ac_func (); | 
|  | 20755 | ; | 
|  | 20756 | return 0; | 
|  | 20757 | } | 
|  | 20758 | _ACEOF | 
|  | 20759 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20760 | if { (ac_try="$ac_link" | 
|  | 20761 | case "(($ac_try" in | 
|  | 20762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20763 | *) ac_try_echo=$ac_try;; | 
|  | 20764 | esac | 
|  | 20765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20766 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20767 | ac_status=$? | 
|  | 20768 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20769 | rm -f conftest.er1 | 
|  | 20770 | cat conftest.err >&5 | 
|  | 20771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20772 | (exit $ac_status); } && | 
|  | 20773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 20780 | ac_status=$? | 
|  | 20781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20782 | (exit $ac_status); }; } && | 
|  | 20783 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20784 | { (case "(($ac_try" in | 
|  | 20785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20786 | *) ac_try_echo=$ac_try;; | 
|  | 20787 | esac | 
|  | 20788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20789 | (eval "$ac_try") 2>&5 | 
|  | 20790 | ac_status=$? | 
|  | 20791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20792 | (exit $ac_status); }; }; then | 
|  | 20793 | eval "$as_ac_var=yes" | 
|  | 20794 | else | 
|  | 20795 | echo "$as_me: failed program was:" >&5 | 
|  | 20796 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20797 |  | 
|  | 20798 | eval "$as_ac_var=no" | 
|  | 20799 | fi | 
|  | 20800 |  | 
|  | 20801 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20802 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20803 | fi | 
|  | 20804 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 20805 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20806 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20807 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20808 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20809 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20810 | _ACEOF | 
|  | 20811 |  | 
|  | 20812 | fi | 
|  | 20813 | done | 
|  | 20814 |  | 
|  | 20815 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20816 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20817 |  | 
|  | 20818 |  | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20819 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var | 
|  | 20820 |  | 
|  | 20821 |  | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20822 | # Translate the various configuration directories and other basic | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20823 | # information into substitutions that will end up in Makefile.config.in | 
|  | 20824 | # that these configured values can be used by the makefiles | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20825 | if test "${prefix}" = "NONE" ; then | 
| Reid Spencer | 40f1b13 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20826 | prefix="/usr/local" | 
|  | 20827 | fi | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20828 | eval LLVM_PREFIX="${prefix}"; | 
|  | 20829 | eval LLVM_BINDIR="${prefix}/bin"; | 
|  | 20830 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20831 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
| Eric Christopher | b3762a0 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20832 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20833 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20834 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
|  | 20835 | eval LLVM_INFODIR="${prefix}/info"; | 
|  | 20836 | eval LLVM_MANDIR="${prefix}/man"; | 
|  | 20837 | LLVM_CONFIGTIME=`date` | 
|  | 20838 |  | 
|  | 20839 |  | 
|  | 20840 |  | 
|  | 20841 |  | 
|  | 20842 |  | 
|  | 20843 |  | 
|  | 20844 |  | 
|  | 20845 |  | 
|  | 20846 |  | 
|  | 20847 |  | 
|  | 20848 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20849 | # Place the various directores into the config.h file as #defines so that we | 
|  | 20850 | # can know about the installation paths within LLVM. | 
|  | 20851 |  | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20852 | cat >>confdefs.h <<_ACEOF | 
|  | 20853 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
|  | 20854 | _ACEOF | 
|  | 20855 |  | 
|  | 20856 |  | 
|  | 20857 | cat >>confdefs.h <<_ACEOF | 
|  | 20858 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
|  | 20859 | _ACEOF | 
|  | 20860 |  | 
|  | 20861 |  | 
|  | 20862 | cat >>confdefs.h <<_ACEOF | 
|  | 20863 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
|  | 20864 | _ACEOF | 
|  | 20865 |  | 
|  | 20866 |  | 
|  | 20867 | cat >>confdefs.h <<_ACEOF | 
|  | 20868 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
|  | 20869 | _ACEOF | 
|  | 20870 |  | 
|  | 20871 |  | 
|  | 20872 | cat >>confdefs.h <<_ACEOF | 
| Gordon Henriksen | 80f35e0 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20873 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20874 | _ACEOF | 
|  | 20875 |  | 
|  | 20876 |  | 
|  | 20877 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 288adf1 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20878 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20879 | _ACEOF | 
|  | 20880 |  | 
|  | 20881 |  | 
|  | 20882 | cat >>confdefs.h <<_ACEOF | 
|  | 20883 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
|  | 20884 | _ACEOF | 
|  | 20885 |  | 
|  | 20886 |  | 
|  | 20887 | cat >>confdefs.h <<_ACEOF | 
|  | 20888 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
|  | 20889 | _ACEOF | 
|  | 20890 |  | 
|  | 20891 |  | 
|  | 20892 | cat >>confdefs.h <<_ACEOF | 
|  | 20893 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
|  | 20894 | _ACEOF | 
|  | 20895 |  | 
|  | 20896 |  | 
|  | 20897 | cat >>confdefs.h <<_ACEOF | 
|  | 20898 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
|  | 20899 | _ACEOF | 
|  | 20900 |  | 
|  | 20901 |  | 
| Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20902 | cat >>confdefs.h <<_ACEOF | 
| Sebastian Pop | ec2fb22 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 20903 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" | 
| Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20904 | _ACEOF | 
|  | 20905 |  | 
|  | 20906 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20907 | # Determine which bindings to build. | 
|  | 20908 | if test "$BINDINGS_TO_BUILD" = auto ; then | 
|  | 20909 | BINDINGS_TO_BUILD="" | 
|  | 20910 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then | 
|  | 20911 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" | 
|  | 20912 | fi | 
|  | 20913 | fi | 
|  | 20914 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD | 
|  | 20915 |  | 
|  | 20916 |  | 
|  | 20917 | # This isn't really configurey, but it avoids having to repeat the list in | 
|  | 20918 | # other files. | 
|  | 20919 | ALL_BINDINGS=ocaml | 
|  | 20920 |  | 
|  | 20921 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20922 | # Do any work necessary to ensure that bindings have what they need. | 
|  | 20923 | binding_prereqs_failed=0 | 
|  | 20924 | for a_binding in $BINDINGS_TO_BUILD ; do | 
|  | 20925 | case "$a_binding" in | 
|  | 20926 | ocaml) | 
|  | 20927 | if test "x$OCAMLC" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20928 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 | 
|  | 20929 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20930 | binding_prereqs_failed=1 | 
|  | 20931 | fi | 
|  | 20932 | if test "x$OCAMLDEP" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20933 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 | 
|  | 20934 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20935 | binding_prereqs_failed=1 | 
|  | 20936 | fi | 
|  | 20937 | if test "x$OCAMLOPT" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20938 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 | 
|  | 20939 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20940 | fi | 
|  | 20941 | if test "x$with_ocaml_libdir" != xauto ; then | 
|  | 20942 | OCAML_LIBDIR=$with_ocaml_libdir | 
|  | 20943 |  | 
|  | 20944 | else | 
|  | 20945 | ocaml_stdlib="`"$OCAMLC" -where`" | 
|  | 20946 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" | 
|  | 20947 | then | 
|  | 20948 | # ocaml stdlib is beneath our prefix; use stdlib | 
|  | 20949 | OCAML_LIBDIR=$ocaml_stdlib | 
|  | 20950 |  | 
|  | 20951 | else | 
|  | 20952 | # ocaml stdlib is outside our prefix; use libdir/ocaml | 
|  | 20953 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml | 
|  | 20954 |  | 
|  | 20955 | fi | 
|  | 20956 | fi | 
|  | 20957 | ;; | 
|  | 20958 | esac | 
|  | 20959 | done | 
|  | 20960 | if test "$binding_prereqs_failed" = 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20961 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 | 
|  | 20962 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} | 
|  | 20963 | { (exit 1); exit 1; }; } | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20964 | fi | 
|  | 20965 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20966 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 | 
|  | 20967 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } | 
|  | 20968 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then | 
|  | 20969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20970 | else | 
|  | 20971 | ac_ext=cpp | 
|  | 20972 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20973 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20974 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20975 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20976 |  | 
|  | 20977 | oldcxxflags="$CXXFLAGS" | 
|  | 20978 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20979 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20980 | /* confdefs.h.  */ | 
|  | 20981 | _ACEOF | 
|  | 20982 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20983 | cat >>conftest.$ac_ext <<_ACEOF | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20984 | /* end confdefs.h.  */ | 
|  | 20985 |  | 
|  | 20986 | int | 
|  | 20987 | main () | 
|  | 20988 | { | 
|  | 20989 |  | 
|  | 20990 | ; | 
|  | 20991 | return 0; | 
|  | 20992 | } | 
|  | 20993 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20994 | rm -f conftest.$ac_objext | 
|  | 20995 | if { (ac_try="$ac_compile" | 
|  | 20996 | case "(($ac_try" in | 
|  | 20997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20998 | *) ac_try_echo=$ac_try;; | 
|  | 20999 | esac | 
|  | 21000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21001 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 21002 | ac_status=$? | 
|  | 21003 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21004 | rm -f conftest.er1 | 
|  | 21005 | cat conftest.err >&5 | 
|  | 21006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21007 | (exit $ac_status); } && | 
|  | 21008 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 21015 | ac_status=$? | 
|  | 21016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21017 | (exit $ac_status); }; } && | 
|  | 21018 | { ac_try='test -s conftest.$ac_objext' | 
|  | 21019 | { (case "(($ac_try" in | 
|  | 21020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21021 | *) ac_try_echo=$ac_try;; | 
|  | 21022 | esac | 
|  | 21023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21024 | (eval "$ac_try") 2>&5 | 
|  | 21025 | ac_status=$? | 
|  | 21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21027 | (exit $ac_status); }; }; then | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21028 | llvm_cv_cxx_visibility_inlines_hidden=yes | 
|  | 21029 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21030 | echo "$as_me: failed program was:" >&5 | 
|  | 21031 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21032 |  | 
|  | 21033 | llvm_cv_cxx_visibility_inlines_hidden=no | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21034 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21035 |  | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21037 | CXXFLAGS="$oldcxxflags" | 
|  | 21038 | ac_ext=c | 
|  | 21039 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21043 |  | 
|  | 21044 |  | 
|  | 21045 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21046 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 | 
|  | 21047 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21048 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then | 
|  | 21049 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 | 
|  | 21050 |  | 
|  | 21051 | else | 
|  | 21052 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 | 
|  | 21053 |  | 
|  | 21054 | fi | 
|  | 21055 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21056 |  | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21057 | if test "$llvm_cv_link_use_r" = "yes" ; then | 
|  | 21058 | RPATH="-Wl,-R" | 
|  | 21059 | else | 
|  | 21060 | RPATH="-Wl,-rpath" | 
|  | 21061 | fi | 
|  | 21062 |  | 
|  | 21063 |  | 
|  | 21064 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then | 
|  | 21065 | RDYNAMIC="-Wl,-export-dynamic" | 
|  | 21066 | else | 
|  | 21067 | RDYNAMIC="" | 
|  | 21068 | fi | 
| Nick Lewycky | ed8472e | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21069 |  | 
|  | 21070 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21071 |  | 
| Eric Christopher | 97014d8 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21072 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21073 |  | 
| Eric Christopher | 41983c6 | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21074 |  | 
|  | 21075 |  | 
|  | 21076 |  | 
|  | 21077 |  | 
|  | 21078 |  | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21079 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" | 
|  | 21080 |  | 
|  | 21081 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" | 
|  | 21082 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21083 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" | 
|  | 21084 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21085 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" | 
|  | 21086 |  | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21087 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21088 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21089 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21090 | ac_config_files="$ac_config_files Makefile.config" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21091 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21092 |  | 
| Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21093 | ac_config_files="$ac_config_files llvm.spec" | 
|  | 21094 |  | 
|  | 21095 |  | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21096 | ac_config_files="$ac_config_files docs/doxygen.cfg" | 
|  | 21097 |  | 
|  | 21098 | if test -f ${srcdir}/tools/clang/README.txt; then | 
|  | 21099 | ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" | 
|  | 21100 |  | 
|  | 21101 | fi | 
|  | 21102 |  | 
| Daniel Dunbar | 933b43f | 2011-11-10 19:59:35 +0000 | [diff] [blame] | 21103 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" | 
| Reid Spencer | 6f682b7 | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21104 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21105 |  | 
| Torok Edwin | 229f8d7 | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21106 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" | 
| Reid Spencer | 6f682b7 | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21107 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21108 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21109 | ac_config_commands="$ac_config_commands setup" | 
| Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21110 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21111 | ac_config_commands="$ac_config_commands Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21112 |  | 
|  | 21113 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21114 | ac_config_commands="$ac_config_commands Makefile.common" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21115 |  | 
|  | 21116 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21117 | ac_config_commands="$ac_config_commands examples/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21118 |  | 
|  | 21119 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21120 | ac_config_commands="$ac_config_commands lib/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21121 |  | 
|  | 21122 |  | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21123 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
|  | 21124 |  | 
|  | 21125 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21126 | ac_config_commands="$ac_config_commands test/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21127 |  | 
|  | 21128 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21129 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21130 |  | 
|  | 21131 |  | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21132 | ac_config_commands="$ac_config_commands unittests/Makefile" | 
|  | 21133 |  | 
|  | 21134 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21135 | ac_config_commands="$ac_config_commands tools/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21136 |  | 
|  | 21137 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21138 | ac_config_commands="$ac_config_commands utils/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21139 |  | 
|  | 21140 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21141 | ac_config_commands="$ac_config_commands projects/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21142 |  | 
|  | 21143 |  | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21144 | ac_config_commands="$ac_config_commands bindings/Makefile" | 
|  | 21145 |  | 
|  | 21146 |  | 
|  | 21147 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" | 
|  | 21148 |  | 
|  | 21149 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21150 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21151 | cat >confcache <<\_ACEOF | 
|  | 21152 | # This file is a shell script that caches the results of configure | 
|  | 21153 | # tests run on this system so they can be shared between configure | 
|  | 21154 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 21155 | # It is not useful on other systems.  If it contains results you don't | 
|  | 21156 | # want to keep, you may remove or edit it. | 
|  | 21157 | # | 
|  | 21158 | # config.status only pays attention to the cache file if you give it | 
|  | 21159 | # the --recheck option to rerun configure. | 
|  | 21160 | # | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21161 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21162 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 21163 | # following values. | 
|  | 21164 |  | 
|  | 21165 | _ACEOF | 
|  | 21166 |  | 
|  | 21167 | # The following way of writing the cache mishandles newlines in values, | 
|  | 21168 | # but we know of no workaround that is simple, portable, and efficient. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21169 | # So, we kill variables containing newlines. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21170 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 21171 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21172 | ( | 
|  | 21173 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 21174 | eval ac_val=\$$ac_var | 
|  | 21175 | case $ac_val in #( | 
|  | 21176 | *${as_nl}*) | 
|  | 21177 | case $ac_var in #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21178 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
|  | 21179 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21180 | esac | 
|  | 21181 | case $ac_var in #( | 
|  | 21182 | _ | IFS | as_nl) ;; #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21183 | *) $as_unset $ac_var ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21184 | esac ;; | 
|  | 21185 | esac | 
|  | 21186 | done | 
|  | 21187 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21188 | (set) 2>&1 | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21189 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 21190 | *${as_nl}ac_space=\ *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21191 | # `set' does not quote correctly, so add quotes (double-quote | 
|  | 21192 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21193 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21194 | "s/'/'\\\\''/g; | 
|  | 21195 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21196 | ;; #( | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21197 | *) | 
|  | 21198 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21199 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21200 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21201 | esac | | 
|  | 21202 | sort | 
|  | 21203 | ) | | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21204 | sed ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21205 | /^ac_cv_env_/b end | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21206 | t clear | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21207 | :clear | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21208 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 21209 | t end | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21210 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 21211 | :end' >>confcache | 
|  | 21212 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 21213 | if test -w "$cache_file"; then | 
|  | 21214 | test "x$cache_file" != "x/dev/null" && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21215 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | 
|  | 21216 | echo "$as_me: updating cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21217 | cat confcache >$cache_file | 
|  | 21218 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21219 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | 
|  | 21220 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21221 | fi | 
|  | 21222 | fi | 
|  | 21223 | rm -f confcache | 
|  | 21224 |  | 
|  | 21225 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 21226 | # Let make expand exec_prefix. | 
|  | 21227 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 21228 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21229 | DEFS=-DHAVE_CONFIG_H | 
|  | 21230 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21231 | ac_libobjs= | 
|  | 21232 | ac_ltlibobjs= | 
|  | 21233 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 21234 | # 1. Remove the extension, and $U if already installed. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21235 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21236 | ac_i=`echo "$ac_i" | sed "$ac_script"` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21237 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 21238 | #    will be set to the directory where LIBOBJS objects are built. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21239 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 21240 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21241 | done | 
|  | 21242 | LIBOBJS=$ac_libobjs | 
|  | 21243 |  | 
|  | 21244 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 21245 |  | 
|  | 21246 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21247 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21248 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 21249 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 21250 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 21251 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 21252 | { (exit 1); exit 1; }; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21253 | fi | 
|  | 21254 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21255 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 21256 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 21257 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 21258 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 21259 | { (exit 1); exit 1; }; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21260 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21261 |  | 
|  | 21262 | : ${CONFIG_STATUS=./config.status} | 
|  | 21263 | ac_clean_files_save=$ac_clean_files | 
|  | 21264 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21265 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
|  | 21266 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 21267 | cat >$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21268 | #! $SHELL | 
|  | 21269 | # Generated by $as_me. | 
|  | 21270 | # Run this file to recreate the current configuration. | 
|  | 21271 | # Compiler output produced by configure, useful for debugging | 
|  | 21272 | # configure, is in config.log if it exists. | 
|  | 21273 |  | 
|  | 21274 | debug=false | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21275 | ac_cs_recheck=false | 
|  | 21276 | ac_cs_silent=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21277 | SHELL=\${CONFIG_SHELL-$SHELL} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21278 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21279 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21280 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 21281 | ## --------------------- ## | 
|  | 21282 | ## M4sh Initialization.  ## | 
|  | 21283 | ## --------------------- ## | 
|  | 21284 |  | 
|  | 21285 | # Be Bourne compatible | 
|  | 21286 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21287 | emulate sh | 
|  | 21288 | NULLCMD=: | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21289 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21290 | # is contrary to our usage.  Disable this feature. | 
|  | 21291 | alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21292 | setopt NO_GLOB_SUBST | 
|  | 21293 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21294 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21295 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21296 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
|  | 21297 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21298 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21299 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21300 | # PATH needs CR | 
|  | 21301 | # Avoid depending upon Character Ranges. | 
|  | 21302 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 21303 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 21304 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 21305 | as_cr_digits='0123456789' | 
|  | 21306 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21307 |  | 
|  | 21308 | # The user is always right. | 
|  | 21309 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21310 | echo "#! /bin/sh" >conf$$.sh | 
|  | 21311 | echo  "exit 0"   >>conf$$.sh | 
|  | 21312 | chmod +x conf$$.sh | 
|  | 21313 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
|  | 21314 | PATH_SEPARATOR=';' | 
|  | 21315 | else | 
|  | 21316 | PATH_SEPARATOR=: | 
|  | 21317 | fi | 
|  | 21318 | rm -f conf$$.sh | 
|  | 21319 | fi | 
|  | 21320 |  | 
|  | 21321 | # Support unset when possible. | 
|  | 21322 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
|  | 21323 | as_unset=unset | 
|  | 21324 | else | 
|  | 21325 | as_unset=false | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21326 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21327 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21328 |  | 
|  | 21329 | # IFS | 
|  | 21330 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 21331 | # there to prevent editors from complaining about space-tab. | 
|  | 21332 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 21333 | # splitting by setting IFS to empty value.) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21334 | as_nl=' | 
|  | 21335 | ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21336 | IFS=" ""	$as_nl" | 
|  | 21337 |  | 
|  | 21338 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21339 | case $0 in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21340 | *[\\/]* ) as_myself=$0 ;; | 
|  | 21341 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21342 | for as_dir in $PATH | 
|  | 21343 | do | 
|  | 21344 | IFS=$as_save_IFS | 
|  | 21345 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21346 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 21347 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21348 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21349 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21350 | ;; | 
|  | 21351 | esac | 
|  | 21352 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 21353 | # in which case we are not to be found in the path. | 
|  | 21354 | if test "x$as_myself" = x; then | 
|  | 21355 | as_myself=$0 | 
|  | 21356 | fi | 
|  | 21357 | if test ! -f "$as_myself"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21358 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 21359 | { (exit 1); exit 1; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21360 | fi | 
|  | 21361 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21362 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 21363 | for as_var in ENV MAIL MAILPATH | 
|  | 21364 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21365 | done | 
|  | 21366 | PS1='$ ' | 
|  | 21367 | PS2='> ' | 
|  | 21368 | PS4='+ ' | 
|  | 21369 |  | 
|  | 21370 | # NLS nuisances. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21371 | for as_var in \ | 
|  | 21372 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 21373 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 21374 | LC_TELEPHONE LC_TIME | 
|  | 21375 | do | 
|  | 21376 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
|  | 21377 | eval $as_var=C; export $as_var | 
|  | 21378 | else | 
|  | 21379 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21380 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21381 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21382 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21383 | # Required to use basename. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21384 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 21385 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 21386 | as_expr=expr | 
|  | 21387 | else | 
|  | 21388 | as_expr=false | 
|  | 21389 | fi | 
|  | 21390 |  | 
|  | 21391 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 21392 | as_basename=basename | 
|  | 21393 | else | 
|  | 21394 | as_basename=false | 
|  | 21395 | fi | 
|  | 21396 |  | 
|  | 21397 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21398 | # Name of the executable. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | as_me=`$as_basename -- "$0" || | 
|  | 21400 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 21401 | X"$0" : 'X\(//\)$' \| \ | 
|  | 21402 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21403 | echo X/"$0" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21404 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 21405 | s//\1/ | 
|  | 21406 | q | 
|  | 21407 | } | 
|  | 21408 | /^X\/\(\/\/\)$/{ | 
|  | 21409 | s//\1/ | 
|  | 21410 | q | 
|  | 21411 | } | 
|  | 21412 | /^X\/\(\/\).*/{ | 
|  | 21413 | s//\1/ | 
|  | 21414 | q | 
|  | 21415 | } | 
|  | 21416 | s/.*/./; q'` | 
|  | 21417 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21418 | # CDPATH. | 
|  | 21419 | $as_unset CDPATH | 
|  | 21420 |  | 
|  | 21421 |  | 
|  | 21422 |  | 
|  | 21423 | as_lineno_1=$LINENO | 
|  | 21424 | as_lineno_2=$LINENO | 
|  | 21425 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 21426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | 
|  | 21427 |  | 
|  | 21428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 21429 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 21430 | # line-number line after each line using $LINENO; the second 'sed' | 
|  | 21431 | # does the real work.  The second script uses 'N' to pair each | 
|  | 21432 | # line-number line with the line containing $LINENO, and appends | 
|  | 21433 | # trailing '-' during substitution so that $LINENO is not a special | 
|  | 21434 | # case at line end. | 
|  | 21435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 21436 | # scripts with optimization help from Paolo Bonzini.  Blame Lee | 
|  | 21437 | # E. McMahon (1931-1989) for sed's syntax.  :-) | 
|  | 21438 | sed -n ' | 
|  | 21439 | p | 
|  | 21440 | /[$]LINENO/= | 
|  | 21441 | ' <$as_myself | | 
|  | 21442 | sed ' | 
|  | 21443 | s/[$]LINENO.*/&-/ | 
|  | 21444 | t lineno | 
|  | 21445 | b | 
|  | 21446 | :lineno | 
|  | 21447 | N | 
|  | 21448 | :loop | 
|  | 21449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
|  | 21450 | t loop | 
|  | 21451 | s/-\n.*// | 
|  | 21452 | ' >$as_me.lineno && | 
|  | 21453 | chmod +x "$as_me.lineno" || | 
|  | 21454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
|  | 21455 | { (exit 1); exit 1; }; } | 
|  | 21456 |  | 
|  | 21457 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 21458 | # (the dirname of $[0] is not the place where we might find the | 
|  | 21459 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 21460 | . "./$as_me.lineno" | 
|  | 21461 | # Exit status is that of the last command. | 
|  | 21462 | exit | 
|  | 21463 | } | 
|  | 21464 |  | 
|  | 21465 |  | 
|  | 21466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 21467 | as_dirname=dirname | 
|  | 21468 | else | 
|  | 21469 | as_dirname=false | 
|  | 21470 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21471 |  | 
|  | 21472 | ECHO_C= ECHO_N= ECHO_T= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21473 | case `echo -n x` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21474 | -n*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21475 | case `echo 'x\c'` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21476 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21477 | *)   ECHO_C='\c';; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21478 | esac;; | 
|  | 21479 | *) | 
|  | 21480 | ECHO_N='-n';; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21481 | esac | 
|  | 21482 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21483 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 21484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 21485 | as_expr=expr | 
|  | 21486 | else | 
|  | 21487 | as_expr=false | 
|  | 21488 | fi | 
|  | 21489 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21490 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21491 | if test -d conf$$.dir; then | 
|  | 21492 | rm -f conf$$.dir/conf$$.file | 
|  | 21493 | else | 
|  | 21494 | rm -f conf$$.dir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21495 | mkdir conf$$.dir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21496 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21497 | echo >conf$$.file | 
|  | 21498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 21499 | as_ln_s='ln -s' | 
|  | 21500 | # ... but there are two gotchas: | 
|  | 21501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 21502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 21503 | # In both cases, we have to default to `cp -p'. | 
|  | 21504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21505 | as_ln_s='cp -p' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21506 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 21507 | as_ln_s=ln | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21508 | else | 
|  | 21509 | as_ln_s='cp -p' | 
|  | 21510 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 21512 | rmdir conf$$.dir 2>/dev/null | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21513 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21514 | if mkdir -p . 2>/dev/null; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21515 | as_mkdir_p=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21516 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21517 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21518 | as_mkdir_p=false | 
|  | 21519 | fi | 
|  | 21520 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21521 | # Find out whether ``test -x'' works.  Don't use a zero-byte file, as | 
|  | 21522 | # systems may use methods other than mode bits to determine executability. | 
|  | 21523 | cat >conf$$.file <<_ASEOF | 
|  | 21524 | #! /bin/sh | 
|  | 21525 | exit 0 | 
|  | 21526 | _ASEOF | 
|  | 21527 | chmod +x conf$$.file | 
|  | 21528 | if test -x conf$$.file >/dev/null 2>&1; then | 
|  | 21529 | as_executable_p="test -x" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21530 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21531 | as_executable_p=: | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21532 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21533 | rm -f conf$$.file | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21534 |  | 
|  | 21535 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21536 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21537 |  | 
|  | 21538 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21539 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21540 |  | 
|  | 21541 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21542 | exec 6>&1 | 
|  | 21543 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21544 | # Save the log message, to keep $[0] and so on meaningful, and to | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21545 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21546 | # values after options handling. | 
|  | 21547 | ac_log=" | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 21548 | This file was extended by llvm $as_me 3.1svn, which was | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21549 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21550 |  | 
|  | 21551 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 21552 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 21553 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 21554 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 21555 | $ $0 $@ | 
|  | 21556 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21557 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 21558 | " | 
|  | 21559 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 | _ACEOF | 
|  | 21561 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21562 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21563 | # Files that config.status was made for. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21564 | config_files="$ac_config_files" | 
|  | 21565 | config_headers="$ac_config_headers" | 
|  | 21566 | config_commands="$ac_config_commands" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21567 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21569 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21570 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21571 | ac_cs_usage="\ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21572 | \`$as_me' instantiates files from templates according to the | 
|  | 21573 | current configuration. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21574 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21575 | Usage: $0 [OPTIONS] [FILE]... | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21576 |  | 
|  | 21577 | -h, --help       print this help, then exit | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21578 | -V, --version    print version number, then exit | 
|  | 21579 | -q, --quiet      do not print progress messages | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21580 | -d, --debug      don't remove temporary files | 
|  | 21581 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21582 | --file=FILE[:TEMPLATE] | 
|  | 21583 | instantiate the configuration file FILE | 
|  | 21584 | --header=FILE[:TEMPLATE] | 
|  | 21585 | instantiate the configuration header FILE | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21586 |  | 
|  | 21587 | Configuration files: | 
|  | 21588 | $config_files | 
|  | 21589 |  | 
|  | 21590 | Configuration headers: | 
|  | 21591 | $config_headers | 
|  | 21592 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21593 | Configuration commands: | 
|  | 21594 | $config_commands | 
|  | 21595 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21596 | Report bugs to <bug-autoconf@gnu.org>." | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21597 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21598 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21599 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21600 | ac_cs_version="\\ | 
| Bill Wendling | 3d19eef | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 21601 | llvm config.status 3.1svn | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21602 | configured by $0, generated by GNU Autoconf 2.60, | 
|  | 21603 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21604 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21605 | Copyright (C) 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21606 | This config.status script is free software; the Free Software Foundation | 
|  | 21607 | gives unlimited permission to copy, distribute and modify it." | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21608 |  | 
|  | 21609 | ac_pwd='$ac_pwd' | 
|  | 21610 | srcdir='$srcdir' | 
|  | 21611 | INSTALL='$INSTALL' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21612 | _ACEOF | 
|  | 21613 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21614 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 21615 | # If no file are specified by the user, then we need to provide default | 
|  | 21616 | # value.  By we need to know if files were specified by the user. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21617 | ac_need_defaults=: | 
|  | 21618 | while test $# != 0 | 
|  | 21619 | do | 
|  | 21620 | case $1 in | 
|  | 21621 | --*=*) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21622 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 21623 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21624 | ac_shift=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21625 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21626 | *) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21627 | ac_option=$1 | 
|  | 21628 | ac_optarg=$2 | 
|  | 21629 | ac_shift=shift | 
|  | 21630 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21631 | esac | 
|  | 21632 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21633 | case $ac_option in | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21634 | # Handling of the options. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21635 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 21636 | ac_cs_recheck=: ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21637 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21638 | echo "$ac_cs_version"; exit ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | --debug | --debu | --deb | --de | --d | -d ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21640 | debug=: ;; | 
|  | 21641 | --file | --fil | --fi | --f ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21642 | $ac_shift | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21643 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21644 | ac_need_defaults=false;; | 
|  | 21645 | --header | --heade | --head | --hea ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21646 | $ac_shift | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21647 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21648 | ac_need_defaults=false;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21649 | --he | --h) | 
|  | 21650 | # Conflict between --help and --header | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21651 | { echo "$as_me: error: ambiguous option: $1 | 
|  | 21652 | Try \`$0 --help' for more information." >&2 | 
|  | 21653 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21654 | --help | --hel | -h ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21655 | echo "$ac_cs_usage"; exit ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21656 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 21657 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 21658 | ac_cs_silent=: ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21659 |  | 
|  | 21660 | # This is an error. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21661 | -*) { echo "$as_me: error: unrecognized option: $1 | 
|  | 21662 | Try \`$0 --help' for more information." >&2 | 
|  | 21663 | { (exit 1); exit 1; }; } ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21664 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21665 | *) ac_config_targets="$ac_config_targets $1" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21666 | ac_need_defaults=false ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21667 |  | 
|  | 21668 | esac | 
|  | 21669 | shift | 
|  | 21670 | done | 
|  | 21671 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21672 | ac_configure_extra_args= | 
|  | 21673 |  | 
|  | 21674 | if $ac_cs_silent; then | 
|  | 21675 | exec 6>/dev/null | 
|  | 21676 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 21677 | fi | 
|  | 21678 |  | 
|  | 21679 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21680 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21681 | if \$ac_cs_recheck; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21682 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
|  | 21683 | CONFIG_SHELL=$SHELL | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21684 | export CONFIG_SHELL | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21685 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21686 | fi | 
|  | 21687 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21688 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21689 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21690 | exec 5>>config.log | 
|  | 21691 | { | 
|  | 21692 | echo | 
|  | 21693 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 21694 | ## Running $as_me. ## | 
|  | 21695 | _ASBOX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21696 | echo "$ac_log" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21697 | } >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21698 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21699 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21700 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21701 | # | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21702 | # INIT-COMMANDS | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21703 | # | 
| Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21704 | llvm_src="${srcdir}" | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21705 |  | 
|  | 21706 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21707 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21708 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21709 |  | 
|  | 21710 | # Handling of arguments. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21711 | for ac_config_target in $ac_config_targets | 
|  | 21712 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21713 | case $ac_config_target in | 
|  | 21714 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; | 
| Eric Christopher | 97014d8 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21715 | "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21716 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; | 
|  | 21717 | "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21718 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21719 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21720 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21721 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21722 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21723 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
|  | 21724 | "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21725 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21726 | "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21727 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; | 
|  | 21728 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
|  | 21729 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
|  | 21730 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
|  | 21731 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21732 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21733 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
|  | 21734 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21735 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21736 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
|  | 21737 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
|  | 21738 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21739 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; | 
|  | 21740 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21741 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21742 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
|  | 21743 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
|  | 21744 | { (exit 1); exit 1; }; };; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21745 | esac | 
|  | 21746 | done | 
|  | 21747 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21748 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21749 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 21750 | # then the envvar interface is used.  Set only those that are not. | 
|  | 21751 | # We use the long form for the default assignment because of an extremely | 
|  | 21752 | # bizarre bug on SunOS 4.1.3. | 
|  | 21753 | if $ac_need_defaults; then | 
|  | 21754 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 21755 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21756 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21757 | fi | 
|  | 21758 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21759 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21760 | # simply because there is no reason against having it here, and in addition, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21761 | # creating and moving files from /tmp can sometimes cause problems. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21762 | # Hook for its removal unless debugging. | 
|  | 21763 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 21764 | # after its creation but before its name has been assigned to `$tmp'. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21765 | $debug || | 
|  | 21766 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21767 | tmp= | 
|  | 21768 | trap 'exit_status=$? | 
|  | 21769 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
|  | 21770 | ' 0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21771 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21772 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21773 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21774 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21775 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21776 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21777 | test -n "$tmp" && test -d "$tmp" | 
|  | 21778 | }  || | 
|  | 21779 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21780 | tmp=./conf$$-$RANDOM | 
|  | 21781 | (umask 077 && mkdir "$tmp") | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21782 | } || | 
|  | 21783 | { | 
|  | 21784 | echo "$me: cannot create a temporary directory in ." >&2 | 
|  | 21785 | { (exit 1); exit 1; } | 
|  | 21786 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21787 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21788 | # | 
|  | 21789 | # Set up the sed scripts for CONFIG_FILES section. | 
|  | 21790 | # | 
|  | 21791 |  | 
|  | 21792 | # No need to generate the scripts if there are no CONFIG_FILES. | 
|  | 21793 | # This happens for instance when ./config.status config.h | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21794 | if test -n "$CONFIG_FILES"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21795 |  | 
|  | 21796 | _ACEOF | 
|  | 21797 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21798 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21799 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21800 | ac_delim='%!_!# ' | 
|  | 21801 | for ac_last_try in false false false false false :; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21802 | cat >conf$$subs.sed <<_ACEOF | 
|  | 21803 | SHELL!$SHELL$ac_delim | 
|  | 21804 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | 
|  | 21805 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | 
|  | 21806 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | 
|  | 21807 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | 
|  | 21808 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | 
|  | 21809 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | 
|  | 21810 | exec_prefix!$exec_prefix$ac_delim | 
|  | 21811 | prefix!$prefix$ac_delim | 
|  | 21812 | program_transform_name!$program_transform_name$ac_delim | 
|  | 21813 | bindir!$bindir$ac_delim | 
|  | 21814 | sbindir!$sbindir$ac_delim | 
|  | 21815 | libexecdir!$libexecdir$ac_delim | 
|  | 21816 | datarootdir!$datarootdir$ac_delim | 
|  | 21817 | datadir!$datadir$ac_delim | 
|  | 21818 | sysconfdir!$sysconfdir$ac_delim | 
|  | 21819 | sharedstatedir!$sharedstatedir$ac_delim | 
|  | 21820 | localstatedir!$localstatedir$ac_delim | 
|  | 21821 | includedir!$includedir$ac_delim | 
|  | 21822 | oldincludedir!$oldincludedir$ac_delim | 
|  | 21823 | docdir!$docdir$ac_delim | 
|  | 21824 | infodir!$infodir$ac_delim | 
|  | 21825 | htmldir!$htmldir$ac_delim | 
|  | 21826 | dvidir!$dvidir$ac_delim | 
|  | 21827 | pdfdir!$pdfdir$ac_delim | 
|  | 21828 | psdir!$psdir$ac_delim | 
|  | 21829 | libdir!$libdir$ac_delim | 
|  | 21830 | localedir!$localedir$ac_delim | 
|  | 21831 | mandir!$mandir$ac_delim | 
|  | 21832 | DEFS!$DEFS$ac_delim | 
|  | 21833 | ECHO_C!$ECHO_C$ac_delim | 
|  | 21834 | ECHO_N!$ECHO_N$ac_delim | 
|  | 21835 | ECHO_T!$ECHO_T$ac_delim | 
|  | 21836 | LIBS!$LIBS$ac_delim | 
|  | 21837 | build_alias!$build_alias$ac_delim | 
|  | 21838 | host_alias!$host_alias$ac_delim | 
|  | 21839 | target_alias!$target_alias$ac_delim | 
|  | 21840 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21841 | CC!$CC$ac_delim | 
|  | 21842 | CFLAGS!$CFLAGS$ac_delim | 
|  | 21843 | LDFLAGS!$LDFLAGS$ac_delim | 
|  | 21844 | CPPFLAGS!$CPPFLAGS$ac_delim | 
|  | 21845 | ac_ct_CC!$ac_ct_CC$ac_delim | 
|  | 21846 | EXEEXT!$EXEEXT$ac_delim | 
|  | 21847 | OBJEXT!$OBJEXT$ac_delim | 
|  | 21848 | CXX!$CXX$ac_delim | 
|  | 21849 | CXXFLAGS!$CXXFLAGS$ac_delim | 
|  | 21850 | ac_ct_CXX!$ac_ct_CXX$ac_delim | 
|  | 21851 | CPP!$CPP$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21852 | subdirs!$subdirs$ac_delim | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21853 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim | 
|  | 21854 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21855 | build!$build$ac_delim | 
|  | 21856 | build_cpu!$build_cpu$ac_delim | 
|  | 21857 | build_vendor!$build_vendor$ac_delim | 
|  | 21858 | build_os!$build_os$ac_delim | 
|  | 21859 | host!$host$ac_delim | 
|  | 21860 | host_cpu!$host_cpu$ac_delim | 
|  | 21861 | host_vendor!$host_vendor$ac_delim | 
|  | 21862 | host_os!$host_os$ac_delim | 
|  | 21863 | target!$target$ac_delim | 
|  | 21864 | target_cpu!$target_cpu$ac_delim | 
|  | 21865 | target_vendor!$target_vendor$ac_delim | 
|  | 21866 | target_os!$target_os$ac_delim | 
|  | 21867 | OS!$OS$ac_delim | 
|  | 21868 | HOST_OS!$HOST_OS$ac_delim | 
|  | 21869 | TARGET_OS!$TARGET_OS$ac_delim | 
|  | 21870 | LINKALL!$LINKALL$ac_delim | 
|  | 21871 | NOLINKALL!$NOLINKALL$ac_delim | 
|  | 21872 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim | 
|  | 21873 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim | 
|  | 21874 | ARCH!$ARCH$ac_delim | 
|  | 21875 | ENDIAN!$ENDIAN$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21876 | GREP!$GREP$ac_delim | 
|  | 21877 | EGREP!$EGREP$ac_delim | 
|  | 21878 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim | 
|  | 21879 | BUILD_CC!$BUILD_CC$ac_delim | 
|  | 21880 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim | 
|  | 21881 | BUILD_CXX!$BUILD_CXX$ac_delim | 
|  | 21882 | CVSBUILD!$CVSBUILD$ac_delim | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21883 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21884 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim | 
|  | 21885 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim | 
|  | 21886 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim | 
|  | 21887 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim | 
|  | 21888 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim | 
|  | 21889 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim | 
|  | 21890 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim | 
|  | 21891 | JIT!$JIT$ac_delim | 
|  | 21892 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21893 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21894 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 21895 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21896 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21897 | ENABLE_PIC!$ENABLE_PIC$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21898 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21899 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21900 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21901 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21902 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21903 | break | 
|  | 21904 | elif $ac_last_try; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21905 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
|  | 21906 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
|  | 21907 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21908 | else | 
|  | 21909 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21910 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21911 | done | 
|  | 21912 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21913 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
|  | 21914 | if test -n "$ac_eof"; then | 
|  | 21915 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
|  | 21916 | ac_eof=`expr $ac_eof + 1` | 
|  | 21917 | fi | 
|  | 21918 |  | 
|  | 21919 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 21920 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | 
|  | 21921 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21922 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21923 | sed ' | 
|  | 21924 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
|  | 21925 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
|  | 21926 | :n | 
|  | 21927 | t n | 
|  | 21928 | s/'"$ac_delim"'$/,g/; t | 
|  | 21929 | s/$/\\/; p | 
|  | 21930 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
|  | 21931 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
|  | 21932 | rm -f conf$$subs.sed | 
|  | 21933 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 21934 | CEOF$ac_eof | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21935 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21936 |  | 
|  | 21937 |  | 
|  | 21938 | ac_delim='%!_!# ' | 
|  | 21939 | for ac_last_try in false false false false false :; do | 
|  | 21940 | cat >conf$$subs.sed <<_ACEOF | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21941 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21942 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim | 
|  | 21943 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim | 
|  | 21944 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21945 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21946 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21947 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21948 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim | 
| Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21949 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 21950 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 21951 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim | 
| Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21952 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame^] | 21953 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21954 | NM!$NM$ac_delim | 
|  | 21955 | ifGNUmake!$ifGNUmake$ac_delim | 
|  | 21956 | LN_S!$LN_S$ac_delim | 
|  | 21957 | CMP!$CMP$ac_delim | 
|  | 21958 | CP!$CP$ac_delim | 
|  | 21959 | DATE!$DATE$ac_delim | 
|  | 21960 | FIND!$FIND$ac_delim | 
|  | 21961 | MKDIR!$MKDIR$ac_delim | 
|  | 21962 | MV!$MV$ac_delim | 
|  | 21963 | RANLIB!$RANLIB$ac_delim | 
|  | 21964 | AR!$AR$ac_delim | 
|  | 21965 | RM!$RM$ac_delim | 
|  | 21966 | SED!$SED$ac_delim | 
|  | 21967 | TAR!$TAR$ac_delim | 
|  | 21968 | BINPWD!$BINPWD$ac_delim | 
|  | 21969 | GRAPHVIZ!$GRAPHVIZ$ac_delim | 
|  | 21970 | DOT!$DOT$ac_delim | 
|  | 21971 | FDP!$FDP$ac_delim | 
|  | 21972 | NEATO!$NEATO$ac_delim | 
|  | 21973 | TWOPI!$TWOPI$ac_delim | 
|  | 21974 | CIRCO!$CIRCO$ac_delim | 
|  | 21975 | GV!$GV$ac_delim | 
|  | 21976 | DOTTY!$DOTTY$ac_delim | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 21977 | XDOT_PY!$XDOT_PY$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21978 | PERL!$PERL$ac_delim | 
|  | 21979 | HAVE_PERL!$HAVE_PERL$ac_delim | 
|  | 21980 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | 
|  | 21981 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | 
|  | 21982 | INSTALL_DATA!$INSTALL_DATA$ac_delim | 
|  | 21983 | BZIP2!$BZIP2$ac_delim | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21984 | CAT!$CAT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21985 | DOXYGEN!$DOXYGEN$ac_delim | 
|  | 21986 | GROFF!$GROFF$ac_delim | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 21987 | GZIPBIN!$GZIPBIN$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21988 | POD2HTML!$POD2HTML$ac_delim | 
|  | 21989 | POD2MAN!$POD2MAN$ac_delim | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21990 | PDFROFF!$PDFROFF$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21991 | RUNTEST!$RUNTEST$ac_delim | 
|  | 21992 | TCLSH!$TCLSH$ac_delim | 
|  | 21993 | ZIP!$ZIP$ac_delim | 
|  | 21994 | OCAMLC!$OCAMLC$ac_delim | 
|  | 21995 | OCAMLOPT!$OCAMLOPT$ac_delim | 
|  | 21996 | OCAMLDEP!$OCAMLDEP$ac_delim | 
|  | 21997 | OCAMLDOC!$OCAMLDOC$ac_delim | 
|  | 21998 | GAS!$GAS$ac_delim | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21999 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22000 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim | 
|  | 22001 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim | 
|  | 22002 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim | 
|  | 22003 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim | 
|  | 22004 | LIBADD_DL!$LIBADD_DL$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22005 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim | 
|  | 22006 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim | 
|  | 22007 | USE_UDIS86!$USE_UDIS86$ac_delim | 
|  | 22008 | USE_OPROFILE!$USE_OPROFILE$ac_delim | 
|  | 22009 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim | 
|  | 22010 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim | 
|  | 22011 | MMAP_FILE!$MMAP_FILE$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22012 | SHLIBEXT!$SHLIBEXT$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22013 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22014 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim | 
|  | 22015 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim | 
|  | 22016 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim | 
|  | 22017 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim | 
|  | 22018 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim | 
|  | 22019 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim | 
|  | 22020 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim | 
|  | 22021 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim | 
|  | 22022 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim | 
|  | 22023 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim | 
|  | 22024 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim | 
|  | 22025 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim | 
| Eric Christopher | 155137b | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22026 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim | 
|  | 22027 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim | 
|  | 22028 | RPATH!$RPATH$ac_delim | 
|  | 22029 | RDYNAMIC!$RDYNAMIC$ac_delim | 
|  | 22030 | LIBOBJS!$LIBOBJS$ac_delim | 
|  | 22031 | LTLIBOBJS!$LTLIBOBJS$ac_delim | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22032 | _ACEOF | 
|  | 22033 |  | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame^] | 22034 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22035 | break | 
|  | 22036 | elif $ac_last_try; then | 
|  | 22037 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
|  | 22038 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
|  | 22039 | { (exit 1); exit 1; }; } | 
|  | 22040 | else | 
|  | 22041 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 22042 | fi | 
|  | 22043 | done | 
|  | 22044 |  | 
|  | 22045 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
|  | 22046 | if test -n "$ac_eof"; then | 
|  | 22047 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
|  | 22048 | ac_eof=`expr $ac_eof + 1` | 
|  | 22049 | fi | 
|  | 22050 |  | 
|  | 22051 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22052 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | 
| Tobias Grosser | 61cb245 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22053 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | 
|  | 22054 | _ACEOF | 
|  | 22055 | sed ' | 
|  | 22056 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
|  | 22057 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
|  | 22058 | :n | 
|  | 22059 | t n | 
|  | 22060 | s/'"$ac_delim"'$/,g/; t | 
|  | 22061 | s/$/\\/; p | 
|  | 22062 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
|  | 22063 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
|  | 22064 | rm -f conf$$subs.sed | 
|  | 22065 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22066 | :end | 
|  | 22067 | s/|#_!!_#|//g | 
|  | 22068 | CEOF$ac_eof | 
|  | 22069 | _ACEOF | 
|  | 22070 |  | 
|  | 22071 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22072 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 22073 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 22074 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 22075 | # (actually we leave an empty line to preserve line numbers). | 
|  | 22076 | if test "x$srcdir" = x.; then | 
|  | 22077 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
|  | 22078 | s/:*\$(srcdir):*/:/ | 
|  | 22079 | s/:*\${srcdir}:*/:/ | 
|  | 22080 | s/:*@srcdir@:*/:/ | 
|  | 22081 | s/^\([^=]*=[	 ]*\):*/\1/ | 
|  | 22082 | s/:*$// | 
|  | 22083 | s/^[^=]*=[	 ]*$// | 
|  | 22084 | }' | 
|  | 22085 | fi | 
|  | 22086 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22087 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22088 | fi # test -n "$CONFIG_FILES" | 
|  | 22089 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22090 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22091 | for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22092 | do | 
|  | 22093 | case $ac_tag in | 
|  | 22094 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 22095 | esac | 
|  | 22096 | case $ac_mode$ac_tag in | 
|  | 22097 | :[FHL]*:*);; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22098 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | 
|  | 22099 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | 
|  | 22100 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22101 | :[FH]-) ac_tag=-:-;; | 
|  | 22102 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 22103 | esac | 
|  | 22104 | ac_save_IFS=$IFS | 
|  | 22105 | IFS=: | 
|  | 22106 | set x $ac_tag | 
|  | 22107 | IFS=$ac_save_IFS | 
|  | 22108 | shift | 
|  | 22109 | ac_file=$1 | 
|  | 22110 | shift | 
|  | 22111 |  | 
|  | 22112 | case $ac_mode in | 
|  | 22113 | :L) ac_source=$1;; | 
|  | 22114 | :[FH]) | 
|  | 22115 | ac_file_inputs= | 
|  | 22116 | for ac_f | 
|  | 22117 | do | 
|  | 22118 | case $ac_f in | 
|  | 22119 | -) ac_f="$tmp/stdin";; | 
|  | 22120 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 22121 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 22122 | # because $ac_f cannot contain `:'. | 
|  | 22123 | test -f "$ac_f" || | 
|  | 22124 | case $ac_f in | 
|  | 22125 | [\\/$]*) false;; | 
|  | 22126 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 22127 | esac || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22128 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | 
|  | 22129 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | 
|  | 22130 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22131 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22132 | ac_file_inputs="$ac_file_inputs $ac_f" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22133 | done | 
|  | 22134 |  | 
|  | 22135 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 22136 | # use $as_me), people would be surprised to read: | 
|  | 22137 | #    /* config.h.  Generated by config.status.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22138 | configure_input="Generated from "`IFS=: | 
|  | 22139 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22140 | if test x"$ac_file" != x-; then | 
|  | 22141 | configure_input="$ac_file.  $configure_input" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22142 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 22143 | echo "$as_me: creating $ac_file" >&6;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22144 | fi | 
|  | 22145 |  | 
|  | 22146 | case $ac_tag in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22147 | *:-:* | *:-) cat >"$tmp/stdin";; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22148 | esac | 
|  | 22149 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22150 | esac | 
|  | 22151 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22152 | ac_dir=`$as_dirname -- "$ac_file" || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22153 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22154 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 22155 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22156 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22157 | echo X"$ac_file" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22158 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22159 | s//\1/ | 
|  | 22160 | q | 
|  | 22161 | } | 
|  | 22162 | /^X\(\/\/\)[^/].*/{ | 
|  | 22163 | s//\1/ | 
|  | 22164 | q | 
|  | 22165 | } | 
|  | 22166 | /^X\(\/\/\)$/{ | 
|  | 22167 | s//\1/ | 
|  | 22168 | q | 
|  | 22169 | } | 
|  | 22170 | /^X\(\/\).*/{ | 
|  | 22171 | s//\1/ | 
|  | 22172 | q | 
|  | 22173 | } | 
|  | 22174 | s/.*/./; q'` | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22175 | { as_dir="$ac_dir" | 
|  | 22176 | case $as_dir in #( | 
|  | 22177 | -*) as_dir=./$as_dir;; | 
|  | 22178 | esac | 
|  | 22179 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
|  | 22180 | as_dirs= | 
|  | 22181 | while :; do | 
|  | 22182 | case $as_dir in #( | 
|  | 22183 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
|  | 22184 | *) as_qdir=$as_dir;; | 
|  | 22185 | esac | 
|  | 22186 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 22187 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 22188 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22189 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22190 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22191 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 22192 | echo X"$as_dir" | | 
|  | 22193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22194 | s//\1/ | 
|  | 22195 | q | 
|  | 22196 | } | 
|  | 22197 | /^X\(\/\/\)[^/].*/{ | 
|  | 22198 | s//\1/ | 
|  | 22199 | q | 
|  | 22200 | } | 
|  | 22201 | /^X\(\/\/\)$/{ | 
|  | 22202 | s//\1/ | 
|  | 22203 | q | 
|  | 22204 | } | 
|  | 22205 | /^X\(\/\).*/{ | 
|  | 22206 | s//\1/ | 
|  | 22207 | q | 
|  | 22208 | } | 
|  | 22209 | s/.*/./; q'` | 
|  | 22210 | test -d "$as_dir" && break | 
|  | 22211 | done | 
|  | 22212 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 22213 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
|  | 22214 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
|  | 22215 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22216 | ac_builddir=. | 
|  | 22217 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22218 | case "$ac_dir" in | 
|  | 22219 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22220 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22221 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22222 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22223 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22224 | case $ac_top_builddir_sub in | 
|  | 22225 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22226 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 22227 | esac ;; | 
|  | 22228 | esac | 
|  | 22229 | ac_abs_top_builddir=$ac_pwd | 
|  | 22230 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 22231 | # for backward compatibility: | 
|  | 22232 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22233 |  | 
|  | 22234 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22235 | .)  # We are building in place. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22236 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22237 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 22238 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 22239 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22240 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22241 | ac_top_srcdir=$srcdir | 
|  | 22242 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 22243 | *) # Relative name. | 
|  | 22244 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 22245 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 22246 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22247 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22248 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22249 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22250 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22251 | case $ac_mode in | 
|  | 22252 | :F) | 
|  | 22253 | # | 
|  | 22254 | # CONFIG_FILE | 
|  | 22255 | # | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22256 |  | 
|  | 22257 | case $INSTALL in | 
|  | 22258 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22259 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22260 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22261 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22262 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22263 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22264 | # If the template does not know about datarootdir, expand it. | 
|  | 22265 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 22266 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22267 |  | 
|  | 22268 | case `sed -n '/datarootdir/ { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22269 | p | 
|  | 22270 | q | 
|  | 22271 | } | 
|  | 22272 | /@datadir@/p | 
|  | 22273 | /@docdir@/p | 
|  | 22274 | /@infodir@/p | 
|  | 22275 | /@localedir@/p | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22276 | /@mandir@/p | 
|  | 22277 | ' $ac_file_inputs` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22278 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 22279 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22280 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 22281 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22282 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22283 | cat >>$CONFIG_STATUS <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22284 | ac_datarootdir_hack=' | 
|  | 22285 | s&@datadir@&$datadir&g | 
|  | 22286 | s&@docdir@&$docdir&g | 
|  | 22287 | s&@infodir@&$infodir&g | 
|  | 22288 | s&@localedir@&$localedir&g | 
|  | 22289 | s&@mandir@&$mandir&g | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22290 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22291 | esac | 
|  | 22292 | _ACEOF | 
|  | 22293 |  | 
|  | 22294 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 22295 | # Shell code in configure.ac might set extrasub. | 
|  | 22296 | # FIXME: do we really want to maintain this feature? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22297 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22298 | sed "$ac_vpsub | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22299 | $extrasub | 
|  | 22300 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22301 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22302 | :t | 
|  | 22303 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22304 | s&@configure_input@&$configure_input&;t t | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22305 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
|  | 22306 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 22307 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 22308 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 22309 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 22310 | s&@builddir@&$ac_builddir&;t t | 
|  | 22311 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 22312 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 22313 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 22314 | $ac_datarootdir_hack | 
| Eric Christopher | 155137b | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22315 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22316 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22317 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
|  | 22318 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 22319 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22320 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22321 | which seems to be undefined.  Please make sure it is defined." >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22322 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22323 | which seems to be undefined.  Please make sure it is defined." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22324 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22325 | rm -f "$tmp/stdin" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22326 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22327 | -) cat "$tmp/out"; rm -f "$tmp/out";; | 
|  | 22328 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | 
|  | 22329 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22330 | ;; | 
|  | 22331 | :H) | 
|  | 22332 | # | 
|  | 22333 | # CONFIG_HEADER | 
|  | 22334 | # | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22335 | _ACEOF | 
|  | 22336 |  | 
|  | 22337 | # Transform confdefs.h into a sed script `conftest.defines', that | 
|  | 22338 | # substitutes the proper values into config.h.in to produce config.h. | 
|  | 22339 | rm -f conftest.defines conftest.tail | 
|  | 22340 | # First, append a space to every undef/define line, to ease matching. | 
|  | 22341 | echo 's/$/ /' >conftest.defines | 
|  | 22342 | # Then, protect against being on the right side of a sed subst, or in | 
|  | 22343 | # an unquoted here document, in config.status.  If some macros were | 
|  | 22344 | # called several times there might be several #defines for the same | 
|  | 22345 | # symbol, which is useless.  But do not sort them, since the last | 
|  | 22346 | # AC_DEFINE must be honored. | 
|  | 22347 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 22348 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | 
|  | 22349 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | 
|  | 22350 | # PARAMS is the parameter list in the macro definition--in most cases, it's | 
|  | 22351 | # just an empty string. | 
|  | 22352 | ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*' | 
|  | 22353 | ac_dB='\\)[	 (].*,\\1define\\2' | 
|  | 22354 | ac_dC=' ' | 
|  | 22355 | ac_dD=' ,' | 
|  | 22356 |  | 
|  | 22357 | uniq confdefs.h | | 
|  | 22358 | sed -n ' | 
|  | 22359 | t rset | 
|  | 22360 | :rset | 
|  | 22361 | s/^[	 ]*#[	 ]*define[	 ][	 ]*// | 
|  | 22362 | t ok | 
|  | 22363 | d | 
|  | 22364 | :ok | 
|  | 22365 | s/[\\&,]/\\&/g | 
|  | 22366 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | 
|  | 22367 | s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | 
|  | 22368 | ' >>conftest.defines | 
|  | 22369 |  | 
|  | 22370 | # Remove the space that was appended to ease matching. | 
|  | 22371 | # Then replace #undef with comments.  This is necessary, for | 
|  | 22372 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 22373 | # on some systems where configure will not decide to define it. | 
|  | 22374 | # (The regexp can be short, since the line contains either #define or #undef.) | 
|  | 22375 | echo 's/ $// | 
|  | 22376 | s,^[	 #]*u.*,/* & */,' >>conftest.defines | 
|  | 22377 |  | 
|  | 22378 | # Break up conftest.defines: | 
|  | 22379 | ac_max_sed_lines=50 | 
|  | 22380 |  | 
|  | 22381 | # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1" | 
|  | 22382 | # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2" | 
|  | 22383 | # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1" | 
|  | 22384 | # et cetera. | 
|  | 22385 | ac_in='$ac_file_inputs' | 
|  | 22386 | ac_out='"$tmp/out1"' | 
|  | 22387 | ac_nxt='"$tmp/out2"' | 
|  | 22388 |  | 
|  | 22389 | while : | 
|  | 22390 | do | 
|  | 22391 | # Write a here document: | 
|  | 22392 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22393 | # First, check the format of the line: | 
|  | 22394 | cat >"\$tmp/defines.sed" <<\\CEOF | 
|  | 22395 | /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def | 
|  | 22396 | /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def | 
|  | 22397 | b | 
|  | 22398 | :def | 
|  | 22399 | _ACEOF | 
|  | 22400 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | 
|  | 22401 | echo 'CEOF | 
|  | 22402 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | 
|  | 22403 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | 
|  | 22404 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | 
|  | 22405 | grep . conftest.tail >/dev/null || break | 
|  | 22406 | rm -f conftest.defines | 
|  | 22407 | mv conftest.tail conftest.defines | 
|  | 22408 | done | 
|  | 22409 | rm -f conftest.defines conftest.tail | 
|  | 22410 |  | 
|  | 22411 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | 
|  | 22412 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22413 | if test x"$ac_file" != x-; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22414 | echo "/* $configure_input  */" >"$tmp/config.h" | 
|  | 22415 | cat "$ac_result" >>"$tmp/config.h" | 
|  | 22416 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | 
|  | 22417 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
|  | 22418 | echo "$as_me: $ac_file is unchanged" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22419 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22420 | rm -f $ac_file | 
|  | 22421 | mv "$tmp/config.h" $ac_file | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22422 | fi | 
|  | 22423 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22424 | echo "/* $configure_input  */" | 
|  | 22425 | cat "$ac_result" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22426 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22427 | rm -f "$tmp/out12" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22428 | ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22429 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22430 | :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | 
|  | 22431 | echo "$as_me: executing $ac_file commands" >&6;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22432 | ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22433 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22434 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22435 |  | 
|  | 22436 | case $ac_file$ac_mode in | 
|  | 22437 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22438 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22439 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22440 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22441 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22442 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22443 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22444 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 22445 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22446 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22447 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22448 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22449 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22450 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 22451 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22452 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22453 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22454 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22455 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22456 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22457 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22458 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22459 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22460 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22461 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22462 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22463 |  | 
|  | 22464 | esac | 
|  | 22465 | done # for ac_tag | 
|  | 22466 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22467 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22468 | { (exit 0); exit 0; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22469 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22470 | chmod +x $CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22471 | ac_clean_files=$ac_clean_files_save | 
|  | 22472 |  | 
|  | 22473 |  | 
|  | 22474 | # configure is writing to config.log, and then calls config.status. | 
|  | 22475 | # config.status does its own redirection, appending to config.log. | 
|  | 22476 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 22477 | # by configure, so config.status won't be able to write to it; its | 
|  | 22478 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 22479 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 22480 | # appended to by config.status.  When coming back to configure, we | 
|  | 22481 | # need to make the FD available again. | 
|  | 22482 | if test "$no_create" != yes; then | 
|  | 22483 | ac_cs_success=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22484 | ac_config_status_args= | 
|  | 22485 | test "$silent" = yes && | 
|  | 22486 | ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22487 | exec 5>/dev/null | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22488 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22489 | exec 5>>config.log | 
|  | 22490 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 22491 | # would make configure fail if this is the last instruction. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22492 | $ac_cs_success || { (exit 1); exit 1; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22493 | fi | 
|  | 22494 |  | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22495 | # | 
|  | 22496 | # CONFIG_SUBDIRS section. | 
|  | 22497 | # | 
|  | 22498 | if test "$no_recursion" != yes; then | 
|  | 22499 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22500 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22501 | ac_sub_configure_args= | 
|  | 22502 | ac_prev= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22503 | eval "set x $ac_configure_args" | 
|  | 22504 | shift | 
|  | 22505 | for ac_arg | 
|  | 22506 | do | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22507 | if test -n "$ac_prev"; then | 
|  | 22508 | ac_prev= | 
|  | 22509 | continue | 
|  | 22510 | fi | 
|  | 22511 | case $ac_arg in | 
|  | 22512 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 22513 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 22514 | ac_prev=cache_file ;; | 
|  | 22515 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 22516 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
|  | 22517 | | --c=*) | 
|  | 22518 | ;; | 
|  | 22519 | --config-cache | -C) | 
|  | 22520 | ;; | 
|  | 22521 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 22522 | ac_prev=srcdir ;; | 
|  | 22523 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 22524 | ;; | 
|  | 22525 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 22526 | ac_prev=prefix ;; | 
|  | 22527 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 22528 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22529 | *) | 
|  | 22530 | case $ac_arg in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22531 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22532 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22533 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22534 | esac | 
|  | 22535 | done | 
|  | 22536 |  | 
|  | 22537 | # Always prepend --prefix to ensure using the same prefix | 
|  | 22538 | # in subdir configurations. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22539 | ac_arg="--prefix=$prefix" | 
|  | 22540 | case $ac_arg in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22541 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22542 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22543 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22544 |  | 
|  | 22545 | ac_popdir=`pwd` | 
|  | 22546 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
|  | 22547 |  | 
|  | 22548 | # Do not complain, so a configure script can configure whichever | 
|  | 22549 | # parts of a large source tree are present. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22550 | test -d "$srcdir/$ac_dir" || continue | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22551 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22552 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22553 | echo "$as_me:$LINENO: $ac_msg" >&5 | 
|  | 22554 | echo "$ac_msg" >&6 | 
|  | 22555 | { as_dir="$ac_dir" | 
|  | 22556 | case $as_dir in #( | 
|  | 22557 | -*) as_dir=./$as_dir;; | 
|  | 22558 | esac | 
|  | 22559 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
|  | 22560 | as_dirs= | 
|  | 22561 | while :; do | 
|  | 22562 | case $as_dir in #( | 
|  | 22563 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
|  | 22564 | *) as_qdir=$as_dir;; | 
|  | 22565 | esac | 
|  | 22566 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 22567 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 22568 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22569 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22570 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22571 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 22572 | echo X"$as_dir" | | 
|  | 22573 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22574 | s//\1/ | 
|  | 22575 | q | 
|  | 22576 | } | 
|  | 22577 | /^X\(\/\/\)[^/].*/{ | 
|  | 22578 | s//\1/ | 
|  | 22579 | q | 
|  | 22580 | } | 
|  | 22581 | /^X\(\/\/\)$/{ | 
|  | 22582 | s//\1/ | 
|  | 22583 | q | 
|  | 22584 | } | 
|  | 22585 | /^X\(\/\).*/{ | 
|  | 22586 | s//\1/ | 
|  | 22587 | q | 
|  | 22588 | } | 
|  | 22589 | s/.*/./; q'` | 
|  | 22590 | test -d "$as_dir" && break | 
|  | 22591 | done | 
|  | 22592 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 22593 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
|  | 22594 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
|  | 22595 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22596 | ac_builddir=. | 
|  | 22597 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22598 | case "$ac_dir" in | 
|  | 22599 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22600 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22601 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22602 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22603 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22604 | case $ac_top_builddir_sub in | 
|  | 22605 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22606 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 22607 | esac ;; | 
|  | 22608 | esac | 
|  | 22609 | ac_abs_top_builddir=$ac_pwd | 
|  | 22610 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 22611 | # for backward compatibility: | 
|  | 22612 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22613 |  | 
|  | 22614 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22615 | .)  # We are building in place. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22616 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22617 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 22618 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 22619 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22620 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22621 | ac_top_srcdir=$srcdir | 
|  | 22622 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 22623 | *) # Relative name. | 
|  | 22624 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 22625 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 22626 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22627 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22628 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22629 |  | 
|  | 22630 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22631 | cd "$ac_dir" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22632 |  | 
|  | 22633 | # Check for guested configure; otherwise get Cygnus style configure. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22634 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 22635 | ac_sub_configure=$ac_srcdir/configure.gnu | 
|  | 22636 | elif test -f "$ac_srcdir/configure"; then | 
|  | 22637 | ac_sub_configure=$ac_srcdir/configure | 
|  | 22638 | elif test -f "$ac_srcdir/configure.in"; then | 
|  | 22639 | # This should be Cygnus configure. | 
|  | 22640 | ac_sub_configure=$ac_aux_dir/configure | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22641 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22642 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
|  | 22643 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22644 | ac_sub_configure= | 
|  | 22645 | fi | 
|  | 22646 |  | 
|  | 22647 | # The recursion is here. | 
|  | 22648 | if test -n "$ac_sub_configure"; then | 
|  | 22649 | # Make the cache file name correct relative to the subdirectory. | 
|  | 22650 | case $cache_file in | 
|  | 22651 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22652 | *) # Relative name. | 
|  | 22653 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22654 | esac | 
|  | 22655 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22656 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
|  | 22657 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22658 | # The eval makes quoting arguments work. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22659 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | 
|  | 22660 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22661 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
|  | 22662 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
|  | 22663 | { (exit 1); exit 1; }; } | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22664 | fi | 
|  | 22665 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22666 | cd "$ac_popdir" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22667 | done | 
|  | 22668 | fi | 
|  | 22669 |  |