| 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. | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for LLVM 3.2svn. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 5 | # Report bugs to <http://llvm.org/bugs/>. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | # | 
| NAKAMURA Takumi | e9d3d219 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2012 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. | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='LLVM' | 
|  | 563 | PACKAGE_TARNAME='llvm' | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.2svn' | 
|  | 565 | PACKAGE_STRING='LLVM 3.2svn' | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://llvm.org/bugs/' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | 
| Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame^] | 677 | HOST_ARCH | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 678 | ENDIAN | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 679 | GREP | 
|  | 680 | EGREP | 
|  | 681 | LLVM_CROSS_COMPILING | 
|  | 682 | BUILD_CC | 
|  | 683 | BUILD_EXEEXT | 
|  | 684 | BUILD_CXX | 
|  | 685 | CVSBUILD | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 686 | ENABLE_LIBCPP | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 687 | ENABLE_OPTIMIZED | 
|  | 688 | ENABLE_PROFILING | 
|  | 689 | DISABLE_ASSERTIONS | 
|  | 690 | ENABLE_EXPENSIVE_CHECKS | 
|  | 691 | EXPENSIVE_CHECKS | 
|  | 692 | DEBUG_RUNTIME | 
|  | 693 | DEBUG_SYMBOLS | 
|  | 694 | JIT | 
|  | 695 | TARGET_HAS_JIT | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 696 | ENABLE_DOCS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 697 | ENABLE_DOXYGEN | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 698 | LLVM_ENABLE_THREADS | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 699 | ENABLE_PTHREADS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 700 | ENABLE_PIC | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 701 | ENABLE_SHARED | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 702 | ENABLE_EMBED_STDCXX | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 703 | ENABLE_TIMESTAMPS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 704 | TARGETS_TO_BUILD | 
|  | 705 | LLVM_ENUM_TARGETS | 
|  | 706 | LLVM_ENUM_ASM_PRINTERS | 
|  | 707 | LLVM_ENUM_ASM_PARSERS | 
|  | 708 | LLVM_ENUM_DISASSEMBLERS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | INSTALL_PROGRAM | 
|  | 740 | INSTALL_SCRIPT | 
|  | 741 | INSTALL_DATA | 
|  | 742 | BZIP2 | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 743 | CAT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 744 | DOXYGEN | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 745 | GROFF | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 746 | GZIPBIN | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 747 | PDFROFF | 
|  | 748 | RUNTEST | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | TCLSH | 
|  | 750 | ZIP | 
|  | 751 | OCAMLC | 
|  | 752 | OCAMLOPT | 
|  | 753 | OCAMLDEP | 
|  | 754 | OCAMLDOC | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 755 | GAS | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 756 | HAVE_LINK_VERSION_SCRIPT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 757 | INSTALL_LTDL_TRUE | 
|  | 758 | INSTALL_LTDL_FALSE | 
|  | 759 | CONVENIENCE_LTDL_TRUE | 
|  | 760 | CONVENIENCE_LTDL_FALSE | 
|  | 761 | LIBADD_DL | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 762 | NO_VARIADIC_MACROS | 
|  | 763 | NO_MISSING_FIELD_INITIALIZERS | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 764 | COVERED_SWITCH_DEFAULT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 765 | USE_UDIS86 | 
|  | 766 | USE_OPROFILE | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 767 | USE_INTEL_JITEVENTS | 
|  | 768 | INTEL_JITEVENTS_INCDIR | 
|  | 769 | INTEL_JITEVENTS_LIBDIR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1320 | \`configure' configures LLVM 3.2svn 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] | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1368 | --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm] | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1369 | --htmldir=DIR          html documentation [DOCDIR] | 
|  | 1370 | --dvidir=DIR           dvi documentation [DOCDIR] | 
|  | 1371 | --pdfdir=DIR           pdf documentation [DOCDIR] | 
|  | 1372 | --psdir=DIR            ps documentation [DOCDIR] | 
| John Criswell | 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 | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1386 | short | recursive ) echo "Configuration of LLVM 3.2svn:";; | 
| 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 | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1421 | x86_64, sparc, powerpc, arm, mips, spu, hexagon, | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 1422 | xcore, msp430, ptx, nvptx, and cpp (default=all) | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1423 | --enable-bindings       Build specific language bindings: | 
|  | 1424 | all,auto,none,{binding-name} (default=auto) | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1425 | --enable-libffi         Check for the presence of libffi (default is NO) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1426 | --enable-ltdl-install   install libltdl | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1427 |  | 
|  | 1428 | Optional Packages: | 
|  | 1429 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1430 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1431 | --with-optimize-option  Select the compiler options to use for optimized | 
|  | 1432 | builds | 
| Duncan Sands | ef8c8ec | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1433 | --with-extra-options    Specify additional options to compile LLVM with | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1434 | --with-extra-ld-options Specify additional options to link LLVM with | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1435 | --with-ocaml-libdir     Specify install location for ocaml bindings (default | 
|  | 1436 | is stdlib) | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1437 | --with-clang-srcdir     Directory to the out-of-tree Clang source | 
| Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1438 | --with-clang-resource-dir | 
|  | 1439 | Relative directory from the Clang binary for | 
|  | 1440 | resource files | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1441 | --with-c-include-dirs   Colon separated list of directories clang will | 
|  | 1442 | search for headers | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1443 | --with-gcc-toolchain    Directory where gcc is installed. | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 1444 | --with-default-sysroot  Add --sysroot=<path> to all compiler invocations. | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1445 | --with-binutils-include Specify path to binutils/include/ containing | 
|  | 1446 | plugin-api.h file for gold plugin. | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1447 | --with-bug-report-url   Specify the URL where bug reports should be | 
| NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1448 | submitted (default=http://llvm.org/bugs/) | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1449 | --with-internal-prefix  Installation directory for internal files | 
| Reid Spencer | 105d415 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1450 | --with-tclinclude       directory where tcl headers are | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1451 | --with-udis86=<path>    Use udis86 external x86 disassembler library | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1452 | --with-oprofile=<prefix> | 
|  | 1453 | Tell OProfile >= 0.9.4 how to symbolize JIT output | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 1454 | --with-intel-jitevents=<vtune-amplifier-dir> | 
|  | 1455 | Specify location of run-time support library for | 
|  | 1456 | Intel JIT API | 
|  | 1457 | (default=/opt/intel/vtune_amplifier_xe_2011) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1458 |  | 
|  | 1459 | Some influential environment variables: | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1460 | CC          C compiler command | 
|  | 1461 | CFLAGS      C compiler flags | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1462 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1463 | nonstandard directory <lib dir> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1464 | 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] | 1465 | you have headers in a nonstandard directory <include dir> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1466 | CXX         C++ compiler command | 
|  | 1467 | CXXFLAGS    C++ compiler flags | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1468 | CPP         C preprocessor | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 |  | 
|  | 1470 | Use these variables to override the choices made by `configure' or to help | 
|  | 1471 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1472 |  | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1473 | Report bugs to <http://llvm.org/bugs/>. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1475 | ac_status=$? | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1476 | fi | 
|  | 1477 |  | 
|  | 1478 | if test "$ac_init_help" = "recursive"; then | 
|  | 1479 | # If there are subdirs, report their specific --help. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1480 | 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] | 1481 | test -d "$ac_dir" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | ac_builddir=. | 
|  | 1483 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1484 | case "$ac_dir" in | 
|  | 1485 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1486 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1487 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1488 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1489 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | case $ac_top_builddir_sub in | 
|  | 1491 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1492 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1493 | esac ;; | 
|  | 1494 | esac | 
|  | 1495 | ac_abs_top_builddir=$ac_pwd | 
|  | 1496 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1497 | # for backward compatibility: | 
|  | 1498 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 |  | 
|  | 1500 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1501 | .)  # We are building in place. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1502 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1504 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1505 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1506 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1507 | ac_top_srcdir=$srcdir | 
|  | 1508 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1509 | *) # Relative name. | 
|  | 1510 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1511 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1512 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1513 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1514 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1515 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1517 | # Check for guested configure. | 
|  | 1518 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1519 | echo && | 
|  | 1520 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1521 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1522 | echo && | 
|  | 1523 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1524 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1525 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1526 | fi || ac_status=$? | 
|  | 1527 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1528 | done | 
|  | 1529 | fi | 
|  | 1530 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1531 | test -n "$ac_init_help" && exit $ac_status | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1532 | if $ac_init_version; then | 
|  | 1533 | cat <<\_ACEOF | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1534 | LLVM configure 3.2svn | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1535 | generated by GNU Autoconf 2.60 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1537 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
|  | 1538 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1539 | This configure script is free software; the Free Software Foundation | 
|  | 1540 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1541 |  | 
| NAKAMURA Takumi | e9d3d219 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1542 | Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1543 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1544 | exit | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | cat >config.log <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | This file contains any messages produced by compilers while | 
|  | 1548 | running configure, to aid debugging if configure makes a mistake. | 
|  | 1549 |  | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1550 | It was created by LLVM $as_me 3.2svn, which was | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1551 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1552 |  | 
|  | 1553 | $ $0 $@ | 
|  | 1554 |  | 
|  | 1555 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1556 | exec 5>>config.log | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1557 | { | 
|  | 1558 | cat <<_ASUNAME | 
|  | 1559 | ## --------- ## | 
|  | 1560 | ## Platform. ## | 
|  | 1561 | ## --------- ## | 
|  | 1562 |  | 
|  | 1563 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 1564 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 1565 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 1566 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 1567 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 1568 |  | 
|  | 1569 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 1570 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 1571 |  | 
|  | 1572 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 1573 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 1574 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1575 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1576 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 1577 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 1578 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 1579 |  | 
|  | 1580 | _ASUNAME | 
|  | 1581 |  | 
|  | 1582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1583 | for as_dir in $PATH | 
|  | 1584 | do | 
|  | 1585 | IFS=$as_save_IFS | 
|  | 1586 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1587 | echo "PATH: $as_dir" | 
|  | 1588 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1589 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1590 |  | 
|  | 1591 | } >&5 | 
|  | 1592 |  | 
|  | 1593 | cat >&5 <<_ACEOF | 
|  | 1594 |  | 
|  | 1595 |  | 
|  | 1596 | ## ----------- ## | 
|  | 1597 | ## Core tests. ## | 
|  | 1598 | ## ----------- ## | 
|  | 1599 |  | 
|  | 1600 | _ACEOF | 
|  | 1601 |  | 
|  | 1602 |  | 
|  | 1603 | # Keep a trace of the command line. | 
|  | 1604 | # 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] | 1605 | # 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] | 1606 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | ac_configure_args= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | ac_configure_args0= | 
|  | 1610 | ac_configure_args1= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | ac_must_keep_next=false | 
|  | 1612 | for ac_pass in 1 2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1613 | do | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1614 | for ac_arg | 
|  | 1615 | do | 
|  | 1616 | case $ac_arg in | 
|  | 1617 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 1618 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1619 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1620 | continue ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1621 | *\'*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1622 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 | esac | 
|  | 1624 | case $ac_pass in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1625 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1626 | 2) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | if test $ac_must_keep_next = true; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1629 | ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1631 | case $ac_arg in | 
|  | 1632 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 1633 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 1634 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 1635 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 1636 | case "$ac_configure_args0 " in | 
|  | 1637 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 1638 | esac | 
|  | 1639 | ;; | 
|  | 1640 | -* ) ac_must_keep_next=true ;; | 
|  | 1641 | esac | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1642 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1643 | ac_configure_args="$ac_configure_args '$ac_arg'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1644 | ;; | 
|  | 1645 | esac | 
|  | 1646 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1647 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1648 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
|  | 1649 | $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] | 1650 |  | 
|  | 1651 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 1652 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 1653 | # would cause problems or look ugly. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1654 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 1655 | # 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] | 1656 | trap 'exit_status=$? | 
|  | 1657 | # Save into config.log some information that might help in debugging. | 
|  | 1658 | { | 
|  | 1659 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1660 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1661 | cat <<\_ASBOX | 
|  | 1662 | ## ---------------- ## | 
|  | 1663 | ## Cache variables. ## | 
|  | 1664 | ## ---------------- ## | 
|  | 1665 | _ASBOX | 
|  | 1666 | echo | 
|  | 1667 | # The following way of writing the cache mishandles newlines in values, | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1668 | ( | 
|  | 1669 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 1670 | eval ac_val=\$$ac_var | 
|  | 1671 | case $ac_val in #( | 
|  | 1672 | *${as_nl}*) | 
|  | 1673 | case $ac_var in #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1674 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
|  | 1675 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | esac | 
|  | 1677 | case $ac_var in #( | 
|  | 1678 | _ | IFS | as_nl) ;; #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1679 | *) $as_unset $ac_var ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1680 | esac ;; | 
|  | 1681 | esac | 
|  | 1682 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | (set) 2>&1 | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 1685 | *${as_nl}ac_space=\ *) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1686 | sed -n \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1687 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 1688 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 1689 | ;; #( | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1690 | *) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1691 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| 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 | esac | | 
|  | 1694 | sort | 
|  | 1695 | ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1696 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1697 |  | 
|  | 1698 | cat <<\_ASBOX | 
|  | 1699 | ## ----------------- ## | 
|  | 1700 | ## Output variables. ## | 
|  | 1701 | ## ----------------- ## | 
|  | 1702 | _ASBOX | 
|  | 1703 | echo | 
|  | 1704 | for ac_var in $ac_subst_vars | 
|  | 1705 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | eval ac_val=\$$ac_var | 
|  | 1707 | case $ac_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1708 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1709 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1710 | echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1711 | done | sort | 
|  | 1712 | echo | 
|  | 1713 |  | 
|  | 1714 | if test -n "$ac_subst_files"; then | 
|  | 1715 | cat <<\_ASBOX | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1716 | ## ------------------- ## | 
|  | 1717 | ## File substitutions. ## | 
|  | 1718 | ## ------------------- ## | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1719 | _ASBOX | 
|  | 1720 | echo | 
|  | 1721 | for ac_var in $ac_subst_files | 
|  | 1722 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1723 | eval ac_val=\$$ac_var | 
|  | 1724 | case $ac_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1725 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1726 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1728 | done | sort | 
|  | 1729 | echo | 
|  | 1730 | fi | 
|  | 1731 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1732 | if test -s confdefs.h; then | 
|  | 1733 | cat <<\_ASBOX | 
|  | 1734 | ## ----------- ## | 
|  | 1735 | ## confdefs.h. ## | 
|  | 1736 | ## ----------- ## | 
|  | 1737 | _ASBOX | 
|  | 1738 | echo | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1739 | cat confdefs.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1740 | echo | 
|  | 1741 | fi | 
|  | 1742 | test "$ac_signal" != 0 && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1743 | echo "$as_me: caught signal $ac_signal" | 
|  | 1744 | echo "$as_me: exit $exit_status" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | } >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1746 | rm -f core *.core core.conftest.* && | 
|  | 1747 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1748 | exit $exit_status | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1749 | ' 0 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | for ac_signal in 1 2 13 15; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1751 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | done | 
|  | 1753 | ac_signal=0 | 
|  | 1754 |  | 
|  | 1755 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1756 | rm -f -r conftest* confdefs.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1757 |  | 
|  | 1758 | # Predefined preprocessor variables. | 
|  | 1759 |  | 
|  | 1760 | cat >>confdefs.h <<_ACEOF | 
|  | 1761 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 1762 | _ACEOF | 
|  | 1763 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1764 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | cat >>confdefs.h <<_ACEOF | 
|  | 1766 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 1767 | _ACEOF | 
|  | 1768 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1769 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1770 | cat >>confdefs.h <<_ACEOF | 
|  | 1771 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 1772 | _ACEOF | 
|  | 1773 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1774 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1775 | cat >>confdefs.h <<_ACEOF | 
|  | 1776 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 1777 | _ACEOF | 
|  | 1778 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1779 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1780 | cat >>confdefs.h <<_ACEOF | 
|  | 1781 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 1782 | _ACEOF | 
|  | 1783 |  | 
|  | 1784 |  | 
|  | 1785 | # 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] | 1786 | # Prefer explicitly selected file to automatically selected ones. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1787 | if test -n "$CONFIG_SITE"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | set x "$CONFIG_SITE" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | elif test "x$prefix" != xNONE; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | set x "$ac_default_prefix/share/config.site" \ | 
|  | 1793 | "$ac_default_prefix/etc/config.site" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1795 | shift | 
|  | 1796 | for ac_site_file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1797 | do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1798 | if test -r "$ac_site_file"; then | 
|  | 1799 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
|  | 1800 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1801 | sed 's/^/| /' "$ac_site_file" >&5 | 
|  | 1802 | . "$ac_site_file" | 
|  | 1803 | fi | 
|  | 1804 | done | 
|  | 1805 |  | 
|  | 1806 | if test -r "$cache_file"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1807 | # Some versions of bash will fail to source /dev/null (special | 
|  | 1808 | # files actually), so we avoid doing that. | 
|  | 1809 | if test -f "$cache_file"; then | 
|  | 1810 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
|  | 1811 | echo "$as_me: loading cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1812 | case $cache_file in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1813 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 1814 | *)                      . "./$cache_file";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1815 | esac | 
|  | 1816 | fi | 
|  | 1817 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1818 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
|  | 1819 | echo "$as_me: creating cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | >$cache_file | 
|  | 1821 | fi | 
|  | 1822 |  | 
|  | 1823 | # Check that the precious variables saved in the cache have kept the same | 
|  | 1824 | # value. | 
|  | 1825 | ac_cache_corrupted=false | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1826 | for ac_var in $ac_precious_vars; do | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1827 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 1828 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1829 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 1830 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 | case $ac_old_set,$ac_new_set in | 
|  | 1832 | set,) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1833 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 1834 | 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] | 1835 | ac_cache_corrupted=: ;; | 
|  | 1836 | ,set) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1837 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 1838 | 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] | 1839 | ac_cache_corrupted=: ;; | 
|  | 1840 | ,);; | 
|  | 1841 | *) | 
|  | 1842 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1843 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 1844 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 1845 | { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
|  | 1846 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
|  | 1847 | { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
|  | 1848 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
|  | 1849 | ac_cache_corrupted=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1850 | fi;; | 
|  | 1851 | esac | 
|  | 1852 | # Pass precious variables to config.status. | 
|  | 1853 | if test "$ac_new_set" = set; then | 
|  | 1854 | case $ac_new_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1855 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 1857 | esac | 
|  | 1858 | case " $ac_configure_args " in | 
|  | 1859 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1860 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1861 | esac | 
|  | 1862 | fi | 
|  | 1863 | done | 
|  | 1864 | if $ac_cache_corrupted; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1865 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
|  | 1866 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
|  | 1867 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
|  | 1868 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
|  | 1869 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1870 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1871 |  | 
|  | 1872 |  | 
|  | 1873 |  | 
|  | 1874 |  | 
|  | 1875 |  | 
|  | 1876 |  | 
|  | 1877 |  | 
|  | 1878 |  | 
|  | 1879 |  | 
|  | 1880 |  | 
|  | 1881 |  | 
|  | 1882 |  | 
|  | 1883 |  | 
|  | 1884 |  | 
|  | 1885 |  | 
|  | 1886 |  | 
|  | 1887 |  | 
|  | 1888 |  | 
|  | 1889 |  | 
|  | 1890 |  | 
|  | 1891 |  | 
|  | 1892 |  | 
|  | 1893 |  | 
|  | 1894 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1895 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1896 | ac_ext=c | 
|  | 1897 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 1901 |  | 
|  | 1902 |  | 
|  | 1903 |  | 
| Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1904 | cat >>confdefs.h <<\_ACEOF | 
|  | 1905 | #define LLVM_VERSION_MAJOR 3 | 
|  | 1906 | _ACEOF | 
|  | 1907 |  | 
|  | 1908 |  | 
|  | 1909 | cat >>confdefs.h <<\_ACEOF | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1910 | #define LLVM_VERSION_MINOR 2 | 
| Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1911 | _ACEOF | 
|  | 1912 |  | 
|  | 1913 |  | 
| NAKAMURA Takumi | e9d3d219 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1914 | LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1915 |  | 
|  | 1916 |  | 
|  | 1917 |  | 
|  | 1918 |  | 
|  | 1919 |  | 
|  | 1920 |  | 
|  | 1921 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1922 | ac_aux_dir= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1923 | for ac_dir in autoconf "$srcdir"/autoconf; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1924 | if test -f "$ac_dir/install-sh"; then | 
|  | 1925 | ac_aux_dir=$ac_dir | 
|  | 1926 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 1927 | break | 
|  | 1928 | elif test -f "$ac_dir/install.sh"; then | 
|  | 1929 | ac_aux_dir=$ac_dir | 
|  | 1930 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 1931 | break | 
|  | 1932 | elif test -f "$ac_dir/shtool"; then | 
|  | 1933 | ac_aux_dir=$ac_dir | 
|  | 1934 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 1935 | break | 
|  | 1936 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1937 | done | 
|  | 1938 | if test -z "$ac_aux_dir"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1939 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 | 
|  | 1940 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | 
|  | 1941 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1942 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1943 |  | 
|  | 1944 | # These three variables are undocumented and unsupported, | 
|  | 1945 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 1946 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 1947 | # whose full name contains unusual characters. | 
|  | 1948 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 1949 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 1950 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 1951 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1952 |  | 
| John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1953 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1954 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1955 | if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1956 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
|  | 1957 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
|  | 1958 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1959 | fi | 
| John Criswell | 22107a7 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1960 | fi | 
|  | 1961 |  | 
| Nick Lewycky | c5975fc | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1962 | ac_ext=c | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1963 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1967 | if test -n "$ac_tool_prefix"; then | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1968 | for ac_prog in clang llvm-gcc gcc | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1969 | do | 
|  | 1970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 1971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1972 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 1974 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1976 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1977 | if test -n "$CC"; then | 
|  | 1978 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1979 | else | 
|  | 1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1981 | for as_dir in $PATH | 
|  | 1982 | do | 
|  | 1983 | IFS=$as_save_IFS | 
|  | 1984 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1985 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1986 | 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] | 1987 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1988 | 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] | 1989 | break 2 | 
|  | 1990 | fi | 
|  | 1991 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1992 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1993 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1994 |  | 
|  | 1995 | fi | 
|  | 1996 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1997 | CC=$ac_cv_prog_CC | 
|  | 1998 | if test -n "$CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1999 | { echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 2000 | echo "${ECHO_T}$CC" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2002 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2003 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2004 | fi | 
|  | 2005 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2006 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2007 | test -n "$CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2008 | done | 
|  | 2009 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2010 | if test -z "$CC"; then | 
|  | 2011 | ac_ct_CC=$CC | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2012 | for ac_prog in clang llvm-gcc gcc | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2013 | do | 
|  | 2014 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2015 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2016 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 2018 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2020 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2021 | if test -n "$ac_ct_CC"; then | 
|  | 2022 | 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] | 2023 | else | 
|  | 2024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2025 | for as_dir in $PATH | 
|  | 2026 | do | 
|  | 2027 | IFS=$as_save_IFS | 
|  | 2028 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2029 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2030 | 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] | 2031 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2032 | 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] | 2033 | break 2 | 
|  | 2034 | fi | 
|  | 2035 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2036 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2037 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2038 |  | 
|  | 2039 | fi | 
|  | 2040 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2041 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 2042 | if test -n "$ac_ct_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2043 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 2044 | echo "${ECHO_T}$ac_ct_CC" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2046 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2047 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | fi | 
|  | 2049 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2050 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2051 | test -n "$ac_ct_CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2052 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2053 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2054 | if test "x$ac_ct_CC" = x; then | 
|  | 2055 | CC="" | 
|  | 2056 | else | 
|  | 2057 | case $cross_compiling:$ac_tool_warned in | 
|  | 2058 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2059 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 2060 | whose name does not start with the host triplet.  If you think this | 
|  | 2061 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 2062 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 2063 | whose name does not start with the host triplet.  If you think this | 
|  | 2064 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2065 | ac_tool_warned=yes ;; | 
|  | 2066 | esac | 
|  | 2067 | CC=$ac_ct_CC | 
|  | 2068 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | fi | 
|  | 2070 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2071 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2072 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 2073 | See \`config.log' for more details." >&5 | 
|  | 2074 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 2075 | See \`config.log' for more details." >&2;} | 
|  | 2076 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2077 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2078 | # Provide some information about the compiler. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2079 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | 
|  | 2080 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2081 | { (ac_try="$ac_compiler --version >&5" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2082 | case "(($ac_try" in | 
|  | 2083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2084 | *) ac_try_echo=$ac_try;; | 
|  | 2085 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2087 | (eval "$ac_compiler --version >&5") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2088 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2090 | (exit $ac_status); } | 
|  | 2091 | { (ac_try="$ac_compiler -v >&5" | 
|  | 2092 | case "(($ac_try" in | 
|  | 2093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2094 | *) ac_try_echo=$ac_try;; | 
|  | 2095 | esac | 
|  | 2096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2097 | (eval "$ac_compiler -v >&5") 2>&5 | 
|  | 2098 | ac_status=$? | 
|  | 2099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2100 | (exit $ac_status); } | 
|  | 2101 | { (ac_try="$ac_compiler -V >&5" | 
|  | 2102 | case "(($ac_try" in | 
|  | 2103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2104 | *) ac_try_echo=$ac_try;; | 
|  | 2105 | esac | 
|  | 2106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2107 | (eval "$ac_compiler -V >&5") 2>&5 | 
|  | 2108 | ac_status=$? | 
|  | 2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2110 | (exit $ac_status); } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2111 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2112 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2113 | /* confdefs.h.  */ | 
|  | 2114 | _ACEOF | 
|  | 2115 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2116 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2117 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2118 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2119 | int | 
|  | 2120 | main () | 
|  | 2121 | { | 
|  | 2122 |  | 
|  | 2123 | ; | 
|  | 2124 | return 0; | 
|  | 2125 | } | 
|  | 2126 | _ACEOF | 
|  | 2127 | ac_clean_files_save=$ac_clean_files | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2128 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2129 | # Try to create an executable without -o first, disregard a.out. | 
|  | 2130 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 2131 | # of exeext. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2132 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
|  | 2133 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | 
|  | 2134 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 2135 | # | 
|  | 2136 | # List of possible output files, starting from the most likely. | 
|  | 2137 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | 
|  | 2138 | # only as a last resort.  b.out is created by i960 compilers. | 
|  | 2139 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | 
|  | 2140 | # | 
|  | 2141 | # The IRIX 6 linker writes into existing files which may not be | 
|  | 2142 | # executable, retaining their permissions.  Remove them first so a | 
|  | 2143 | # subsequent execution test works. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2144 | ac_rmfiles= | 
|  | 2145 | for ac_file in $ac_files | 
|  | 2146 | do | 
|  | 2147 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2148 | *.$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] | 2149 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 2150 | esac | 
|  | 2151 | done | 
|  | 2152 | rm -f $ac_rmfiles | 
|  | 2153 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2154 | if { (ac_try="$ac_link_default" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | case "(($ac_try" in | 
|  | 2156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2157 | *) ac_try_echo=$ac_try;; | 
|  | 2158 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | (eval "$ac_link_default") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2161 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2163 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2164 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 2165 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 2166 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 2167 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 2168 | # Autoconf. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2169 | for ac_file in $ac_files | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2170 | do | 
|  | 2171 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2172 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2173 | *.$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] | 2174 | ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2175 | [ab].out ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2176 | # We found the default executable, but exeext='' is most | 
|  | 2177 | # certainly right. | 
|  | 2178 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2179 | *.* ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2180 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2181 | then :; else | 
|  | 2182 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 2183 | fi | 
|  | 2184 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 2185 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 2186 | # argument, so we may need to know it at that point already. | 
|  | 2187 | # Even if this section looks crufty: it has the advantage of | 
|  | 2188 | # actually working. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2189 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2190 | * ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2191 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2192 | esac | 
|  | 2193 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2194 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 2195 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2196 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2197 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2198 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2199 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2200 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
|  | 2201 | See \`config.log' for more details." >&5 | 
|  | 2202 | echo "$as_me: error: C compiler cannot create executables | 
|  | 2203 | See \`config.log' for more details." >&2;} | 
|  | 2204 | { (exit 77); exit 77; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2205 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2206 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2207 | ac_exeext=$ac_cv_exeext | 
|  | 2208 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | 
|  | 2209 | echo "${ECHO_T}$ac_file" >&6; } | 
|  | 2210 |  | 
|  | 2211 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 2212 | # the compiler is broken, or we cross compile. | 
|  | 2213 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
|  | 2214 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | 
|  | 2215 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
|  | 2216 | # If not cross compiling, check that we can run a simple program. | 
|  | 2217 | if test "$cross_compiling" != yes; then | 
|  | 2218 | if { ac_try='./$ac_file' | 
|  | 2219 | { (case "(($ac_try" in | 
|  | 2220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2221 | *) ac_try_echo=$ac_try;; | 
|  | 2222 | esac | 
|  | 2223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2224 | (eval "$ac_try") 2>&5 | 
|  | 2225 | ac_status=$? | 
|  | 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2227 | (exit $ac_status); }; }; then | 
|  | 2228 | cross_compiling=no | 
|  | 2229 | else | 
|  | 2230 | if test "$cross_compiling" = maybe; then | 
|  | 2231 | cross_compiling=yes | 
|  | 2232 | else | 
|  | 2233 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
|  | 2234 | If you meant to cross compile, use \`--host'. | 
|  | 2235 | See \`config.log' for more details." >&5 | 
|  | 2236 | echo "$as_me: error: cannot run C compiled programs. | 
|  | 2237 | If you meant to cross compile, use \`--host'. | 
|  | 2238 | See \`config.log' for more details." >&2;} | 
|  | 2239 | { (exit 1); exit 1; }; } | 
|  | 2240 | fi | 
|  | 2241 | fi | 
|  | 2242 | fi | 
|  | 2243 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 2244 | echo "${ECHO_T}yes" >&6; } | 
|  | 2245 |  | 
|  | 2246 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2247 | ac_clean_files=$ac_clean_files_save | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2248 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 2249 | # the compiler is broken, or we cross compile. | 
|  | 2250 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
|  | 2251 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | 
|  | 2252 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
|  | 2253 | echo "${ECHO_T}$cross_compiling" >&6; } | 
|  | 2254 |  | 
|  | 2255 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
|  | 2256 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | 
|  | 2257 | if { (ac_try="$ac_link" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2258 | case "(($ac_try" in | 
|  | 2259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2260 | *) ac_try_echo=$ac_try;; | 
|  | 2261 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2263 | (eval "$ac_link") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2264 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2266 | (exit $ac_status); }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2267 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 2268 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 2269 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 2270 | # `rm'. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2271 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 2272 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2273 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2274 | *.$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] | 2275 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2276 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2277 | * ) break;; | 
|  | 2278 | esac | 
|  | 2279 | done | 
|  | 2280 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2281 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2282 | See \`config.log' for more details." >&5 | 
|  | 2283 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2284 | See \`config.log' for more details." >&2;} | 
|  | 2285 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2286 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2287 |  | 
|  | 2288 | rm -f conftest$ac_cv_exeext | 
|  | 2289 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
|  | 2290 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2291 |  | 
|  | 2292 | rm -f conftest.$ac_ext | 
|  | 2293 | EXEEXT=$ac_cv_exeext | 
|  | 2294 | ac_exeext=$EXEEXT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2295 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
|  | 2296 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | 
|  | 2297 | if test "${ac_cv_objext+set}" = set; then | 
|  | 2298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2299 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2300 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2301 | /* confdefs.h.  */ | 
|  | 2302 | _ACEOF | 
|  | 2303 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2304 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2305 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2306 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2307 | int | 
|  | 2308 | main () | 
|  | 2309 | { | 
|  | 2310 |  | 
|  | 2311 | ; | 
|  | 2312 | return 0; | 
|  | 2313 | } | 
|  | 2314 | _ACEOF | 
|  | 2315 | rm -f conftest.o conftest.obj | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2316 | if { (ac_try="$ac_compile" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2317 | case "(($ac_try" in | 
|  | 2318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2319 | *) ac_try_echo=$ac_try;; | 
|  | 2320 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2322 | (eval "$ac_compile") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2323 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2325 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2326 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 2327 | test -f "$ac_file" || continue; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2328 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2329 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2330 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 2331 | break;; | 
|  | 2332 | esac | 
|  | 2333 | done | 
|  | 2334 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2335 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2336 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2337 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2338 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
|  | 2339 | See \`config.log' for more details." >&5 | 
|  | 2340 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
|  | 2341 | See \`config.log' for more details." >&2;} | 
|  | 2342 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2343 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2344 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2345 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 2346 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2347 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
|  | 2348 | echo "${ECHO_T}$ac_cv_objext" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2349 | OBJEXT=$ac_cv_objext | 
|  | 2350 | ac_objext=$OBJEXT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2351 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 2352 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | 
|  | 2353 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
|  | 2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2355 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2356 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2357 | /* confdefs.h.  */ | 
|  | 2358 | _ACEOF | 
|  | 2359 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2360 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2361 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2362 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2363 | int | 
|  | 2364 | main () | 
|  | 2365 | { | 
|  | 2366 | #ifndef __GNUC__ | 
|  | 2367 | choke me | 
|  | 2368 | #endif | 
|  | 2369 |  | 
|  | 2370 | ; | 
|  | 2371 | return 0; | 
|  | 2372 | } | 
|  | 2373 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2374 | rm -f conftest.$ac_objext | 
|  | 2375 | if { (ac_try="$ac_compile" | 
|  | 2376 | case "(($ac_try" in | 
|  | 2377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2378 | *) ac_try_echo=$ac_try;; | 
|  | 2379 | esac | 
|  | 2380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2381 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2382 | ac_status=$? | 
|  | 2383 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2384 | rm -f conftest.er1 | 
|  | 2385 | cat conftest.err >&5 | 
|  | 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2387 | (exit $ac_status); } && | 
|  | 2388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2389 | { (case "(($ac_try" in | 
|  | 2390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2391 | *) ac_try_echo=$ac_try;; | 
|  | 2392 | esac | 
|  | 2393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2394 | (eval "$ac_try") 2>&5 | 
|  | 2395 | ac_status=$? | 
|  | 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2397 | (exit $ac_status); }; } && | 
|  | 2398 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2399 | { (case "(($ac_try" in | 
|  | 2400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2401 | *) ac_try_echo=$ac_try;; | 
|  | 2402 | esac | 
|  | 2403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2404 | (eval "$ac_try") 2>&5 | 
|  | 2405 | ac_status=$? | 
|  | 2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2407 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2408 | ac_compiler_gnu=yes | 
|  | 2409 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2410 | echo "$as_me: failed program was:" >&5 | 
|  | 2411 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2412 |  | 
|  | 2413 | ac_compiler_gnu=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2414 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2415 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2418 |  | 
|  | 2419 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2420 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 2421 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | 
|  | 2422 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 2424 | ac_save_CFLAGS=$CFLAGS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2425 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 2426 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | 
|  | 2427 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
|  | 2428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2429 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2430 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 2431 | ac_c_werror_flag=yes | 
|  | 2432 | ac_cv_prog_cc_g=no | 
|  | 2433 | CFLAGS="-g" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2434 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2435 | /* confdefs.h.  */ | 
|  | 2436 | _ACEOF | 
|  | 2437 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2438 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2439 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2440 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2441 | int | 
|  | 2442 | main () | 
|  | 2443 | { | 
|  | 2444 |  | 
|  | 2445 | ; | 
|  | 2446 | return 0; | 
|  | 2447 | } | 
|  | 2448 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2449 | rm -f conftest.$ac_objext | 
|  | 2450 | if { (ac_try="$ac_compile" | 
|  | 2451 | case "(($ac_try" in | 
|  | 2452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2453 | *) ac_try_echo=$ac_try;; | 
|  | 2454 | esac | 
|  | 2455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2456 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2457 | ac_status=$? | 
|  | 2458 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2459 | rm -f conftest.er1 | 
|  | 2460 | cat conftest.err >&5 | 
|  | 2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2462 | (exit $ac_status); } && | 
|  | 2463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2464 | { (case "(($ac_try" in | 
|  | 2465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2466 | *) ac_try_echo=$ac_try;; | 
|  | 2467 | esac | 
|  | 2468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2469 | (eval "$ac_try") 2>&5 | 
|  | 2470 | ac_status=$? | 
|  | 2471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2472 | (exit $ac_status); }; } && | 
|  | 2473 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2474 | { (case "(($ac_try" in | 
|  | 2475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2476 | *) ac_try_echo=$ac_try;; | 
|  | 2477 | esac | 
|  | 2478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2479 | (eval "$ac_try") 2>&5 | 
|  | 2480 | ac_status=$? | 
|  | 2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2482 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2483 | ac_cv_prog_cc_g=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2484 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2485 | echo "$as_me: failed program was:" >&5 | 
|  | 2486 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2487 |  | 
|  | 2488 | CFLAGS="" | 
|  | 2489 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2490 | /* confdefs.h.  */ | 
|  | 2491 | _ACEOF | 
|  | 2492 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2493 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2494 | /* end confdefs.h.  */ | 
|  | 2495 |  | 
|  | 2496 | int | 
|  | 2497 | main () | 
|  | 2498 | { | 
|  | 2499 |  | 
|  | 2500 | ; | 
|  | 2501 | return 0; | 
|  | 2502 | } | 
|  | 2503 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2504 | rm -f conftest.$ac_objext | 
|  | 2505 | if { (ac_try="$ac_compile" | 
|  | 2506 | case "(($ac_try" in | 
|  | 2507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2508 | *) ac_try_echo=$ac_try;; | 
|  | 2509 | esac | 
|  | 2510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2511 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2512 | ac_status=$? | 
|  | 2513 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2514 | rm -f conftest.er1 | 
|  | 2515 | cat conftest.err >&5 | 
|  | 2516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2517 | (exit $ac_status); } && | 
|  | 2518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2519 | { (case "(($ac_try" in | 
|  | 2520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2521 | *) ac_try_echo=$ac_try;; | 
|  | 2522 | esac | 
|  | 2523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2524 | (eval "$ac_try") 2>&5 | 
|  | 2525 | ac_status=$? | 
|  | 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2527 | (exit $ac_status); }; } && | 
|  | 2528 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2529 | { (case "(($ac_try" in | 
|  | 2530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2531 | *) ac_try_echo=$ac_try;; | 
|  | 2532 | esac | 
|  | 2533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2534 | (eval "$ac_try") 2>&5 | 
|  | 2535 | ac_status=$? | 
|  | 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2537 | (exit $ac_status); }; }; then | 
|  | 2538 | : | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2539 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2540 | echo "$as_me: failed program was:" >&5 | 
|  | 2541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2542 |  | 
|  | 2543 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2544 | CFLAGS="-g" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2545 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2546 | /* confdefs.h.  */ | 
|  | 2547 | _ACEOF | 
|  | 2548 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2549 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2550 | /* end confdefs.h.  */ | 
|  | 2551 |  | 
|  | 2552 | int | 
|  | 2553 | main () | 
|  | 2554 | { | 
|  | 2555 |  | 
|  | 2556 | ; | 
|  | 2557 | return 0; | 
|  | 2558 | } | 
|  | 2559 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2560 | rm -f conftest.$ac_objext | 
|  | 2561 | if { (ac_try="$ac_compile" | 
|  | 2562 | case "(($ac_try" in | 
|  | 2563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2564 | *) ac_try_echo=$ac_try;; | 
|  | 2565 | esac | 
|  | 2566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2567 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2568 | ac_status=$? | 
|  | 2569 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2570 | rm -f conftest.er1 | 
|  | 2571 | cat conftest.err >&5 | 
|  | 2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2573 | (exit $ac_status); } && | 
|  | 2574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2575 | { (case "(($ac_try" in | 
|  | 2576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2577 | *) ac_try_echo=$ac_try;; | 
|  | 2578 | esac | 
|  | 2579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2580 | (eval "$ac_try") 2>&5 | 
|  | 2581 | ac_status=$? | 
|  | 2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2583 | (exit $ac_status); }; } && | 
|  | 2584 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2585 | { (case "(($ac_try" in | 
|  | 2586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2587 | *) ac_try_echo=$ac_try;; | 
|  | 2588 | esac | 
|  | 2589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2590 | (eval "$ac_try") 2>&5 | 
|  | 2591 | ac_status=$? | 
|  | 2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2593 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2594 | ac_cv_prog_cc_g=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2595 | else | 
|  | 2596 | echo "$as_me: failed program was:" >&5 | 
|  | 2597 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2598 |  | 
|  | 2599 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2601 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2604 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2606 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2607 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2609 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 2610 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 2612 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2613 | if test "$ac_test_CFLAGS" = set; then | 
|  | 2614 | CFLAGS=$ac_save_CFLAGS | 
|  | 2615 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 2616 | if test "$GCC" = yes; then | 
|  | 2617 | CFLAGS="-g -O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2619 | CFLAGS="-g" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2620 | fi | 
|  | 2621 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2622 | if test "$GCC" = yes; then | 
|  | 2623 | CFLAGS="-O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2624 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2625 | CFLAGS= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | fi | 
|  | 2627 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | 
|  | 2629 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | 
|  | 2630 | if test "${ac_cv_prog_cc_c89+set}" = set; then | 
|  | 2631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2632 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2633 | ac_cv_prog_cc_c89=no | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2634 | ac_save_CC=$CC | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2635 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2636 | /* confdefs.h.  */ | 
|  | 2637 | _ACEOF | 
|  | 2638 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2639 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2640 | /* end confdefs.h.  */ | 
|  | 2641 | #include <stdarg.h> | 
|  | 2642 | #include <stdio.h> | 
|  | 2643 | #include <sys/types.h> | 
|  | 2644 | #include <sys/stat.h> | 
|  | 2645 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 2646 | struct buf { int x; }; | 
|  | 2647 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 2648 | static char *e (p, i) | 
|  | 2649 | char **p; | 
|  | 2650 | int i; | 
|  | 2651 | { | 
|  | 2652 | return p[i]; | 
|  | 2653 | } | 
|  | 2654 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 2655 | { | 
|  | 2656 | char *s; | 
|  | 2657 | va_list v; | 
|  | 2658 | va_start (v,p); | 
|  | 2659 | s = g (p, va_arg (v,int)); | 
|  | 2660 | va_end (v); | 
|  | 2661 | return s; | 
|  | 2662 | } | 
|  | 2663 |  | 
|  | 2664 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 2665 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 2666 | These don't provoke an error unfortunately, instead are silently treated | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2667 | 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] | 2668 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 2669 | 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] | 2670 | that's true only with -std.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2671 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 2672 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2673 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 2674 | inside strings and character constants.  */ | 
|  | 2675 | #define FOO(x) 'x' | 
|  | 2676 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 2677 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2678 | int test (int i, double x); | 
|  | 2679 | struct s1 {int (*f) (int a);}; | 
|  | 2680 | struct s2 {int (*f) (double a);}; | 
|  | 2681 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 2682 | int argc; | 
|  | 2683 | char **argv; | 
|  | 2684 | int | 
|  | 2685 | main () | 
|  | 2686 | { | 
|  | 2687 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 2688 | ; | 
|  | 2689 | return 0; | 
|  | 2690 | } | 
|  | 2691 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2692 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 2693 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2694 | do | 
|  | 2695 | CC="$ac_save_CC $ac_arg" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2696 | rm -f conftest.$ac_objext | 
|  | 2697 | if { (ac_try="$ac_compile" | 
|  | 2698 | case "(($ac_try" in | 
|  | 2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2700 | *) ac_try_echo=$ac_try;; | 
|  | 2701 | esac | 
|  | 2702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2703 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2704 | ac_status=$? | 
|  | 2705 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2706 | rm -f conftest.er1 | 
|  | 2707 | cat conftest.err >&5 | 
|  | 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2709 | (exit $ac_status); } && | 
|  | 2710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2711 | { (case "(($ac_try" in | 
|  | 2712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2713 | *) ac_try_echo=$ac_try;; | 
|  | 2714 | esac | 
|  | 2715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2716 | (eval "$ac_try") 2>&5 | 
|  | 2717 | ac_status=$? | 
|  | 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2719 | (exit $ac_status); }; } && | 
|  | 2720 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2721 | { (case "(($ac_try" in | 
|  | 2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2723 | *) ac_try_echo=$ac_try;; | 
|  | 2724 | esac | 
|  | 2725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2726 | (eval "$ac_try") 2>&5 | 
|  | 2727 | ac_status=$? | 
|  | 2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2729 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2730 | ac_cv_prog_cc_c89=$ac_arg | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2731 | else | 
|  | 2732 | echo "$as_me: failed program was:" >&5 | 
|  | 2733 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2734 |  | 
|  | 2735 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2736 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2737 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2738 | rm -f core conftest.err conftest.$ac_objext | 
|  | 2739 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2740 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | rm -f conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2742 | CC=$ac_save_CC | 
|  | 2743 |  | 
|  | 2744 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2745 | # AC_CACHE_VAL | 
|  | 2746 | case "x$ac_cv_prog_cc_c89" in | 
|  | 2747 | x) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2748 | { echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 2749 | echo "${ECHO_T}none needed" >&6; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2750 | xno) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2751 | { echo "$as_me:$LINENO: result: unsupported" >&5 | 
|  | 2752 | echo "${ECHO_T}unsupported" >&6; } ;; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2753 | *) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2754 | CC="$CC $ac_cv_prog_cc_c89" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2755 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 2756 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2757 | esac | 
|  | 2758 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2759 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2760 | ac_ext=c | 
|  | 2761 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2765 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2766 | ac_ext=cpp | 
|  | 2767 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 2768 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2769 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2770 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 2771 | if test -z "$CXX"; then | 
|  | 2772 | if test -n "$CCC"; then | 
|  | 2773 | CXX=$CCC | 
|  | 2774 | else | 
|  | 2775 | if test -n "$ac_tool_prefix"; then | 
|  | 2776 | for ac_prog in clang++ llvm-g++ g++ | 
|  | 2777 | do | 
|  | 2778 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 2779 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 2780 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 2782 | if test "${ac_cv_prog_CXX+set}" = set; then | 
|  | 2783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2784 | else | 
|  | 2785 | if test -n "$CXX"; then | 
|  | 2786 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 2787 | else | 
|  | 2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2789 | for as_dir in $PATH | 
|  | 2790 | do | 
|  | 2791 | IFS=$as_save_IFS | 
|  | 2792 | test -z "$as_dir" && as_dir=. | 
|  | 2793 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 2795 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 2796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2797 | break 2 | 
|  | 2798 | fi | 
|  | 2799 | done | 
|  | 2800 | done | 
|  | 2801 | IFS=$as_save_IFS | 
|  | 2802 |  | 
|  | 2803 | fi | 
|  | 2804 | fi | 
|  | 2805 | CXX=$ac_cv_prog_CXX | 
|  | 2806 | if test -n "$CXX"; then | 
|  | 2807 | { echo "$as_me:$LINENO: result: $CXX" >&5 | 
|  | 2808 | echo "${ECHO_T}$CXX" >&6; } | 
|  | 2809 | else | 
|  | 2810 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2811 | echo "${ECHO_T}no" >&6; } | 
|  | 2812 | fi | 
|  | 2813 |  | 
|  | 2814 |  | 
|  | 2815 | test -n "$CXX" && break | 
|  | 2816 | done | 
|  | 2817 | fi | 
|  | 2818 | if test -z "$CXX"; then | 
|  | 2819 | ac_ct_CXX=$CXX | 
|  | 2820 | for ac_prog in clang++ llvm-g++ g++ | 
|  | 2821 | do | 
|  | 2822 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2823 | set dummy $ac_prog; ac_word=$2 | 
|  | 2824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 2826 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
|  | 2827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2828 | else | 
|  | 2829 | if test -n "$ac_ct_CXX"; then | 
|  | 2830 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 2831 | else | 
|  | 2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2833 | for as_dir in $PATH | 
|  | 2834 | do | 
|  | 2835 | IFS=$as_save_IFS | 
|  | 2836 | test -z "$as_dir" && as_dir=. | 
|  | 2837 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 2839 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 2840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2841 | break 2 | 
|  | 2842 | fi | 
|  | 2843 | done | 
|  | 2844 | done | 
|  | 2845 | IFS=$as_save_IFS | 
|  | 2846 |  | 
|  | 2847 | fi | 
|  | 2848 | fi | 
|  | 2849 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 2850 | if test -n "$ac_ct_CXX"; then | 
|  | 2851 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
|  | 2852 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | 
|  | 2853 | else | 
|  | 2854 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2855 | echo "${ECHO_T}no" >&6; } | 
|  | 2856 | fi | 
|  | 2857 |  | 
|  | 2858 |  | 
|  | 2859 | test -n "$ac_ct_CXX" && break | 
|  | 2860 | done | 
|  | 2861 |  | 
|  | 2862 | if test "x$ac_ct_CXX" = x; then | 
|  | 2863 | CXX="g++" | 
|  | 2864 | else | 
|  | 2865 | case $cross_compiling:$ac_tool_warned in | 
|  | 2866 | yes:) | 
|  | 2867 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 2868 | whose name does not start with the host triplet.  If you think this | 
|  | 2869 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 2870 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 2871 | whose name does not start with the host triplet.  If you think this | 
|  | 2872 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
|  | 2873 | ac_tool_warned=yes ;; | 
|  | 2874 | esac | 
|  | 2875 | CXX=$ac_ct_CXX | 
|  | 2876 | fi | 
|  | 2877 | fi | 
|  | 2878 |  | 
|  | 2879 | fi | 
|  | 2880 | fi | 
|  | 2881 | # Provide some information about the compiler. | 
|  | 2882 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | 
|  | 2883 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2884 | { (ac_try="$ac_compiler --version >&5" | 
|  | 2885 | case "(($ac_try" in | 
|  | 2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2887 | *) ac_try_echo=$ac_try;; | 
|  | 2888 | esac | 
|  | 2889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2890 | (eval "$ac_compiler --version >&5") 2>&5 | 
|  | 2891 | ac_status=$? | 
|  | 2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2893 | (exit $ac_status); } | 
|  | 2894 | { (ac_try="$ac_compiler -v >&5" | 
|  | 2895 | case "(($ac_try" in | 
|  | 2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2897 | *) ac_try_echo=$ac_try;; | 
|  | 2898 | esac | 
|  | 2899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2900 | (eval "$ac_compiler -v >&5") 2>&5 | 
|  | 2901 | ac_status=$? | 
|  | 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2903 | (exit $ac_status); } | 
|  | 2904 | { (ac_try="$ac_compiler -V >&5" | 
|  | 2905 | case "(($ac_try" in | 
|  | 2906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2907 | *) ac_try_echo=$ac_try;; | 
|  | 2908 | esac | 
|  | 2909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2910 | (eval "$ac_compiler -V >&5") 2>&5 | 
|  | 2911 | ac_status=$? | 
|  | 2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2913 | (exit $ac_status); } | 
|  | 2914 |  | 
|  | 2915 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 2916 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | 
|  | 2917 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
|  | 2918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2919 | else | 
|  | 2920 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2921 | /* confdefs.h.  */ | 
|  | 2922 | _ACEOF | 
|  | 2923 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2924 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2925 | /* end confdefs.h.  */ | 
|  | 2926 |  | 
|  | 2927 | int | 
|  | 2928 | main () | 
|  | 2929 | { | 
|  | 2930 | #ifndef __GNUC__ | 
|  | 2931 | choke me | 
|  | 2932 | #endif | 
|  | 2933 |  | 
|  | 2934 | ; | 
|  | 2935 | return 0; | 
|  | 2936 | } | 
|  | 2937 | _ACEOF | 
|  | 2938 | rm -f conftest.$ac_objext | 
|  | 2939 | if { (ac_try="$ac_compile" | 
|  | 2940 | case "(($ac_try" in | 
|  | 2941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2942 | *) ac_try_echo=$ac_try;; | 
|  | 2943 | esac | 
|  | 2944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2945 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2946 | ac_status=$? | 
|  | 2947 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2948 | rm -f conftest.er1 | 
|  | 2949 | cat conftest.err >&5 | 
|  | 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2951 | (exit $ac_status); } && | 
|  | 2952 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 2953 | { (case "(($ac_try" in | 
|  | 2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2955 | *) ac_try_echo=$ac_try;; | 
|  | 2956 | esac | 
|  | 2957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2958 | (eval "$ac_try") 2>&5 | 
|  | 2959 | ac_status=$? | 
|  | 2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2961 | (exit $ac_status); }; } && | 
|  | 2962 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2963 | { (case "(($ac_try" in | 
|  | 2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2965 | *) ac_try_echo=$ac_try;; | 
|  | 2966 | esac | 
|  | 2967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2968 | (eval "$ac_try") 2>&5 | 
|  | 2969 | ac_status=$? | 
|  | 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2971 | (exit $ac_status); }; }; then | 
|  | 2972 | ac_compiler_gnu=yes | 
|  | 2973 | else | 
|  | 2974 | echo "$as_me: failed program was:" >&5 | 
|  | 2975 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2976 |  | 
|  | 2977 | ac_compiler_gnu=no | 
|  | 2978 | fi | 
|  | 2979 |  | 
|  | 2980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2981 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 2982 |  | 
|  | 2983 | fi | 
|  | 2984 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 2985 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | 
|  | 2986 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 2987 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 2988 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 2989 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
|  | 2990 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | 
|  | 2991 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
|  | 2992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2993 | else | 
|  | 2994 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
|  | 2995 | ac_cxx_werror_flag=yes | 
|  | 2996 | ac_cv_prog_cxx_g=no | 
|  | 2997 | CXXFLAGS="-g" | 
|  | 2998 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2999 | /* confdefs.h.  */ | 
|  | 3000 | _ACEOF | 
|  | 3001 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3002 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3003 | /* end confdefs.h.  */ | 
|  | 3004 |  | 
|  | 3005 | int | 
|  | 3006 | main () | 
|  | 3007 | { | 
|  | 3008 |  | 
|  | 3009 | ; | 
|  | 3010 | return 0; | 
|  | 3011 | } | 
|  | 3012 | _ACEOF | 
|  | 3013 | rm -f conftest.$ac_objext | 
|  | 3014 | if { (ac_try="$ac_compile" | 
|  | 3015 | case "(($ac_try" in | 
|  | 3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3017 | *) ac_try_echo=$ac_try;; | 
|  | 3018 | esac | 
|  | 3019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3020 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 3021 | ac_status=$? | 
|  | 3022 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3023 | rm -f conftest.er1 | 
|  | 3024 | cat conftest.err >&5 | 
|  | 3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3026 | (exit $ac_status); } && | 
|  | 3027 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 3028 | { (case "(($ac_try" in | 
|  | 3029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3030 | *) ac_try_echo=$ac_try;; | 
|  | 3031 | esac | 
|  | 3032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3033 | (eval "$ac_try") 2>&5 | 
|  | 3034 | ac_status=$? | 
|  | 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3036 | (exit $ac_status); }; } && | 
|  | 3037 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3038 | { (case "(($ac_try" in | 
|  | 3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3040 | *) ac_try_echo=$ac_try;; | 
|  | 3041 | esac | 
|  | 3042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3043 | (eval "$ac_try") 2>&5 | 
|  | 3044 | ac_status=$? | 
|  | 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3046 | (exit $ac_status); }; }; then | 
|  | 3047 | ac_cv_prog_cxx_g=yes | 
|  | 3048 | else | 
|  | 3049 | echo "$as_me: failed program was:" >&5 | 
|  | 3050 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3051 |  | 
|  | 3052 | CXXFLAGS="" | 
|  | 3053 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3054 | /* confdefs.h.  */ | 
|  | 3055 | _ACEOF | 
|  | 3056 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3057 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3058 | /* end confdefs.h.  */ | 
|  | 3059 |  | 
|  | 3060 | int | 
|  | 3061 | main () | 
|  | 3062 | { | 
|  | 3063 |  | 
|  | 3064 | ; | 
|  | 3065 | return 0; | 
|  | 3066 | } | 
|  | 3067 | _ACEOF | 
|  | 3068 | rm -f conftest.$ac_objext | 
|  | 3069 | if { (ac_try="$ac_compile" | 
|  | 3070 | case "(($ac_try" in | 
|  | 3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3072 | *) ac_try_echo=$ac_try;; | 
|  | 3073 | esac | 
|  | 3074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3075 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 3076 | ac_status=$? | 
|  | 3077 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3078 | rm -f conftest.er1 | 
|  | 3079 | cat conftest.err >&5 | 
|  | 3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3081 | (exit $ac_status); } && | 
|  | 3082 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 3083 | { (case "(($ac_try" in | 
|  | 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3085 | *) ac_try_echo=$ac_try;; | 
|  | 3086 | esac | 
|  | 3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3088 | (eval "$ac_try") 2>&5 | 
|  | 3089 | ac_status=$? | 
|  | 3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3091 | (exit $ac_status); }; } && | 
|  | 3092 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3093 | { (case "(($ac_try" in | 
|  | 3094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3095 | *) ac_try_echo=$ac_try;; | 
|  | 3096 | esac | 
|  | 3097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3098 | (eval "$ac_try") 2>&5 | 
|  | 3099 | ac_status=$? | 
|  | 3100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3101 | (exit $ac_status); }; }; then | 
|  | 3102 | : | 
|  | 3103 | else | 
|  | 3104 | echo "$as_me: failed program was:" >&5 | 
|  | 3105 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3106 |  | 
|  | 3107 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 3108 | CXXFLAGS="-g" | 
|  | 3109 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3110 | /* confdefs.h.  */ | 
|  | 3111 | _ACEOF | 
|  | 3112 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3113 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3114 | /* end confdefs.h.  */ | 
|  | 3115 |  | 
|  | 3116 | int | 
|  | 3117 | main () | 
|  | 3118 | { | 
|  | 3119 |  | 
|  | 3120 | ; | 
|  | 3121 | return 0; | 
|  | 3122 | } | 
|  | 3123 | _ACEOF | 
|  | 3124 | rm -f conftest.$ac_objext | 
|  | 3125 | if { (ac_try="$ac_compile" | 
|  | 3126 | case "(($ac_try" in | 
|  | 3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3128 | *) ac_try_echo=$ac_try;; | 
|  | 3129 | esac | 
|  | 3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3131 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 3132 | ac_status=$? | 
|  | 3133 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3134 | rm -f conftest.er1 | 
|  | 3135 | cat conftest.err >&5 | 
|  | 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3137 | (exit $ac_status); } && | 
|  | 3138 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 3139 | { (case "(($ac_try" in | 
|  | 3140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3141 | *) ac_try_echo=$ac_try;; | 
|  | 3142 | esac | 
|  | 3143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3144 | (eval "$ac_try") 2>&5 | 
|  | 3145 | ac_status=$? | 
|  | 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3147 | (exit $ac_status); }; } && | 
|  | 3148 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3149 | { (case "(($ac_try" in | 
|  | 3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3151 | *) ac_try_echo=$ac_try;; | 
|  | 3152 | esac | 
|  | 3153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3154 | (eval "$ac_try") 2>&5 | 
|  | 3155 | ac_status=$? | 
|  | 3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3157 | (exit $ac_status); }; }; then | 
|  | 3158 | ac_cv_prog_cxx_g=yes | 
|  | 3159 | else | 
|  | 3160 | echo "$as_me: failed program was:" >&5 | 
|  | 3161 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3162 |  | 
|  | 3163 |  | 
|  | 3164 | fi | 
|  | 3165 |  | 
|  | 3166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3167 | fi | 
|  | 3168 |  | 
|  | 3169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3170 | fi | 
|  | 3171 |  | 
|  | 3172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3173 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 3174 | fi | 
|  | 3175 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 3176 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | 
|  | 3177 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 3178 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 3179 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 3180 | if test "$GXX" = yes; then | 
|  | 3181 | CXXFLAGS="-g -O2" | 
|  | 3182 | else | 
|  | 3183 | CXXFLAGS="-g" | 
|  | 3184 | fi | 
|  | 3185 | else | 
|  | 3186 | if test "$GXX" = yes; then | 
|  | 3187 | CXXFLAGS="-O2" | 
|  | 3188 | else | 
|  | 3189 | CXXFLAGS= | 
|  | 3190 | fi | 
|  | 3191 | fi | 
|  | 3192 | ac_ext=c | 
|  | 3193 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3197 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3198 | ac_ext=c | 
|  | 3199 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3203 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
|  | 3204 | 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] | 3205 | # On Suns, sometimes $CPP names a directory. | 
|  | 3206 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 3207 | CPP= | 
|  | 3208 | fi | 
|  | 3209 | if test -z "$CPP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3210 | if test "${ac_cv_prog_CPP+set}" = set; then | 
|  | 3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3212 | else | 
|  | 3213 | # Double quotes because CPP needs to be expanded | 
|  | 3214 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 3215 | do | 
|  | 3216 | ac_preproc_ok=false | 
|  | 3217 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3218 | do | 
|  | 3219 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3220 | # with a fresh cross-compiler works. | 
|  | 3221 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3222 | # <limits.h> exists even on freestanding compilers. | 
|  | 3223 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3224 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3225 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3226 | /* confdefs.h.  */ | 
|  | 3227 | _ACEOF | 
|  | 3228 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3229 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3230 | /* end confdefs.h.  */ | 
|  | 3231 | #ifdef __STDC__ | 
|  | 3232 | # include <limits.h> | 
|  | 3233 | #else | 
|  | 3234 | # include <assert.h> | 
|  | 3235 | #endif | 
|  | 3236 | Syntax error | 
|  | 3237 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3238 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3239 | case "(($ac_try" in | 
|  | 3240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3241 | *) ac_try_echo=$ac_try;; | 
|  | 3242 | esac | 
|  | 3243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3244 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3245 | ac_status=$? | 
|  | 3246 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3247 | rm -f conftest.er1 | 
|  | 3248 | cat conftest.err >&5 | 
|  | 3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3250 | (exit $ac_status); } >/dev/null; then | 
|  | 3251 | if test -s conftest.err; then | 
|  | 3252 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3254 | else | 
|  | 3255 | ac_cpp_err= | 
|  | 3256 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3257 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3258 | ac_cpp_err=yes | 
|  | 3259 | fi | 
|  | 3260 | if test -z "$ac_cpp_err"; then | 
|  | 3261 | : | 
|  | 3262 | else | 
|  | 3263 | echo "$as_me: failed program was:" >&5 | 
|  | 3264 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3265 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3266 | # Broken: fails on valid input. | 
|  | 3267 | continue | 
|  | 3268 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3269 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3270 | rm -f conftest.err conftest.$ac_ext | 
|  | 3271 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3272 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3273 | # can be detected and how. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3274 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3275 | /* confdefs.h.  */ | 
|  | 3276 | _ACEOF | 
|  | 3277 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3278 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3279 | /* end confdefs.h.  */ | 
|  | 3280 | #include <ac_nonexistent.h> | 
|  | 3281 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3282 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3283 | case "(($ac_try" in | 
|  | 3284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3285 | *) ac_try_echo=$ac_try;; | 
|  | 3286 | esac | 
|  | 3287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3288 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3289 | ac_status=$? | 
|  | 3290 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3291 | rm -f conftest.er1 | 
|  | 3292 | cat conftest.err >&5 | 
|  | 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3294 | (exit $ac_status); } >/dev/null; then | 
|  | 3295 | if test -s conftest.err; then | 
|  | 3296 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3297 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3298 | else | 
|  | 3299 | ac_cpp_err= | 
|  | 3300 | fi | 
|  | 3301 | else | 
|  | 3302 | ac_cpp_err=yes | 
|  | 3303 | fi | 
|  | 3304 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3305 | # Broken: success on invalid input. | 
|  | 3306 | continue | 
|  | 3307 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3308 | echo "$as_me: failed program was:" >&5 | 
|  | 3309 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3310 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3311 | # Passes both tests. | 
|  | 3312 | ac_preproc_ok=: | 
|  | 3313 | break | 
|  | 3314 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3315 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3316 | rm -f conftest.err conftest.$ac_ext | 
|  | 3317 |  | 
|  | 3318 | done | 
|  | 3319 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3320 | rm -f conftest.err conftest.$ac_ext | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3321 | if $ac_preproc_ok; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | break | 
|  | 3323 | fi | 
|  | 3324 |  | 
|  | 3325 | done | 
|  | 3326 | ac_cv_prog_CPP=$CPP | 
|  | 3327 |  | 
|  | 3328 | fi | 
|  | 3329 | CPP=$ac_cv_prog_CPP | 
|  | 3330 | else | 
|  | 3331 | ac_cv_prog_CPP=$CPP | 
|  | 3332 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3333 | { echo "$as_me:$LINENO: result: $CPP" >&5 | 
|  | 3334 | echo "${ECHO_T}$CPP" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3335 | ac_preproc_ok=false | 
|  | 3336 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3337 | do | 
|  | 3338 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3339 | # with a fresh cross-compiler works. | 
|  | 3340 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3341 | # <limits.h> exists even on freestanding compilers. | 
|  | 3342 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3343 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3344 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3345 | /* confdefs.h.  */ | 
|  | 3346 | _ACEOF | 
|  | 3347 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3348 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3349 | /* end confdefs.h.  */ | 
|  | 3350 | #ifdef __STDC__ | 
|  | 3351 | # include <limits.h> | 
|  | 3352 | #else | 
|  | 3353 | # include <assert.h> | 
|  | 3354 | #endif | 
|  | 3355 | Syntax error | 
|  | 3356 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3357 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3358 | case "(($ac_try" in | 
|  | 3359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3360 | *) ac_try_echo=$ac_try;; | 
|  | 3361 | esac | 
|  | 3362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3364 | ac_status=$? | 
|  | 3365 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3366 | rm -f conftest.er1 | 
|  | 3367 | cat conftest.err >&5 | 
|  | 3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3369 | (exit $ac_status); } >/dev/null; then | 
|  | 3370 | if test -s conftest.err; then | 
|  | 3371 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3372 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3373 | else | 
|  | 3374 | ac_cpp_err= | 
|  | 3375 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3376 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3377 | ac_cpp_err=yes | 
|  | 3378 | fi | 
|  | 3379 | if test -z "$ac_cpp_err"; then | 
|  | 3380 | : | 
|  | 3381 | else | 
|  | 3382 | echo "$as_me: failed program was:" >&5 | 
|  | 3383 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3384 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3385 | # Broken: fails on valid input. | 
|  | 3386 | continue | 
|  | 3387 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3388 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3389 | rm -f conftest.err conftest.$ac_ext | 
|  | 3390 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3391 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3392 | # can be detected and how. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3393 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3394 | /* confdefs.h.  */ | 
|  | 3395 | _ACEOF | 
|  | 3396 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3397 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3398 | /* end confdefs.h.  */ | 
|  | 3399 | #include <ac_nonexistent.h> | 
|  | 3400 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3401 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3402 | case "(($ac_try" in | 
|  | 3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3404 | *) ac_try_echo=$ac_try;; | 
|  | 3405 | esac | 
|  | 3406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3408 | ac_status=$? | 
|  | 3409 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3410 | rm -f conftest.er1 | 
|  | 3411 | cat conftest.err >&5 | 
|  | 3412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3413 | (exit $ac_status); } >/dev/null; then | 
|  | 3414 | if test -s conftest.err; then | 
|  | 3415 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3417 | else | 
|  | 3418 | ac_cpp_err= | 
|  | 3419 | fi | 
|  | 3420 | else | 
|  | 3421 | ac_cpp_err=yes | 
|  | 3422 | fi | 
|  | 3423 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3424 | # Broken: success on invalid input. | 
|  | 3425 | continue | 
|  | 3426 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3427 | echo "$as_me: failed program was:" >&5 | 
|  | 3428 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3429 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3430 | # Passes both tests. | 
|  | 3431 | ac_preproc_ok=: | 
|  | 3432 | break | 
|  | 3433 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3434 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3435 | rm -f conftest.err conftest.$ac_ext | 
|  | 3436 |  | 
|  | 3437 | done | 
|  | 3438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3439 | rm -f conftest.err conftest.$ac_ext | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3440 | if $ac_preproc_ok; then | 
|  | 3441 | : | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3442 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3443 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3444 | See \`config.log' for more details." >&5 | 
|  | 3445 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3446 | See \`config.log' for more details." >&2;} | 
|  | 3447 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3448 | fi | 
|  | 3449 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3450 | ac_ext=c | 
|  | 3451 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3455 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3456 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3457 |  | 
|  | 3458 |  | 
|  | 3459 | if test -d ${srcdir}/projects/llvm-gcc ; then | 
|  | 3460 | subdirs="$subdirs projects/llvm-gcc" | 
|  | 3461 |  | 
|  | 3462 | fi | 
|  | 3463 |  | 
|  | 3464 | if test -d ${srcdir}/projects/test-suite ; then | 
|  | 3465 | subdirs="$subdirs projects/test-suite" | 
|  | 3466 |  | 
|  | 3467 | fi | 
|  | 3468 |  | 
|  | 3469 | if test -d ${srcdir}/projects/llvm-test ; then | 
|  | 3470 | subdirs="$subdirs projects/llvm-test" | 
|  | 3471 |  | 
|  | 3472 | fi | 
|  | 3473 |  | 
|  | 3474 | if test -d ${srcdir}/projects/poolalloc ; then | 
|  | 3475 | subdirs="$subdirs projects/poolalloc" | 
|  | 3476 |  | 
|  | 3477 | fi | 
|  | 3478 |  | 
|  | 3479 | if test -d ${srcdir}/projects/llvm-poolalloc ; then | 
|  | 3480 | subdirs="$subdirs projects/llvm-poolalloc" | 
|  | 3481 |  | 
|  | 3482 | fi | 
|  | 3483 |  | 
|  | 3484 | for i in `ls ${srcdir}/projects` | 
|  | 3485 | do | 
|  | 3486 | if test -d ${srcdir}/projects/${i} ; then | 
|  | 3487 | case ${i} in | 
|  | 3488 | sample)       subdirs="$subdirs projects/sample" | 
|  | 3489 | ;; | 
|  | 3490 | privbracket)  subdirs="$subdirs projects/privbracket" | 
|  | 3491 | ;; | 
|  | 3492 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" | 
|  | 3493 | ;; | 
|  | 3494 | llvm-reopt)   subdirs="$subdirs projects/llvm-reopt" | 
|  | 3495 | ;; | 
|  | 3496 | llvm-java)    subdirs="$subdirs projects/llvm-java" | 
|  | 3497 | ;; | 
|  | 3498 | llvm-tv)      subdirs="$subdirs projects/llvm-tv" | 
|  | 3499 | ;; | 
|  | 3500 | safecode)     subdirs="$subdirs projects/safecode" | 
|  | 3501 | ;; | 
|  | 3502 | llvm-kernel)  subdirs="$subdirs projects/llvm-kernel" | 
|  | 3503 | ;; | 
| Daniel Dunbar | 7ce849d | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3504 | compiler-rt)       ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3505 | llvm-gcc)       ;; | 
|  | 3506 | test-suite)     ;; | 
|  | 3507 | llvm-test)      ;; | 
|  | 3508 | poolalloc)      ;; | 
|  | 3509 | llvm-poolalloc) ;; | 
|  | 3510 | *) | 
|  | 3511 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
|  | 3512 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} | 
|  | 3513 | ;; | 
|  | 3514 | esac | 
|  | 3515 | fi | 
|  | 3516 | done | 
|  | 3517 |  | 
|  | 3518 | # Check whether --enable-polly was given. | 
|  | 3519 | if test "${enable_polly+set}" = set; then | 
|  | 3520 | enableval=$enable_polly; | 
|  | 3521 | else | 
|  | 3522 | enableval=default | 
|  | 3523 | fi | 
|  | 3524 |  | 
|  | 3525 | case "$enableval" in | 
|  | 3526 | yes) ENABLE_POLLY=1 | 
|  | 3527 | ;; | 
|  | 3528 | no)  ENABLE_POLLY=0 | 
|  | 3529 | ;; | 
|  | 3530 | default) ENABLE_POLLY=1 | 
|  | 3531 | ;; | 
|  | 3532 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 | 
|  | 3533 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} | 
|  | 3534 | { (exit 1); exit 1; }; } ;; | 
|  | 3535 | esac | 
|  | 3536 |  | 
|  | 3537 |  | 
|  | 3538 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then | 
|  | 3539 | LLVM_HAS_POLLY=1 | 
|  | 3540 |  | 
|  | 3541 | subdirs="$subdirs tools/polly" | 
|  | 3542 |  | 
|  | 3543 | fi | 
|  | 3544 |  | 
|  | 3545 |  | 
|  | 3546 | # Make sure we can run config.sub. | 
|  | 3547 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 3548 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | 
|  | 3549 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | 
|  | 3550 | { (exit 1); exit 1; }; } | 
|  | 3551 |  | 
|  | 3552 | { echo "$as_me:$LINENO: checking build system type" >&5 | 
|  | 3553 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | 
|  | 3554 | if test "${ac_cv_build+set}" = set; then | 
|  | 3555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3556 | else | 
|  | 3557 | ac_build_alias=$build_alias | 
|  | 3558 | test "x$ac_build_alias" = x && | 
|  | 3559 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 3560 | test "x$ac_build_alias" = x && | 
|  | 3561 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
|  | 3562 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
|  | 3563 | { (exit 1); exit 1; }; } | 
|  | 3564 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 3565 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | 
|  | 3566 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | 
|  | 3567 | { (exit 1); exit 1; }; } | 
|  | 3568 |  | 
|  | 3569 | fi | 
|  | 3570 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
|  | 3571 | echo "${ECHO_T}$ac_cv_build" >&6; } | 
|  | 3572 | case $ac_cv_build in | 
|  | 3573 | *-*-*) ;; | 
|  | 3574 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | 
|  | 3575 | echo "$as_me: error: invalid value of canonical build" >&2;} | 
|  | 3576 | { (exit 1); exit 1; }; };; | 
|  | 3577 | esac | 
|  | 3578 | build=$ac_cv_build | 
|  | 3579 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3580 | set x $ac_cv_build | 
|  | 3581 | shift | 
|  | 3582 | build_cpu=$1 | 
|  | 3583 | build_vendor=$2 | 
|  | 3584 | shift; shift | 
|  | 3585 | # Remember, the first character of IFS is used to create $*, | 
|  | 3586 | # except with old shells: | 
|  | 3587 | build_os=$* | 
|  | 3588 | IFS=$ac_save_IFS | 
|  | 3589 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 3590 |  | 
|  | 3591 |  | 
|  | 3592 | { echo "$as_me:$LINENO: checking host system type" >&5 | 
|  | 3593 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | 
|  | 3594 | if test "${ac_cv_host+set}" = set; then | 
|  | 3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3596 | else | 
|  | 3597 | if test "x$host_alias" = x; then | 
|  | 3598 | ac_cv_host=$ac_cv_build | 
|  | 3599 | else | 
|  | 3600 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 3601 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | 
|  | 3602 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | 
|  | 3603 | { (exit 1); exit 1; }; } | 
|  | 3604 | fi | 
|  | 3605 |  | 
|  | 3606 | fi | 
|  | 3607 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
|  | 3608 | echo "${ECHO_T}$ac_cv_host" >&6; } | 
|  | 3609 | case $ac_cv_host in | 
|  | 3610 | *-*-*) ;; | 
|  | 3611 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | 
|  | 3612 | echo "$as_me: error: invalid value of canonical host" >&2;} | 
|  | 3613 | { (exit 1); exit 1; }; };; | 
|  | 3614 | esac | 
|  | 3615 | host=$ac_cv_host | 
|  | 3616 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3617 | set x $ac_cv_host | 
|  | 3618 | shift | 
|  | 3619 | host_cpu=$1 | 
|  | 3620 | host_vendor=$2 | 
|  | 3621 | shift; shift | 
|  | 3622 | # Remember, the first character of IFS is used to create $*, | 
|  | 3623 | # except with old shells: | 
|  | 3624 | host_os=$* | 
|  | 3625 | IFS=$ac_save_IFS | 
|  | 3626 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 3627 |  | 
|  | 3628 |  | 
|  | 3629 | { echo "$as_me:$LINENO: checking target system type" >&5 | 
|  | 3630 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | 
|  | 3631 | if test "${ac_cv_target+set}" = set; then | 
|  | 3632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3633 | else | 
|  | 3634 | if test "x$target_alias" = x; then | 
|  | 3635 | ac_cv_target=$ac_cv_host | 
|  | 3636 | else | 
|  | 3637 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
|  | 3638 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | 
|  | 3639 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | 
|  | 3640 | { (exit 1); exit 1; }; } | 
|  | 3641 | fi | 
|  | 3642 |  | 
|  | 3643 | fi | 
|  | 3644 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
|  | 3645 | echo "${ECHO_T}$ac_cv_target" >&6; } | 
|  | 3646 | case $ac_cv_target in | 
|  | 3647 | *-*-*) ;; | 
|  | 3648 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | 
|  | 3649 | echo "$as_me: error: invalid value of canonical target" >&2;} | 
|  | 3650 | { (exit 1); exit 1; }; };; | 
|  | 3651 | esac | 
|  | 3652 | target=$ac_cv_target | 
|  | 3653 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3654 | set x $ac_cv_target | 
|  | 3655 | shift | 
|  | 3656 | target_cpu=$1 | 
|  | 3657 | target_vendor=$2 | 
|  | 3658 | shift; shift | 
|  | 3659 | # Remember, the first character of IFS is used to create $*, | 
|  | 3660 | # except with old shells: | 
|  | 3661 | target_os=$* | 
|  | 3662 | IFS=$ac_save_IFS | 
|  | 3663 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 3664 |  | 
|  | 3665 |  | 
|  | 3666 | # The aliases save the names the user supplied, while $host etc. | 
|  | 3667 | # will get canonicalized. | 
|  | 3668 | test -n "$target_alias" && | 
|  | 3669 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 3670 | NONENONEs,x,x, && | 
|  | 3671 | program_prefix=${target_alias}- | 
|  | 3672 |  | 
|  | 3673 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 | 
|  | 3674 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } | 
|  | 3675 | if test "${llvm_cv_os_type+set}" = set; then | 
|  | 3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3677 | else | 
|  | 3678 | case $host in | 
|  | 3679 | *-*-aix*) | 
|  | 3680 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3681 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3682 | llvm_cv_os_type="AIX" | 
|  | 3683 | llvm_cv_platform_type="Unix" ;; | 
|  | 3684 | *-*-irix*) | 
|  | 3685 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3686 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3687 | llvm_cv_os_type="IRIX" | 
|  | 3688 | llvm_cv_platform_type="Unix" ;; | 
|  | 3689 | *-*-cygwin*) | 
|  | 3690 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3691 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3692 | llvm_cv_os_type="Cygwin" | 
|  | 3693 | llvm_cv_platform_type="Unix" ;; | 
|  | 3694 | *-*-darwin*) | 
|  | 3695 | llvm_cv_link_all_option="-Wl,-all_load" | 
|  | 3696 | llvm_cv_no_link_all_option="-Wl,-noall_load" | 
|  | 3697 | llvm_cv_os_type="Darwin" | 
|  | 3698 | llvm_cv_platform_type="Unix" ;; | 
|  | 3699 | *-*-minix*) | 
|  | 3700 | llvm_cv_link_all_option="-Wl,-all_load" | 
|  | 3701 | llvm_cv_no_link_all_option="-Wl,-noall_load" | 
|  | 3702 | llvm_cv_os_type="Minix" | 
|  | 3703 | llvm_cv_platform_type="Unix" ;; | 
| Rafael Espindola | 4977edd | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3704 | *-*-freebsd* | *-*-kfreebsd-gnu) | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3705 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3706 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3707 | llvm_cv_os_type="FreeBSD" | 
|  | 3708 | llvm_cv_platform_type="Unix" ;; | 
|  | 3709 | *-*-openbsd*) | 
|  | 3710 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3711 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3712 | llvm_cv_os_type="OpenBSD" | 
|  | 3713 | llvm_cv_platform_type="Unix" ;; | 
|  | 3714 | *-*-netbsd*) | 
|  | 3715 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3716 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3717 | llvm_cv_os_type="NetBSD" | 
|  | 3718 | llvm_cv_platform_type="Unix" ;; | 
|  | 3719 | *-*-dragonfly*) | 
|  | 3720 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3721 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3722 | llvm_cv_os_type="DragonFly" | 
|  | 3723 | llvm_cv_platform_type="Unix" ;; | 
|  | 3724 | *-*-hpux*) | 
|  | 3725 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3726 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3727 | llvm_cv_os_type="HP-UX" | 
|  | 3728 | llvm_cv_platform_type="Unix" ;; | 
|  | 3729 | *-*-interix*) | 
|  | 3730 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3731 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3732 | llvm_cv_os_type="Interix" | 
|  | 3733 | llvm_cv_platform_type="Unix" ;; | 
|  | 3734 | *-*-linux*) | 
|  | 3735 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3736 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3737 | llvm_cv_os_type="Linux" | 
|  | 3738 | llvm_cv_platform_type="Unix" ;; | 
| Rafael Espindola | 4977edd | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3739 | *-*-gnu*) | 
|  | 3740 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3741 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3742 | llvm_cv_os_type="GNU" | 
|  | 3743 | llvm_cv_platform_type="Unix" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3744 | *-*-solaris*) | 
|  | 3745 | llvm_cv_link_all_option="-Wl,-z,allextract" | 
|  | 3746 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" | 
|  | 3747 | llvm_cv_os_type="SunOS" | 
|  | 3748 | llvm_cv_platform_type="Unix" ;; | 
|  | 3749 | *-*-auroraux*) | 
|  | 3750 | llvm_cv_link_all_option="-Wl,-z,allextract" | 
|  | 3751 | llvm_cv_link_all_option="-Wl,-z,defaultextract" | 
|  | 3752 | llvm_cv_os_type="AuroraUX" | 
|  | 3753 | llvm_cv_platform_type="Unix" ;; | 
|  | 3754 | *-*-win32*) | 
|  | 3755 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3756 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3757 | llvm_cv_os_type="Win32" | 
|  | 3758 | llvm_cv_platform_type="Win32" ;; | 
|  | 3759 | *-*-mingw*) | 
|  | 3760 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3761 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3762 | llvm_cv_os_type="MingW" | 
|  | 3763 | llvm_cv_platform_type="Win32" ;; | 
|  | 3764 | *-*-haiku*) | 
|  | 3765 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3766 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3767 | llvm_cv_os_type="Haiku" | 
|  | 3768 | llvm_cv_platform_type="Unix" ;; | 
|  | 3769 | *-unknown-eabi*) | 
|  | 3770 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3771 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3772 | llvm_cv_os_type="Freestanding" | 
|  | 3773 | llvm_cv_platform_type="Unix" ;; | 
|  | 3774 | *-unknown-elf*) | 
|  | 3775 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3776 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3777 | llvm_cv_os_type="Freestanding" | 
|  | 3778 | llvm_cv_platform_type="Unix" ;; | 
|  | 3779 | *) | 
|  | 3780 | llvm_cv_link_all_option="" | 
|  | 3781 | llvm_cv_no_link_all_option="" | 
|  | 3782 | llvm_cv_os_type="Unknown" | 
|  | 3783 | llvm_cv_platform_type="Unknown" ;; | 
|  | 3784 | esac | 
|  | 3785 | fi | 
|  | 3786 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
|  | 3787 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } | 
|  | 3788 |  | 
|  | 3789 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 | 
|  | 3790 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } | 
|  | 3791 | if test "${llvm_cv_target_os_type+set}" = set; then | 
|  | 3792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3793 | else | 
|  | 3794 | case $target in | 
|  | 3795 | *-*-aix*) | 
|  | 3796 | llvm_cv_target_os_type="AIX" ;; | 
|  | 3797 | *-*-irix*) | 
|  | 3798 | llvm_cv_target_os_type="IRIX" ;; | 
|  | 3799 | *-*-cygwin*) | 
|  | 3800 | llvm_cv_target_os_type="Cygwin" ;; | 
|  | 3801 | *-*-darwin*) | 
|  | 3802 | llvm_cv_target_os_type="Darwin" ;; | 
|  | 3803 | *-*-minix*) | 
|  | 3804 | llvm_cv_target_os_type="Minix" ;; | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 3805 | *-*-freebsd* | *-*-kfreebsd-gnu) | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3806 | llvm_cv_target_os_type="FreeBSD" ;; | 
|  | 3807 | *-*-openbsd*) | 
|  | 3808 | llvm_cv_target_os_type="OpenBSD" ;; | 
|  | 3809 | *-*-netbsd*) | 
|  | 3810 | llvm_cv_target_os_type="NetBSD" ;; | 
|  | 3811 | *-*-dragonfly*) | 
|  | 3812 | llvm_cv_target_os_type="DragonFly" ;; | 
|  | 3813 | *-*-hpux*) | 
|  | 3814 | llvm_cv_target_os_type="HP-UX" ;; | 
|  | 3815 | *-*-interix*) | 
|  | 3816 | llvm_cv_target_os_type="Interix" ;; | 
|  | 3817 | *-*-linux*) | 
|  | 3818 | llvm_cv_target_os_type="Linux" ;; | 
| Sylvestre Ledru | e8235fe | 2012-04-05 19:34:15 +0000 | [diff] [blame] | 3819 | *-*-gnu*) | 
|  | 3820 | llvm_cv_target_os_type="GNU" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3821 | *-*-solaris*) | 
|  | 3822 | llvm_cv_target_os_type="SunOS" ;; | 
|  | 3823 | *-*-auroraux*) | 
|  | 3824 | llvm_cv_target_os_type="AuroraUX" ;; | 
|  | 3825 | *-*-win32*) | 
|  | 3826 | llvm_cv_target_os_type="Win32" ;; | 
|  | 3827 | *-*-mingw*) | 
|  | 3828 | llvm_cv_target_os_type="MingW" ;; | 
|  | 3829 | *-*-haiku*) | 
|  | 3830 | llvm_cv_target_os_type="Haiku" ;; | 
|  | 3831 | *-*-rtems*) | 
|  | 3832 | llvm_cv_target_os_type="RTEMS" ;; | 
|  | 3833 | *-*-nacl*) | 
|  | 3834 | llvm_cv_target_os_type="NativeClient" ;; | 
|  | 3835 | *-unknown-eabi*) | 
|  | 3836 | llvm_cv_target_os_type="Freestanding" ;; | 
|  | 3837 | *) | 
|  | 3838 | llvm_cv_target_os_type="Unknown" ;; | 
|  | 3839 | esac | 
|  | 3840 | fi | 
|  | 3841 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 | 
|  | 3842 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } | 
|  | 3843 |  | 
|  | 3844 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
|  | 3845 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
|  | 3846 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} | 
|  | 3847 | { (exit 1); exit 1; }; } | 
|  | 3848 | fi | 
|  | 3849 |  | 
|  | 3850 | OS=$llvm_cv_os_type | 
|  | 3851 |  | 
|  | 3852 | HOST_OS=$llvm_cv_os_type | 
|  | 3853 |  | 
|  | 3854 | TARGET_OS=$llvm_cv_target_os_type | 
|  | 3855 |  | 
|  | 3856 |  | 
|  | 3857 | LINKALL=$llvm_cv_link_all_option | 
|  | 3858 |  | 
|  | 3859 | NOLINKALL=$llvm_cv_no_link_all_option | 
|  | 3860 |  | 
|  | 3861 |  | 
|  | 3862 | case $llvm_cv_platform_type in | 
|  | 3863 | Unix) | 
|  | 3864 |  | 
|  | 3865 | cat >>confdefs.h <<\_ACEOF | 
|  | 3866 | #define LLVM_ON_UNIX 1 | 
|  | 3867 | _ACEOF | 
|  | 3868 |  | 
|  | 3869 | LLVM_ON_UNIX=1 | 
|  | 3870 |  | 
|  | 3871 | LLVM_ON_WIN32=0 | 
|  | 3872 |  | 
|  | 3873 | ;; | 
|  | 3874 | Win32) | 
|  | 3875 |  | 
|  | 3876 | cat >>confdefs.h <<\_ACEOF | 
|  | 3877 | #define LLVM_ON_WIN32 1 | 
|  | 3878 | _ACEOF | 
|  | 3879 |  | 
|  | 3880 | LLVM_ON_UNIX=0 | 
|  | 3881 |  | 
|  | 3882 | LLVM_ON_WIN32=1 | 
|  | 3883 |  | 
|  | 3884 | ;; | 
|  | 3885 | esac | 
|  | 3886 |  | 
|  | 3887 | { echo "$as_me:$LINENO: checking target architecture" >&5 | 
|  | 3888 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } | 
|  | 3889 | if test "${llvm_cv_target_arch+set}" = set; then | 
|  | 3890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3891 | else | 
|  | 3892 | case $target in | 
|  | 3893 | i?86-*)                 llvm_cv_target_arch="x86" ;; | 
|  | 3894 | amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;; | 
|  | 3895 | sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
|  | 3896 | powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3897 | arm*-*)                 llvm_cv_target_arch="ARM" ;; | 
|  | 3898 | mips-*)                 llvm_cv_target_arch="Mips" ;; | 
| Rafael Espindola | e46f096 | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 3899 | mipsel-*)               llvm_cv_target_arch="Mips" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3900 | xcore-*)                llvm_cv_target_arch="XCore" ;; | 
|  | 3901 | msp430-*)               llvm_cv_target_arch="MSP430" ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3902 | hexagon-*)              llvm_cv_target_arch="Hexagon" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3903 | mblaze-*)               llvm_cv_target_arch="MBlaze" ;; | 
|  | 3904 | ptx-*)                  llvm_cv_target_arch="PTX" ;; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 3905 | nvptx-*)                llvm_cv_target_arch="NVPTX" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3906 | *)                      llvm_cv_target_arch="Unknown" ;; | 
|  | 3907 | esac | 
|  | 3908 | fi | 
|  | 3909 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
|  | 3910 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } | 
|  | 3911 |  | 
|  | 3912 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
|  | 3913 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
|  | 3914 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
|  | 3915 | fi | 
|  | 3916 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3917 | case "$llvm_cv_target_arch" in | 
|  | 3918 | x86)     LLVM_NATIVE_ARCH="X86" ;; | 
|  | 3919 | x86_64)  LLVM_NATIVE_ARCH="X86" ;; | 
|  | 3920 | *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; | 
|  | 3921 | esac | 
|  | 3922 |  | 
|  | 3923 | ARCH=$llvm_cv_target_arch | 
|  | 3924 |  | 
|  | 3925 |  | 
| Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame^] | 3926 | case $host in | 
|  | 3927 | i?86-*)                 host_arch="x86" ;; | 
|  | 3928 | amd64-* | x86_64-*)     host_arch="x86_64" ;; | 
|  | 3929 | sparc*-*)               host_arch="Sparc" ;; | 
|  | 3930 | powerpc*-*)             host_arch="PowerPC" ;; | 
|  | 3931 | arm*-*)                 host_arch="ARM" ;; | 
|  | 3932 | mips-*)                 host_arch="Mips" ;; | 
|  | 3933 | mipsel-*)               host_arch="Mips" ;; | 
|  | 3934 | xcore-*)                host_arch="XCore" ;; | 
|  | 3935 | msp430-*)               host_arch="MSP430" ;; | 
|  | 3936 | hexagon-*)              host_arch="Hexagon" ;; | 
|  | 3937 | mblaze-*)               host_arch="MBlaze" ;; | 
|  | 3938 | ptx-*)                  host_arch="PTX" ;; | 
|  | 3939 | *)                      host_arch="Unknown" ;; | 
|  | 3940 | esac | 
|  | 3941 |  | 
|  | 3942 | if test "$host_arch" = "Unknown" ; then | 
|  | 3943 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 | 
|  | 3944 | echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} | 
|  | 3945 | fi | 
|  | 3946 |  | 
|  | 3947 | HOST_ARCH=$host_arch | 
|  | 3948 |  | 
|  | 3949 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3950 |  | 
|  | 3951 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3952 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 
|  | 3953 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | 
|  | 3954 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 3955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3956 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3957 | # Extract the first word of "grep ggrep" to use in msg output | 
|  | 3958 | if test -z "$GREP"; then | 
|  | 3959 | set dummy grep ggrep; ac_prog_name=$2 | 
|  | 3960 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3962 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3963 | ac_path_GREP_found=false | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3964 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 3965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3967 | do | 
|  | 3968 | IFS=$as_save_IFS | 
|  | 3969 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3970 | for ac_prog in grep ggrep; do | 
|  | 3971 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3972 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 3973 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | 
|  | 3974 | # 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] | 3975 | # Check for GNU $ac_path_GREP | 
|  | 3976 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 3977 | *GNU*) | 
|  | 3978 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 3979 | *) | 
|  | 3980 | ac_count=0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3981 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3982 | while : | 
|  | 3983 | do | 
|  | 3984 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 3985 | mv "conftest.tmp" "conftest.in" | 
|  | 3986 | cp "conftest.in" "conftest.nl" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3987 | echo 'GREP' >> "conftest.nl" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3988 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 3989 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3990 | ac_count=`expr $ac_count + 1` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3991 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 3992 | # Best one so far, save it but keep looking for a better one | 
|  | 3993 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 3994 | ac_path_GREP_max=$ac_count | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3995 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3996 | # 10*(2^10) chars as input seems more than enough | 
|  | 3997 | test $ac_count -gt 10 && break | 
|  | 3998 | done | 
|  | 3999 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4000 | esac | 
|  | 4001 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4002 |  | 
|  | 4003 | $ac_path_GREP_found && break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4004 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4005 | done | 
|  | 4006 |  | 
|  | 4007 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4008 | IFS=$as_save_IFS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4009 |  | 
|  | 4010 |  | 
|  | 4011 | fi | 
|  | 4012 |  | 
|  | 4013 | GREP="$ac_cv_path_GREP" | 
|  | 4014 | if test -z "$GREP"; then | 
|  | 4015 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
|  | 4016 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
|  | 4017 | { (exit 1); exit 1; }; } | 
|  | 4018 | fi | 
|  | 4019 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4020 | else | 
|  | 4021 | ac_cv_path_GREP=$GREP | 
|  | 4022 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4023 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4024 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4025 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4026 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | 
|  | 4027 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4028 | GREP="$ac_cv_path_GREP" | 
|  | 4029 |  | 
|  | 4030 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4031 | { echo "$as_me:$LINENO: checking for egrep" >&5 | 
|  | 4032 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | 
|  | 4033 | if test "${ac_cv_path_EGREP+set}" = set; then | 
|  | 4034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4035 | else | 
|  | 4036 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 4037 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 4038 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4039 | # Extract the first word of "egrep" to use in msg output | 
|  | 4040 | if test -z "$EGREP"; then | 
|  | 4041 | set dummy egrep; ac_prog_name=$2 | 
|  | 4042 | if test "${ac_cv_path_EGREP+set}" = set; then | 
|  | 4043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4044 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4045 | ac_path_EGREP_found=false | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4046 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4048 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4049 | do | 
|  | 4050 | IFS=$as_save_IFS | 
|  | 4051 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4052 | for ac_prog in egrep; do | 
|  | 4053 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4054 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4055 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | 
|  | 4056 | # 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] | 4057 | # Check for GNU $ac_path_EGREP | 
|  | 4058 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4059 | *GNU*) | 
|  | 4060 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4061 | *) | 
|  | 4062 | ac_count=0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4063 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4064 | while : | 
|  | 4065 | do | 
|  | 4066 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4067 | mv "conftest.tmp" "conftest.in" | 
|  | 4068 | cp "conftest.in" "conftest.nl" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4069 | echo 'EGREP' >> "conftest.nl" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4070 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4071 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4072 | ac_count=`expr $ac_count + 1` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4073 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4074 | # Best one so far, save it but keep looking for a better one | 
|  | 4075 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4076 | ac_path_EGREP_max=$ac_count | 
|  | 4077 | fi | 
|  | 4078 | # 10*(2^10) chars as input seems more than enough | 
|  | 4079 | test $ac_count -gt 10 && break | 
|  | 4080 | done | 
|  | 4081 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4082 | esac | 
|  | 4083 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4084 |  | 
|  | 4085 | $ac_path_EGREP_found && break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4086 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4087 | done | 
|  | 4088 |  | 
|  | 4089 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4090 | IFS=$as_save_IFS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4091 |  | 
|  | 4092 |  | 
|  | 4093 | fi | 
|  | 4094 |  | 
|  | 4095 | EGREP="$ac_cv_path_EGREP" | 
|  | 4096 | if test -z "$EGREP"; then | 
|  | 4097 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
|  | 4098 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
|  | 4099 | { (exit 1); exit 1; }; } | 
|  | 4100 | fi | 
|  | 4101 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4102 | else | 
|  | 4103 | ac_cv_path_EGREP=$EGREP | 
|  | 4104 | fi | 
|  | 4105 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4106 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4107 | fi | 
|  | 4108 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4109 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 
|  | 4110 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4111 | EGREP="$ac_cv_path_EGREP" | 
|  | 4112 |  | 
|  | 4113 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4114 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 4115 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | 
|  | 4116 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4118 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4119 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4120 | /* confdefs.h.  */ | 
|  | 4121 | _ACEOF | 
|  | 4122 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4123 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4124 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4125 | #include <stdlib.h> | 
|  | 4126 | #include <stdarg.h> | 
|  | 4127 | #include <string.h> | 
|  | 4128 | #include <float.h> | 
|  | 4129 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4130 | int | 
|  | 4131 | main () | 
|  | 4132 | { | 
|  | 4133 |  | 
|  | 4134 | ; | 
|  | 4135 | return 0; | 
|  | 4136 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4137 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4138 | rm -f conftest.$ac_objext | 
|  | 4139 | if { (ac_try="$ac_compile" | 
|  | 4140 | case "(($ac_try" in | 
|  | 4141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4142 | *) ac_try_echo=$ac_try;; | 
|  | 4143 | esac | 
|  | 4144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4145 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4146 | ac_status=$? | 
|  | 4147 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4148 | rm -f conftest.er1 | 
|  | 4149 | cat conftest.err >&5 | 
|  | 4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4151 | (exit $ac_status); } && | 
|  | 4152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4153 | { (case "(($ac_try" in | 
|  | 4154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4155 | *) ac_try_echo=$ac_try;; | 
|  | 4156 | esac | 
|  | 4157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4158 | (eval "$ac_try") 2>&5 | 
|  | 4159 | ac_status=$? | 
|  | 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4161 | (exit $ac_status); }; } && | 
|  | 4162 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4163 | { (case "(($ac_try" in | 
|  | 4164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4165 | *) ac_try_echo=$ac_try;; | 
|  | 4166 | esac | 
|  | 4167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4168 | (eval "$ac_try") 2>&5 | 
|  | 4169 | ac_status=$? | 
|  | 4170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4171 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4172 | ac_cv_header_stdc=yes | 
|  | 4173 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4174 | echo "$as_me: failed program was:" >&5 | 
|  | 4175 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4176 |  | 
|  | 4177 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4178 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4179 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4181 |  | 
|  | 4182 | if test $ac_cv_header_stdc = yes; then | 
|  | 4183 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4184 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4185 | /* confdefs.h.  */ | 
|  | 4186 | _ACEOF | 
|  | 4187 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4188 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4189 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4190 | #include <string.h> | 
|  | 4191 |  | 
|  | 4192 | _ACEOF | 
|  | 4193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4194 | $EGREP "memchr" >/dev/null 2>&1; then | 
|  | 4195 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4196 | else | 
|  | 4197 | ac_cv_header_stdc=no | 
|  | 4198 | fi | 
|  | 4199 | rm -f conftest* | 
|  | 4200 |  | 
|  | 4201 | fi | 
|  | 4202 |  | 
|  | 4203 | if test $ac_cv_header_stdc = yes; then | 
|  | 4204 | # 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] | 4205 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4206 | /* confdefs.h.  */ | 
|  | 4207 | _ACEOF | 
|  | 4208 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4209 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4210 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4211 | #include <stdlib.h> | 
|  | 4212 |  | 
|  | 4213 | _ACEOF | 
|  | 4214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4215 | $EGREP "free" >/dev/null 2>&1; then | 
|  | 4216 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4217 | else | 
|  | 4218 | ac_cv_header_stdc=no | 
|  | 4219 | fi | 
|  | 4220 | rm -f conftest* | 
|  | 4221 |  | 
|  | 4222 | fi | 
|  | 4223 |  | 
|  | 4224 | if test $ac_cv_header_stdc = yes; then | 
|  | 4225 | # /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] | 4226 | if test "$cross_compiling" = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4227 | : | 
|  | 4228 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4229 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4230 | /* confdefs.h.  */ | 
|  | 4231 | _ACEOF | 
|  | 4232 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4233 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4234 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4235 | #include <ctype.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4236 | #include <stdlib.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4237 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4238 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4239 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4240 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4241 | # define ISLOWER(c) \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4242 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 4243 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4244 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4245 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4246 | #endif | 
|  | 4247 |  | 
|  | 4248 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4249 | int | 
|  | 4250 | main () | 
|  | 4251 | { | 
|  | 4252 | int i; | 
|  | 4253 | for (i = 0; i < 256; i++) | 
|  | 4254 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4255 | || toupper (i) != TOUPPER (i)) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4256 | return 2; | 
|  | 4257 | return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4258 | } | 
|  | 4259 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4260 | rm -f conftest$ac_exeext | 
|  | 4261 | if { (ac_try="$ac_link" | 
|  | 4262 | case "(($ac_try" in | 
|  | 4263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4264 | *) ac_try_echo=$ac_try;; | 
|  | 4265 | esac | 
|  | 4266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4267 | (eval "$ac_link") 2>&5 | 
|  | 4268 | ac_status=$? | 
|  | 4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4271 | { (case "(($ac_try" in | 
|  | 4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4273 | *) ac_try_echo=$ac_try;; | 
|  | 4274 | esac | 
|  | 4275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4276 | (eval "$ac_try") 2>&5 | 
|  | 4277 | ac_status=$? | 
|  | 4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4279 | (exit $ac_status); }; }; then | 
|  | 4280 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4281 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4282 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4283 | echo "$as_me: failed program was:" >&5 | 
|  | 4284 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4285 |  | 
|  | 4286 | ( exit $ac_status ) | 
|  | 4287 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4288 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4289 | 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] | 4290 | fi | 
|  | 4291 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4292 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4293 | fi | 
|  | 4294 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4295 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 4296 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4297 | if test $ac_cv_header_stdc = yes; then | 
|  | 4298 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4299 | cat >>confdefs.h <<\_ACEOF | 
|  | 4300 | #define STDC_HEADERS 1 | 
|  | 4301 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4302 |  | 
|  | 4303 | fi | 
|  | 4304 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4305 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4306 |  | 
|  | 4307 |  | 
|  | 4308 |  | 
|  | 4309 |  | 
|  | 4310 |  | 
|  | 4311 |  | 
|  | 4312 |  | 
|  | 4313 |  | 
|  | 4314 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4315 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4316 | inttypes.h stdint.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4317 | do | 
|  | 4318 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4319 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 4320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 4321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 4322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4323 | else | 
|  | 4324 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4325 | /* confdefs.h.  */ | 
|  | 4326 | _ACEOF | 
|  | 4327 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4328 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4329 | /* end confdefs.h.  */ | 
|  | 4330 | $ac_includes_default | 
|  | 4331 |  | 
|  | 4332 | #include <$ac_header> | 
|  | 4333 | _ACEOF | 
|  | 4334 | rm -f conftest.$ac_objext | 
|  | 4335 | if { (ac_try="$ac_compile" | 
|  | 4336 | case "(($ac_try" in | 
|  | 4337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4338 | *) ac_try_echo=$ac_try;; | 
|  | 4339 | esac | 
|  | 4340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4341 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4342 | ac_status=$? | 
|  | 4343 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4344 | rm -f conftest.er1 | 
|  | 4345 | cat conftest.err >&5 | 
|  | 4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4347 | (exit $ac_status); } && | 
|  | 4348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4349 | { (case "(($ac_try" in | 
|  | 4350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4351 | *) ac_try_echo=$ac_try;; | 
|  | 4352 | esac | 
|  | 4353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4354 | (eval "$ac_try") 2>&5 | 
|  | 4355 | ac_status=$? | 
|  | 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4357 | (exit $ac_status); }; } && | 
|  | 4358 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4359 | { (case "(($ac_try" in | 
|  | 4360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4361 | *) ac_try_echo=$ac_try;; | 
|  | 4362 | esac | 
|  | 4363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4364 | (eval "$ac_try") 2>&5 | 
|  | 4365 | ac_status=$? | 
|  | 4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4367 | (exit $ac_status); }; }; then | 
|  | 4368 | eval "$as_ac_Header=yes" | 
|  | 4369 | else | 
|  | 4370 | echo "$as_me: failed program was:" >&5 | 
|  | 4371 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4372 |  | 
|  | 4373 | eval "$as_ac_Header=no" | 
|  | 4374 | fi | 
|  | 4375 |  | 
|  | 4376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4377 | fi | 
|  | 4378 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 4379 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 4380 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 4381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4382 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4384 | _ACEOF | 
|  | 4385 |  | 
|  | 4386 | fi | 
|  | 4387 |  | 
|  | 4388 | done | 
|  | 4389 |  | 
|  | 4390 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4391 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
|  | 4392 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | 
|  | 4393 | if test "${ac_cv_c_bigendian+set}" = set; then | 
|  | 4394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4395 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4396 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 4397 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4398 | /* confdefs.h.  */ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4399 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4400 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4401 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4402 | /* end confdefs.h.  */ | 
|  | 4403 | #include <sys/types.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4404 | #include <sys/param.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4405 |  | 
|  | 4406 | int | 
|  | 4407 | main () | 
|  | 4408 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4409 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 4410 | bogus endian macros | 
|  | 4411 | #endif | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4412 |  | 
|  | 4413 | ; | 
|  | 4414 | return 0; | 
|  | 4415 | } | 
|  | 4416 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4417 | rm -f conftest.$ac_objext | 
|  | 4418 | if { (ac_try="$ac_compile" | 
|  | 4419 | case "(($ac_try" in | 
|  | 4420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4421 | *) ac_try_echo=$ac_try;; | 
|  | 4422 | esac | 
|  | 4423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4424 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4425 | ac_status=$? | 
|  | 4426 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4427 | rm -f conftest.er1 | 
|  | 4428 | cat conftest.err >&5 | 
|  | 4429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4430 | (exit $ac_status); } && | 
|  | 4431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 4438 | ac_status=$? | 
|  | 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4440 | (exit $ac_status); }; } && | 
|  | 4441 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4442 | { (case "(($ac_try" in | 
|  | 4443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4444 | *) ac_try_echo=$ac_try;; | 
|  | 4445 | esac | 
|  | 4446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4447 | (eval "$ac_try") 2>&5 | 
|  | 4448 | ac_status=$? | 
|  | 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4450 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4451 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4452 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4453 | /* confdefs.h.  */ | 
|  | 4454 | _ACEOF | 
|  | 4455 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4456 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4457 | /* end confdefs.h.  */ | 
|  | 4458 | #include <sys/types.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4459 | #include <sys/param.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4460 |  | 
|  | 4461 | int | 
|  | 4462 | main () | 
|  | 4463 | { | 
|  | 4464 | #if BYTE_ORDER != BIG_ENDIAN | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4465 | not big endian | 
|  | 4466 | #endif | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4467 |  | 
|  | 4468 | ; | 
|  | 4469 | return 0; | 
|  | 4470 | } | 
|  | 4471 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4472 | rm -f conftest.$ac_objext | 
|  | 4473 | if { (ac_try="$ac_compile" | 
|  | 4474 | case "(($ac_try" in | 
|  | 4475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4476 | *) ac_try_echo=$ac_try;; | 
|  | 4477 | esac | 
|  | 4478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4479 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4480 | ac_status=$? | 
|  | 4481 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4482 | rm -f conftest.er1 | 
|  | 4483 | cat conftest.err >&5 | 
|  | 4484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4485 | (exit $ac_status); } && | 
|  | 4486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4487 | { (case "(($ac_try" in | 
|  | 4488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4489 | *) ac_try_echo=$ac_try;; | 
|  | 4490 | esac | 
|  | 4491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4492 | (eval "$ac_try") 2>&5 | 
|  | 4493 | ac_status=$? | 
|  | 4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4495 | (exit $ac_status); }; } && | 
|  | 4496 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4497 | { (case "(($ac_try" in | 
|  | 4498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4499 | *) ac_try_echo=$ac_try;; | 
|  | 4500 | esac | 
|  | 4501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4502 | (eval "$ac_try") 2>&5 | 
|  | 4503 | ac_status=$? | 
|  | 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4505 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4506 | ac_cv_c_bigendian=yes | 
|  | 4507 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4508 | echo "$as_me: failed program was:" >&5 | 
|  | 4509 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4510 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4511 | ac_cv_c_bigendian=no | 
|  | 4512 | fi | 
|  | 4513 |  | 
|  | 4514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4515 | else | 
|  | 4516 | echo "$as_me: failed program was:" >&5 | 
|  | 4517 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4518 |  | 
|  | 4519 | # It does not; compile a test program. | 
|  | 4520 | if test "$cross_compiling" = yes; then | 
|  | 4521 | # try to guess the endianness by grepping values into an object file | 
|  | 4522 | ac_cv_c_bigendian=unknown | 
|  | 4523 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4524 | /* confdefs.h.  */ | 
|  | 4525 | _ACEOF | 
|  | 4526 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4527 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4528 | /* end confdefs.h.  */ | 
|  | 4529 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 4530 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 4531 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
|  | 4532 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 4533 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 4534 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4535 | int | 
|  | 4536 | main () | 
|  | 4537 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4538 | _ascii (); _ebcdic (); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4539 | ; | 
|  | 4540 | return 0; | 
|  | 4541 | } | 
|  | 4542 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4543 | rm -f conftest.$ac_objext | 
|  | 4544 | if { (ac_try="$ac_compile" | 
|  | 4545 | case "(($ac_try" in | 
|  | 4546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4547 | *) ac_try_echo=$ac_try;; | 
|  | 4548 | esac | 
|  | 4549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4550 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4551 | ac_status=$? | 
|  | 4552 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4553 | rm -f conftest.er1 | 
|  | 4554 | cat conftest.err >&5 | 
|  | 4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4556 | (exit $ac_status); } && | 
|  | 4557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4558 | { (case "(($ac_try" in | 
|  | 4559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4560 | *) ac_try_echo=$ac_try;; | 
|  | 4561 | esac | 
|  | 4562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4563 | (eval "$ac_try") 2>&5 | 
|  | 4564 | ac_status=$? | 
|  | 4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4566 | (exit $ac_status); }; } && | 
|  | 4567 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4568 | { (case "(($ac_try" in | 
|  | 4569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4570 | *) ac_try_echo=$ac_try;; | 
|  | 4571 | esac | 
|  | 4572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4573 | (eval "$ac_try") 2>&5 | 
|  | 4574 | ac_status=$? | 
|  | 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4576 | (exit $ac_status); }; }; then | 
|  | 4577 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4578 | ac_cv_c_bigendian=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | fi | 
|  | 4580 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 4581 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 4582 | ac_cv_c_bigendian=no | 
|  | 4583 | else | 
|  | 4584 | # finding both strings is unlikely to happen, but who knows? | 
|  | 4585 | ac_cv_c_bigendian=unknown | 
|  | 4586 | fi | 
|  | 4587 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4588 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4589 | echo "$as_me: failed program was:" >&5 | 
|  | 4590 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4591 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4592 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4593 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4594 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4596 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4597 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4598 | /* confdefs.h.  */ | 
|  | 4599 | _ACEOF | 
|  | 4600 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4601 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4602 | /* end confdefs.h.  */ | 
|  | 4603 | $ac_includes_default | 
|  | 4604 | int | 
|  | 4605 | main () | 
|  | 4606 | { | 
|  | 4607 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4608 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 4609 | union | 
|  | 4610 | { | 
|  | 4611 | long int l; | 
|  | 4612 | char c[sizeof (long int)]; | 
|  | 4613 | } u; | 
|  | 4614 | u.l = 1; | 
|  | 4615 | return u.c[sizeof (long int) - 1] == 1; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4616 |  | 
|  | 4617 | ; | 
|  | 4618 | return 0; | 
|  | 4619 | } | 
|  | 4620 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4621 | rm -f conftest$ac_exeext | 
|  | 4622 | if { (ac_try="$ac_link" | 
|  | 4623 | case "(($ac_try" in | 
|  | 4624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4625 | *) ac_try_echo=$ac_try;; | 
|  | 4626 | esac | 
|  | 4627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4628 | (eval "$ac_link") 2>&5 | 
|  | 4629 | ac_status=$? | 
|  | 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4631 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4632 | { (case "(($ac_try" in | 
|  | 4633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4634 | *) ac_try_echo=$ac_try;; | 
|  | 4635 | esac | 
|  | 4636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4637 | (eval "$ac_try") 2>&5 | 
|  | 4638 | ac_status=$? | 
|  | 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4640 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4641 | ac_cv_c_bigendian=no | 
|  | 4642 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4643 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4644 | echo "$as_me: failed program was:" >&5 | 
|  | 4645 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4646 |  | 
|  | 4647 | ( exit $ac_status ) | 
|  | 4648 | ac_cv_c_bigendian=yes | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4649 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4650 | 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] | 4651 | fi | 
|  | 4652 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4653 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4654 | fi | 
|  | 4655 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4657 | fi | 
|  | 4658 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
|  | 4659 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | 
|  | 4660 | case $ac_cv_c_bigendian in | 
|  | 4661 | yes) | 
|  | 4662 | ENDIAN=big | 
|  | 4663 | ;; | 
|  | 4664 | no) | 
|  | 4665 | ENDIAN=little | 
|  | 4666 | ;; | 
|  | 4667 | *) | 
|  | 4668 | { { echo "$as_me:$LINENO: error: unknown endianness | 
|  | 4669 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
|  | 4670 | echo "$as_me: error: unknown endianness | 
|  | 4671 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
|  | 4672 | { (exit 1); exit 1; }; } ;; | 
|  | 4673 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4674 |  | 
|  | 4675 |  | 
|  | 4676 | if test "$cross_compiling" = yes; then | 
|  | 4677 | LLVM_CROSS_COMPILING=1 | 
|  | 4678 |  | 
|  | 4679 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 | 
|  | 4681 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } | 
|  | 4682 | if test "${ac_cv_build_exeext+set}" = set; then | 
|  | 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4684 | else | 
|  | 4685 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
|  | 4686 | ac_cv_build_exeext=.exe | 
|  | 4687 | else | 
|  | 4688 | ac_build_prefix=${build_alias}- | 
|  | 4689 |  | 
|  | 4690 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. | 
|  | 4691 | set dummy ${ac_build_prefix}gcc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4692 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4694 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4696 | else | 
|  | 4697 | if test -n "$BUILD_CC"; then | 
|  | 4698 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4699 | else | 
|  | 4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4701 | for as_dir in $PATH | 
|  | 4702 | do | 
|  | 4703 | IFS=$as_save_IFS | 
|  | 4704 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4705 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4706 | 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] | 4707 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4708 | 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] | 4709 | break 2 | 
|  | 4710 | fi | 
|  | 4711 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4712 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4713 | IFS=$as_save_IFS | 
|  | 4714 |  | 
|  | 4715 | fi | 
|  | 4716 | fi | 
|  | 4717 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4718 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4719 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4720 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4721 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4722 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4723 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4724 | fi | 
|  | 4725 |  | 
|  | 4726 |  | 
|  | 4727 | if test -z "$BUILD_CC"; then | 
|  | 4728 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 4729 | set dummy gcc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4732 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4734 | else | 
|  | 4735 | if test -n "$BUILD_CC"; then | 
|  | 4736 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4737 | else | 
|  | 4738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4739 | for as_dir in $PATH | 
|  | 4740 | do | 
|  | 4741 | IFS=$as_save_IFS | 
|  | 4742 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4743 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4744 | 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] | 4745 | ac_cv_prog_BUILD_CC="gcc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4746 | 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] | 4747 | break 2 | 
|  | 4748 | fi | 
|  | 4749 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4750 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4751 | IFS=$as_save_IFS | 
|  | 4752 |  | 
|  | 4753 | fi | 
|  | 4754 | fi | 
|  | 4755 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4756 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4757 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4758 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4759 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4760 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4761 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4762 | fi | 
|  | 4763 |  | 
|  | 4764 |  | 
|  | 4765 | if test -z "$BUILD_CC"; then | 
|  | 4766 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 4767 | set dummy cc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4768 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4770 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | else | 
|  | 4773 | if test -n "$BUILD_CC"; then | 
|  | 4774 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4775 | else | 
|  | 4776 | ac_prog_rejected=no | 
|  | 4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4778 | for as_dir in $PATH | 
|  | 4779 | do | 
|  | 4780 | IFS=$as_save_IFS | 
|  | 4781 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4782 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4783 | 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] | 4784 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 4785 | ac_prog_rejected=yes | 
|  | 4786 | continue | 
|  | 4787 | fi | 
|  | 4788 | ac_cv_prog_BUILD_CC="cc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4789 | 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] | 4790 | break 2 | 
|  | 4791 | fi | 
|  | 4792 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4793 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4794 | IFS=$as_save_IFS | 
|  | 4795 |  | 
|  | 4796 | if test $ac_prog_rejected = yes; then | 
|  | 4797 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4798 | set dummy $ac_cv_prog_BUILD_CC | 
|  | 4799 | shift | 
|  | 4800 | if test $# != 0; then | 
|  | 4801 | # We chose a different compiler from the bogus one. | 
|  | 4802 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4803 | # first if we set BUILD_CC to just the basename; use the full file name. | 
|  | 4804 | shift | 
|  | 4805 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 4806 | fi | 
|  | 4807 | fi | 
|  | 4808 | fi | 
|  | 4809 | fi | 
|  | 4810 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4811 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4812 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4813 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4814 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4815 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4816 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4817 | fi | 
|  | 4818 |  | 
|  | 4819 |  | 
|  | 4820 | fi | 
|  | 4821 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4822 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | 
|  | 4823 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | 
|  | 4824 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4825 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|  | 4826 | rm -f conftest* | 
|  | 4827 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|  | 4828 | ac_cv_build_exeext= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4829 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4830 | (eval $ac_build_link) 2>&5 | 
|  | 4831 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4833 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4834 | for file in conftest.*; do | 
|  | 4835 | case $file in | 
| Jim Grosbach | bfc70b0 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4836 | *.c | *.o | *.obj | *.dSYM) ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4837 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | 
|  | 4838 | esac | 
|  | 4839 | done | 
|  | 4840 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4841 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 | 
|  | 4842 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} | 
|  | 4843 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4844 | fi | 
|  | 4845 | rm -f conftest* | 
|  | 4846 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank | 
|  | 4847 | fi | 
|  | 4848 | fi | 
|  | 4849 |  | 
|  | 4850 | BUILD_EXEEXT="" | 
|  | 4851 | 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] | 4852 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 | 
|  | 4853 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4854 | ac_build_exeext=$BUILD_EXEEXT | 
|  | 4855 |  | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4856 | ac_build_prefix=${build_alias}- | 
|  | 4857 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. | 
|  | 4858 | set dummy ${ac_build_prefix}g++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4859 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4861 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4863 | else | 
|  | 4864 | if test -n "$BUILD_CXX"; then | 
|  | 4865 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4866 | else | 
|  | 4867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4868 | for as_dir in $PATH | 
|  | 4869 | do | 
|  | 4870 | IFS=$as_save_IFS | 
|  | 4871 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4872 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4873 | 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] | 4874 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4875 | 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] | 4876 | break 2 | 
|  | 4877 | fi | 
|  | 4878 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4879 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4880 | IFS=$as_save_IFS | 
|  | 4881 |  | 
|  | 4882 | fi | 
|  | 4883 | fi | 
|  | 4884 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4885 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4886 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4887 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4888 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4889 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4890 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4891 | fi | 
|  | 4892 |  | 
|  | 4893 |  | 
|  | 4894 | if test -z "$BUILD_CXX"; then | 
|  | 4895 | # Extract the first word of "g++", so it can be a program name with args. | 
|  | 4896 | set dummy g++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4897 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4899 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4901 | else | 
|  | 4902 | if test -n "$BUILD_CXX"; then | 
|  | 4903 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4904 | else | 
|  | 4905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4906 | for as_dir in $PATH | 
|  | 4907 | do | 
|  | 4908 | IFS=$as_save_IFS | 
|  | 4909 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4910 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4911 | 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] | 4912 | ac_cv_prog_BUILD_CXX="g++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4913 | 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] | 4914 | break 2 | 
|  | 4915 | fi | 
|  | 4916 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4917 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4918 | IFS=$as_save_IFS | 
|  | 4919 |  | 
|  | 4920 | fi | 
|  | 4921 | fi | 
|  | 4922 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4923 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4924 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4925 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4926 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4928 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4929 | fi | 
|  | 4930 |  | 
|  | 4931 |  | 
|  | 4932 | if test -z "$BUILD_CXX"; then | 
|  | 4933 | # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4934 | set dummy c++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4935 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4937 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4939 | else | 
|  | 4940 | if test -n "$BUILD_CXX"; then | 
|  | 4941 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4942 | else | 
|  | 4943 | ac_prog_rejected=no | 
|  | 4944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4945 | for as_dir in $PATH | 
|  | 4946 | do | 
|  | 4947 | IFS=$as_save_IFS | 
|  | 4948 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4949 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4950 | 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] | 4951 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then | 
|  | 4952 | ac_prog_rejected=yes | 
|  | 4953 | continue | 
|  | 4954 | fi | 
|  | 4955 | ac_cv_prog_BUILD_CXX="c++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4956 | 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] | 4957 | break 2 | 
|  | 4958 | fi | 
|  | 4959 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4960 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4961 | IFS=$as_save_IFS | 
|  | 4962 |  | 
|  | 4963 | if test $ac_prog_rejected = yes; then | 
|  | 4964 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4965 | set dummy $ac_cv_prog_BUILD_CXX | 
|  | 4966 | shift | 
|  | 4967 | if test $# != 0; then | 
|  | 4968 | # We chose a different compiler from the bogus one. | 
|  | 4969 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4970 | # first if we set BUILD_CXX to just the basename; use the full file name. | 
|  | 4971 | shift | 
|  | 4972 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" | 
|  | 4973 | fi | 
|  | 4974 | fi | 
|  | 4975 | fi | 
|  | 4976 | fi | 
|  | 4977 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4978 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4979 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4980 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4981 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4982 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4983 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4984 | fi | 
|  | 4985 |  | 
|  | 4986 |  | 
|  | 4987 | fi | 
|  | 4988 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4989 | else | 
|  | 4990 | LLVM_CROSS_COMPILING=0 | 
|  | 4991 |  | 
|  | 4992 | fi | 
|  | 4993 |  | 
| Dan Gohman | de75469c | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4994 | 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] | 4995 | cvsbuild="yes" | 
|  | 4996 | optimize="no" | 
|  | 4997 | CVSBUILD=CVSBUILD=1 | 
|  | 4998 |  | 
|  | 4999 | else | 
|  | 5000 | cvsbuild="no" | 
|  | 5001 | optimize="yes" | 
|  | 5002 | fi | 
|  | 5003 |  | 
|  | 5004 |  | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 5005 | # Check whether --enable-libcpp was given. | 
|  | 5006 | if test "${enable_libcpp+set}" = set; then | 
|  | 5007 | enableval=$enable_libcpp; | 
|  | 5008 | else | 
|  | 5009 | enableval=default | 
|  | 5010 | fi | 
|  | 5011 |  | 
|  | 5012 | case "$enableval" in | 
|  | 5013 | yes) ENABLE_LIBCPP=1 | 
|  | 5014 | ;; | 
|  | 5015 | no)  ENABLE_LIBCPP=0 | 
|  | 5016 | ;; | 
|  | 5017 | default) ENABLE_LIBCPP=0 | 
|  | 5018 | ;; | 
|  | 5019 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 | 
|  | 5020 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} | 
|  | 5021 | { (exit 1); exit 1; }; } ;; | 
|  | 5022 | esac | 
|  | 5023 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5024 | # Check whether --enable-optimized was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5025 | if test "${enable_optimized+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5026 | enableval=$enable_optimized; | 
|  | 5027 | else | 
|  | 5028 | enableval=$optimize | 
|  | 5029 | fi | 
|  | 5030 |  | 
|  | 5031 | if test ${enableval} = "no" ; then | 
|  | 5032 | ENABLE_OPTIMIZED= | 
|  | 5033 |  | 
|  | 5034 | else | 
|  | 5035 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
|  | 5036 |  | 
|  | 5037 | fi | 
|  | 5038 |  | 
| David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5039 | # Check whether --enable-profiling was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5040 | if test "${enable_profiling+set}" = set; then | 
| David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5041 | enableval=$enable_profiling; | 
|  | 5042 | else | 
|  | 5043 | enableval="no" | 
|  | 5044 | fi | 
|  | 5045 |  | 
|  | 5046 | if test ${enableval} = "no" ; then | 
|  | 5047 | ENABLE_PROFILING= | 
|  | 5048 |  | 
|  | 5049 | else | 
|  | 5050 | ENABLE_PROFILING=ENABLE_PROFILING=1 | 
|  | 5051 |  | 
|  | 5052 | fi | 
|  | 5053 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5054 | # Check whether --enable-assertions was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5055 | if test "${enable_assertions+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5056 | enableval=$enable_assertions; | 
|  | 5057 | else | 
|  | 5058 | enableval="yes" | 
|  | 5059 | fi | 
|  | 5060 |  | 
|  | 5061 | if test ${enableval} = "yes" ; then | 
|  | 5062 | DISABLE_ASSERTIONS= | 
|  | 5063 |  | 
|  | 5064 | else | 
|  | 5065 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 | 
|  | 5066 |  | 
|  | 5067 | fi | 
|  | 5068 |  | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5069 | # Check whether --enable-expensive-checks was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5070 | if test "${enable_expensive_checks+set}" = set; then | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5071 | enableval=$enable_expensive_checks; | 
|  | 5072 | else | 
|  | 5073 | enableval="no" | 
|  | 5074 | fi | 
|  | 5075 |  | 
|  | 5076 | if test ${enableval} = "yes" ; then | 
|  | 5077 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 | 
|  | 5078 |  | 
|  | 5079 | EXPENSIVE_CHECKS=yes | 
|  | 5080 |  | 
|  | 5081 | else | 
|  | 5082 | ENABLE_EXPENSIVE_CHECKS= | 
|  | 5083 |  | 
|  | 5084 | EXPENSIVE_CHECKS=no | 
|  | 5085 |  | 
|  | 5086 | fi | 
|  | 5087 |  | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5088 | # Check whether --enable-debug-runtime was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5089 | if test "${enable_debug_runtime+set}" = set; then | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5090 | enableval=$enable_debug_runtime; | 
|  | 5091 | else | 
|  | 5092 | enableval=no | 
|  | 5093 | fi | 
|  | 5094 |  | 
|  | 5095 | if test ${enableval} = "no" ; then | 
|  | 5096 | DEBUG_RUNTIME= | 
|  | 5097 |  | 
|  | 5098 | else | 
|  | 5099 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 | 
|  | 5100 |  | 
|  | 5101 | fi | 
|  | 5102 |  | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5103 | # Check whether --enable-debug-symbols was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5104 | if test "${enable_debug_symbols+set}" = set; then | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5105 | enableval=$enable_debug_symbols; | 
|  | 5106 | else | 
|  | 5107 | enableval=no | 
|  | 5108 | fi | 
|  | 5109 |  | 
|  | 5110 | if test ${enableval} = "no" ; then | 
|  | 5111 | DEBUG_SYMBOLS= | 
|  | 5112 |  | 
|  | 5113 | else | 
|  | 5114 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 | 
|  | 5115 |  | 
|  | 5116 | fi | 
|  | 5117 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5118 | # Check whether --enable-jit was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5119 | if test "${enable_jit+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5120 | enableval=$enable_jit; | 
|  | 5121 | else | 
|  | 5122 | enableval=default | 
|  | 5123 | fi | 
|  | 5124 |  | 
|  | 5125 | if test ${enableval} = "no" | 
|  | 5126 | then | 
|  | 5127 | JIT= | 
|  | 5128 |  | 
|  | 5129 | else | 
|  | 5130 | case "$llvm_cv_target_arch" in | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5131 | x86)         TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5132 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5133 | Sparc)       TARGET_HAS_JIT=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5134 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5135 | PowerPC)     TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5136 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5137 | x86_64)      TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5138 | ;; | 
| Eric Christopher | d8530f3 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5139 | ARM)         TARGET_HAS_JIT=1 | 
| Reid Spencer | d7c8b3c | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5140 | ;; | 
| Bruno Cardoso Lopes | d1d9c78 | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5141 | Mips)        TARGET_HAS_JIT=1 | 
| Tanya Lattner | bca16c8 | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5142 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5143 | XCore)       TARGET_HAS_JIT=0 | 
| Richard Osborne | ca08e06 | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5144 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5145 | MSP430)      TARGET_HAS_JIT=0 | 
| Anton Korobeynikov | 9173b49 | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5146 | ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5147 | Hexagon)     TARGET_HAS_JIT=0 | 
|  | 5148 | ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5149 | MBlaze)      TARGET_HAS_JIT=0 | 
|  | 5150 | ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5151 | PTX)         TARGET_HAS_JIT=0 | 
|  | 5152 | ;; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5153 | NVPTX)       TARGET_HAS_JIT=0 | 
|  | 5154 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5155 | *)           TARGET_HAS_JIT=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5156 | ;; | 
|  | 5157 | esac | 
|  | 5158 | fi | 
|  | 5159 |  | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5160 | # Check whether --enable-docs was given. | 
|  | 5161 | if test "${enable_docs+set}" = set; then | 
|  | 5162 | enableval=$enable_docs; | 
|  | 5163 | else | 
|  | 5164 | enableval=default | 
|  | 5165 | fi | 
|  | 5166 |  | 
|  | 5167 | case "$enableval" in | 
|  | 5168 | yes) ENABLE_DOCS=1 | 
|  | 5169 | ;; | 
|  | 5170 | no)  ENABLE_DOCS=0 | 
|  | 5171 | ;; | 
|  | 5172 | default) ENABLE_DOCS=1 | 
|  | 5173 | ;; | 
|  | 5174 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 | 
|  | 5175 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} | 
|  | 5176 | { (exit 1); exit 1; }; } ;; | 
|  | 5177 | esac | 
|  | 5178 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5179 | # Check whether --enable-doxygen was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5180 | if test "${enable_doxygen+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5181 | enableval=$enable_doxygen; | 
|  | 5182 | else | 
|  | 5183 | enableval=default | 
|  | 5184 | fi | 
|  | 5185 |  | 
|  | 5186 | case "$enableval" in | 
|  | 5187 | yes) ENABLE_DOXYGEN=1 | 
|  | 5188 | ;; | 
|  | 5189 | no)  ENABLE_DOXYGEN=0 | 
|  | 5190 | ;; | 
|  | 5191 | default) ENABLE_DOXYGEN=0 | 
|  | 5192 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5193 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
|  | 5194 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
|  | 5195 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5196 | esac | 
|  | 5197 |  | 
|  | 5198 | # Check whether --enable-threads was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5199 | if test "${enable_threads+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5200 | enableval=$enable_threads; | 
|  | 5201 | else | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5202 | enableval=default | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5203 | fi | 
|  | 5204 |  | 
|  | 5205 | case "$enableval" in | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5206 | yes) LLVM_ENABLE_THREADS=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5207 | ;; | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5208 | no)  LLVM_ENABLE_THREADS=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5209 | ;; | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5210 | default) LLVM_ENABLE_THREADS=1 | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5211 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5212 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 | 
|  | 5213 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} | 
|  | 5214 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5215 | esac | 
|  | 5216 |  | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5217 | cat >>confdefs.h <<_ACEOF | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5218 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5219 | _ACEOF | 
|  | 5220 |  | 
|  | 5221 |  | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5222 | # Check whether --enable-pthreads was given. | 
|  | 5223 | if test "${enable_pthreads+set}" = set; then | 
|  | 5224 | enableval=$enable_pthreads; | 
|  | 5225 | else | 
|  | 5226 | enableval=default | 
|  | 5227 | fi | 
|  | 5228 |  | 
|  | 5229 | case "$enableval" in | 
|  | 5230 | yes) ENABLE_PTHREADS=1 | 
|  | 5231 | ;; | 
|  | 5232 | no)  ENABLE_PTHREADS=0 | 
|  | 5233 | ;; | 
|  | 5234 | default) ENABLE_PTHREADS=1 | 
|  | 5235 | ;; | 
|  | 5236 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 | 
|  | 5237 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} | 
|  | 5238 | { (exit 1); exit 1; }; } ;; | 
|  | 5239 | esac | 
|  | 5240 |  | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5241 | # Check whether --enable-pic was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5242 | if test "${enable_pic+set}" = set; then | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5243 | enableval=$enable_pic; | 
|  | 5244 | else | 
|  | 5245 | enableval=default | 
|  | 5246 | fi | 
|  | 5247 |  | 
|  | 5248 | case "$enableval" in | 
|  | 5249 | yes) ENABLE_PIC=1 | 
|  | 5250 | ;; | 
|  | 5251 | no)  ENABLE_PIC=0 | 
|  | 5252 | ;; | 
| Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5253 | default) ENABLE_PIC=1 | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5254 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5255 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 | 
|  | 5256 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} | 
|  | 5257 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5258 | esac | 
|  | 5259 |  | 
|  | 5260 | cat >>confdefs.h <<_ACEOF | 
|  | 5261 | #define ENABLE_PIC $ENABLE_PIC | 
|  | 5262 | _ACEOF | 
|  | 5263 |  | 
|  | 5264 |  | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5265 | # Check whether --enable-shared was given. | 
|  | 5266 | if test "${enable_shared+set}" = set; then | 
|  | 5267 | enableval=$enable_shared; | 
|  | 5268 | else | 
|  | 5269 | enableval=default | 
|  | 5270 | fi | 
|  | 5271 |  | 
|  | 5272 | case "$enableval" in | 
|  | 5273 | yes) ENABLE_SHARED=1 | 
|  | 5274 | ;; | 
|  | 5275 | no)  ENABLE_SHARED=0 | 
|  | 5276 | ;; | 
|  | 5277 | default) ENABLE_SHARED=0 | 
|  | 5278 | ;; | 
|  | 5279 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 | 
|  | 5280 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} | 
|  | 5281 | { (exit 1); exit 1; }; } ;; | 
|  | 5282 | esac | 
|  | 5283 |  | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5284 | # Check whether --enable-embed-stdcxx was given. | 
|  | 5285 | if test "${enable_embed_stdcxx+set}" = set; then | 
|  | 5286 | enableval=$enable_embed_stdcxx; | 
|  | 5287 | else | 
|  | 5288 | enableval=default | 
|  | 5289 | fi | 
|  | 5290 |  | 
|  | 5291 | case "$enableval" in | 
|  | 5292 | yes) ENABLE_EMBED_STDCXX=1 | 
|  | 5293 | ;; | 
|  | 5294 | no)  ENABLE_EMBED_STDCXX=0 | 
|  | 5295 | ;; | 
| NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5296 | default) ENABLE_EMBED_STDCXX=0 | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5297 | ;; | 
|  | 5298 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 | 
|  | 5299 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} | 
|  | 5300 | { (exit 1); exit 1; }; } ;; | 
|  | 5301 | esac | 
|  | 5302 |  | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5303 | # Check whether --enable-timestamps was given. | 
|  | 5304 | if test "${enable_timestamps+set}" = set; then | 
|  | 5305 | enableval=$enable_timestamps; | 
|  | 5306 | else | 
|  | 5307 | enableval=default | 
|  | 5308 | fi | 
|  | 5309 |  | 
|  | 5310 | case "$enableval" in | 
|  | 5311 | yes) ENABLE_TIMESTAMPS=1 | 
|  | 5312 | ;; | 
|  | 5313 | no)  ENABLE_TIMESTAMPS=0 | 
|  | 5314 | ;; | 
|  | 5315 | default) ENABLE_TIMESTAMPS=1 | 
|  | 5316 | ;; | 
|  | 5317 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 | 
|  | 5318 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} | 
|  | 5319 | { (exit 1); exit 1; }; } ;; | 
|  | 5320 | esac | 
|  | 5321 |  | 
|  | 5322 | cat >>confdefs.h <<_ACEOF | 
|  | 5323 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS | 
|  | 5324 | _ACEOF | 
|  | 5325 |  | 
|  | 5326 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5327 | TARGETS_TO_BUILD="" | 
|  | 5328 | # Check whether --enable-targets was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5329 | if test "${enable_targets+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5330 | enableval=$enable_targets; | 
|  | 5331 | else | 
|  | 5332 | enableval=all | 
|  | 5333 | fi | 
|  | 5334 |  | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5335 | if test "$enableval" = host-only ; then | 
|  | 5336 | enableval=host | 
|  | 5337 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5338 | case "$enableval" in | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5339 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5340 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 5341 | case "$a_target" in | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5342 | x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5343 | x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5344 | sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
|  | 5345 | powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5346 | arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
|  | 5347 | mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Rafael Espindola | e46f096 | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5348 | mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5349 | spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5350 | xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
|  | 5351 | msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5352 | cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5353 | hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5354 | mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5355 | ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5356 | nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5357 | host) case "$llvm_cv_target_arch" in | 
|  | 5358 | x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5359 | x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5360 | Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
|  | 5361 | PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5362 | ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
|  | 5363 | Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5364 | MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5365 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5366 | XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
|  | 5367 | MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5368 | Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5369 | PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; | 
| Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5370 | NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5371 | *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 | 
|  | 5372 | echo "$as_me: error: Can not set target to build" >&2;} | 
|  | 5373 | { (exit 1); exit 1; }; } ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5374 | esac ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5375 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 | 
|  | 5376 | echo "$as_me: error: Unrecognized target $a_target" >&2;} | 
|  | 5377 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5378 | esac | 
|  | 5379 | done | 
|  | 5380 | ;; | 
|  | 5381 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5382 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD | 
|  | 5383 |  | 
|  | 5384 |  | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5385 | for a_target in $TARGETS_TO_BUILD; do | 
|  | 5386 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then | 
|  | 5387 |  | 
|  | 5388 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5389 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH | 
|  | 5390 | _ACEOF | 
|  | 5391 |  | 
|  | 5392 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" | 
|  | 5393 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" | 
| Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5394 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5395 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5396 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then | 
|  | 5397 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" | 
|  | 5398 | fi | 
| Eric Christopher | 56079c1 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5399 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then | 
|  | 5400 | LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" | 
|  | 5401 | fi | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5402 |  | 
|  | 5403 | cat >>confdefs.h <<_ACEOF | 
|  | 5404 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET | 
| Daniel Dunbar | edf7b8b | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5405 | _ACEOF | 
|  | 5406 |  | 
|  | 5407 |  | 
|  | 5408 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5409 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO | 
|  | 5410 | _ACEOF | 
|  | 5411 |  | 
|  | 5412 |  | 
|  | 5413 | cat >>confdefs.h <<_ACEOF | 
| Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5414 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC | 
| Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5415 | _ACEOF | 
|  | 5416 |  | 
|  | 5417 |  | 
|  | 5418 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5419 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5420 | _ACEOF | 
|  | 5421 |  | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5422 | 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] | 5423 |  | 
|  | 5424 | cat >>confdefs.h <<_ACEOF | 
|  | 5425 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER | 
|  | 5426 | _ACEOF | 
|  | 5427 |  | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5428 | fi | 
| Eric Christopher | 56079c1 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5429 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then | 
|  | 5430 |  | 
|  | 5431 | cat >>confdefs.h <<_ACEOF | 
|  | 5432 | #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER | 
|  | 5433 | _ACEOF | 
|  | 5434 |  | 
|  | 5435 | fi | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5436 | fi | 
|  | 5437 | done | 
|  | 5438 |  | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5439 | LLVM_ENUM_TARGETS="" | 
|  | 5440 | LLVM_ENUM_ASM_PRINTERS="" | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5441 | LLVM_ENUM_ASM_PARSERS="" | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5442 | LLVM_ENUM_DISASSEMBLERS="" | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5443 | for target_to_build in $TARGETS_TO_BUILD; do | 
|  | 5444 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" | 
| Chris Lattner | 2877660 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5445 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then | 
| Jim Grosbach | 0e854f3 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5446 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; | 
|  | 5447 | fi | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5448 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then | 
|  | 5449 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; | 
|  | 5450 | fi | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5451 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then | 
|  | 5452 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; | 
|  | 5453 | fi | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5454 | done | 
|  | 5455 |  | 
|  | 5456 |  | 
|  | 5457 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5458 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5459 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5460 |  | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5461 | # Check whether --with-optimize-option was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5462 | if test "${with_optimize_option+set}" = set; then | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5463 | withval=$with_optimize_option; | 
|  | 5464 | else | 
|  | 5465 | withval=default | 
|  | 5466 | fi | 
|  | 5467 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5468 | { echo "$as_me:$LINENO: checking optimization flags" >&5 | 
|  | 5469 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5470 | case "$withval" in | 
|  | 5471 | default) | 
|  | 5472 | case "$llvm_cv_os_type" in | 
| Daniel Dunbar | d411fcb | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5473 | FreeBSD) optimize_option=-O2 ;; | 
| Daniel Dunbar | 4e06a5b | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5474 | MingW) optimize_option=-O2 ;; | 
|  | 5475 | *)     optimize_option=-O3 ;; | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5476 | esac ;; | 
|  | 5477 | *) optimize_option="$withval" ;; | 
|  | 5478 | esac | 
|  | 5479 | OPTIMIZE_OPTION=$optimize_option | 
|  | 5480 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5481 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 | 
|  | 5482 | echo "${ECHO_T}$optimize_option" >&6; } | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5483 |  | 
|  | 5484 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5485 | # Check whether --with-extra-options was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5486 | if test "${with_extra_options+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5487 | withval=$with_extra_options; | 
|  | 5488 | else | 
|  | 5489 | withval=default | 
|  | 5490 | fi | 
|  | 5491 |  | 
|  | 5492 | case "$withval" in | 
|  | 5493 | default) EXTRA_OPTIONS= ;; | 
|  | 5494 | *) EXTRA_OPTIONS=$withval ;; | 
|  | 5495 | esac | 
|  | 5496 | EXTRA_OPTIONS=$EXTRA_OPTIONS | 
|  | 5497 |  | 
|  | 5498 |  | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5499 |  | 
|  | 5500 | # Check whether --with-extra-ld-options was given. | 
|  | 5501 | if test "${with_extra_ld_options+set}" = set; then | 
|  | 5502 | withval=$with_extra_ld_options; | 
|  | 5503 | else | 
|  | 5504 | withval=default | 
|  | 5505 | fi | 
|  | 5506 |  | 
|  | 5507 | case "$withval" in | 
|  | 5508 | default) EXTRA_LD_OPTIONS= ;; | 
|  | 5509 | *) EXTRA_LD_OPTIONS=$withval ;; | 
|  | 5510 | esac | 
|  | 5511 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS | 
|  | 5512 |  | 
|  | 5513 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5514 | # Check whether --enable-bindings was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5515 | if test "${enable_bindings+set}" = set; then | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5516 | enableval=$enable_bindings; | 
|  | 5517 | else | 
|  | 5518 | enableval=default | 
|  | 5519 | fi | 
|  | 5520 |  | 
|  | 5521 | BINDINGS_TO_BUILD="" | 
|  | 5522 | case "$enableval" in | 
| Gordon Henriksen | acc2a83 | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5523 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5524 | all ) BINDINGS_TO_BUILD="ocaml" ;; | 
|  | 5525 | none | no) BINDINGS_TO_BUILD="" ;; | 
|  | 5526 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 5527 | case "$a_binding" in | 
|  | 5528 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5529 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 | 
|  | 5530 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} | 
|  | 5531 | { (exit 1); exit 1; }; } ;; | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5532 | esac | 
|  | 5533 | done | 
|  | 5534 | ;; | 
|  | 5535 | esac | 
|  | 5536 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5537 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5538 | # Check whether --with-ocaml-libdir was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5539 | if test "${with_ocaml_libdir+set}" = set; then | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5540 | withval=$with_ocaml_libdir; | 
|  | 5541 | else | 
|  | 5542 | withval=auto | 
|  | 5543 | fi | 
|  | 5544 |  | 
|  | 5545 | case "$withval" in | 
|  | 5546 | auto) with_ocaml_libdir="$withval" ;; | 
|  | 5547 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5548 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 | 
|  | 5549 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} | 
|  | 5550 | { (exit 1); exit 1; }; } ;; | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5551 | esac | 
|  | 5552 |  | 
|  | 5553 |  | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5554 | # Check whether --with-clang-srcdir was given. | 
|  | 5555 | if test "${with_clang_srcdir+set}" = set; then | 
|  | 5556 | withval=$with_clang_srcdir; | 
|  | 5557 | else | 
|  | 5558 | withval="-" | 
|  | 5559 | fi | 
|  | 5560 |  | 
|  | 5561 | case "$withval" in | 
| Eric Christopher | 7f977de | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5562 | -) clang_src_root="" ;; | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5563 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; | 
|  | 5564 | *) clang_src_root="$ac_pwd/$withval" ;; | 
|  | 5565 | esac | 
|  | 5566 | CLANG_SRC_ROOT=$clang_src_root | 
|  | 5567 |  | 
|  | 5568 |  | 
|  | 5569 |  | 
| Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5570 | # Check whether --with-clang-resource-dir was given. | 
|  | 5571 | if test "${with_clang_resource_dir+set}" = set; then | 
|  | 5572 | withval=$with_clang_resource_dir; | 
|  | 5573 | else | 
|  | 5574 | withval="" | 
|  | 5575 | fi | 
|  | 5576 |  | 
|  | 5577 |  | 
|  | 5578 | cat >>confdefs.h <<_ACEOF | 
|  | 5579 | #define CLANG_RESOURCE_DIR "$withval" | 
|  | 5580 | _ACEOF | 
|  | 5581 |  | 
|  | 5582 |  | 
|  | 5583 |  | 
| Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5584 | # Check whether --with-c-include-dirs was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5585 | if test "${with_c_include_dirs+set}" = set; then | 
| Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5586 | withval=$with_c_include_dirs; | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5587 | else | 
|  | 5588 | withval="" | 
|  | 5589 | fi | 
|  | 5590 |  | 
|  | 5591 |  | 
|  | 5592 | cat >>confdefs.h <<_ACEOF | 
|  | 5593 | #define C_INCLUDE_DIRS "$withval" | 
|  | 5594 | _ACEOF | 
|  | 5595 |  | 
|  | 5596 |  | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5597 | # Clang normally uses the system c++ headers and libraries. With this option, | 
|  | 5598 | # clang will use the ones provided by a gcc installation instead. This option should | 
|  | 5599 | # be passed the same value that was used with --prefix when configuring gcc. | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5600 |  | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5601 | # Check whether --with-gcc-toolchain was given. | 
|  | 5602 | if test "${with_gcc_toolchain+set}" = set; then | 
|  | 5603 | withval=$with_gcc_toolchain; | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5604 | else | 
|  | 5605 | withval="" | 
|  | 5606 | fi | 
|  | 5607 |  | 
|  | 5608 |  | 
|  | 5609 | cat >>confdefs.h <<_ACEOF | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5610 | #define GCC_INSTALL_PREFIX "$withval" | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5611 | _ACEOF | 
|  | 5612 |  | 
|  | 5613 |  | 
|  | 5614 |  | 
| Sebastian Pop | e29a6c7 | 2012-04-30 20:06:58 +0000 | [diff] [blame] | 5615 | # Check whether --with-default-sysroot was given. | 
|  | 5616 | if test "${with_default_sysroot+set}" = set; then | 
|  | 5617 | withval=$with_default_sysroot; | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 5618 | else | 
|  | 5619 | withval="" | 
|  | 5620 | fi | 
|  | 5621 |  | 
|  | 5622 |  | 
|  | 5623 | cat >>confdefs.h <<_ACEOF | 
|  | 5624 | #define DEFAULT_SYSROOT "$withval" | 
|  | 5625 | _ACEOF | 
|  | 5626 |  | 
|  | 5627 |  | 
|  | 5628 |  | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5629 | # Check whether --with-binutils-include was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5630 | if test "${with_binutils_include+set}" = set; then | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5631 | withval=$with_binutils_include; | 
|  | 5632 | else | 
|  | 5633 | withval=default | 
|  | 5634 | fi | 
|  | 5635 |  | 
|  | 5636 | case "$withval" in | 
|  | 5637 | default) WITH_BINUTILS_INCDIR=default ;; | 
|  | 5638 | /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5639 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 | 
|  | 5640 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} | 
|  | 5641 | { (exit 1); exit 1; }; } ;; | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5642 | esac | 
|  | 5643 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then | 
|  | 5644 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR | 
|  | 5645 |  | 
|  | 5646 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then | 
|  | 5647 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5648 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 | 
|  | 5649 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} | 
|  | 5650 | { (exit 1); exit 1; }; }; | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5651 | fi | 
|  | 5652 | fi | 
|  | 5653 |  | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5654 |  | 
|  | 5655 | # Check whether --with-bug-report-url was given. | 
|  | 5656 | if test "${with_bug_report_url+set}" = set; then | 
|  | 5657 | withval=$with_bug_report_url; | 
|  | 5658 | else | 
| NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5659 | withval="http://llvm.org/bugs/" | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5660 | fi | 
|  | 5661 |  | 
|  | 5662 |  | 
|  | 5663 | cat >>confdefs.h <<_ACEOF | 
|  | 5664 | #define BUG_REPORT_URL "$withval" | 
|  | 5665 | _ACEOF | 
|  | 5666 |  | 
|  | 5667 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5668 | # Check whether --enable-libffi was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5669 | if test "${enable_libffi+set}" = set; then | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5670 | enableval=$enable_libffi; case "$enableval" in | 
|  | 5671 | yes) llvm_cv_enable_libffi="yes" ;; | 
|  | 5672 | no)  llvm_cv_enable_libffi="no"  ;; | 
|  | 5673 | *) { { 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] | 5674 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} | 
|  | 5675 | { (exit 1); exit 1; }; } ;; | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5676 | esac | 
|  | 5677 | else | 
|  | 5678 | llvm_cv_enable_libffi=no | 
|  | 5679 | fi | 
|  | 5680 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5681 |  | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5682 |  | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5683 | # Check whether --with-internal-prefix was given. | 
|  | 5684 | if test "${with_internal_prefix+set}" = set; then | 
|  | 5685 | withval=$with_internal_prefix; | 
|  | 5686 | else | 
|  | 5687 | withval="" | 
|  | 5688 | fi | 
|  | 5689 |  | 
|  | 5690 | INTERNAL_PREFIX=$withval | 
|  | 5691 |  | 
|  | 5692 |  | 
|  | 5693 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5694 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
|  | 5695 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | 
|  | 5696 | if test "${lt_cv_path_NM+set}" = set; then | 
|  | 5697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5698 | else | 
|  | 5699 | if test -n "$NM"; then | 
|  | 5700 | # Let the user override the test. | 
|  | 5701 | lt_cv_path_NM="$NM" | 
|  | 5702 | else | 
|  | 5703 | lt_nm_to_check="${ac_tool_prefix}nm" | 
|  | 5704 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
|  | 5705 | lt_nm_to_check="$lt_nm_to_check nm" | 
|  | 5706 | fi | 
|  | 5707 | for lt_tmp_nm in $lt_nm_to_check; do | 
|  | 5708 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 5709 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
|  | 5710 | IFS="$lt_save_ifs" | 
|  | 5711 | test -z "$ac_dir" && ac_dir=. | 
|  | 5712 | tmp_nm="$ac_dir/$lt_tmp_nm" | 
|  | 5713 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
|  | 5714 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 5715 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 5716 | #   nm: unknown option "B" ignored | 
|  | 5717 | # Tru64's nm complains that /dev/null is an invalid object file | 
|  | 5718 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 5719 | */dev/null* | *'Invalid file or object type'*) | 
|  | 5720 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 5721 | break | 
|  | 5722 | ;; | 
|  | 5723 | *) | 
|  | 5724 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 5725 | */dev/null*) | 
|  | 5726 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 5727 | break | 
|  | 5728 | ;; | 
|  | 5729 | *) | 
|  | 5730 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 5731 | continue # so that we can try to find one that supports BSD flags | 
|  | 5732 | ;; | 
|  | 5733 | esac | 
|  | 5734 | ;; | 
|  | 5735 | esac | 
|  | 5736 | fi | 
|  | 5737 | done | 
|  | 5738 | IFS="$lt_save_ifs" | 
|  | 5739 | done | 
|  | 5740 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|  | 5741 | fi | 
|  | 5742 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5743 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
|  | 5744 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5745 | NM="$lt_cv_path_NM" | 
|  | 5746 |  | 
|  | 5747 |  | 
|  | 5748 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5749 | { echo "$as_me:$LINENO: checking for GNU make" >&5 | 
|  | 5750 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } | 
|  | 5751 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
|  | 5752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5753 | else | 
|  | 5754 | llvm_cv_gnu_make_command='' | 
|  | 5755 | for a in "$MAKE" make gmake gnumake ; do | 
|  | 5756 | if test -z "$a" ; then continue ; fi ; | 
|  | 5757 | if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
|  | 5758 | then | 
|  | 5759 | llvm_cv_gnu_make_command=$a ; | 
|  | 5760 | break; | 
|  | 5761 | fi | 
|  | 5762 | done | 
|  | 5763 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5764 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
|  | 5765 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5766 | if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
|  | 5767 | ifGNUmake='' ; | 
|  | 5768 | else | 
|  | 5769 | ifGNUmake='#' ; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5770 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
|  | 5771 | echo "${ECHO_T}\"Not found\"" >&6; }; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5772 | fi | 
|  | 5773 |  | 
|  | 5774 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5775 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 5776 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5777 | LN_S=$as_ln_s | 
|  | 5778 | if test "$LN_S" = "ln -s"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5779 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 5780 | echo "${ECHO_T}yes" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5781 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5782 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 5783 | echo "${ECHO_T}no, using $LN_S" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5784 | fi | 
|  | 5785 |  | 
|  | 5786 | # Extract the first word of "cmp", so it can be a program name with args. | 
|  | 5787 | set dummy cmp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5788 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5790 | if test "${ac_cv_path_CMP+set}" = set; then | 
|  | 5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5792 | else | 
|  | 5793 | case $CMP in | 
|  | 5794 | [\\/]* | ?:[\\/]*) | 
|  | 5795 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
|  | 5796 | ;; | 
|  | 5797 | *) | 
|  | 5798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5799 | for as_dir in $PATH | 
|  | 5800 | do | 
|  | 5801 | IFS=$as_save_IFS | 
|  | 5802 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5803 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5804 | 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] | 5805 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5806 | 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] | 5807 | break 2 | 
|  | 5808 | fi | 
|  | 5809 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5810 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5811 | IFS=$as_save_IFS | 
|  | 5812 |  | 
|  | 5813 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
|  | 5814 | ;; | 
|  | 5815 | esac | 
|  | 5816 | fi | 
|  | 5817 | CMP=$ac_cv_path_CMP | 
|  | 5818 | if test -n "$CMP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5819 | { echo "$as_me:$LINENO: result: $CMP" >&5 | 
|  | 5820 | echo "${ECHO_T}$CMP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5821 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5822 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5823 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5824 | fi | 
|  | 5825 |  | 
|  | 5826 |  | 
|  | 5827 | # Extract the first word of "cp", so it can be a program name with args. | 
|  | 5828 | set dummy cp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5831 | if test "${ac_cv_path_CP+set}" = set; then | 
|  | 5832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5833 | else | 
|  | 5834 | case $CP in | 
|  | 5835 | [\\/]* | ?:[\\/]*) | 
|  | 5836 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
|  | 5837 | ;; | 
|  | 5838 | *) | 
|  | 5839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5840 | for as_dir in $PATH | 
|  | 5841 | do | 
|  | 5842 | IFS=$as_save_IFS | 
|  | 5843 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5844 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5845 | 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] | 5846 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5847 | 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] | 5848 | break 2 | 
|  | 5849 | fi | 
|  | 5850 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5851 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5852 | IFS=$as_save_IFS | 
|  | 5853 |  | 
|  | 5854 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
|  | 5855 | ;; | 
|  | 5856 | esac | 
|  | 5857 | fi | 
|  | 5858 | CP=$ac_cv_path_CP | 
|  | 5859 | if test -n "$CP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5860 | { echo "$as_me:$LINENO: result: $CP" >&5 | 
|  | 5861 | echo "${ECHO_T}$CP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5862 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5863 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5864 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5865 | fi | 
|  | 5866 |  | 
|  | 5867 |  | 
|  | 5868 | # Extract the first word of "date", so it can be a program name with args. | 
|  | 5869 | set dummy date; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5870 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5872 | if test "${ac_cv_path_DATE+set}" = set; then | 
|  | 5873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5874 | else | 
|  | 5875 | case $DATE in | 
|  | 5876 | [\\/]* | ?:[\\/]*) | 
|  | 5877 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. | 
|  | 5878 | ;; | 
|  | 5879 | *) | 
|  | 5880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5881 | for as_dir in $PATH | 
|  | 5882 | do | 
|  | 5883 | IFS=$as_save_IFS | 
|  | 5884 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5885 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5886 | 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] | 5887 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5888 | 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] | 5889 | break 2 | 
|  | 5890 | fi | 
|  | 5891 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5892 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5893 | IFS=$as_save_IFS | 
|  | 5894 |  | 
|  | 5895 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
|  | 5896 | ;; | 
|  | 5897 | esac | 
|  | 5898 | fi | 
|  | 5899 | DATE=$ac_cv_path_DATE | 
|  | 5900 | if test -n "$DATE"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5901 | { echo "$as_me:$LINENO: result: $DATE" >&5 | 
|  | 5902 | echo "${ECHO_T}$DATE" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5903 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5904 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5905 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5906 | fi | 
|  | 5907 |  | 
|  | 5908 |  | 
|  | 5909 | # Extract the first word of "find", so it can be a program name with args. | 
|  | 5910 | set dummy find; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5911 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5913 | if test "${ac_cv_path_FIND+set}" = set; then | 
|  | 5914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5915 | else | 
|  | 5916 | case $FIND in | 
|  | 5917 | [\\/]* | ?:[\\/]*) | 
|  | 5918 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
|  | 5919 | ;; | 
|  | 5920 | *) | 
|  | 5921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5922 | for as_dir in $PATH | 
|  | 5923 | do | 
|  | 5924 | IFS=$as_save_IFS | 
|  | 5925 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5926 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5927 | 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] | 5928 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5929 | 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] | 5930 | break 2 | 
|  | 5931 | fi | 
|  | 5932 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5933 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5934 | IFS=$as_save_IFS | 
|  | 5935 |  | 
|  | 5936 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
|  | 5937 | ;; | 
|  | 5938 | esac | 
|  | 5939 | fi | 
|  | 5940 | FIND=$ac_cv_path_FIND | 
|  | 5941 | if test -n "$FIND"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5942 | { echo "$as_me:$LINENO: result: $FIND" >&5 | 
|  | 5943 | echo "${ECHO_T}$FIND" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5944 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5945 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5946 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5947 | fi | 
|  | 5948 |  | 
|  | 5949 |  | 
|  | 5950 | # Extract the first word of "grep", so it can be a program name with args. | 
|  | 5951 | set dummy grep; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5952 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5954 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 5955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5956 | else | 
|  | 5957 | case $GREP in | 
|  | 5958 | [\\/]* | ?:[\\/]*) | 
|  | 5959 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
|  | 5960 | ;; | 
|  | 5961 | *) | 
|  | 5962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5963 | for as_dir in $PATH | 
|  | 5964 | do | 
|  | 5965 | IFS=$as_save_IFS | 
|  | 5966 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5967 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5968 | 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] | 5969 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5970 | 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] | 5971 | break 2 | 
|  | 5972 | fi | 
|  | 5973 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5974 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5975 | IFS=$as_save_IFS | 
|  | 5976 |  | 
|  | 5977 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
|  | 5978 | ;; | 
|  | 5979 | esac | 
|  | 5980 | fi | 
|  | 5981 | GREP=$ac_cv_path_GREP | 
|  | 5982 | if test -n "$GREP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5983 | { echo "$as_me:$LINENO: result: $GREP" >&5 | 
|  | 5984 | echo "${ECHO_T}$GREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5985 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5986 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5987 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5988 | fi | 
|  | 5989 |  | 
|  | 5990 |  | 
|  | 5991 | # Extract the first word of "mkdir", so it can be a program name with args. | 
|  | 5992 | set dummy mkdir; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5995 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
|  | 5996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5997 | else | 
|  | 5998 | case $MKDIR in | 
|  | 5999 | [\\/]* | ?:[\\/]*) | 
|  | 6000 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
|  | 6001 | ;; | 
|  | 6002 | *) | 
|  | 6003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6004 | for as_dir in $PATH | 
|  | 6005 | do | 
|  | 6006 | IFS=$as_save_IFS | 
|  | 6007 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6008 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6009 | 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] | 6010 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6011 | 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] | 6012 | break 2 | 
|  | 6013 | fi | 
|  | 6014 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6015 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6016 | IFS=$as_save_IFS | 
|  | 6017 |  | 
|  | 6018 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
|  | 6019 | ;; | 
|  | 6020 | esac | 
|  | 6021 | fi | 
|  | 6022 | MKDIR=$ac_cv_path_MKDIR | 
|  | 6023 | if test -n "$MKDIR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6024 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
|  | 6025 | echo "${ECHO_T}$MKDIR" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6026 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6027 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6028 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6029 | fi | 
|  | 6030 |  | 
|  | 6031 |  | 
|  | 6032 | # Extract the first word of "mv", so it can be a program name with args. | 
|  | 6033 | set dummy mv; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6034 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6036 | if test "${ac_cv_path_MV+set}" = set; then | 
|  | 6037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6038 | else | 
|  | 6039 | case $MV in | 
|  | 6040 | [\\/]* | ?:[\\/]*) | 
|  | 6041 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
|  | 6042 | ;; | 
|  | 6043 | *) | 
|  | 6044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6045 | for as_dir in $PATH | 
|  | 6046 | do | 
|  | 6047 | IFS=$as_save_IFS | 
|  | 6048 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6049 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6050 | 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] | 6051 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6052 | 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] | 6053 | break 2 | 
|  | 6054 | fi | 
|  | 6055 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6056 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6057 | IFS=$as_save_IFS | 
|  | 6058 |  | 
|  | 6059 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
|  | 6060 | ;; | 
|  | 6061 | esac | 
|  | 6062 | fi | 
|  | 6063 | MV=$ac_cv_path_MV | 
|  | 6064 | if test -n "$MV"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6065 | { echo "$as_me:$LINENO: result: $MV" >&5 | 
|  | 6066 | echo "${ECHO_T}$MV" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6067 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6068 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6069 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6070 | fi | 
|  | 6071 |  | 
|  | 6072 |  | 
|  | 6073 | if test -n "$ac_tool_prefix"; then | 
|  | 6074 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6075 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6078 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6080 | else | 
|  | 6081 | if test -n "$RANLIB"; then | 
|  | 6082 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6083 | else | 
|  | 6084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6085 | for as_dir in $PATH | 
|  | 6086 | do | 
|  | 6087 | IFS=$as_save_IFS | 
|  | 6088 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6089 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6090 | 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] | 6091 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6092 | 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] | 6093 | break 2 | 
|  | 6094 | fi | 
|  | 6095 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6096 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6097 | IFS=$as_save_IFS | 
|  | 6098 |  | 
|  | 6099 | fi | 
|  | 6100 | fi | 
|  | 6101 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6102 | if test -n "$RANLIB"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6103 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 6104 | echo "${ECHO_T}$RANLIB" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6105 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6106 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6107 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6108 | fi | 
|  | 6109 |  | 
|  | 6110 |  | 
|  | 6111 | fi | 
|  | 6112 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6113 | ac_ct_RANLIB=$RANLIB | 
|  | 6114 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6115 | set dummy ranlib; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6116 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6118 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 6119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6120 | else | 
|  | 6121 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6122 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6123 | else | 
|  | 6124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6125 | for as_dir in $PATH | 
|  | 6126 | do | 
|  | 6127 | IFS=$as_save_IFS | 
|  | 6128 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6129 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6130 | 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] | 6131 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6132 | 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] | 6133 | break 2 | 
|  | 6134 | fi | 
|  | 6135 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6136 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6137 | IFS=$as_save_IFS | 
|  | 6138 |  | 
|  | 6139 | fi | 
|  | 6140 | fi | 
|  | 6141 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6142 | if test -n "$ac_ct_RANLIB"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6143 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 6144 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6145 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6146 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6147 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6148 | fi | 
|  | 6149 |  | 
|  | 6150 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6151 | RANLIB=":" | 
|  | 6152 | else | 
|  | 6153 | case $cross_compiling:$ac_tool_warned in | 
|  | 6154 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6155 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6156 | whose name does not start with the host triplet.  If you think this | 
|  | 6157 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 6158 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6159 | whose name does not start with the host triplet.  If you think this | 
|  | 6160 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6161 | ac_tool_warned=yes ;; | 
|  | 6162 | esac | 
|  | 6163 | RANLIB=$ac_ct_RANLIB | 
|  | 6164 | fi | 
|  | 6165 | else | 
|  | 6166 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6167 | fi | 
|  | 6168 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6169 | if test -n "$ac_tool_prefix"; then | 
|  | 6170 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 6171 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6172 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6174 | if test "${ac_cv_prog_AR+set}" = set; then | 
|  | 6175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6176 | else | 
|  | 6177 | if test -n "$AR"; then | 
|  | 6178 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6179 | else | 
|  | 6180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6181 | for as_dir in $PATH | 
|  | 6182 | do | 
|  | 6183 | IFS=$as_save_IFS | 
|  | 6184 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6185 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6186 | 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] | 6187 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6188 | 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] | 6189 | break 2 | 
|  | 6190 | fi | 
|  | 6191 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6192 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6193 | IFS=$as_save_IFS | 
|  | 6194 |  | 
|  | 6195 | fi | 
|  | 6196 | fi | 
|  | 6197 | AR=$ac_cv_prog_AR | 
|  | 6198 | if test -n "$AR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6199 | { echo "$as_me:$LINENO: result: $AR" >&5 | 
|  | 6200 | echo "${ECHO_T}$AR" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6201 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6202 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6203 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6204 | fi | 
|  | 6205 |  | 
|  | 6206 |  | 
|  | 6207 | fi | 
|  | 6208 | if test -z "$ac_cv_prog_AR"; then | 
|  | 6209 | ac_ct_AR=$AR | 
|  | 6210 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 6211 | set dummy ar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6212 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6214 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
|  | 6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6216 | else | 
|  | 6217 | if test -n "$ac_ct_AR"; then | 
|  | 6218 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6219 | else | 
|  | 6220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6221 | for as_dir in $PATH | 
|  | 6222 | do | 
|  | 6223 | IFS=$as_save_IFS | 
|  | 6224 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6225 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6226 | 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] | 6227 | ac_cv_prog_ac_ct_AR="ar" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6228 | 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] | 6229 | break 2 | 
|  | 6230 | fi | 
|  | 6231 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6232 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6233 | IFS=$as_save_IFS | 
|  | 6234 |  | 
|  | 6235 | fi | 
|  | 6236 | fi | 
|  | 6237 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6238 | if test -n "$ac_ct_AR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6239 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
|  | 6240 | echo "${ECHO_T}$ac_ct_AR" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6241 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6242 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6243 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6244 | fi | 
|  | 6245 |  | 
|  | 6246 | if test "x$ac_ct_AR" = x; then | 
|  | 6247 | AR="false" | 
|  | 6248 | else | 
|  | 6249 | case $cross_compiling:$ac_tool_warned in | 
|  | 6250 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6252 | whose name does not start with the host triplet.  If you think this | 
|  | 6253 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 6254 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6255 | whose name does not start with the host triplet.  If you think this | 
|  | 6256 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6257 | ac_tool_warned=yes ;; | 
|  | 6258 | esac | 
|  | 6259 | AR=$ac_ct_AR | 
|  | 6260 | fi | 
|  | 6261 | else | 
|  | 6262 | AR="$ac_cv_prog_AR" | 
|  | 6263 | fi | 
|  | 6264 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6265 | # Extract the first word of "rm", so it can be a program name with args. | 
|  | 6266 | set dummy rm; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6269 | if test "${ac_cv_path_RM+set}" = set; then | 
|  | 6270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6271 | else | 
|  | 6272 | case $RM in | 
|  | 6273 | [\\/]* | ?:[\\/]*) | 
|  | 6274 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
|  | 6275 | ;; | 
|  | 6276 | *) | 
|  | 6277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6278 | for as_dir in $PATH | 
|  | 6279 | do | 
|  | 6280 | IFS=$as_save_IFS | 
|  | 6281 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6282 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6283 | 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] | 6284 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6285 | 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] | 6286 | break 2 | 
|  | 6287 | fi | 
|  | 6288 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6289 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6290 | IFS=$as_save_IFS | 
|  | 6291 |  | 
|  | 6292 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
|  | 6293 | ;; | 
|  | 6294 | esac | 
|  | 6295 | fi | 
|  | 6296 | RM=$ac_cv_path_RM | 
|  | 6297 | if test -n "$RM"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6298 | { echo "$as_me:$LINENO: result: $RM" >&5 | 
|  | 6299 | echo "${ECHO_T}$RM" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6300 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6302 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6303 | fi | 
|  | 6304 |  | 
|  | 6305 |  | 
|  | 6306 | # Extract the first word of "sed", so it can be a program name with args. | 
|  | 6307 | set dummy sed; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6308 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6310 | if test "${ac_cv_path_SED+set}" = set; then | 
|  | 6311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6312 | else | 
|  | 6313 | case $SED in | 
|  | 6314 | [\\/]* | ?:[\\/]*) | 
|  | 6315 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
|  | 6316 | ;; | 
|  | 6317 | *) | 
|  | 6318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6319 | for as_dir in $PATH | 
|  | 6320 | do | 
|  | 6321 | IFS=$as_save_IFS | 
|  | 6322 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6323 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6324 | 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] | 6325 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6326 | 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] | 6327 | break 2 | 
|  | 6328 | fi | 
|  | 6329 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6330 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6331 | IFS=$as_save_IFS | 
|  | 6332 |  | 
|  | 6333 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
|  | 6334 | ;; | 
|  | 6335 | esac | 
|  | 6336 | fi | 
|  | 6337 | SED=$ac_cv_path_SED | 
|  | 6338 | if test -n "$SED"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6339 | { echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 6340 | echo "${ECHO_T}$SED" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6341 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6342 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6343 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6344 | fi | 
|  | 6345 |  | 
|  | 6346 |  | 
|  | 6347 | # Extract the first word of "tar", so it can be a program name with args. | 
|  | 6348 | set dummy tar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6349 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6351 | if test "${ac_cv_path_TAR+set}" = set; then | 
|  | 6352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6353 | else | 
|  | 6354 | case $TAR in | 
|  | 6355 | [\\/]* | ?:[\\/]*) | 
|  | 6356 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
|  | 6357 | ;; | 
|  | 6358 | *) | 
|  | 6359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6360 | for as_dir in $PATH | 
|  | 6361 | do | 
|  | 6362 | IFS=$as_save_IFS | 
|  | 6363 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6364 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6365 | 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] | 6366 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6367 | 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] | 6368 | break 2 | 
|  | 6369 | fi | 
|  | 6370 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6371 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6372 | IFS=$as_save_IFS | 
|  | 6373 |  | 
|  | 6374 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
|  | 6375 | ;; | 
|  | 6376 | esac | 
|  | 6377 | fi | 
|  | 6378 | TAR=$ac_cv_path_TAR | 
|  | 6379 | if test -n "$TAR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6380 | { echo "$as_me:$LINENO: result: $TAR" >&5 | 
|  | 6381 | echo "${ECHO_T}$TAR" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6382 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6383 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6384 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6385 | fi | 
|  | 6386 |  | 
|  | 6387 |  | 
|  | 6388 | # Extract the first word of "pwd", so it can be a program name with args. | 
|  | 6389 | set dummy pwd; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6392 | if test "${ac_cv_path_BINPWD+set}" = set; then | 
|  | 6393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6394 | else | 
|  | 6395 | case $BINPWD in | 
|  | 6396 | [\\/]* | ?:[\\/]*) | 
|  | 6397 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. | 
|  | 6398 | ;; | 
|  | 6399 | *) | 
|  | 6400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6401 | for as_dir in $PATH | 
|  | 6402 | do | 
|  | 6403 | IFS=$as_save_IFS | 
|  | 6404 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6405 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6406 | 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] | 6407 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6408 | 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] | 6409 | break 2 | 
|  | 6410 | fi | 
|  | 6411 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6412 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6413 | IFS=$as_save_IFS | 
|  | 6414 |  | 
|  | 6415 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" | 
|  | 6416 | ;; | 
|  | 6417 | esac | 
|  | 6418 | fi | 
|  | 6419 | BINPWD=$ac_cv_path_BINPWD | 
|  | 6420 | if test -n "$BINPWD"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6421 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 | 
|  | 6422 | echo "${ECHO_T}$BINPWD" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6423 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6424 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6425 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6426 | fi | 
|  | 6427 |  | 
|  | 6428 |  | 
|  | 6429 |  | 
|  | 6430 | # Extract the first word of "Graphviz", so it can be a program name with args. | 
|  | 6431 | set dummy Graphviz; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6432 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6434 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then | 
|  | 6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6436 | else | 
|  | 6437 | case $GRAPHVIZ in | 
|  | 6438 | [\\/]* | ?:[\\/]*) | 
|  | 6439 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. | 
|  | 6440 | ;; | 
|  | 6441 | *) | 
|  | 6442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6443 | for as_dir in $PATH | 
|  | 6444 | do | 
|  | 6445 | IFS=$as_save_IFS | 
|  | 6446 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6447 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6448 | 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] | 6449 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6450 | 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] | 6451 | break 2 | 
|  | 6452 | fi | 
|  | 6453 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6454 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6455 | IFS=$as_save_IFS | 
|  | 6456 |  | 
|  | 6457 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" | 
|  | 6458 | ;; | 
|  | 6459 | esac | 
|  | 6460 | fi | 
|  | 6461 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ | 
|  | 6462 | if test -n "$GRAPHVIZ"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6463 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 | 
|  | 6464 | echo "${ECHO_T}$GRAPHVIZ" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6465 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6466 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6467 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6468 | fi | 
|  | 6469 |  | 
|  | 6470 |  | 
|  | 6471 | if test "$GRAPHVIZ" != "echo Graphviz" ; then | 
|  | 6472 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6473 | cat >>confdefs.h <<\_ACEOF | 
|  | 6474 | #define HAVE_GRAPHVIZ 1 | 
|  | 6475 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6476 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6477 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6478 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6479 | fi | 
|  | 6480 |  | 
|  | 6481 | cat >>confdefs.h <<_ACEOF | 
|  | 6482 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" | 
|  | 6483 | _ACEOF | 
|  | 6484 |  | 
|  | 6485 | fi | 
|  | 6486 | # Extract the first word of "dot", so it can be a program name with args. | 
|  | 6487 | set dummy dot; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6488 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6490 | if test "${ac_cv_path_DOT+set}" = set; then | 
|  | 6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6492 | else | 
|  | 6493 | case $DOT in | 
|  | 6494 | [\\/]* | ?:[\\/]*) | 
|  | 6495 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
|  | 6496 | ;; | 
|  | 6497 | *) | 
|  | 6498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6499 | for as_dir in $PATH | 
|  | 6500 | do | 
|  | 6501 | IFS=$as_save_IFS | 
|  | 6502 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6503 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6504 | 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] | 6505 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6506 | 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] | 6507 | break 2 | 
|  | 6508 | fi | 
|  | 6509 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6510 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6511 | IFS=$as_save_IFS | 
|  | 6512 |  | 
|  | 6513 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" | 
|  | 6514 | ;; | 
|  | 6515 | esac | 
|  | 6516 | fi | 
|  | 6517 | DOT=$ac_cv_path_DOT | 
|  | 6518 | if test -n "$DOT"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6519 | { echo "$as_me:$LINENO: result: $DOT" >&5 | 
|  | 6520 | echo "${ECHO_T}$DOT" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6521 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6522 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6523 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6524 | fi | 
|  | 6525 |  | 
|  | 6526 |  | 
|  | 6527 | if test "$DOT" != "echo dot" ; then | 
|  | 6528 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6529 | cat >>confdefs.h <<\_ACEOF | 
|  | 6530 | #define HAVE_DOT 1 | 
|  | 6531 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6532 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6533 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6534 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6535 | fi | 
|  | 6536 |  | 
|  | 6537 | cat >>confdefs.h <<_ACEOF | 
|  | 6538 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" | 
|  | 6539 | _ACEOF | 
|  | 6540 |  | 
|  | 6541 | fi | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6542 | # Extract the first word of "fdp", so it can be a program name with args. | 
|  | 6543 | set dummy fdp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6544 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6546 | if test "${ac_cv_path_FDP+set}" = set; then | 
|  | 6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6548 | else | 
|  | 6549 | case $FDP in | 
|  | 6550 | [\\/]* | ?:[\\/]*) | 
|  | 6551 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. | 
|  | 6552 | ;; | 
|  | 6553 | *) | 
|  | 6554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6555 | for as_dir in $PATH | 
|  | 6556 | do | 
|  | 6557 | IFS=$as_save_IFS | 
|  | 6558 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6559 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6560 | 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] | 6561 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6562 | 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] | 6563 | break 2 | 
|  | 6564 | fi | 
|  | 6565 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6566 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6567 | IFS=$as_save_IFS | 
|  | 6568 |  | 
|  | 6569 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" | 
|  | 6570 | ;; | 
|  | 6571 | esac | 
|  | 6572 | fi | 
|  | 6573 | FDP=$ac_cv_path_FDP | 
|  | 6574 | if test -n "$FDP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6575 | { echo "$as_me:$LINENO: result: $FDP" >&5 | 
|  | 6576 | echo "${ECHO_T}$FDP" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6577 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6578 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6579 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6580 | fi | 
|  | 6581 |  | 
|  | 6582 |  | 
|  | 6583 | if test "$FDP" != "echo fdp" ; then | 
|  | 6584 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6585 | cat >>confdefs.h <<\_ACEOF | 
|  | 6586 | #define HAVE_FDP 1 | 
|  | 6587 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6588 |  | 
|  | 6589 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6590 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6591 | fi | 
|  | 6592 |  | 
|  | 6593 | cat >>confdefs.h <<_ACEOF | 
|  | 6594 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" | 
|  | 6595 | _ACEOF | 
|  | 6596 |  | 
|  | 6597 | fi | 
|  | 6598 | # Extract the first word of "neato", so it can be a program name with args. | 
|  | 6599 | set dummy neato; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6602 | if test "${ac_cv_path_NEATO+set}" = set; then | 
|  | 6603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6604 | else | 
|  | 6605 | case $NEATO in | 
|  | 6606 | [\\/]* | ?:[\\/]*) | 
|  | 6607 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. | 
|  | 6608 | ;; | 
|  | 6609 | *) | 
|  | 6610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6611 | for as_dir in $PATH | 
|  | 6612 | do | 
|  | 6613 | IFS=$as_save_IFS | 
|  | 6614 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6615 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6616 | 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] | 6617 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6618 | 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] | 6619 | break 2 | 
|  | 6620 | fi | 
|  | 6621 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6622 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6623 | IFS=$as_save_IFS | 
|  | 6624 |  | 
|  | 6625 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" | 
|  | 6626 | ;; | 
|  | 6627 | esac | 
|  | 6628 | fi | 
|  | 6629 | NEATO=$ac_cv_path_NEATO | 
|  | 6630 | if test -n "$NEATO"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6631 | { echo "$as_me:$LINENO: result: $NEATO" >&5 | 
|  | 6632 | echo "${ECHO_T}$NEATO" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6633 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6634 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6635 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6636 | fi | 
|  | 6637 |  | 
|  | 6638 |  | 
|  | 6639 | if test "$NEATO" != "echo neato" ; then | 
|  | 6640 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6641 | cat >>confdefs.h <<\_ACEOF | 
|  | 6642 | #define HAVE_NEATO 1 | 
|  | 6643 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6644 |  | 
|  | 6645 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6646 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6647 | fi | 
|  | 6648 |  | 
|  | 6649 | cat >>confdefs.h <<_ACEOF | 
|  | 6650 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" | 
|  | 6651 | _ACEOF | 
|  | 6652 |  | 
|  | 6653 | fi | 
|  | 6654 | # Extract the first word of "twopi", so it can be a program name with args. | 
|  | 6655 | set dummy twopi; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6658 | if test "${ac_cv_path_TWOPI+set}" = set; then | 
|  | 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6660 | else | 
|  | 6661 | case $TWOPI in | 
|  | 6662 | [\\/]* | ?:[\\/]*) | 
|  | 6663 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. | 
|  | 6664 | ;; | 
|  | 6665 | *) | 
|  | 6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6667 | for as_dir in $PATH | 
|  | 6668 | do | 
|  | 6669 | IFS=$as_save_IFS | 
|  | 6670 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6671 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6672 | 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] | 6673 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6674 | 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] | 6675 | break 2 | 
|  | 6676 | fi | 
|  | 6677 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6678 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6679 | IFS=$as_save_IFS | 
|  | 6680 |  | 
|  | 6681 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" | 
|  | 6682 | ;; | 
|  | 6683 | esac | 
|  | 6684 | fi | 
|  | 6685 | TWOPI=$ac_cv_path_TWOPI | 
|  | 6686 | if test -n "$TWOPI"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6687 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 | 
|  | 6688 | echo "${ECHO_T}$TWOPI" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6689 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6690 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6691 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6692 | fi | 
|  | 6693 |  | 
|  | 6694 |  | 
|  | 6695 | if test "$TWOPI" != "echo twopi" ; then | 
|  | 6696 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6697 | cat >>confdefs.h <<\_ACEOF | 
|  | 6698 | #define HAVE_TWOPI 1 | 
|  | 6699 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6700 |  | 
|  | 6701 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6702 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6703 | fi | 
|  | 6704 |  | 
|  | 6705 | cat >>confdefs.h <<_ACEOF | 
|  | 6706 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" | 
|  | 6707 | _ACEOF | 
|  | 6708 |  | 
|  | 6709 | fi | 
|  | 6710 | # Extract the first word of "circo", so it can be a program name with args. | 
|  | 6711 | set dummy circo; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6712 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6714 | if test "${ac_cv_path_CIRCO+set}" = set; then | 
|  | 6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6716 | else | 
|  | 6717 | case $CIRCO in | 
|  | 6718 | [\\/]* | ?:[\\/]*) | 
|  | 6719 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. | 
|  | 6720 | ;; | 
|  | 6721 | *) | 
|  | 6722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6723 | for as_dir in $PATH | 
|  | 6724 | do | 
|  | 6725 | IFS=$as_save_IFS | 
|  | 6726 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6727 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6728 | 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] | 6729 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6730 | 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] | 6731 | break 2 | 
|  | 6732 | fi | 
|  | 6733 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6734 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6735 | IFS=$as_save_IFS | 
|  | 6736 |  | 
|  | 6737 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" | 
|  | 6738 | ;; | 
|  | 6739 | esac | 
|  | 6740 | fi | 
|  | 6741 | CIRCO=$ac_cv_path_CIRCO | 
|  | 6742 | if test -n "$CIRCO"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6743 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 | 
|  | 6744 | echo "${ECHO_T}$CIRCO" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6745 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6746 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6747 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6748 | fi | 
|  | 6749 |  | 
|  | 6750 |  | 
|  | 6751 | if test "$CIRCO" != "echo circo" ; then | 
|  | 6752 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6753 | cat >>confdefs.h <<\_ACEOF | 
|  | 6754 | #define HAVE_CIRCO 1 | 
|  | 6755 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6756 |  | 
|  | 6757 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6758 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6759 | fi | 
|  | 6760 |  | 
|  | 6761 | cat >>confdefs.h <<_ACEOF | 
|  | 6762 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" | 
|  | 6763 | _ACEOF | 
|  | 6764 |  | 
|  | 6765 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6766 | for ac_prog in gv gsview32 | 
|  | 6767 | do | 
|  | 6768 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6769 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6770 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6772 | if test "${ac_cv_path_GV+set}" = set; then | 
|  | 6773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6774 | else | 
|  | 6775 | case $GV in | 
|  | 6776 | [\\/]* | ?:[\\/]*) | 
|  | 6777 | ac_cv_path_GV="$GV" # Let the user override the test with a path. | 
|  | 6778 | ;; | 
|  | 6779 | *) | 
|  | 6780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6781 | for as_dir in $PATH | 
|  | 6782 | do | 
|  | 6783 | IFS=$as_save_IFS | 
|  | 6784 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6785 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6786 | 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] | 6787 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6788 | 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] | 6789 | break 2 | 
|  | 6790 | fi | 
|  | 6791 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6792 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6793 | IFS=$as_save_IFS | 
|  | 6794 |  | 
|  | 6795 | ;; | 
|  | 6796 | esac | 
|  | 6797 | fi | 
|  | 6798 | GV=$ac_cv_path_GV | 
|  | 6799 | if test -n "$GV"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6800 | { echo "$as_me:$LINENO: result: $GV" >&5 | 
|  | 6801 | echo "${ECHO_T}$GV" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6802 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6803 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6804 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6805 | fi | 
|  | 6806 |  | 
|  | 6807 |  | 
|  | 6808 | test -n "$GV" && break | 
|  | 6809 | done | 
|  | 6810 | test -n "$GV" || GV="echo gv" | 
|  | 6811 |  | 
|  | 6812 | if test "$GV" != "echo gv" ; then | 
|  | 6813 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6814 | cat >>confdefs.h <<\_ACEOF | 
|  | 6815 | #define HAVE_GV 1 | 
|  | 6816 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6817 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6818 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6819 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6820 | fi | 
|  | 6821 |  | 
|  | 6822 | cat >>confdefs.h <<_ACEOF | 
|  | 6823 | #define LLVM_PATH_GV "$GV${EXEEXT}" | 
|  | 6824 | _ACEOF | 
|  | 6825 |  | 
|  | 6826 | fi | 
|  | 6827 | # Extract the first word of "dotty", so it can be a program name with args. | 
|  | 6828 | set dummy dotty; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6831 | if test "${ac_cv_path_DOTTY+set}" = set; then | 
|  | 6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6833 | else | 
|  | 6834 | case $DOTTY in | 
|  | 6835 | [\\/]* | ?:[\\/]*) | 
|  | 6836 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. | 
|  | 6837 | ;; | 
|  | 6838 | *) | 
|  | 6839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6840 | for as_dir in $PATH | 
|  | 6841 | do | 
|  | 6842 | IFS=$as_save_IFS | 
|  | 6843 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6845 | 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] | 6846 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6847 | 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] | 6848 | break 2 | 
|  | 6849 | fi | 
|  | 6850 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6851 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6852 | IFS=$as_save_IFS | 
|  | 6853 |  | 
|  | 6854 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" | 
|  | 6855 | ;; | 
|  | 6856 | esac | 
|  | 6857 | fi | 
|  | 6858 | DOTTY=$ac_cv_path_DOTTY | 
|  | 6859 | if test -n "$DOTTY"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6860 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 | 
|  | 6861 | echo "${ECHO_T}$DOTTY" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6862 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6863 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6864 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6865 | fi | 
|  | 6866 |  | 
|  | 6867 |  | 
|  | 6868 | if test "$DOTTY" != "echo dotty" ; then | 
|  | 6869 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6870 | cat >>confdefs.h <<\_ACEOF | 
|  | 6871 | #define HAVE_DOTTY 1 | 
|  | 6872 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6873 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6874 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6875 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6876 | fi | 
|  | 6877 |  | 
|  | 6878 | cat >>confdefs.h <<_ACEOF | 
|  | 6879 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" | 
|  | 6880 | _ACEOF | 
|  | 6881 |  | 
|  | 6882 | fi | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6883 | # Extract the first word of "xdot.py", so it can be a program name with args. | 
|  | 6884 | set dummy xdot.py; ac_word=$2 | 
|  | 6885 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6887 | if test "${ac_cv_path_XDOT_PY+set}" = set; then | 
|  | 6888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6889 | else | 
|  | 6890 | case $XDOT_PY in | 
|  | 6891 | [\\/]* | ?:[\\/]*) | 
|  | 6892 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. | 
|  | 6893 | ;; | 
|  | 6894 | *) | 
|  | 6895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6896 | for as_dir in $PATH | 
|  | 6897 | do | 
|  | 6898 | IFS=$as_save_IFS | 
|  | 6899 | test -z "$as_dir" && as_dir=. | 
|  | 6900 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6902 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" | 
|  | 6903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6904 | break 2 | 
|  | 6905 | fi | 
|  | 6906 | done | 
|  | 6907 | done | 
|  | 6908 | IFS=$as_save_IFS | 
|  | 6909 |  | 
|  | 6910 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" | 
|  | 6911 | ;; | 
|  | 6912 | esac | 
|  | 6913 | fi | 
|  | 6914 | XDOT_PY=$ac_cv_path_XDOT_PY | 
|  | 6915 | if test -n "$XDOT_PY"; then | 
|  | 6916 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 | 
|  | 6917 | echo "${ECHO_T}$XDOT_PY" >&6; } | 
|  | 6918 | else | 
|  | 6919 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6920 | echo "${ECHO_T}no" >&6; } | 
|  | 6921 | fi | 
|  | 6922 |  | 
|  | 6923 |  | 
|  | 6924 | if test "$XDOT_PY" != "echo xdot.py" ; then | 
|  | 6925 |  | 
|  | 6926 | cat >>confdefs.h <<\_ACEOF | 
|  | 6927 | #define HAVE_XDOT_PY 1 | 
|  | 6928 | _ACEOF | 
|  | 6929 |  | 
|  | 6930 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6931 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6932 | fi | 
|  | 6933 |  | 
|  | 6934 | cat >>confdefs.h <<_ACEOF | 
|  | 6935 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" | 
|  | 6936 | _ACEOF | 
|  | 6937 |  | 
|  | 6938 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6939 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6940 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6941 | # so one script is as good as another.  But avoid the broken or | 
|  | 6942 | # incompatible versions: | 
|  | 6943 | # SysV /etc/install, /usr/sbin/install | 
|  | 6944 | # SunOS /usr/etc/install | 
|  | 6945 | # IRIX /sbin/install | 
|  | 6946 | # AIX /bin/install | 
|  | 6947 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6948 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6949 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6950 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6951 | # OS/2's system install, which has a completely different semantic | 
|  | 6952 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6953 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
|  | 6954 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6955 | if test -z "$INSTALL"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6956 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6958 | else | 
|  | 6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6960 | for as_dir in $PATH | 
|  | 6961 | do | 
|  | 6962 | IFS=$as_save_IFS | 
|  | 6963 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6965 | case $as_dir/ in | 
|  | 6966 | ./ | .// | /cC/* | \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6967 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6968 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6969 | /usr/ucb/* ) ;; | 
|  | 6970 | *) | 
|  | 6971 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6972 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6973 | # by default. | 
|  | 6974 | for ac_prog in ginstall scoinst install; do | 
|  | 6975 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6976 | 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] | 6977 | if test $ac_prog = install && | 
|  | 6978 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6979 | # AIX install.  It has an incompatible calling convention. | 
|  | 6980 | : | 
|  | 6981 | elif test $ac_prog = install && | 
|  | 6982 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6983 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6984 | : | 
|  | 6985 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6986 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6987 | break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6988 | fi | 
|  | 6989 | fi | 
|  | 6990 | done | 
|  | 6991 | done | 
|  | 6992 | ;; | 
|  | 6993 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6994 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6995 | IFS=$as_save_IFS | 
|  | 6996 |  | 
|  | 6997 |  | 
|  | 6998 | fi | 
|  | 6999 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 7000 | INSTALL=$ac_cv_path_install | 
|  | 7001 | else | 
|  | 7002 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 7003 | # value for INSTALL within a source directory, because that will | 
|  | 7004 | # break other packages using the cache if that directory is | 
|  | 7005 | # removed, or if the value is a relative name. | 
|  | 7006 | INSTALL=$ac_install_sh | 
|  | 7007 | fi | 
|  | 7008 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7009 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
|  | 7010 | echo "${ECHO_T}$INSTALL" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7011 |  | 
|  | 7012 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 7013 | # It thinks the first close brace ends the variable substitution. | 
|  | 7014 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 7015 |  | 
|  | 7016 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 7017 |  | 
|  | 7018 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 7019 |  | 
| Eric Christopher | e3befc7 | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7020 | case "$INSTALL" in | 
|  | 7021 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 7022 | *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; | 
|  | 7023 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7024 |  | 
|  | 7025 | # Extract the first word of "bzip2", so it can be a program name with args. | 
|  | 7026 | set dummy bzip2; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7027 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7029 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
|  | 7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7031 | else | 
|  | 7032 | case $BZIP2 in | 
|  | 7033 | [\\/]* | ?:[\\/]*) | 
|  | 7034 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
|  | 7035 | ;; | 
|  | 7036 | *) | 
|  | 7037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7038 | for as_dir in $PATH | 
|  | 7039 | do | 
|  | 7040 | IFS=$as_save_IFS | 
|  | 7041 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7042 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7043 | 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] | 7044 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7045 | 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] | 7046 | break 2 | 
|  | 7047 | fi | 
|  | 7048 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7049 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7050 | IFS=$as_save_IFS | 
|  | 7051 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7052 | ;; | 
|  | 7053 | esac | 
|  | 7054 | fi | 
|  | 7055 | BZIP2=$ac_cv_path_BZIP2 | 
|  | 7056 | if test -n "$BZIP2"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7057 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
|  | 7058 | echo "${ECHO_T}$BZIP2" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7059 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7060 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7061 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7062 | fi | 
|  | 7063 |  | 
|  | 7064 |  | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7065 | # Extract the first word of "cat", so it can be a program name with args. | 
|  | 7066 | set dummy cat; ac_word=$2 | 
|  | 7067 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7069 | if test "${ac_cv_path_CAT+set}" = set; then | 
|  | 7070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7071 | else | 
|  | 7072 | case $CAT in | 
|  | 7073 | [\\/]* | ?:[\\/]*) | 
|  | 7074 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | 
|  | 7075 | ;; | 
|  | 7076 | *) | 
|  | 7077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7078 | for as_dir in $PATH | 
|  | 7079 | do | 
|  | 7080 | IFS=$as_save_IFS | 
|  | 7081 | test -z "$as_dir" && as_dir=. | 
|  | 7082 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7084 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7086 | break 2 | 
|  | 7087 | fi | 
|  | 7088 | done | 
|  | 7089 | done | 
|  | 7090 | IFS=$as_save_IFS | 
|  | 7091 |  | 
|  | 7092 | ;; | 
|  | 7093 | esac | 
|  | 7094 | fi | 
|  | 7095 | CAT=$ac_cv_path_CAT | 
|  | 7096 | if test -n "$CAT"; then | 
|  | 7097 | { echo "$as_me:$LINENO: result: $CAT" >&5 | 
|  | 7098 | echo "${ECHO_T}$CAT" >&6; } | 
|  | 7099 | else | 
|  | 7100 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7101 | echo "${ECHO_T}no" >&6; } | 
|  | 7102 | fi | 
|  | 7103 |  | 
|  | 7104 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7105 | # Extract the first word of "doxygen", so it can be a program name with args. | 
|  | 7106 | set dummy doxygen; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7107 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7109 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
|  | 7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7111 | else | 
|  | 7112 | case $DOXYGEN in | 
|  | 7113 | [\\/]* | ?:[\\/]*) | 
|  | 7114 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
|  | 7115 | ;; | 
|  | 7116 | *) | 
|  | 7117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7118 | for as_dir in $PATH | 
|  | 7119 | do | 
|  | 7120 | IFS=$as_save_IFS | 
|  | 7121 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7122 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7123 | 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] | 7124 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7125 | 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] | 7126 | break 2 | 
|  | 7127 | fi | 
|  | 7128 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7129 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7130 | IFS=$as_save_IFS | 
|  | 7131 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7132 | ;; | 
|  | 7133 | esac | 
|  | 7134 | fi | 
|  | 7135 | DOXYGEN=$ac_cv_path_DOXYGEN | 
|  | 7136 | if test -n "$DOXYGEN"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
|  | 7138 | echo "${ECHO_T}$DOXYGEN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7139 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7140 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7141 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7142 | fi | 
|  | 7143 |  | 
|  | 7144 |  | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7145 | # Extract the first word of "groff", so it can be a program name with args. | 
|  | 7146 | set dummy groff; ac_word=$2 | 
|  | 7147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7149 | if test "${ac_cv_path_GROFF+set}" = set; then | 
|  | 7150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7151 | else | 
|  | 7152 | case $GROFF in | 
|  | 7153 | [\\/]* | ?:[\\/]*) | 
|  | 7154 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
|  | 7155 | ;; | 
|  | 7156 | *) | 
|  | 7157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7158 | for as_dir in $PATH | 
|  | 7159 | do | 
|  | 7160 | IFS=$as_save_IFS | 
|  | 7161 | test -z "$as_dir" && as_dir=. | 
|  | 7162 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7164 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7166 | break 2 | 
|  | 7167 | fi | 
|  | 7168 | done | 
|  | 7169 | done | 
|  | 7170 | IFS=$as_save_IFS | 
|  | 7171 |  | 
|  | 7172 | ;; | 
|  | 7173 | esac | 
|  | 7174 | fi | 
|  | 7175 | GROFF=$ac_cv_path_GROFF | 
|  | 7176 | if test -n "$GROFF"; then | 
|  | 7177 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | 
|  | 7178 | echo "${ECHO_T}$GROFF" >&6; } | 
|  | 7179 | else | 
|  | 7180 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7181 | echo "${ECHO_T}no" >&6; } | 
|  | 7182 | fi | 
|  | 7183 |  | 
|  | 7184 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7185 | # Extract the first word of "gzip", so it can be a program name with args. | 
|  | 7186 | set dummy gzip; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7187 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7189 | if test "${ac_cv_path_GZIPBIN+set}" = set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7191 | else | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7192 | case $GZIPBIN in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7193 | [\\/]* | ?:[\\/]*) | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7194 | 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] | 7195 | ;; | 
|  | 7196 | *) | 
|  | 7197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7198 | for as_dir in $PATH | 
|  | 7199 | do | 
|  | 7200 | IFS=$as_save_IFS | 
|  | 7201 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7202 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7203 | 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] | 7204 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7205 | 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] | 7206 | break 2 | 
|  | 7207 | fi | 
|  | 7208 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7209 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7210 | IFS=$as_save_IFS | 
|  | 7211 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7212 | ;; | 
|  | 7213 | esac | 
|  | 7214 | fi | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7215 | GZIPBIN=$ac_cv_path_GZIPBIN | 
|  | 7216 | if test -n "$GZIPBIN"; then | 
|  | 7217 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 | 
|  | 7218 | echo "${ECHO_T}$GZIPBIN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7219 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7220 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7221 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7222 | fi | 
|  | 7223 |  | 
|  | 7224 |  | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7225 | # Extract the first word of "pdfroff", so it can be a program name with args. | 
|  | 7226 | set dummy pdfroff; ac_word=$2 | 
|  | 7227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7229 | if test "${ac_cv_path_PDFROFF+set}" = set; then | 
|  | 7230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7231 | else | 
|  | 7232 | case $PDFROFF in | 
|  | 7233 | [\\/]* | ?:[\\/]*) | 
|  | 7234 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. | 
|  | 7235 | ;; | 
|  | 7236 | *) | 
|  | 7237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7238 | for as_dir in $PATH | 
|  | 7239 | do | 
|  | 7240 | IFS=$as_save_IFS | 
|  | 7241 | test -z "$as_dir" && as_dir=. | 
|  | 7242 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7244 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7246 | break 2 | 
|  | 7247 | fi | 
|  | 7248 | done | 
|  | 7249 | done | 
|  | 7250 | IFS=$as_save_IFS | 
|  | 7251 |  | 
|  | 7252 | ;; | 
|  | 7253 | esac | 
|  | 7254 | fi | 
|  | 7255 | PDFROFF=$ac_cv_path_PDFROFF | 
|  | 7256 | if test -n "$PDFROFF"; then | 
|  | 7257 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 | 
|  | 7258 | echo "${ECHO_T}$PDFROFF" >&6; } | 
|  | 7259 | else | 
|  | 7260 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7261 | echo "${ECHO_T}no" >&6; } | 
|  | 7262 | fi | 
|  | 7263 |  | 
|  | 7264 |  | 
|  | 7265 | # Extract the first word of "runtest", so it can be a program name with args. | 
|  | 7266 | set dummy runtest; ac_word=$2 | 
|  | 7267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7269 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
|  | 7270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7271 | else | 
|  | 7272 | case $RUNTEST in | 
|  | 7273 | [\\/]* | ?:[\\/]*) | 
|  | 7274 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
|  | 7275 | ;; | 
|  | 7276 | *) | 
|  | 7277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7278 | for as_dir in $PATH | 
|  | 7279 | do | 
|  | 7280 | IFS=$as_save_IFS | 
|  | 7281 | test -z "$as_dir" && as_dir=. | 
|  | 7282 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7284 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7286 | break 2 | 
|  | 7287 | fi | 
|  | 7288 | done | 
|  | 7289 | done | 
|  | 7290 | IFS=$as_save_IFS | 
|  | 7291 |  | 
|  | 7292 | ;; | 
|  | 7293 | esac | 
|  | 7294 | fi | 
|  | 7295 | RUNTEST=$ac_cv_path_RUNTEST | 
|  | 7296 | if test -n "$RUNTEST"; then | 
|  | 7297 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
|  | 7298 | echo "${ECHO_T}$RUNTEST" >&6; } | 
|  | 7299 | else | 
|  | 7300 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7301 | echo "${ECHO_T}no" >&6; } | 
|  | 7302 | fi | 
|  | 7303 |  | 
|  | 7304 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7305 |  | 
|  | 7306 | no_itcl=true | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7307 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
|  | 7308 | 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] | 7309 |  | 
|  | 7310 | # Check whether --with-tclinclude was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7311 | if test "${with_tclinclude+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7312 | withval=$with_tclinclude; with_tclinclude=${withval} | 
|  | 7313 | else | 
|  | 7314 | with_tclinclude='' | 
|  | 7315 | fi | 
|  | 7316 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7317 | if test "${ac_cv_path_tclsh+set}" = set; then | 
|  | 7318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7319 | else | 
|  | 7320 |  | 
|  | 7321 | if test x"${with_tclinclude}" != x ; then | 
|  | 7322 | if test -f ${with_tclinclude}/tclsh ; then | 
|  | 7323 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
|  | 7324 | elif test -f ${with_tclinclude}/src/tclsh ; then | 
|  | 7325 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
|  | 7326 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7327 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
|  | 7328 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
|  | 7329 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7330 | fi | 
|  | 7331 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7332 | fi | 
|  | 7333 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7334 |  | 
|  | 7335 | if test x"${ac_cv_path_tclsh}" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7336 | { echo "$as_me:$LINENO: result: none" >&5 | 
|  | 7337 | echo "${ECHO_T}none" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7338 | 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 | 
|  | 7339 | do | 
|  | 7340 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7341 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7344 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
|  | 7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7346 | else | 
|  | 7347 | case $TCLSH in | 
|  | 7348 | [\\/]* | ?:[\\/]*) | 
|  | 7349 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. | 
|  | 7350 | ;; | 
|  | 7351 | *) | 
|  | 7352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7353 | for as_dir in $PATH | 
|  | 7354 | do | 
|  | 7355 | IFS=$as_save_IFS | 
|  | 7356 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7357 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7359 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7360 | 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] | 7361 | break 2 | 
|  | 7362 | fi | 
|  | 7363 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7364 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7365 | IFS=$as_save_IFS | 
|  | 7366 |  | 
|  | 7367 | ;; | 
|  | 7368 | esac | 
|  | 7369 | fi | 
|  | 7370 | TCLSH=$ac_cv_path_TCLSH | 
|  | 7371 | if test -n "$TCLSH"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7372 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
|  | 7373 | echo "${ECHO_T}$TCLSH" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7374 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7375 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7376 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7377 | fi | 
|  | 7378 |  | 
|  | 7379 |  | 
|  | 7380 | test -n "$TCLSH" && break | 
|  | 7381 | done | 
|  | 7382 |  | 
|  | 7383 | if test x"${TCLSH}" = x ; then | 
|  | 7384 | ac_cv_path_tclsh=''; | 
|  | 7385 | else | 
|  | 7386 | ac_cv_path_tclsh="${TCLSH}"; | 
|  | 7387 | fi | 
|  | 7388 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7389 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
|  | 7390 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7391 | TCLSH="${ac_cv_path_tclsh}" | 
|  | 7392 |  | 
|  | 7393 | fi | 
|  | 7394 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7395 | # Extract the first word of "zip", so it can be a program name with args. | 
|  | 7396 | set dummy zip; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7399 | if test "${ac_cv_path_ZIP+set}" = set; then | 
|  | 7400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7401 | else | 
|  | 7402 | case $ZIP in | 
|  | 7403 | [\\/]* | ?:[\\/]*) | 
|  | 7404 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
|  | 7405 | ;; | 
|  | 7406 | *) | 
|  | 7407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7408 | for as_dir in $PATH | 
|  | 7409 | do | 
|  | 7410 | IFS=$as_save_IFS | 
|  | 7411 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7413 | 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] | 7414 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | 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] | 7416 | break 2 | 
|  | 7417 | fi | 
|  | 7418 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7419 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7420 | IFS=$as_save_IFS | 
|  | 7421 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7422 | ;; | 
|  | 7423 | esac | 
|  | 7424 | fi | 
|  | 7425 | ZIP=$ac_cv_path_ZIP | 
|  | 7426 | if test -n "$ZIP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7427 | { echo "$as_me:$LINENO: result: $ZIP" >&5 | 
|  | 7428 | echo "${ECHO_T}$ZIP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7429 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7430 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7431 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7432 | fi | 
|  | 7433 |  | 
|  | 7434 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7435 | for ac_prog in ocamlc | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7436 | do | 
|  | 7437 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7438 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7441 | if test "${ac_cv_path_OCAMLC+set}" = set; then | 
|  | 7442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7443 | else | 
|  | 7444 | case $OCAMLC in | 
|  | 7445 | [\\/]* | ?:[\\/]*) | 
|  | 7446 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. | 
|  | 7447 | ;; | 
|  | 7448 | *) | 
|  | 7449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7450 | for as_dir in $PATH | 
|  | 7451 | do | 
|  | 7452 | IFS=$as_save_IFS | 
|  | 7453 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7454 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7455 | 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] | 7456 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7457 | 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] | 7458 | break 2 | 
|  | 7459 | fi | 
|  | 7460 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7461 | done | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7462 | IFS=$as_save_IFS | 
|  | 7463 |  | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7464 | ;; | 
|  | 7465 | esac | 
|  | 7466 | fi | 
|  | 7467 | OCAMLC=$ac_cv_path_OCAMLC | 
|  | 7468 | if test -n "$OCAMLC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7469 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 | 
|  | 7470 | echo "${ECHO_T}$OCAMLC" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7471 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7473 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7474 | fi | 
|  | 7475 |  | 
|  | 7476 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7477 | test -n "$OCAMLC" && break | 
|  | 7478 | done | 
|  | 7479 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7480 | for ac_prog in ocamlopt | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7481 | do | 
|  | 7482 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7483 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7484 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7486 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then | 
|  | 7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7488 | else | 
|  | 7489 | case $OCAMLOPT in | 
|  | 7490 | [\\/]* | ?:[\\/]*) | 
|  | 7491 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. | 
|  | 7492 | ;; | 
|  | 7493 | *) | 
|  | 7494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7495 | for as_dir in $PATH | 
|  | 7496 | do | 
|  | 7497 | IFS=$as_save_IFS | 
|  | 7498 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7499 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7500 | 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] | 7501 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7502 | 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] | 7503 | break 2 | 
|  | 7504 | fi | 
|  | 7505 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7506 | done | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7507 | IFS=$as_save_IFS | 
|  | 7508 |  | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7509 | ;; | 
|  | 7510 | esac | 
|  | 7511 | fi | 
|  | 7512 | OCAMLOPT=$ac_cv_path_OCAMLOPT | 
|  | 7513 | if test -n "$OCAMLOPT"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7514 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 | 
|  | 7515 | echo "${ECHO_T}$OCAMLOPT" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7516 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7517 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7518 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7519 | fi | 
|  | 7520 |  | 
|  | 7521 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7522 | test -n "$OCAMLOPT" && break | 
|  | 7523 | done | 
|  | 7524 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7525 | for ac_prog in ocamldep | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7526 | do | 
|  | 7527 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7528 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7529 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7531 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then | 
|  | 7532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7533 | else | 
|  | 7534 | case $OCAMLDEP in | 
|  | 7535 | [\\/]* | ?:[\\/]*) | 
|  | 7536 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. | 
|  | 7537 | ;; | 
|  | 7538 | *) | 
|  | 7539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7540 | for as_dir in $PATH | 
|  | 7541 | do | 
|  | 7542 | IFS=$as_save_IFS | 
|  | 7543 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7544 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7545 | 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] | 7546 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7547 | 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] | 7548 | break 2 | 
|  | 7549 | fi | 
|  | 7550 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7551 | done | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7552 | IFS=$as_save_IFS | 
|  | 7553 |  | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7554 | ;; | 
|  | 7555 | esac | 
|  | 7556 | fi | 
|  | 7557 | OCAMLDEP=$ac_cv_path_OCAMLDEP | 
|  | 7558 | if test -n "$OCAMLDEP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7559 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 | 
|  | 7560 | echo "${ECHO_T}$OCAMLDEP" >&6; } | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7561 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7562 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7563 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7564 | fi | 
|  | 7565 |  | 
|  | 7566 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7567 | test -n "$OCAMLDEP" && break | 
|  | 7568 | done | 
|  | 7569 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7570 | for ac_prog in ocamldoc | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7571 | do | 
|  | 7572 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7573 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7576 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then | 
|  | 7577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7578 | else | 
|  | 7579 | case $OCAMLDOC in | 
|  | 7580 | [\\/]* | ?:[\\/]*) | 
|  | 7581 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. | 
|  | 7582 | ;; | 
|  | 7583 | *) | 
|  | 7584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7585 | for as_dir in $PATH | 
|  | 7586 | do | 
|  | 7587 | IFS=$as_save_IFS | 
|  | 7588 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7589 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7590 | 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] | 7591 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7592 | 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] | 7593 | break 2 | 
|  | 7594 | fi | 
|  | 7595 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7596 | done | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7597 | IFS=$as_save_IFS | 
|  | 7598 |  | 
|  | 7599 | ;; | 
|  | 7600 | esac | 
|  | 7601 | fi | 
|  | 7602 | OCAMLDOC=$ac_cv_path_OCAMLDOC | 
|  | 7603 | if test -n "$OCAMLDOC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7604 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 | 
|  | 7605 | echo "${ECHO_T}$OCAMLDOC" >&6; } | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7606 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7607 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7608 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7609 | fi | 
|  | 7610 |  | 
|  | 7611 |  | 
|  | 7612 | test -n "$OCAMLDOC" && break | 
|  | 7613 | done | 
|  | 7614 |  | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7615 | for ac_prog in gas as | 
|  | 7616 | do | 
|  | 7617 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7618 | set dummy $ac_prog; ac_word=$2 | 
|  | 7619 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7621 | if test "${ac_cv_path_GAS+set}" = set; then | 
|  | 7622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7623 | else | 
|  | 7624 | case $GAS in | 
|  | 7625 | [\\/]* | ?:[\\/]*) | 
|  | 7626 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. | 
|  | 7627 | ;; | 
|  | 7628 | *) | 
|  | 7629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7630 | for as_dir in $PATH | 
|  | 7631 | do | 
|  | 7632 | IFS=$as_save_IFS | 
|  | 7633 | test -z "$as_dir" && as_dir=. | 
|  | 7634 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7636 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7638 | break 2 | 
|  | 7639 | fi | 
|  | 7640 | done | 
|  | 7641 | done | 
|  | 7642 | IFS=$as_save_IFS | 
|  | 7643 |  | 
|  | 7644 | ;; | 
|  | 7645 | esac | 
|  | 7646 | fi | 
|  | 7647 | GAS=$ac_cv_path_GAS | 
|  | 7648 | if test -n "$GAS"; then | 
|  | 7649 | { echo "$as_me:$LINENO: result: $GAS" >&5 | 
|  | 7650 | echo "${ECHO_T}$GAS" >&6; } | 
|  | 7651 | else | 
|  | 7652 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7653 | echo "${ECHO_T}no" >&6; } | 
|  | 7654 | fi | 
|  | 7655 |  | 
|  | 7656 |  | 
|  | 7657 | test -n "$GAS" && break | 
|  | 7658 | done | 
|  | 7659 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7660 |  | 
| Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7661 | { echo "$as_me:$LINENO: checking for linker version" >&5 | 
|  | 7662 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } | 
|  | 7663 | if test "${llvm_cv_link_version+set}" = set; then | 
|  | 7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7665 | else | 
|  | 7666 |  | 
|  | 7667 | version_string="$(ld -v 2>&1 | head -1)" | 
|  | 7668 |  | 
|  | 7669 | # Check for ld64. | 
|  | 7670 | if (echo "$version_string" | grep -q "ld64"); then | 
| Charles Davis | e56294d | 2012-02-28 02:55:41 +0000 | [diff] [blame] | 7671 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") | 
| Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7672 | else | 
|  | 7673 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") | 
|  | 7674 | fi | 
|  | 7675 |  | 
|  | 7676 | fi | 
|  | 7677 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 | 
|  | 7678 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } | 
|  | 7679 |  | 
|  | 7680 | cat >>confdefs.h <<_ACEOF | 
|  | 7681 | #define HOST_LINK_VERSION "$llvm_cv_link_version" | 
|  | 7682 | _ACEOF | 
|  | 7683 |  | 
|  | 7684 |  | 
|  | 7685 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7686 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
|  | 7687 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } | 
|  | 7688 | if test "${llvm_cv_link_use_r+set}" = set; then | 
|  | 7689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7690 | else | 
|  | 7691 | ac_ext=c | 
|  | 7692 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7696 |  | 
|  | 7697 | oldcflags="$CFLAGS" | 
|  | 7698 | CFLAGS="$CFLAGS -Wl,-R." | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7699 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7700 | /* confdefs.h.  */ | 
|  | 7701 | _ACEOF | 
|  | 7702 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7703 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7704 | /* end confdefs.h.  */ | 
|  | 7705 |  | 
|  | 7706 | int | 
|  | 7707 | main () | 
|  | 7708 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7709 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7710 | ; | 
|  | 7711 | return 0; | 
|  | 7712 | } | 
|  | 7713 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7714 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7715 | if { (ac_try="$ac_link" | 
|  | 7716 | case "(($ac_try" in | 
|  | 7717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7718 | *) ac_try_echo=$ac_try;; | 
|  | 7719 | esac | 
|  | 7720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7721 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7722 | ac_status=$? | 
|  | 7723 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7724 | rm -f conftest.er1 | 
|  | 7725 | cat conftest.err >&5 | 
|  | 7726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7727 | (exit $ac_status); } && | 
|  | 7728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 7729 | { (case "(($ac_try" in | 
|  | 7730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7731 | *) ac_try_echo=$ac_try;; | 
|  | 7732 | esac | 
|  | 7733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7734 | (eval "$ac_try") 2>&5 | 
|  | 7735 | ac_status=$? | 
|  | 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7737 | (exit $ac_status); }; } && | 
|  | 7738 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7739 | { (case "(($ac_try" in | 
|  | 7740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7741 | *) ac_try_echo=$ac_try;; | 
|  | 7742 | esac | 
|  | 7743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7744 | (eval "$ac_try") 2>&5 | 
|  | 7745 | ac_status=$? | 
|  | 7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7747 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7748 | llvm_cv_link_use_r=yes | 
|  | 7749 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7750 | echo "$as_me: failed program was:" >&5 | 
|  | 7751 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7752 |  | 
|  | 7753 | llvm_cv_link_use_r=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7755 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7756 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7757 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7758 | CFLAGS="$oldcflags" | 
|  | 7759 | ac_ext=c | 
|  | 7760 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7764 |  | 
|  | 7765 |  | 
|  | 7766 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7767 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
|  | 7768 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7769 | if test "$llvm_cv_link_use_r" = yes ; then | 
|  | 7770 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7771 | cat >>confdefs.h <<\_ACEOF | 
|  | 7772 | #define HAVE_LINK_R 1 | 
|  | 7773 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7774 |  | 
|  | 7775 | fi | 
|  | 7776 |  | 
|  | 7777 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7778 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 | 
|  | 7779 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } | 
|  | 7780 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then | 
|  | 7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7782 | else | 
|  | 7783 | ac_ext=c | 
|  | 7784 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7788 |  | 
|  | 7789 | oldcflags="$CFLAGS" | 
|  | 7790 | CFLAGS="$CFLAGS -Wl,-export-dynamic" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7791 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7792 | /* confdefs.h.  */ | 
|  | 7793 | _ACEOF | 
|  | 7794 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7795 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7796 | /* end confdefs.h.  */ | 
|  | 7797 |  | 
|  | 7798 | int | 
|  | 7799 | main () | 
|  | 7800 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7801 |  | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7802 | ; | 
|  | 7803 | return 0; | 
|  | 7804 | } | 
|  | 7805 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7806 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7807 | if { (ac_try="$ac_link" | 
|  | 7808 | case "(($ac_try" in | 
|  | 7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7810 | *) ac_try_echo=$ac_try;; | 
|  | 7811 | esac | 
|  | 7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7813 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7814 | ac_status=$? | 
|  | 7815 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7816 | rm -f conftest.er1 | 
|  | 7817 | cat conftest.err >&5 | 
|  | 7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7819 | (exit $ac_status); } && | 
|  | 7820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 7821 | { (case "(($ac_try" in | 
|  | 7822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7823 | *) ac_try_echo=$ac_try;; | 
|  | 7824 | esac | 
|  | 7825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7826 | (eval "$ac_try") 2>&5 | 
|  | 7827 | ac_status=$? | 
|  | 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7829 | (exit $ac_status); }; } && | 
|  | 7830 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7831 | { (case "(($ac_try" in | 
|  | 7832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7833 | *) ac_try_echo=$ac_try;; | 
|  | 7834 | esac | 
|  | 7835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7836 | (eval "$ac_try") 2>&5 | 
|  | 7837 | ac_status=$? | 
|  | 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7839 | (exit $ac_status); }; }; then | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7840 | llvm_cv_link_use_export_dynamic=yes | 
|  | 7841 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7842 | echo "$as_me: failed program was:" >&5 | 
|  | 7843 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7844 |  | 
|  | 7845 | llvm_cv_link_use_export_dynamic=no | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7846 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7847 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7848 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7849 | conftest$ac_exeext conftest.$ac_ext | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7850 | CFLAGS="$oldcflags" | 
|  | 7851 | ac_ext=c | 
|  | 7852 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7853 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7854 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7855 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7856 |  | 
|  | 7857 |  | 
|  | 7858 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7859 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 | 
|  | 7860 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7861 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then | 
|  | 7862 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7863 | cat >>confdefs.h <<\_ACEOF | 
|  | 7864 | #define HAVE_LINK_EXPORT_DYNAMIC 1 | 
|  | 7865 | _ACEOF | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7866 |  | 
|  | 7867 | fi | 
|  | 7868 |  | 
|  | 7869 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7870 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 | 
|  | 7871 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } | 
|  | 7872 | if test "${llvm_cv_link_use_version_script+set}" = set; then | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7874 | else | 
|  | 7875 | ac_ext=c | 
|  | 7876 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7880 |  | 
|  | 7881 | oldcflags="$CFLAGS" | 
|  | 7882 |  | 
|  | 7883 | # The following code is from the autoconf manual, | 
|  | 7884 | # "11.13: Limitations of Usual Tools". | 
|  | 7885 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). | 
|  | 7886 | # Use mktemp if possible; otherwise fall back on mkdir, | 
|  | 7887 | # with $RANDOM to make collisions less likely. | 
|  | 7888 | : ${TMPDIR=/tmp} | 
|  | 7889 | { | 
|  | 7890 | tmp=` | 
|  | 7891 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null | 
|  | 7892 | ` && | 
|  | 7893 | test -n "$tmp" && test -d "$tmp" | 
|  | 7894 | } || { | 
|  | 7895 | tmp=$TMPDIR/foo$$-$RANDOM | 
|  | 7896 | (umask 077 && mkdir "$tmp") | 
|  | 7897 | } || exit $? | 
|  | 7898 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7899 | echo "{" > "$tmp/export.map" | 
|  | 7900 | echo "  global: main;" >> "$tmp/export.map" | 
|  | 7901 | echo "  local: *;" >> "$tmp/export.map" | 
|  | 7902 | echo "};" >> "$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7903 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7904 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7905 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7906 | /* confdefs.h.  */ | 
|  | 7907 | _ACEOF | 
|  | 7908 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7909 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7910 | /* end confdefs.h.  */ | 
|  | 7911 |  | 
|  | 7912 | int | 
|  | 7913 | main () | 
|  | 7914 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7915 |  | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7916 | ; | 
|  | 7917 | return 0; | 
|  | 7918 | } | 
|  | 7919 | _ACEOF | 
|  | 7920 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7921 | if { (ac_try="$ac_link" | 
|  | 7922 | case "(($ac_try" in | 
|  | 7923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7924 | *) ac_try_echo=$ac_try;; | 
|  | 7925 | esac | 
|  | 7926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7927 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7928 | ac_status=$? | 
|  | 7929 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7930 | rm -f conftest.er1 | 
|  | 7931 | cat conftest.err >&5 | 
|  | 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7933 | (exit $ac_status); } && | 
|  | 7934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 7935 | { (case "(($ac_try" in | 
|  | 7936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7937 | *) ac_try_echo=$ac_try;; | 
|  | 7938 | esac | 
|  | 7939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7940 | (eval "$ac_try") 2>&5 | 
|  | 7941 | ac_status=$? | 
|  | 7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7943 | (exit $ac_status); }; } && | 
|  | 7944 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7945 | { (case "(($ac_try" in | 
|  | 7946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7947 | *) ac_try_echo=$ac_try;; | 
|  | 7948 | esac | 
|  | 7949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7950 | (eval "$ac_try") 2>&5 | 
|  | 7951 | ac_status=$? | 
|  | 7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7953 | (exit $ac_status); }; }; then | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7954 | llvm_cv_link_use_version_script=yes | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7955 | else | 
|  | 7956 | echo "$as_me: failed program was:" >&5 | 
|  | 7957 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7958 |  | 
| Dan Gohman | c699831 | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 7959 | llvm_cv_link_use_version_script=no | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7960 | fi | 
|  | 7961 |  | 
|  | 7962 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7963 | conftest$ac_exeext conftest.$ac_ext | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7964 | rm "$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7965 | rmdir "$tmp" | 
|  | 7966 | CFLAGS="$oldcflags" | 
|  | 7967 | ac_ext=c | 
|  | 7968 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7972 |  | 
|  | 7973 |  | 
|  | 7974 | fi | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7975 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 | 
|  | 7976 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } | 
|  | 7977 | if test "$llvm_cv_link_use_version_script" = yes ; then | 
|  | 7978 | HAVE_LINK_VERSION_SCRIPT=1 | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7979 |  | 
|  | 7980 | fi | 
|  | 7981 |  | 
|  | 7982 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7983 |  | 
|  | 7984 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7985 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
|  | 7986 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | 
|  | 7987 | if test "${ac_cv_c_const+set}" = set; then | 
|  | 7988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7989 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7990 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7991 | /* confdefs.h.  */ | 
|  | 7992 | _ACEOF | 
|  | 7993 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7994 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7995 | /* end confdefs.h.  */ | 
|  | 7996 |  | 
|  | 7997 | int | 
|  | 7998 | main () | 
|  | 7999 | { | 
|  | 8000 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 8001 | #ifndef __cplusplus | 
|  | 8002 | /* Ultrix mips cc rejects this.  */ | 
|  | 8003 | typedef int charset[2]; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8004 | const charset x; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8005 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8006 | char const *const *ccp; | 
|  | 8007 | char **p; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8008 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 8009 | struct point {int x, y;}; | 
|  | 8010 | static struct point const zero = {0,0}; | 
|  | 8011 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 8012 | It does not let you subtract one const X* pointer from another in | 
|  | 8013 | an arm of an if-expression whose if-part is not a constant | 
|  | 8014 | expression */ | 
|  | 8015 | const char *g = "string"; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8016 | ccp = &g + (g ? g-g : 0); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8017 | /* HPUX 7.0 cc rejects these. */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8018 | ++ccp; | 
|  | 8019 | p = (char**) ccp; | 
|  | 8020 | ccp = (char const *const *) p; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8021 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 8022 | char *t; | 
|  | 8023 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|  | 8024 |  | 
|  | 8025 | *t++ = 0; | 
|  | 8026 | if (s) return 0; | 
|  | 8027 | } | 
|  | 8028 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 8029 | int x[] = {25, 17}; | 
|  | 8030 | const int *foo = &x[0]; | 
|  | 8031 | ++foo; | 
|  | 8032 | } | 
|  | 8033 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 8034 | typedef const int *iptr; | 
|  | 8035 | iptr p = 0; | 
|  | 8036 | ++p; | 
|  | 8037 | } | 
|  | 8038 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 8039 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 8040 | struct s { int j; const int *ap[3]; }; | 
|  | 8041 | struct s *b; b->j = 5; | 
|  | 8042 | } | 
|  | 8043 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 8044 | const int foo = 10; | 
|  | 8045 | if (!foo) return 0; | 
|  | 8046 | } | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8047 | return !x[0] && !zero.x; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8048 | #endif | 
|  | 8049 |  | 
|  | 8050 | ; | 
|  | 8051 | return 0; | 
|  | 8052 | } | 
|  | 8053 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8054 | rm -f conftest.$ac_objext | 
|  | 8055 | if { (ac_try="$ac_compile" | 
|  | 8056 | case "(($ac_try" in | 
|  | 8057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8058 | *) ac_try_echo=$ac_try;; | 
|  | 8059 | esac | 
|  | 8060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8061 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8062 | ac_status=$? | 
|  | 8063 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8064 | rm -f conftest.er1 | 
|  | 8065 | cat conftest.err >&5 | 
|  | 8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8067 | (exit $ac_status); } && | 
|  | 8068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8069 | { (case "(($ac_try" in | 
|  | 8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8071 | *) ac_try_echo=$ac_try;; | 
|  | 8072 | esac | 
|  | 8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8074 | (eval "$ac_try") 2>&5 | 
|  | 8075 | ac_status=$? | 
|  | 8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8077 | (exit $ac_status); }; } && | 
|  | 8078 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8079 | { (case "(($ac_try" in | 
|  | 8080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8081 | *) ac_try_echo=$ac_try;; | 
|  | 8082 | esac | 
|  | 8083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8084 | (eval "$ac_try") 2>&5 | 
|  | 8085 | ac_status=$? | 
|  | 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8087 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8088 | ac_cv_c_const=yes | 
|  | 8089 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8090 | echo "$as_me: failed program was:" >&5 | 
|  | 8091 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8092 |  | 
|  | 8093 | ac_cv_c_const=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8094 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8095 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8097 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8098 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
|  | 8099 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8100 | if test $ac_cv_c_const = no; then | 
|  | 8101 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8102 | cat >>confdefs.h <<\_ACEOF | 
|  | 8103 | #define const | 
|  | 8104 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8105 |  | 
|  | 8106 | fi | 
|  | 8107 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8108 |  | 
|  | 8109 |  | 
|  | 8110 |  | 
|  | 8111 |  | 
|  | 8112 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8113 | ac_header_dirent=no | 
|  | 8114 | 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] | 8115 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 8116 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 8117 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
|  | 8118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8120 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8121 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8122 | /* confdefs.h.  */ | 
|  | 8123 | _ACEOF | 
|  | 8124 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8125 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8126 | /* end confdefs.h.  */ | 
|  | 8127 | #include <sys/types.h> | 
|  | 8128 | #include <$ac_hdr> | 
|  | 8129 |  | 
|  | 8130 | int | 
|  | 8131 | main () | 
|  | 8132 | { | 
|  | 8133 | if ((DIR *) 0) | 
|  | 8134 | return 0; | 
|  | 8135 | ; | 
|  | 8136 | return 0; | 
|  | 8137 | } | 
|  | 8138 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8139 | rm -f conftest.$ac_objext | 
|  | 8140 | if { (ac_try="$ac_compile" | 
|  | 8141 | case "(($ac_try" in | 
|  | 8142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8143 | *) ac_try_echo=$ac_try;; | 
|  | 8144 | esac | 
|  | 8145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8146 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8147 | ac_status=$? | 
|  | 8148 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8149 | rm -f conftest.er1 | 
|  | 8150 | cat conftest.err >&5 | 
|  | 8151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8152 | (exit $ac_status); } && | 
|  | 8153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8154 | { (case "(($ac_try" in | 
|  | 8155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8156 | *) ac_try_echo=$ac_try;; | 
|  | 8157 | esac | 
|  | 8158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8159 | (eval "$ac_try") 2>&5 | 
|  | 8160 | ac_status=$? | 
|  | 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8162 | (exit $ac_status); }; } && | 
|  | 8163 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8164 | { (case "(($ac_try" in | 
|  | 8165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8166 | *) ac_try_echo=$ac_try;; | 
|  | 8167 | esac | 
|  | 8168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8169 | (eval "$ac_try") 2>&5 | 
|  | 8170 | ac_status=$? | 
|  | 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8172 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8173 | eval "$as_ac_Header=yes" | 
|  | 8174 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8175 | echo "$as_me: failed program was:" >&5 | 
|  | 8176 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8177 |  | 
|  | 8178 | eval "$as_ac_Header=no" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8179 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8180 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8182 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8183 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8185 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8187 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8188 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8189 | _ACEOF | 
|  | 8190 |  | 
|  | 8191 | ac_header_dirent=$ac_hdr; break | 
|  | 8192 | fi | 
|  | 8193 |  | 
|  | 8194 | done | 
|  | 8195 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 8196 | if test $ac_header_dirent = dirent.h; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8197 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 8198 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 8199 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8201 | else | 
|  | 8202 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8203 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8204 | /* confdefs.h.  */ | 
|  | 8205 | _ACEOF | 
|  | 8206 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8207 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8208 | /* end confdefs.h.  */ | 
|  | 8209 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8210 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8211 | Use char because int might match the return type of a GCC | 
|  | 8212 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8213 | #ifdef __cplusplus | 
|  | 8214 | extern "C" | 
|  | 8215 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8216 | char opendir (); | 
|  | 8217 | int | 
|  | 8218 | main () | 
|  | 8219 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8220 | return opendir (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8221 | ; | 
|  | 8222 | return 0; | 
|  | 8223 | } | 
|  | 8224 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8225 | for ac_lib in '' dir; do | 
|  | 8226 | if test -z "$ac_lib"; then | 
|  | 8227 | ac_res="none required" | 
|  | 8228 | else | 
|  | 8229 | ac_res=-l$ac_lib | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8230 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8231 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8232 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8233 | if { (ac_try="$ac_link" | 
|  | 8234 | case "(($ac_try" in | 
|  | 8235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8236 | *) ac_try_echo=$ac_try;; | 
|  | 8237 | esac | 
|  | 8238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8239 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8240 | ac_status=$? | 
|  | 8241 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8242 | rm -f conftest.er1 | 
|  | 8243 | cat conftest.err >&5 | 
|  | 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8245 | (exit $ac_status); } && | 
|  | 8246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8247 | { (case "(($ac_try" in | 
|  | 8248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8249 | *) ac_try_echo=$ac_try;; | 
|  | 8250 | esac | 
|  | 8251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8252 | (eval "$ac_try") 2>&5 | 
|  | 8253 | ac_status=$? | 
|  | 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8255 | (exit $ac_status); }; } && | 
|  | 8256 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8257 | { (case "(($ac_try" in | 
|  | 8258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8259 | *) ac_try_echo=$ac_try;; | 
|  | 8260 | esac | 
|  | 8261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8262 | (eval "$ac_try") 2>&5 | 
|  | 8263 | ac_status=$? | 
|  | 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8265 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8266 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8267 | else | 
|  | 8268 | echo "$as_me: failed program was:" >&5 | 
|  | 8269 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8270 |  | 
|  | 8271 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8272 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8273 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8274 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8275 | conftest$ac_exeext | 
|  | 8276 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8277 | break | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8278 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8279 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8280 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8281 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8282 | else | 
|  | 8283 | ac_cv_search_opendir=no | 
|  | 8284 | fi | 
|  | 8285 | rm conftest.$ac_ext | 
|  | 8286 | LIBS=$ac_func_search_save_LIBS | 
|  | 8287 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8288 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 8289 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8290 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8291 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8292 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8293 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8294 | fi | 
|  | 8295 |  | 
|  | 8296 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8297 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 8298 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 8299 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8301 | else | 
|  | 8302 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8303 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8304 | /* confdefs.h.  */ | 
|  | 8305 | _ACEOF | 
|  | 8306 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8307 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8308 | /* end confdefs.h.  */ | 
|  | 8309 |  | 
|  | 8310 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8311 | Use char because int might match the return type of a GCC | 
|  | 8312 | builtin and then its argument prototype would still apply.  */ | 
|  | 8313 | #ifdef __cplusplus | 
|  | 8314 | extern "C" | 
|  | 8315 | #endif | 
|  | 8316 | char opendir (); | 
|  | 8317 | int | 
|  | 8318 | main () | 
|  | 8319 | { | 
|  | 8320 | return opendir (); | 
|  | 8321 | ; | 
|  | 8322 | return 0; | 
|  | 8323 | } | 
|  | 8324 | _ACEOF | 
|  | 8325 | for ac_lib in '' x; do | 
|  | 8326 | if test -z "$ac_lib"; then | 
|  | 8327 | ac_res="none required" | 
|  | 8328 | else | 
|  | 8329 | ac_res=-l$ac_lib | 
|  | 8330 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 8331 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8332 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8333 | if { (ac_try="$ac_link" | 
|  | 8334 | case "(($ac_try" in | 
|  | 8335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8336 | *) ac_try_echo=$ac_try;; | 
|  | 8337 | esac | 
|  | 8338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8339 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8340 | ac_status=$? | 
|  | 8341 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8342 | rm -f conftest.er1 | 
|  | 8343 | cat conftest.err >&5 | 
|  | 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8345 | (exit $ac_status); } && | 
|  | 8346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8347 | { (case "(($ac_try" in | 
|  | 8348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8349 | *) ac_try_echo=$ac_try;; | 
|  | 8350 | esac | 
|  | 8351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8352 | (eval "$ac_try") 2>&5 | 
|  | 8353 | ac_status=$? | 
|  | 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8355 | (exit $ac_status); }; } && | 
|  | 8356 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8357 | { (case "(($ac_try" in | 
|  | 8358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8359 | *) ac_try_echo=$ac_try;; | 
|  | 8360 | esac | 
|  | 8361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8362 | (eval "$ac_try") 2>&5 | 
|  | 8363 | ac_status=$? | 
|  | 8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8365 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8366 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8367 | else | 
|  | 8368 | echo "$as_me: failed program was:" >&5 | 
|  | 8369 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8370 |  | 
|  | 8371 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8372 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8373 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8374 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8375 | conftest$ac_exeext | 
|  | 8376 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8377 | break | 
|  | 8378 | fi | 
|  | 8379 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8380 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8381 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8382 | else | 
|  | 8383 | ac_cv_search_opendir=no | 
|  | 8384 | fi | 
|  | 8385 | rm conftest.$ac_ext | 
|  | 8386 | LIBS=$ac_func_search_save_LIBS | 
|  | 8387 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8388 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 8389 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8390 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8391 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8392 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 8393 |  | 
|  | 8394 | fi | 
|  | 8395 |  | 
|  | 8396 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8397 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8398 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8399 | for ac_header in dlfcn.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8400 | do | 
|  | 8401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8403 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 8405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8407 | fi | 
|  | 8408 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8409 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8410 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8411 | else | 
|  | 8412 | # Is the header compilable? | 
|  | 8413 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 8414 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 8415 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8416 | /* confdefs.h.  */ | 
|  | 8417 | _ACEOF | 
|  | 8418 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8419 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8420 | /* end confdefs.h.  */ | 
|  | 8421 | $ac_includes_default | 
|  | 8422 | #include <$ac_header> | 
|  | 8423 | _ACEOF | 
|  | 8424 | rm -f conftest.$ac_objext | 
|  | 8425 | if { (ac_try="$ac_compile" | 
|  | 8426 | case "(($ac_try" in | 
|  | 8427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8428 | *) ac_try_echo=$ac_try;; | 
|  | 8429 | esac | 
|  | 8430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8431 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8432 | ac_status=$? | 
|  | 8433 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8434 | rm -f conftest.er1 | 
|  | 8435 | cat conftest.err >&5 | 
|  | 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8437 | (exit $ac_status); } && | 
|  | 8438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8439 | { (case "(($ac_try" in | 
|  | 8440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8441 | *) ac_try_echo=$ac_try;; | 
|  | 8442 | esac | 
|  | 8443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8444 | (eval "$ac_try") 2>&5 | 
|  | 8445 | ac_status=$? | 
|  | 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8447 | (exit $ac_status); }; } && | 
|  | 8448 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8449 | { (case "(($ac_try" in | 
|  | 8450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8451 | *) ac_try_echo=$ac_try;; | 
|  | 8452 | esac | 
|  | 8453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8454 | (eval "$ac_try") 2>&5 | 
|  | 8455 | ac_status=$? | 
|  | 8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8457 | (exit $ac_status); }; }; then | 
|  | 8458 | ac_header_compiler=yes | 
|  | 8459 | else | 
|  | 8460 | echo "$as_me: failed program was:" >&5 | 
|  | 8461 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8462 |  | 
|  | 8463 | ac_header_compiler=no | 
|  | 8464 | fi | 
|  | 8465 |  | 
|  | 8466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8467 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 8468 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 8469 |  | 
|  | 8470 | # Is the header present? | 
|  | 8471 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 8472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 8473 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8474 | /* confdefs.h.  */ | 
|  | 8475 | _ACEOF | 
|  | 8476 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8477 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8478 | /* end confdefs.h.  */ | 
|  | 8479 | #include <$ac_header> | 
|  | 8480 | _ACEOF | 
|  | 8481 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 8482 | case "(($ac_try" in | 
|  | 8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8484 | *) ac_try_echo=$ac_try;; | 
|  | 8485 | esac | 
|  | 8486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8487 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 8488 | ac_status=$? | 
|  | 8489 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8490 | rm -f conftest.er1 | 
|  | 8491 | cat conftest.err >&5 | 
|  | 8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8493 | (exit $ac_status); } >/dev/null; then | 
|  | 8494 | if test -s conftest.err; then | 
|  | 8495 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 8496 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 8497 | else | 
|  | 8498 | ac_cpp_err= | 
|  | 8499 | fi | 
|  | 8500 | else | 
|  | 8501 | ac_cpp_err=yes | 
|  | 8502 | fi | 
|  | 8503 | if test -z "$ac_cpp_err"; then | 
|  | 8504 | ac_header_preproc=yes | 
|  | 8505 | else | 
|  | 8506 | echo "$as_me: failed program was:" >&5 | 
|  | 8507 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8508 |  | 
|  | 8509 | ac_header_preproc=no | 
|  | 8510 | fi | 
|  | 8511 |  | 
|  | 8512 | rm -f conftest.err conftest.$ac_ext | 
|  | 8513 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 8514 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 8515 |  | 
|  | 8516 | # So?  What about this header? | 
|  | 8517 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 8518 | yes:no: ) | 
|  | 8519 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 8520 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 8521 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 8522 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 8523 | ac_header_preproc=yes | 
|  | 8524 | ;; | 
|  | 8525 | no:yes:* ) | 
|  | 8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 8527 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 8528 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 8529 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 8530 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 8531 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 8532 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 8533 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 8534 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 8535 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 8536 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 8537 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 8538 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8539 | ## ------------------------------------ ## | 
|  | 8540 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 8541 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8542 | _ASBOX | 
|  | 8543 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 8544 | ;; | 
|  | 8545 | esac | 
|  | 8546 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 8548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8550 | else | 
|  | 8551 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 8552 | fi | 
|  | 8553 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8555 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8556 |  | 
|  | 8557 | fi | 
|  | 8558 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8559 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8560 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8561 | _ACEOF | 
|  | 8562 |  | 
|  | 8563 | fi | 
|  | 8564 |  | 
|  | 8565 | done | 
|  | 8566 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8567 | # Check whether --enable-ltdl-install was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8568 | if test "${enable_ltdl_install+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8569 | enableval=$enable_ltdl_install; | 
|  | 8570 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8571 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8572 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8573 |  | 
|  | 8574 |  | 
|  | 8575 | if test x"${enable_ltdl_install-no}" != xno; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8576 | INSTALL_LTDL_TRUE= | 
|  | 8577 | INSTALL_LTDL_FALSE='#' | 
|  | 8578 | else | 
|  | 8579 | INSTALL_LTDL_TRUE='#' | 
|  | 8580 | INSTALL_LTDL_FALSE= | 
|  | 8581 | fi | 
|  | 8582 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8583 |  | 
|  | 8584 |  | 
|  | 8585 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8586 | CONVENIENCE_LTDL_TRUE= | 
|  | 8587 | CONVENIENCE_LTDL_FALSE='#' | 
|  | 8588 | else | 
|  | 8589 | CONVENIENCE_LTDL_TRUE='#' | 
|  | 8590 | CONVENIENCE_LTDL_FALSE= | 
|  | 8591 | fi | 
|  | 8592 |  | 
|  | 8593 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8594 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 8595 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8596 | library_names_spec= | 
|  | 8597 | libname_spec='lib$name' | 
|  | 8598 | soname_spec= | 
|  | 8599 | shrext_cmds=".so" | 
|  | 8600 | postinstall_cmds= | 
|  | 8601 | postuninstall_cmds= | 
|  | 8602 | finish_cmds= | 
|  | 8603 | finish_eval= | 
|  | 8604 | shlibpath_var= | 
|  | 8605 | shlibpath_overrides_runpath=unknown | 
|  | 8606 | version_type=none | 
|  | 8607 | dynamic_linker="$host_os ld.so" | 
|  | 8608 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 8609 | if test "$GCC" = yes; then | 
|  | 8610 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8611 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 8612 | # if the path contains ";" then we assume it to be the separator | 
|  | 8613 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 8614 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 8615 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 8616 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8617 | else | 
|  | 8618 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8619 | fi | 
|  | 8620 | else | 
|  | 8621 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 8622 | fi | 
|  | 8623 | need_lib_prefix=unknown | 
|  | 8624 | hardcode_into_libs=no | 
|  | 8625 |  | 
|  | 8626 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 8627 | # flags to be left without arguments | 
|  | 8628 | need_version=unknown | 
|  | 8629 |  | 
|  | 8630 | case $host_os in | 
|  | 8631 | aix3*) | 
|  | 8632 | version_type=linux | 
|  | 8633 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 8634 | shlibpath_var=LIBPATH | 
|  | 8635 |  | 
|  | 8636 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 8637 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8638 | ;; | 
|  | 8639 |  | 
|  | 8640 | aix4* | aix5*) | 
|  | 8641 | version_type=linux | 
|  | 8642 | need_lib_prefix=no | 
|  | 8643 | need_version=no | 
|  | 8644 | hardcode_into_libs=yes | 
|  | 8645 | if test "$host_cpu" = ia64; then | 
|  | 8646 | # AIX 5 supports IA64 | 
|  | 8647 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 8648 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8649 | else | 
|  | 8650 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 8651 | # for dependence libraries.  The import file would start with | 
|  | 8652 | # the line `#! .'.  This would cause the generated library to | 
|  | 8653 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 8654 | # development snapshots of GCC prior to 3.0. | 
|  | 8655 | case $host_os in | 
|  | 8656 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 8657 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 8658 | echo ' yes ' | 
|  | 8659 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 8660 | : | 
|  | 8661 | else | 
|  | 8662 | can_build_shared=no | 
|  | 8663 | fi | 
|  | 8664 | ;; | 
|  | 8665 | esac | 
|  | 8666 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 8667 | # soname into executable. Probably we can add versioning support to | 
|  | 8668 | # collect2, so additional links can be useful in future. | 
|  | 8669 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 8670 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 8671 | # instead of lib<name>.a to let people know that these are not | 
|  | 8672 | # typical AIX shared libraries. | 
|  | 8673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8674 | else | 
|  | 8675 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 8676 | # and later when we are not doing run time linking. | 
|  | 8677 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 8678 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8679 | fi | 
|  | 8680 | shlibpath_var=LIBPATH | 
|  | 8681 | fi | 
|  | 8682 | ;; | 
|  | 8683 |  | 
|  | 8684 | amigaos*) | 
|  | 8685 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 8686 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 8687 | 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' | 
|  | 8688 | ;; | 
|  | 8689 |  | 
|  | 8690 | beos*) | 
|  | 8691 | library_names_spec='${libname}${shared_ext}' | 
|  | 8692 | dynamic_linker="$host_os ld.so" | 
|  | 8693 | shlibpath_var=LIBRARY_PATH | 
|  | 8694 | ;; | 
|  | 8695 |  | 
|  | 8696 | bsdi[45]*) | 
|  | 8697 | version_type=linux | 
|  | 8698 | need_version=no | 
|  | 8699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8700 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8701 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 8702 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8703 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 8704 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 8705 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 8706 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 8707 | # libtool to hard-code these into programs | 
|  | 8708 | ;; | 
|  | 8709 |  | 
|  | 8710 | cygwin* | mingw* | pw32*) | 
|  | 8711 | version_type=windows | 
|  | 8712 | shrext_cmds=".dll" | 
|  | 8713 | need_version=no | 
|  | 8714 | need_lib_prefix=no | 
|  | 8715 |  | 
|  | 8716 | case $GCC,$host_os in | 
|  | 8717 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 8718 | library_names_spec='$libname.dll.a' | 
|  | 8719 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 8720 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 8721 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 8722 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 8723 | test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8724 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 8725 | chmod a+x \$dldir/$dlname' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8726 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 8727 | dlpath=$dir/\$dldll~ | 
|  | 8728 | $rm \$dlpath' | 
|  | 8729 | shlibpath_overrides_runpath=yes | 
|  | 8730 |  | 
|  | 8731 | case $host_os in | 
|  | 8732 | cygwin*) | 
|  | 8733 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 8734 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8735 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
|  | 8736 | ;; | 
|  | 8737 | mingw*) | 
|  | 8738 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 8739 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8740 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8741 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 8742 | # It is most probably a Windows format PATH printed by | 
|  | 8743 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 8744 | # path with ; separators, and with drive letters. We can handle the | 
|  | 8745 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 8746 | # especially as we might pass files found there to a mingw objdump, | 
|  | 8747 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 8748 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8749 | else | 
|  | 8750 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8751 | fi | 
|  | 8752 | ;; | 
|  | 8753 | pw32*) | 
|  | 8754 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8755 | 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] | 8756 | ;; | 
|  | 8757 | esac | 
|  | 8758 | ;; | 
|  | 8759 |  | 
|  | 8760 | *) | 
|  | 8761 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 8762 | ;; | 
|  | 8763 | esac | 
|  | 8764 | dynamic_linker='Win32 ld.exe' | 
|  | 8765 | # FIXME: first we should search . and the directory the executable is in | 
|  | 8766 | shlibpath_var=PATH | 
|  | 8767 | ;; | 
|  | 8768 |  | 
|  | 8769 | darwin* | rhapsody*) | 
|  | 8770 | dynamic_linker="$host_os dyld" | 
|  | 8771 | version_type=darwin | 
|  | 8772 | need_lib_prefix=no | 
|  | 8773 | need_version=no | 
|  | 8774 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 8775 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 8776 | shlibpath_overrides_runpath=yes | 
|  | 8777 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 28d3e72 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8778 | shrext_cmds='.dylib' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8779 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 8780 | if test "$GCC" = yes; then | 
|  | 8781 | 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"` | 
|  | 8782 | else | 
|  | 8783 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
|  | 8784 | fi | 
|  | 8785 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 8786 | ;; | 
|  | 8787 |  | 
|  | 8788 | dgux*) | 
|  | 8789 | version_type=linux | 
|  | 8790 | need_lib_prefix=no | 
|  | 8791 | need_version=no | 
|  | 8792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 8793 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8794 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8795 | ;; | 
|  | 8796 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8797 | freebsd1.*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8798 | dynamic_linker=no | 
|  | 8799 | ;; | 
|  | 8800 |  | 
|  | 8801 | kfreebsd*-gnu) | 
|  | 8802 | version_type=linux | 
|  | 8803 | need_lib_prefix=no | 
|  | 8804 | need_version=no | 
|  | 8805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 8806 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8807 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8808 | shlibpath_overrides_runpath=no | 
|  | 8809 | hardcode_into_libs=yes | 
|  | 8810 | dynamic_linker='GNU ld.so' | 
|  | 8811 | ;; | 
|  | 8812 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8813 | freebsd* | dragonfly*) | 
|  | 8814 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 8815 | # versioning mechanism, adjust this. | 
|  | 8816 | if test -x /usr/bin/objformat; then | 
|  | 8817 | objformat=`/usr/bin/objformat` | 
|  | 8818 | else | 
|  | 8819 | case $host_os in | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8820 | freebsd[123].*) objformat=aout ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8821 | *) objformat=elf ;; | 
|  | 8822 | esac | 
|  | 8823 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8824 | version_type=freebsd-$objformat | 
|  | 8825 | case $version_type in | 
|  | 8826 | freebsd-elf*) | 
|  | 8827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 8828 | need_version=no | 
|  | 8829 | need_lib_prefix=no | 
|  | 8830 | ;; | 
|  | 8831 | freebsd-*) | 
|  | 8832 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 8833 | need_version=yes | 
|  | 8834 | ;; | 
|  | 8835 | esac | 
|  | 8836 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8837 | case $host_os in | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8838 | freebsd2.*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8839 | shlibpath_overrides_runpath=yes | 
|  | 8840 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8841 | freebsd3.[01]* | freebsdelf3.[01]*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8842 | shlibpath_overrides_runpath=yes | 
|  | 8843 | hardcode_into_libs=yes | 
|  | 8844 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8845 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 8846 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8847 | shlibpath_overrides_runpath=no | 
|  | 8848 | hardcode_into_libs=yes | 
|  | 8849 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8850 | freebsd*) # from 4.6 on | 
|  | 8851 | shlibpath_overrides_runpath=yes | 
|  | 8852 | hardcode_into_libs=yes | 
|  | 8853 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8854 | esac | 
|  | 8855 | ;; | 
|  | 8856 |  | 
|  | 8857 | gnu*) | 
|  | 8858 | version_type=linux | 
|  | 8859 | need_lib_prefix=no | 
|  | 8860 | need_version=no | 
|  | 8861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 8862 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8863 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8864 | hardcode_into_libs=yes | 
|  | 8865 | ;; | 
|  | 8866 |  | 
|  | 8867 | hpux9* | hpux10* | hpux11*) | 
|  | 8868 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 8869 | # link against other versions. | 
|  | 8870 | version_type=sunos | 
|  | 8871 | need_lib_prefix=no | 
|  | 8872 | need_version=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8873 | case $host_cpu in | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8874 | ia64*) | 
|  | 8875 | shrext_cmds='.so' | 
|  | 8876 | hardcode_into_libs=yes | 
|  | 8877 | dynamic_linker="$host_os dld.so" | 
|  | 8878 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8879 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 8880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8881 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8882 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 8883 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 8884 | else | 
|  | 8885 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 8886 | fi | 
|  | 8887 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 8888 | ;; | 
|  | 8889 | hppa*64*) | 
|  | 8890 | shrext_cmds='.sl' | 
|  | 8891 | hardcode_into_libs=yes | 
|  | 8892 | dynamic_linker="$host_os dld.sl" | 
|  | 8893 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 8894 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 8895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8896 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8897 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 8898 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 8899 | ;; | 
|  | 8900 | *) | 
|  | 8901 | shrext_cmds='.sl' | 
|  | 8902 | dynamic_linker="$host_os dld.sl" | 
|  | 8903 | shlibpath_var=SHLIB_PATH | 
|  | 8904 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 8905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8906 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8907 | ;; | 
|  | 8908 | esac | 
|  | 8909 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 8910 | postinstall_cmds='chmod 555 $lib' | 
|  | 8911 | ;; | 
|  | 8912 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8913 | interix3*) | 
|  | 8914 | version_type=linux | 
|  | 8915 | need_lib_prefix=no | 
|  | 8916 | need_version=no | 
|  | 8917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 8918 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8919 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 8920 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8921 | shlibpath_overrides_runpath=no | 
|  | 8922 | hardcode_into_libs=yes | 
|  | 8923 | ;; | 
|  | 8924 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8925 | irix5* | irix6* | nonstopux*) | 
|  | 8926 | case $host_os in | 
|  | 8927 | nonstopux*) version_type=nonstopux ;; | 
|  | 8928 | *) | 
|  | 8929 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 8930 | version_type=linux | 
|  | 8931 | else | 
|  | 8932 | version_type=irix | 
|  | 8933 | fi ;; | 
|  | 8934 | esac | 
|  | 8935 | need_lib_prefix=no | 
|  | 8936 | need_version=no | 
|  | 8937 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 8939 | case $host_os in | 
|  | 8940 | irix5* | nonstopux*) | 
|  | 8941 | libsuff= shlibsuff= | 
|  | 8942 | ;; | 
|  | 8943 | *) | 
|  | 8944 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 8945 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 8946 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 8947 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 8948 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 8949 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 8950 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 8951 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 8952 | esac | 
|  | 8953 | ;; | 
|  | 8954 | esac | 
|  | 8955 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 8956 | shlibpath_overrides_runpath=no | 
|  | 8957 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 8958 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 8959 | hardcode_into_libs=yes | 
|  | 8960 | ;; | 
|  | 8961 |  | 
|  | 8962 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 8963 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 8964 | dynamic_linker=no | 
|  | 8965 | ;; | 
|  | 8966 |  | 
|  | 8967 | # This must be Linux ELF. | 
|  | 8968 | linux*) | 
|  | 8969 | version_type=linux | 
|  | 8970 | need_lib_prefix=no | 
|  | 8971 | need_version=no | 
|  | 8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8973 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8974 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 8975 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8976 | shlibpath_overrides_runpath=no | 
|  | 8977 | # This implies no fast_install, which is unacceptable. | 
|  | 8978 | # Some rework will be needed to allow for fast_install | 
|  | 8979 | # before this can be enabled. | 
|  | 8980 | hardcode_into_libs=yes | 
|  | 8981 |  | 
|  | 8982 | # Append ld.so.conf contents to the search path | 
|  | 8983 | if test -f /etc/ld.so.conf; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8984 | 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] | 8985 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 8986 | fi | 
|  | 8987 |  | 
|  | 8988 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 8989 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 8990 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 8991 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 8992 | # people can always --disable-shared, the test was removed, and we | 
|  | 8993 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 8994 | dynamic_linker='GNU/Linux ld.so' | 
|  | 8995 | ;; | 
|  | 8996 |  | 
|  | 8997 | knetbsd*-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 | shlibpath_overrides_runpath=no | 
|  | 9005 | hardcode_into_libs=yes | 
|  | 9006 | dynamic_linker='GNU ld.so' | 
|  | 9007 | ;; | 
|  | 9008 |  | 
|  | 9009 | netbsd*) | 
|  | 9010 | version_type=sunos | 
|  | 9011 | need_lib_prefix=no | 
|  | 9012 | need_version=no | 
|  | 9013 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9015 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 9016 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 9017 | else | 
|  | 9018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 9019 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9020 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 9021 | fi | 
|  | 9022 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9023 | shlibpath_overrides_runpath=yes | 
|  | 9024 | hardcode_into_libs=yes | 
|  | 9025 | ;; | 
|  | 9026 |  | 
|  | 9027 | newsos6) | 
|  | 9028 | version_type=linux | 
|  | 9029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9030 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9031 | shlibpath_overrides_runpath=yes | 
|  | 9032 | ;; | 
|  | 9033 |  | 
|  | 9034 | nto-qnx*) | 
|  | 9035 | version_type=linux | 
|  | 9036 | need_lib_prefix=no | 
|  | 9037 | need_version=no | 
|  | 9038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9039 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9040 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9041 | shlibpath_overrides_runpath=yes | 
|  | 9042 | ;; | 
|  | 9043 |  | 
|  | 9044 | openbsd*) | 
|  | 9045 | version_type=sunos | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9046 | sys_lib_dlsearch_path_spec="/usr/lib" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9047 | need_lib_prefix=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9048 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 9049 | case $host_os in | 
|  | 9050 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
|  | 9051 | *)                         need_version=no  ;; | 
|  | 9052 | esac | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9054 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 9055 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9056 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 9057 | case $host_os in | 
|  | 9058 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 9059 | shlibpath_overrides_runpath=no | 
|  | 9060 | ;; | 
|  | 9061 | *) | 
|  | 9062 | shlibpath_overrides_runpath=yes | 
|  | 9063 | ;; | 
|  | 9064 | esac | 
|  | 9065 | else | 
|  | 9066 | shlibpath_overrides_runpath=yes | 
|  | 9067 | fi | 
|  | 9068 | ;; | 
|  | 9069 |  | 
|  | 9070 | os2*) | 
|  | 9071 | libname_spec='$name' | 
|  | 9072 | shrext_cmds=".dll" | 
|  | 9073 | need_lib_prefix=no | 
|  | 9074 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 9075 | dynamic_linker='OS/2 ld.exe' | 
|  | 9076 | shlibpath_var=LIBPATH | 
|  | 9077 | ;; | 
|  | 9078 |  | 
|  | 9079 | osf3* | osf4* | osf5*) | 
|  | 9080 | version_type=osf | 
|  | 9081 | need_lib_prefix=no | 
|  | 9082 | need_version=no | 
|  | 9083 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9085 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9086 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 9087 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 9088 | ;; | 
|  | 9089 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9090 | solaris*) | 
|  | 9091 | version_type=linux | 
|  | 9092 | need_lib_prefix=no | 
|  | 9093 | need_version=no | 
|  | 9094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9095 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9096 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9097 | shlibpath_overrides_runpath=yes | 
|  | 9098 | hardcode_into_libs=yes | 
|  | 9099 | # ldd complains unless libraries are executable | 
|  | 9100 | postinstall_cmds='chmod +x $lib' | 
|  | 9101 | ;; | 
|  | 9102 |  | 
|  | 9103 | sunos4*) | 
|  | 9104 | version_type=sunos | 
|  | 9105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9106 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 9107 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9108 | shlibpath_overrides_runpath=yes | 
|  | 9109 | if test "$with_gnu_ld" = yes; then | 
|  | 9110 | need_lib_prefix=no | 
|  | 9111 | fi | 
|  | 9112 | need_version=yes | 
|  | 9113 | ;; | 
|  | 9114 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9115 | sysv4 | sysv4.3*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9116 | version_type=linux | 
|  | 9117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9118 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9119 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9120 | case $host_vendor in | 
|  | 9121 | sni) | 
|  | 9122 | shlibpath_overrides_runpath=no | 
|  | 9123 | need_lib_prefix=no | 
|  | 9124 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 9125 | runpath_var=LD_RUN_PATH | 
|  | 9126 | ;; | 
|  | 9127 | siemens) | 
|  | 9128 | need_lib_prefix=no | 
|  | 9129 | ;; | 
|  | 9130 | motorola) | 
|  | 9131 | need_lib_prefix=no | 
|  | 9132 | need_version=no | 
|  | 9133 | shlibpath_overrides_runpath=no | 
|  | 9134 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 9135 | ;; | 
|  | 9136 | esac | 
|  | 9137 | ;; | 
|  | 9138 |  | 
|  | 9139 | sysv4*MP*) | 
|  | 9140 | if test -d /usr/nec ;then | 
|  | 9141 | version_type=linux | 
|  | 9142 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 9143 | soname_spec='$libname${shared_ext}.$major' | 
|  | 9144 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9145 | fi | 
|  | 9146 | ;; | 
|  | 9147 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9148 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 9149 | version_type=freebsd-elf | 
|  | 9150 | need_lib_prefix=no | 
|  | 9151 | need_version=no | 
|  | 9152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 9153 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9154 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9155 | hardcode_into_libs=yes | 
|  | 9156 | if test "$with_gnu_ld" = yes; then | 
|  | 9157 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 9158 | shlibpath_overrides_runpath=no | 
|  | 9159 | else | 
|  | 9160 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 9161 | shlibpath_overrides_runpath=yes | 
|  | 9162 | case $host_os in | 
|  | 9163 | sco3.2v5*) | 
|  | 9164 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 9165 | ;; | 
|  | 9166 | esac | 
|  | 9167 | fi | 
|  | 9168 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 9169 | ;; | 
|  | 9170 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9171 | uts4*) | 
|  | 9172 | version_type=linux | 
|  | 9173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9174 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9175 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9176 | ;; | 
|  | 9177 |  | 
|  | 9178 | *) | 
|  | 9179 | dynamic_linker=no | 
|  | 9180 | ;; | 
|  | 9181 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9182 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 9183 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9184 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 9185 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9186 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 9187 | if test "$GCC" = yes; then | 
|  | 9188 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 9189 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9190 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9191 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9192 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
|  | 9193 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } | 
|  | 9194 | if test "${libltdl_cv_shlibext+set}" = set; then | 
|  | 9195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9196 | else | 
|  | 9197 |  | 
|  | 9198 | module=yes | 
|  | 9199 | eval libltdl_cv_shlibext=$shrext_cmds | 
|  | 9200 |  | 
|  | 9201 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9202 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
|  | 9203 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9204 | if test -n "$libltdl_cv_shlibext"; then | 
|  | 9205 |  | 
|  | 9206 | cat >>confdefs.h <<_ACEOF | 
|  | 9207 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
|  | 9208 | _ACEOF | 
|  | 9209 |  | 
|  | 9210 | fi | 
|  | 9211 |  | 
|  | 9212 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9213 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
|  | 9214 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } | 
|  | 9215 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
|  | 9216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9217 | else | 
|  | 9218 | libltdl_cv_shlibpath_var="$shlibpath_var" | 
|  | 9219 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9220 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
|  | 9221 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9222 | if test -n "$libltdl_cv_shlibpath_var"; then | 
|  | 9223 |  | 
|  | 9224 | cat >>confdefs.h <<_ACEOF | 
|  | 9225 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
|  | 9226 | _ACEOF | 
|  | 9227 |  | 
|  | 9228 | fi | 
|  | 9229 |  | 
|  | 9230 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9231 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
|  | 9232 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } | 
|  | 9233 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
|  | 9234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9235 | else | 
|  | 9236 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
|  | 9237 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9238 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
|  | 9239 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9240 | if test -n "$libltdl_cv_sys_search_path"; then | 
|  | 9241 | sys_search_path= | 
|  | 9242 | for dir in $libltdl_cv_sys_search_path; do | 
|  | 9243 | if test -z "$sys_search_path"; then | 
|  | 9244 | sys_search_path="$dir" | 
|  | 9245 | else | 
|  | 9246 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
|  | 9247 | fi | 
|  | 9248 | done | 
|  | 9249 |  | 
|  | 9250 | cat >>confdefs.h <<_ACEOF | 
|  | 9251 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
|  | 9252 | _ACEOF | 
|  | 9253 |  | 
|  | 9254 | fi | 
|  | 9255 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9256 | { echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 9257 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | 
|  | 9258 | if test "${libltdl_cv_objdir+set}" = set; then | 
|  | 9259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9260 | else | 
|  | 9261 | libltdl_cv_objdir="$objdir" | 
|  | 9262 | if test -n "$objdir"; then | 
|  | 9263 | : | 
|  | 9264 | else | 
|  | 9265 | rm -f .libs 2>/dev/null | 
|  | 9266 | mkdir .libs 2>/dev/null | 
|  | 9267 | if test -d .libs; then | 
|  | 9268 | libltdl_cv_objdir=.libs | 
|  | 9269 | else | 
|  | 9270 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 9271 | libltdl_cv_objdir=_libs | 
|  | 9272 | fi | 
|  | 9273 | rmdir .libs 2>/dev/null | 
|  | 9274 | fi | 
|  | 9275 |  | 
|  | 9276 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9277 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
|  | 9278 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9279 |  | 
|  | 9280 | cat >>confdefs.h <<_ACEOF | 
|  | 9281 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
|  | 9282 | _ACEOF | 
|  | 9283 |  | 
|  | 9284 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9285 |  | 
|  | 9286 |  | 
|  | 9287 |  | 
|  | 9288 |  | 
|  | 9289 | # 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] | 9290 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 9291 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | 
|  | 9292 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 9293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9294 | else | 
|  | 9295 |  | 
|  | 9296 | # These are sane defaults that work on at least a few old systems. | 
|  | 9297 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 9298 |  | 
|  | 9299 | # Character class describing NM global symbol codes. | 
|  | 9300 | symcode='[BCDEGRST]' | 
|  | 9301 |  | 
|  | 9302 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 9303 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 9304 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9305 | # Transform an extracted symbol line into a proper C declaration | 
|  | 9306 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 9307 |  | 
|  | 9308 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 9309 | 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'" | 
|  | 9310 |  | 
|  | 9311 | # Define system-specific variables. | 
|  | 9312 | case $host_os in | 
|  | 9313 | aix*) | 
|  | 9314 | symcode='[BCDT]' | 
|  | 9315 | ;; | 
|  | 9316 | cygwin* | mingw* | pw32*) | 
|  | 9317 | symcode='[ABCDGISTW]' | 
|  | 9318 | ;; | 
|  | 9319 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 9320 | if test "$host_cpu" = ia64; then | 
|  | 9321 | symcode='[ABCDEGRST]' | 
|  | 9322 | fi | 
|  | 9323 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 9324 | 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'" | 
|  | 9325 | ;; | 
|  | 9326 | linux*) | 
|  | 9327 | if test "$host_cpu" = ia64; then | 
|  | 9328 | symcode='[ABCDGIRSTW]' | 
|  | 9329 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 9330 | 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'" | 
|  | 9331 | fi | 
|  | 9332 | ;; | 
|  | 9333 | irix* | nonstopux*) | 
|  | 9334 | symcode='[BCDEGRST]' | 
|  | 9335 | ;; | 
|  | 9336 | osf*) | 
|  | 9337 | symcode='[BCDEGQRST]' | 
|  | 9338 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9339 | solaris*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9340 | symcode='[BDRT]' | 
|  | 9341 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9342 | sco3.2v5*) | 
|  | 9343 | symcode='[DT]' | 
|  | 9344 | ;; | 
|  | 9345 | sysv4.2uw2*) | 
|  | 9346 | symcode='[DT]' | 
|  | 9347 | ;; | 
|  | 9348 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 9349 | symcode='[ABDT]' | 
|  | 9350 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9351 | sysv4) | 
|  | 9352 | symcode='[DFNSTU]' | 
|  | 9353 | ;; | 
|  | 9354 | esac | 
|  | 9355 |  | 
|  | 9356 | # Handle CRLF in mingw tool chain | 
|  | 9357 | opt_cr= | 
|  | 9358 | case $build_os in | 
|  | 9359 | mingw*) | 
|  | 9360 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 9361 | ;; | 
|  | 9362 | esac | 
|  | 9363 |  | 
|  | 9364 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 9365 | case `$NM -V 2>&1` in | 
|  | 9366 | *GNU* | *'with BFD'*) | 
|  | 9367 | symcode='[ABCDGIRSTW]' ;; | 
|  | 9368 | esac | 
|  | 9369 |  | 
|  | 9370 | # Try without a prefix undercore, then with it. | 
|  | 9371 | for ac_symprfx in "" "_"; do | 
|  | 9372 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9373 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
|  | 9374 | symxfrm="\\1 $ac_symprfx\\2 \\2" | 
|  | 9375 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9376 | # Write the raw and C identifiers. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9377 | 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] | 9378 |  | 
|  | 9379 | # Check to see that the pipe works correctly. | 
|  | 9380 | pipe_works=no | 
|  | 9381 |  | 
|  | 9382 | rm -f conftest* | 
|  | 9383 | cat > conftest.$ac_ext <<EOF | 
|  | 9384 | #ifdef __cplusplus | 
|  | 9385 | extern "C" { | 
|  | 9386 | #endif | 
|  | 9387 | char nm_test_var; | 
|  | 9388 | void nm_test_func(){} | 
|  | 9389 | #ifdef __cplusplus | 
|  | 9390 | } | 
|  | 9391 | #endif | 
|  | 9392 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 9393 | EOF | 
|  | 9394 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9396 | (eval $ac_compile) 2>&5 | 
|  | 9397 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9399 | (exit $ac_status); }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9400 | # Now try to grab the symbols. | 
|  | 9401 | nlist=conftest.nm | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9402 | 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] | 9403 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 9404 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9406 | (exit $ac_status); } && test -s "$nlist"; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9407 | # Try sorting and uniquifying the output. | 
|  | 9408 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 9409 | mv -f "$nlist"T "$nlist" | 
|  | 9410 | else | 
|  | 9411 | rm -f "$nlist"T | 
|  | 9412 | fi | 
|  | 9413 |  | 
|  | 9414 | # Make sure that we snagged all the symbols we need. | 
|  | 9415 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 9416 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 9417 | cat <<EOF > conftest.$ac_ext | 
|  | 9418 | #ifdef __cplusplus | 
|  | 9419 | extern "C" { | 
|  | 9420 | #endif | 
|  | 9421 |  | 
|  | 9422 | EOF | 
|  | 9423 | # Now generate the symbol file. | 
|  | 9424 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 9425 |  | 
|  | 9426 | cat <<EOF >> conftest.$ac_ext | 
|  | 9427 | #if defined (__STDC__) && __STDC__ | 
|  | 9428 | # define lt_ptr_t void * | 
|  | 9429 | #else | 
|  | 9430 | # define lt_ptr_t char * | 
|  | 9431 | # define const | 
|  | 9432 | #endif | 
|  | 9433 |  | 
|  | 9434 | /* The mapping between symbol names and symbols. */ | 
|  | 9435 | const struct { | 
|  | 9436 | const char *name; | 
|  | 9437 | lt_ptr_t address; | 
|  | 9438 | } | 
|  | 9439 | lt_preloaded_symbols[] = | 
|  | 9440 | { | 
|  | 9441 | EOF | 
|  | 9442 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 9443 | cat <<\EOF >> conftest.$ac_ext | 
|  | 9444 | {0, (lt_ptr_t) 0} | 
|  | 9445 | }; | 
|  | 9446 |  | 
|  | 9447 | #ifdef __cplusplus | 
|  | 9448 | } | 
|  | 9449 | #endif | 
|  | 9450 | EOF | 
|  | 9451 | # Now try linking the two files. | 
|  | 9452 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 9453 | lt_save_LIBS="$LIBS" | 
|  | 9454 | lt_save_CFLAGS="$CFLAGS" | 
|  | 9455 | LIBS="conftstm.$ac_objext" | 
|  | 9456 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9458 | (eval $ac_link) 2>&5 | 
|  | 9459 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9461 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9462 | pipe_works=yes | 
|  | 9463 | fi | 
|  | 9464 | LIBS="$lt_save_LIBS" | 
|  | 9465 | CFLAGS="$lt_save_CFLAGS" | 
|  | 9466 | else | 
|  | 9467 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 9468 | fi | 
|  | 9469 | else | 
|  | 9470 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 9471 | fi | 
|  | 9472 | else | 
|  | 9473 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 9474 | fi | 
|  | 9475 | else | 
|  | 9476 | echo "$progname: failed program was:" >&5 | 
|  | 9477 | cat conftest.$ac_ext >&5 | 
|  | 9478 | fi | 
|  | 9479 | rm -f conftest* conftst* | 
|  | 9480 |  | 
|  | 9481 | # Do not use the global_symbol_pipe unless it works. | 
|  | 9482 | if test "$pipe_works" = yes; then | 
|  | 9483 | break | 
|  | 9484 | else | 
|  | 9485 | lt_cv_sys_global_symbol_pipe= | 
|  | 9486 | fi | 
|  | 9487 | done | 
|  | 9488 |  | 
|  | 9489 | fi | 
|  | 9490 |  | 
|  | 9491 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 9492 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 9493 | fi | 
|  | 9494 | 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] | 9495 | { echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 9496 | echo "${ECHO_T}failed" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9497 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9498 | { echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 9499 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9500 | fi | 
|  | 9501 |  | 
|  | 9502 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9503 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
|  | 9504 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } | 
|  | 9505 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
|  | 9506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9507 | else | 
|  | 9508 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 9509 | libltdl_cv_preloaded_symbols=yes | 
|  | 9510 | else | 
|  | 9511 | libltdl_cv_preloaded_symbols=no | 
|  | 9512 | fi | 
|  | 9513 |  | 
|  | 9514 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9515 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
|  | 9516 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9517 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
|  | 9518 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9519 | cat >>confdefs.h <<\_ACEOF | 
|  | 9520 | #define HAVE_PRELOADED_SYMBOLS 1 | 
|  | 9521 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9522 |  | 
|  | 9523 | fi | 
|  | 9524 |  | 
|  | 9525 | LIBADD_DL= | 
|  | 9526 |  | 
|  | 9527 | ac_ext=c | 
|  | 9528 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 9529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 9530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 9531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 9532 |  | 
|  | 9533 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9534 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 9535 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | 
|  | 9536 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 9537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9538 | else | 
|  | 9539 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9540 | /* confdefs.h.  */ | 
|  | 9541 | _ACEOF | 
|  | 9542 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9543 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9544 | /* end confdefs.h.  */ | 
|  | 9545 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 9546 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9547 | #define shl_load innocuous_shl_load | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9548 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9549 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9550 | which can conflict with char shl_load (); below. | 
|  | 9551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9552 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9553 |  | 
|  | 9554 | #ifdef __STDC__ | 
|  | 9555 | # include <limits.h> | 
|  | 9556 | #else | 
|  | 9557 | # include <assert.h> | 
|  | 9558 | #endif | 
|  | 9559 |  | 
|  | 9560 | #undef shl_load | 
|  | 9561 |  | 
|  | 9562 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9563 | Use char because int might match the return type of a GCC | 
|  | 9564 | builtin and then its argument prototype would still apply.  */ | 
|  | 9565 | #ifdef __cplusplus | 
|  | 9566 | extern "C" | 
|  | 9567 | #endif | 
|  | 9568 | char shl_load (); | 
|  | 9569 | /* The GNU C library defines this for functions which it implements | 
|  | 9570 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9571 | something starting with __ and the normal name is an alias.  */ | 
|  | 9572 | #if defined __stub_shl_load || defined __stub___shl_load | 
|  | 9573 | choke me | 
|  | 9574 | #endif | 
|  | 9575 |  | 
|  | 9576 | int | 
|  | 9577 | main () | 
|  | 9578 | { | 
|  | 9579 | return shl_load (); | 
|  | 9580 | ; | 
|  | 9581 | return 0; | 
|  | 9582 | } | 
|  | 9583 | _ACEOF | 
|  | 9584 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9585 | if { (ac_try="$ac_link" | 
|  | 9586 | case "(($ac_try" in | 
|  | 9587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9588 | *) ac_try_echo=$ac_try;; | 
|  | 9589 | esac | 
|  | 9590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9591 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9592 | ac_status=$? | 
|  | 9593 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9594 | rm -f conftest.er1 | 
|  | 9595 | cat conftest.err >&5 | 
|  | 9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9597 | (exit $ac_status); } && | 
|  | 9598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9599 | { (case "(($ac_try" in | 
|  | 9600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9601 | *) ac_try_echo=$ac_try;; | 
|  | 9602 | esac | 
|  | 9603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9604 | (eval "$ac_try") 2>&5 | 
|  | 9605 | ac_status=$? | 
|  | 9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9607 | (exit $ac_status); }; } && | 
|  | 9608 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9609 | { (case "(($ac_try" in | 
|  | 9610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9611 | *) ac_try_echo=$ac_try;; | 
|  | 9612 | esac | 
|  | 9613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9614 | (eval "$ac_try") 2>&5 | 
|  | 9615 | ac_status=$? | 
|  | 9616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9617 | (exit $ac_status); }; }; then | 
|  | 9618 | ac_cv_func_shl_load=yes | 
|  | 9619 | else | 
|  | 9620 | echo "$as_me: failed program was:" >&5 | 
|  | 9621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9622 |  | 
|  | 9623 | ac_cv_func_shl_load=no | 
|  | 9624 | fi | 
|  | 9625 |  | 
|  | 9626 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9627 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9628 | fi | 
|  | 9629 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 9630 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | 
|  | 9631 | if test $ac_cv_func_shl_load = yes; then | 
|  | 9632 |  | 
|  | 9633 | cat >>confdefs.h <<\_ACEOF | 
|  | 9634 | #define HAVE_SHL_LOAD 1 | 
|  | 9635 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9636 |  | 
|  | 9637 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9638 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 9639 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | 
|  | 9640 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 9641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9642 | else | 
|  | 9643 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9644 | LIBS="-ldld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9645 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9646 | /* confdefs.h.  */ | 
|  | 9647 | _ACEOF | 
|  | 9648 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9649 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9650 | /* end confdefs.h.  */ | 
|  | 9651 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9652 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9653 | Use char because int might match the return type of a GCC | 
|  | 9654 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9655 | #ifdef __cplusplus | 
|  | 9656 | extern "C" | 
|  | 9657 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9658 | char shl_load (); | 
|  | 9659 | int | 
|  | 9660 | main () | 
|  | 9661 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9662 | return shl_load (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9663 | ; | 
|  | 9664 | return 0; | 
|  | 9665 | } | 
|  | 9666 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9667 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9668 | if { (ac_try="$ac_link" | 
|  | 9669 | case "(($ac_try" in | 
|  | 9670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9671 | *) ac_try_echo=$ac_try;; | 
|  | 9672 | esac | 
|  | 9673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9674 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9675 | ac_status=$? | 
|  | 9676 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9677 | rm -f conftest.er1 | 
|  | 9678 | cat conftest.err >&5 | 
|  | 9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9680 | (exit $ac_status); } && | 
|  | 9681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9682 | { (case "(($ac_try" in | 
|  | 9683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9684 | *) ac_try_echo=$ac_try;; | 
|  | 9685 | esac | 
|  | 9686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9687 | (eval "$ac_try") 2>&5 | 
|  | 9688 | ac_status=$? | 
|  | 9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9690 | (exit $ac_status); }; } && | 
|  | 9691 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9692 | { (case "(($ac_try" in | 
|  | 9693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9694 | *) ac_try_echo=$ac_try;; | 
|  | 9695 | esac | 
|  | 9696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9697 | (eval "$ac_try") 2>&5 | 
|  | 9698 | ac_status=$? | 
|  | 9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9700 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9701 | ac_cv_lib_dld_shl_load=yes | 
|  | 9702 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9703 | echo "$as_me: failed program was:" >&5 | 
|  | 9704 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9705 |  | 
|  | 9706 | ac_cv_lib_dld_shl_load=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9707 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9708 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9709 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9710 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9711 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9712 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9713 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9714 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | 
|  | 9715 | if test $ac_cv_lib_dld_shl_load = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9716 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9717 | cat >>confdefs.h <<\_ACEOF | 
|  | 9718 | #define HAVE_SHL_LOAD 1 | 
|  | 9719 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9720 |  | 
|  | 9721 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 9722 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9723 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 9724 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 
|  | 9725 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 9726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9727 | else | 
|  | 9728 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9729 | LIBS="-ldl  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9730 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9731 | /* confdefs.h.  */ | 
|  | 9732 | _ACEOF | 
|  | 9733 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9734 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9735 | /* end confdefs.h.  */ | 
|  | 9736 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9737 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9738 | Use char because int might match the return type of a GCC | 
|  | 9739 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9740 | #ifdef __cplusplus | 
|  | 9741 | extern "C" | 
|  | 9742 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9743 | char dlopen (); | 
|  | 9744 | int | 
|  | 9745 | main () | 
|  | 9746 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9747 | return dlopen (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9748 | ; | 
|  | 9749 | return 0; | 
|  | 9750 | } | 
|  | 9751 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9752 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9753 | if { (ac_try="$ac_link" | 
|  | 9754 | case "(($ac_try" in | 
|  | 9755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9756 | *) ac_try_echo=$ac_try;; | 
|  | 9757 | esac | 
|  | 9758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9759 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9760 | ac_status=$? | 
|  | 9761 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9762 | rm -f conftest.er1 | 
|  | 9763 | cat conftest.err >&5 | 
|  | 9764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9765 | (exit $ac_status); } && | 
|  | 9766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9767 | { (case "(($ac_try" in | 
|  | 9768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9769 | *) ac_try_echo=$ac_try;; | 
|  | 9770 | esac | 
|  | 9771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9772 | (eval "$ac_try") 2>&5 | 
|  | 9773 | ac_status=$? | 
|  | 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9775 | (exit $ac_status); }; } && | 
|  | 9776 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9777 | { (case "(($ac_try" in | 
|  | 9778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9779 | *) ac_try_echo=$ac_try;; | 
|  | 9780 | esac | 
|  | 9781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9782 | (eval "$ac_try") 2>&5 | 
|  | 9783 | ac_status=$? | 
|  | 9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9785 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9786 | ac_cv_lib_dl_dlopen=yes | 
|  | 9787 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9788 | echo "$as_me: failed program was:" >&5 | 
|  | 9789 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9790 |  | 
|  | 9791 | ac_cv_lib_dl_dlopen=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9792 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9793 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9794 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9795 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9796 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9797 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9798 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9799 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | 
|  | 9800 | if test $ac_cv_lib_dl_dlopen = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9801 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9802 | cat >>confdefs.h <<\_ACEOF | 
|  | 9803 | #define HAVE_LIBDL 1 | 
|  | 9804 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9805 |  | 
|  | 9806 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
|  | 9807 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9808 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9809 | /* confdefs.h.  */ | 
|  | 9810 | _ACEOF | 
|  | 9811 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9812 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9813 | /* end confdefs.h.  */ | 
|  | 9814 | #if HAVE_DLFCN_H | 
|  | 9815 | #  include <dlfcn.h> | 
|  | 9816 | #endif | 
|  | 9817 |  | 
|  | 9818 | int | 
|  | 9819 | main () | 
|  | 9820 | { | 
|  | 9821 | dlopen(0, 0); | 
|  | 9822 | ; | 
|  | 9823 | return 0; | 
|  | 9824 | } | 
|  | 9825 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9826 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9827 | if { (ac_try="$ac_link" | 
|  | 9828 | case "(($ac_try" in | 
|  | 9829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9830 | *) ac_try_echo=$ac_try;; | 
|  | 9831 | esac | 
|  | 9832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9833 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9834 | ac_status=$? | 
|  | 9835 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9836 | rm -f conftest.er1 | 
|  | 9837 | cat conftest.err >&5 | 
|  | 9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9839 | (exit $ac_status); } && | 
|  | 9840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9841 | { (case "(($ac_try" in | 
|  | 9842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9843 | *) ac_try_echo=$ac_try;; | 
|  | 9844 | esac | 
|  | 9845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9846 | (eval "$ac_try") 2>&5 | 
|  | 9847 | ac_status=$? | 
|  | 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9849 | (exit $ac_status); }; } && | 
|  | 9850 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9851 | { (case "(($ac_try" in | 
|  | 9852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9853 | *) ac_try_echo=$ac_try;; | 
|  | 9854 | esac | 
|  | 9855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9856 | (eval "$ac_try") 2>&5 | 
|  | 9857 | ac_status=$? | 
|  | 9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9859 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9860 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9861 | cat >>confdefs.h <<\_ACEOF | 
|  | 9862 | #define HAVE_LIBDL 1 | 
|  | 9863 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9864 | libltdl_cv_func_dlopen="yes" | 
|  | 9865 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9866 | echo "$as_me: failed program was:" >&5 | 
|  | 9867 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9868 |  | 
|  | 9869 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 9870 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | 
|  | 9871 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 9872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9873 | else | 
|  | 9874 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9875 | LIBS="-lsvld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9876 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9877 | /* confdefs.h.  */ | 
|  | 9878 | _ACEOF | 
|  | 9879 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9880 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9881 | /* end confdefs.h.  */ | 
|  | 9882 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9883 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9884 | Use char because int might match the return type of a GCC | 
|  | 9885 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9886 | #ifdef __cplusplus | 
|  | 9887 | extern "C" | 
|  | 9888 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9889 | char dlopen (); | 
|  | 9890 | int | 
|  | 9891 | main () | 
|  | 9892 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9893 | return dlopen (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | ; | 
|  | 9895 | return 0; | 
|  | 9896 | } | 
|  | 9897 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9898 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9899 | if { (ac_try="$ac_link" | 
|  | 9900 | case "(($ac_try" in | 
|  | 9901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9902 | *) ac_try_echo=$ac_try;; | 
|  | 9903 | esac | 
|  | 9904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9905 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9906 | ac_status=$? | 
|  | 9907 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9908 | rm -f conftest.er1 | 
|  | 9909 | cat conftest.err >&5 | 
|  | 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9911 | (exit $ac_status); } && | 
|  | 9912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9913 | { (case "(($ac_try" in | 
|  | 9914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9915 | *) ac_try_echo=$ac_try;; | 
|  | 9916 | esac | 
|  | 9917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9918 | (eval "$ac_try") 2>&5 | 
|  | 9919 | ac_status=$? | 
|  | 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9921 | (exit $ac_status); }; } && | 
|  | 9922 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9923 | { (case "(($ac_try" in | 
|  | 9924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9925 | *) ac_try_echo=$ac_try;; | 
|  | 9926 | esac | 
|  | 9927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9928 | (eval "$ac_try") 2>&5 | 
|  | 9929 | ac_status=$? | 
|  | 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9931 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9932 | ac_cv_lib_svld_dlopen=yes | 
|  | 9933 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9934 | echo "$as_me: failed program was:" >&5 | 
|  | 9935 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9936 |  | 
|  | 9937 | ac_cv_lib_svld_dlopen=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9938 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9939 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9940 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9941 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9942 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9943 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9944 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 9945 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | 
|  | 9946 | if test $ac_cv_lib_svld_dlopen = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9947 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9948 | cat >>confdefs.h <<\_ACEOF | 
|  | 9949 | #define HAVE_LIBDL 1 | 
|  | 9950 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9951 |  | 
|  | 9952 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
|  | 9953 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9954 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 9955 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | 
|  | 9956 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 9957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9958 | else | 
|  | 9959 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9960 | LIBS="-ldld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9961 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9962 | /* confdefs.h.  */ | 
|  | 9963 | _ACEOF | 
|  | 9964 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9965 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9966 | /* end confdefs.h.  */ | 
|  | 9967 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9968 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9969 | Use char because int might match the return type of a GCC | 
|  | 9970 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9971 | #ifdef __cplusplus | 
|  | 9972 | extern "C" | 
|  | 9973 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9974 | char dld_link (); | 
|  | 9975 | int | 
|  | 9976 | main () | 
|  | 9977 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9978 | return dld_link (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9979 | ; | 
|  | 9980 | return 0; | 
|  | 9981 | } | 
|  | 9982 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9983 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9984 | if { (ac_try="$ac_link" | 
|  | 9985 | case "(($ac_try" in | 
|  | 9986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9987 | *) ac_try_echo=$ac_try;; | 
|  | 9988 | esac | 
|  | 9989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9990 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9991 | ac_status=$? | 
|  | 9992 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9993 | rm -f conftest.er1 | 
|  | 9994 | cat conftest.err >&5 | 
|  | 9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9996 | (exit $ac_status); } && | 
|  | 9997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9998 | { (case "(($ac_try" in | 
|  | 9999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10000 | *) ac_try_echo=$ac_try;; | 
|  | 10001 | esac | 
|  | 10002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10003 | (eval "$ac_try") 2>&5 | 
|  | 10004 | ac_status=$? | 
|  | 10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10006 | (exit $ac_status); }; } && | 
|  | 10007 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10008 | { (case "(($ac_try" in | 
|  | 10009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10010 | *) ac_try_echo=$ac_try;; | 
|  | 10011 | esac | 
|  | 10012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10013 | (eval "$ac_try") 2>&5 | 
|  | 10014 | ac_status=$? | 
|  | 10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10016 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10017 | ac_cv_lib_dld_dld_link=yes | 
|  | 10018 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10019 | echo "$as_me: failed program was:" >&5 | 
|  | 10020 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10021 |  | 
|  | 10022 | ac_cv_lib_dld_dld_link=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10023 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10024 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10025 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10026 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10027 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10028 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10029 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 10030 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | 
|  | 10031 | if test $ac_cv_lib_dld_dld_link = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10032 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10033 | cat >>confdefs.h <<\_ACEOF | 
|  | 10034 | #define HAVE_DLD 1 | 
|  | 10035 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10036 |  | 
|  | 10037 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 10038 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10039 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
|  | 10040 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } | 
|  | 10041 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
|  | 10042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10043 | else | 
|  | 10044 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10045 | /* confdefs.h.  */ | 
|  | 10046 | _ACEOF | 
|  | 10047 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10048 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10049 | /* end confdefs.h.  */ | 
|  | 10050 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
|  | 10051 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10052 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10053 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10054 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10055 | which can conflict with char _dyld_func_lookup (); below. | 
|  | 10056 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10057 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10058 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10059 | #ifdef __STDC__ | 
|  | 10060 | # include <limits.h> | 
|  | 10061 | #else | 
|  | 10062 | # include <assert.h> | 
|  | 10063 | #endif | 
|  | 10064 |  | 
|  | 10065 | #undef _dyld_func_lookup | 
|  | 10066 |  | 
|  | 10067 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10068 | Use char because int might match the return type of a GCC | 
|  | 10069 | builtin and then its argument prototype would still apply.  */ | 
|  | 10070 | #ifdef __cplusplus | 
|  | 10071 | extern "C" | 
|  | 10072 | #endif | 
|  | 10073 | char _dyld_func_lookup (); | 
|  | 10074 | /* The GNU C library defines this for functions which it implements | 
|  | 10075 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10076 | something starting with __ and the normal name is an alias.  */ | 
|  | 10077 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup | 
|  | 10078 | choke me | 
|  | 10079 | #endif | 
|  | 10080 |  | 
|  | 10081 | int | 
|  | 10082 | main () | 
|  | 10083 | { | 
|  | 10084 | return _dyld_func_lookup (); | 
|  | 10085 | ; | 
|  | 10086 | return 0; | 
|  | 10087 | } | 
|  | 10088 | _ACEOF | 
|  | 10089 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10090 | if { (ac_try="$ac_link" | 
|  | 10091 | case "(($ac_try" in | 
|  | 10092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10093 | *) ac_try_echo=$ac_try;; | 
|  | 10094 | esac | 
|  | 10095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10096 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10097 | ac_status=$? | 
|  | 10098 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10099 | rm -f conftest.er1 | 
|  | 10100 | cat conftest.err >&5 | 
|  | 10101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10102 | (exit $ac_status); } && | 
|  | 10103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10104 | { (case "(($ac_try" in | 
|  | 10105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10106 | *) ac_try_echo=$ac_try;; | 
|  | 10107 | esac | 
|  | 10108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10109 | (eval "$ac_try") 2>&5 | 
|  | 10110 | ac_status=$? | 
|  | 10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10112 | (exit $ac_status); }; } && | 
|  | 10113 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10114 | { (case "(($ac_try" in | 
|  | 10115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10116 | *) ac_try_echo=$ac_try;; | 
|  | 10117 | esac | 
|  | 10118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10119 | (eval "$ac_try") 2>&5 | 
|  | 10120 | ac_status=$? | 
|  | 10121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10122 | (exit $ac_status); }; }; then | 
|  | 10123 | ac_cv_func__dyld_func_lookup=yes | 
|  | 10124 | else | 
|  | 10125 | echo "$as_me: failed program was:" >&5 | 
|  | 10126 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10127 |  | 
|  | 10128 | ac_cv_func__dyld_func_lookup=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10129 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10130 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10131 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10132 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10133 | fi | 
|  | 10134 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
|  | 10135 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } | 
|  | 10136 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
|  | 10137 |  | 
|  | 10138 | cat >>confdefs.h <<\_ACEOF | 
|  | 10139 | #define HAVE_DYLD 1 | 
|  | 10140 | _ACEOF | 
|  | 10141 |  | 
|  | 10142 | fi | 
|  | 10143 |  | 
|  | 10144 |  | 
|  | 10145 | fi | 
|  | 10146 |  | 
|  | 10147 |  | 
|  | 10148 | fi | 
|  | 10149 |  | 
|  | 10150 |  | 
|  | 10151 | fi | 
|  | 10152 |  | 
|  | 10153 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10154 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10155 |  | 
|  | 10156 | fi | 
|  | 10157 |  | 
|  | 10158 |  | 
|  | 10159 | fi | 
|  | 10160 |  | 
|  | 10161 |  | 
|  | 10162 | fi | 
|  | 10163 |  | 
|  | 10164 |  | 
|  | 10165 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
|  | 10166 | then | 
|  | 10167 | lt_save_LIBS="$LIBS" | 
|  | 10168 | LIBS="$LIBS $LIBADD_DL" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10169 |  | 
|  | 10170 | for ac_func in dlerror | 
|  | 10171 | do | 
|  | 10172 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10173 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 10174 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 10175 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10177 | else | 
|  | 10178 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10179 | /* confdefs.h.  */ | 
|  | 10180 | _ACEOF | 
|  | 10181 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10182 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10183 | /* end confdefs.h.  */ | 
|  | 10184 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 10185 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10186 | #define $ac_func innocuous_$ac_func | 
|  | 10187 |  | 
|  | 10188 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10189 | which can conflict with char $ac_func (); below. | 
|  | 10190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10191 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 10192 |  | 
|  | 10193 | #ifdef __STDC__ | 
|  | 10194 | # include <limits.h> | 
|  | 10195 | #else | 
|  | 10196 | # include <assert.h> | 
|  | 10197 | #endif | 
|  | 10198 |  | 
|  | 10199 | #undef $ac_func | 
|  | 10200 |  | 
|  | 10201 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10202 | Use char because int might match the return type of a GCC | 
|  | 10203 | builtin and then its argument prototype would still apply.  */ | 
|  | 10204 | #ifdef __cplusplus | 
|  | 10205 | extern "C" | 
|  | 10206 | #endif | 
|  | 10207 | char $ac_func (); | 
|  | 10208 | /* The GNU C library defines this for functions which it implements | 
|  | 10209 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10210 | something starting with __ and the normal name is an alias.  */ | 
|  | 10211 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 10212 | choke me | 
|  | 10213 | #endif | 
|  | 10214 |  | 
|  | 10215 | int | 
|  | 10216 | main () | 
|  | 10217 | { | 
|  | 10218 | return $ac_func (); | 
|  | 10219 | ; | 
|  | 10220 | return 0; | 
|  | 10221 | } | 
|  | 10222 | _ACEOF | 
|  | 10223 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10224 | if { (ac_try="$ac_link" | 
|  | 10225 | case "(($ac_try" in | 
|  | 10226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10227 | *) ac_try_echo=$ac_try;; | 
|  | 10228 | esac | 
|  | 10229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10230 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10231 | ac_status=$? | 
|  | 10232 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10233 | rm -f conftest.er1 | 
|  | 10234 | cat conftest.err >&5 | 
|  | 10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10236 | (exit $ac_status); } && | 
|  | 10237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10238 | { (case "(($ac_try" in | 
|  | 10239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10240 | *) ac_try_echo=$ac_try;; | 
|  | 10241 | esac | 
|  | 10242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10243 | (eval "$ac_try") 2>&5 | 
|  | 10244 | ac_status=$? | 
|  | 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10246 | (exit $ac_status); }; } && | 
|  | 10247 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10248 | { (case "(($ac_try" in | 
|  | 10249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10250 | *) ac_try_echo=$ac_try;; | 
|  | 10251 | esac | 
|  | 10252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10253 | (eval "$ac_try") 2>&5 | 
|  | 10254 | ac_status=$? | 
|  | 10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10256 | (exit $ac_status); }; }; then | 
|  | 10257 | eval "$as_ac_var=yes" | 
|  | 10258 | else | 
|  | 10259 | echo "$as_me: failed program was:" >&5 | 
|  | 10260 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10261 |  | 
|  | 10262 | eval "$as_ac_var=no" | 
|  | 10263 | fi | 
|  | 10264 |  | 
|  | 10265 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10266 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10267 | fi | 
|  | 10268 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 10269 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10270 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10271 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10272 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10274 | _ACEOF | 
|  | 10275 |  | 
|  | 10276 | fi | 
|  | 10277 | done | 
|  | 10278 |  | 
|  | 10279 | LIBS="$lt_save_LIBS" | 
|  | 10280 | fi | 
|  | 10281 | ac_ext=c | 
|  | 10282 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10283 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10284 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10285 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10286 |  | 
|  | 10287 |  | 
|  | 10288 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10289 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
|  | 10290 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } | 
|  | 10291 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
|  | 10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10293 | else | 
|  | 10294 | ac_cv_sys_symbol_underscore=no | 
|  | 10295 | cat > conftest.$ac_ext <<EOF | 
|  | 10296 | void nm_test_func(){} | 
|  | 10297 | int main(){nm_test_func;return 0;} | 
|  | 10298 | EOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10300 | (eval $ac_compile) 2>&5 | 
|  | 10301 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10303 | (exit $ac_status); }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10304 | # Now try to grab the symbols. | 
|  | 10305 | ac_nlist=conftest.nm | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10306 | 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] | 10307 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
|  | 10308 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10310 | (exit $ac_status); } && test -s "$ac_nlist"; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10311 | # See whether the symbols have a leading underscore. | 
|  | 10312 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
|  | 10313 | ac_cv_sys_symbol_underscore=yes | 
|  | 10314 | else | 
|  | 10315 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
|  | 10316 | : | 
|  | 10317 | else | 
|  | 10318 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
|  | 10319 | fi | 
|  | 10320 | fi | 
|  | 10321 | else | 
|  | 10322 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 10323 | fi | 
|  | 10324 | else | 
|  | 10325 | echo "configure: failed program was:" >&5 | 
|  | 10326 | cat conftest.c >&5 | 
|  | 10327 | fi | 
|  | 10328 | rm -rf conftest* | 
|  | 10329 |  | 
|  | 10330 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10331 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
|  | 10332 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10333 |  | 
|  | 10334 |  | 
|  | 10335 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
|  | 10336 | if test x"$libltdl_cv_func_dlopen" = xyes || | 
|  | 10337 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10338 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
|  | 10339 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } | 
|  | 10340 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
|  | 10341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10342 | else | 
|  | 10343 | libltdl_cv_need_uscore=unknown | 
|  | 10344 | save_LIBS="$LIBS" | 
|  | 10345 | LIBS="$LIBS $LIBADD_DL" | 
|  | 10346 | if test "$cross_compiling" = yes; then : | 
|  | 10347 | libltdl_cv_need_uscore=cross | 
|  | 10348 | else | 
|  | 10349 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 10350 | lt_status=$lt_dlunknown | 
|  | 10351 | cat > conftest.$ac_ext <<EOF | 
| Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame^] | 10352 | #line 10352 "configure" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10353 | #include "confdefs.h" | 
|  | 10354 |  | 
|  | 10355 | #if HAVE_DLFCN_H | 
|  | 10356 | #include <dlfcn.h> | 
|  | 10357 | #endif | 
|  | 10358 |  | 
|  | 10359 | #include <stdio.h> | 
|  | 10360 |  | 
|  | 10361 | #ifdef RTLD_GLOBAL | 
|  | 10362 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 10363 | #else | 
|  | 10364 | #  ifdef DL_GLOBAL | 
|  | 10365 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 10366 | #  else | 
|  | 10367 | #    define LT_DLGLOBAL		0 | 
|  | 10368 | #  endif | 
|  | 10369 | #endif | 
|  | 10370 |  | 
|  | 10371 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 10372 | find out it does not work in some platform. */ | 
|  | 10373 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 10374 | #  ifdef RTLD_LAZY | 
|  | 10375 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 10376 | #  else | 
|  | 10377 | #    ifdef DL_LAZY | 
|  | 10378 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 10379 | #    else | 
|  | 10380 | #      ifdef RTLD_NOW | 
|  | 10381 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 10382 | #      else | 
|  | 10383 | #        ifdef DL_NOW | 
|  | 10384 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 10385 | #        else | 
|  | 10386 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 10387 | #        endif | 
|  | 10388 | #      endif | 
|  | 10389 | #    endif | 
|  | 10390 | #  endif | 
|  | 10391 | #endif | 
|  | 10392 |  | 
|  | 10393 | #ifdef __cplusplus | 
|  | 10394 | extern "C" void exit (int); | 
|  | 10395 | #endif | 
|  | 10396 |  | 
|  | 10397 | void fnord() { int i=42;} | 
|  | 10398 | int main () | 
|  | 10399 | { | 
|  | 10400 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 10401 | int status = $lt_dlunknown; | 
|  | 10402 |  | 
|  | 10403 | if (self) | 
|  | 10404 | { | 
|  | 10405 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 10406 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 10407 | /* dlclose (self); */ | 
|  | 10408 | } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10409 | else | 
|  | 10410 | puts (dlerror ()); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10411 |  | 
|  | 10412 | exit (status); | 
|  | 10413 | } | 
|  | 10414 | EOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10416 | (eval $ac_link) 2>&5 | 
|  | 10417 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10419 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10420 | (./conftest; exit; ) >&5 2>/dev/null | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10421 | lt_status=$? | 
|  | 10422 | case x$lt_status in | 
|  | 10423 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
|  | 10424 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10425 | x$lt_dlunknown|x*)  ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10426 | esac | 
|  | 10427 | else : | 
|  | 10428 | # compilation failed | 
|  | 10429 |  | 
|  | 10430 | fi | 
|  | 10431 | fi | 
|  | 10432 | rm -fr conftest* | 
|  | 10433 |  | 
|  | 10434 | LIBS="$save_LIBS" | 
|  | 10435 |  | 
|  | 10436 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10437 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
|  | 10438 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10439 | fi | 
|  | 10440 | fi | 
|  | 10441 |  | 
|  | 10442 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
|  | 10443 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10444 | cat >>confdefs.h <<\_ACEOF | 
|  | 10445 | #define NEED_USCORE 1 | 
|  | 10446 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10447 |  | 
|  | 10448 | fi | 
|  | 10449 |  | 
|  | 10450 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10451 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
|  | 10452 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } | 
|  | 10453 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
|  | 10454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10455 | else | 
|  | 10456 | # PORTME does your system automatically load deplibs for dlopen? | 
|  | 10457 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
|  | 10458 | # For now, we just catch OSes we know something about -- in the | 
|  | 10459 | # future, we'll try test this programmatically. | 
|  | 10460 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10461 | case "$host_os" in | 
|  | 10462 | aix3*|aix4.1.*|aix4.2.*) | 
|  | 10463 | # Unknown whether this is true for these versions of AIX, but | 
|  | 10464 | # we want this `case' here to explicitly catch those versions. | 
|  | 10465 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10466 | ;; | 
|  | 10467 | aix[45]*) | 
|  | 10468 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10469 | ;; | 
|  | 10470 | darwin*) | 
|  | 10471 | # Assuming the user has installed a libdl from somewhere, this is true | 
|  | 10472 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
|  | 10473 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10474 | ;; | 
|  | 10475 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
|  | 10476 | # GNU and its variants, using gnu ld.so (Glibc) | 
|  | 10477 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10478 | ;; | 
|  | 10479 | hpux10*|hpux11*) | 
|  | 10480 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10481 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10482 | interix*) | 
|  | 10483 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10484 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10485 | irix[12345]*|irix6.[01]*) | 
|  | 10486 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 
|  | 10487 | # know how it worked for any of those versions. | 
|  | 10488 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10489 | ;; | 
|  | 10490 | irix*) | 
|  | 10491 | # The case above catches anything before 6.2, and it's known that | 
|  | 10492 | # at 6.2 and later dlopen does load deplibs. | 
|  | 10493 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10494 | ;; | 
|  | 10495 | netbsd*) | 
|  | 10496 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10497 | ;; | 
|  | 10498 | openbsd*) | 
|  | 10499 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10500 | ;; | 
|  | 10501 | osf[1234]*) | 
|  | 10502 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
|  | 10503 | # 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] | 10504 | # library depends on, so we explicitly say `no'. | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10505 | libltdl_cv_sys_dlopen_deplibs=no | 
|  | 10506 | ;; | 
|  | 10507 | osf5.0|osf5.0a|osf5.1) | 
|  | 10508 | # dlopen *does* load deplibs and with the right loader patch applied | 
|  | 10509 | # it even uses RPATH in a shared library to search for shared objects | 
|  | 10510 | # that the library depends on, but there's no easy way to know if that | 
|  | 10511 | # patch is installed.  Since this is the case, all we can really | 
|  | 10512 | # say is unknown -- it depends on the patch being installed.  If | 
|  | 10513 | # it is, this changes to `yes'.  Without it, it would be `no'. | 
|  | 10514 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10515 | ;; | 
|  | 10516 | osf*) | 
|  | 10517 | # the two cases above should catch all versions of osf <= 5.1.  Read | 
|  | 10518 | # the comments above for what we know about them. | 
|  | 10519 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
|  | 10520 | # is used to find them so we can finally say `yes'. | 
|  | 10521 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10522 | ;; | 
|  | 10523 | solaris*) | 
|  | 10524 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10525 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10526 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 10527 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10528 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10529 | esac | 
|  | 10530 |  | 
|  | 10531 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10532 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
|  | 10533 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10534 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
|  | 10535 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10536 | cat >>confdefs.h <<\_ACEOF | 
|  | 10537 | #define LTDL_DLOPEN_DEPLIBS 1 | 
|  | 10538 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10539 |  | 
|  | 10540 | fi | 
|  | 10541 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10542 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10543 | for ac_header in argz.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10544 | do | 
|  | 10545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 10546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10551 | fi | 
|  | 10552 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10553 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10554 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10555 | else | 
|  | 10556 | # Is the header compilable? | 
|  | 10557 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 10558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 10559 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10560 | /* confdefs.h.  */ | 
|  | 10561 | _ACEOF | 
|  | 10562 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10563 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10564 | /* end confdefs.h.  */ | 
|  | 10565 | $ac_includes_default | 
|  | 10566 | #include <$ac_header> | 
|  | 10567 | _ACEOF | 
|  | 10568 | rm -f conftest.$ac_objext | 
|  | 10569 | if { (ac_try="$ac_compile" | 
|  | 10570 | case "(($ac_try" in | 
|  | 10571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10572 | *) ac_try_echo=$ac_try;; | 
|  | 10573 | esac | 
|  | 10574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10575 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10576 | ac_status=$? | 
|  | 10577 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10578 | rm -f conftest.er1 | 
|  | 10579 | cat conftest.err >&5 | 
|  | 10580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10581 | (exit $ac_status); } && | 
|  | 10582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10583 | { (case "(($ac_try" in | 
|  | 10584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10585 | *) ac_try_echo=$ac_try;; | 
|  | 10586 | esac | 
|  | 10587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10588 | (eval "$ac_try") 2>&5 | 
|  | 10589 | ac_status=$? | 
|  | 10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10591 | (exit $ac_status); }; } && | 
|  | 10592 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10593 | { (case "(($ac_try" in | 
|  | 10594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10595 | *) ac_try_echo=$ac_try;; | 
|  | 10596 | esac | 
|  | 10597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10598 | (eval "$ac_try") 2>&5 | 
|  | 10599 | ac_status=$? | 
|  | 10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10601 | (exit $ac_status); }; }; then | 
|  | 10602 | ac_header_compiler=yes | 
|  | 10603 | else | 
|  | 10604 | echo "$as_me: failed program was:" >&5 | 
|  | 10605 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10606 |  | 
|  | 10607 | ac_header_compiler=no | 
|  | 10608 | fi | 
|  | 10609 |  | 
|  | 10610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10611 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 10612 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 10613 |  | 
|  | 10614 | # Is the header present? | 
|  | 10615 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 10616 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 10617 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10618 | /* confdefs.h.  */ | 
|  | 10619 | _ACEOF | 
|  | 10620 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10621 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10622 | /* end confdefs.h.  */ | 
|  | 10623 | #include <$ac_header> | 
|  | 10624 | _ACEOF | 
|  | 10625 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 10626 | case "(($ac_try" in | 
|  | 10627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10628 | *) ac_try_echo=$ac_try;; | 
|  | 10629 | esac | 
|  | 10630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 10632 | ac_status=$? | 
|  | 10633 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10634 | rm -f conftest.er1 | 
|  | 10635 | cat conftest.err >&5 | 
|  | 10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10637 | (exit $ac_status); } >/dev/null; then | 
|  | 10638 | if test -s conftest.err; then | 
|  | 10639 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 10640 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 10641 | else | 
|  | 10642 | ac_cpp_err= | 
|  | 10643 | fi | 
|  | 10644 | else | 
|  | 10645 | ac_cpp_err=yes | 
|  | 10646 | fi | 
|  | 10647 | if test -z "$ac_cpp_err"; then | 
|  | 10648 | ac_header_preproc=yes | 
|  | 10649 | else | 
|  | 10650 | echo "$as_me: failed program was:" >&5 | 
|  | 10651 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10652 |  | 
|  | 10653 | ac_header_preproc=no | 
|  | 10654 | fi | 
|  | 10655 |  | 
|  | 10656 | rm -f conftest.err conftest.$ac_ext | 
|  | 10657 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 10658 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 10659 |  | 
|  | 10660 | # So?  What about this header? | 
|  | 10661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 10662 | yes:no: ) | 
|  | 10663 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 10664 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 10665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 10666 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 10667 | ac_header_preproc=yes | 
|  | 10668 | ;; | 
|  | 10669 | no:yes:* ) | 
|  | 10670 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 10671 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 10672 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 10673 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 10674 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 10675 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 10676 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 10677 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 10678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 10679 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 10680 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 10681 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 10682 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10683 | ## ------------------------------------ ## | 
|  | 10684 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 10685 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10686 | _ASBOX | 
|  | 10687 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 10688 | ;; | 
|  | 10689 | esac | 
|  | 10690 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10692 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10694 | else | 
|  | 10695 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 10696 | fi | 
|  | 10697 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10698 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10699 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10700 |  | 
|  | 10701 | fi | 
|  | 10702 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10704 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10705 | _ACEOF | 
|  | 10706 |  | 
|  | 10707 | fi | 
|  | 10708 |  | 
|  | 10709 | done | 
|  | 10710 |  | 
|  | 10711 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10712 | { echo "$as_me:$LINENO: checking for error_t" >&5 | 
|  | 10713 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } | 
|  | 10714 | if test "${ac_cv_type_error_t+set}" = set; then | 
|  | 10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10716 | else | 
|  | 10717 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10718 | /* confdefs.h.  */ | 
|  | 10719 | _ACEOF | 
|  | 10720 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10721 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10722 | /* end confdefs.h.  */ | 
|  | 10723 | #if HAVE_ARGZ_H | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10724 | #  include <argz.h> | 
|  | 10725 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10726 |  | 
|  | 10727 | typedef error_t ac__type_new_; | 
|  | 10728 | int | 
|  | 10729 | main () | 
|  | 10730 | { | 
|  | 10731 | if ((ac__type_new_ *) 0) | 
|  | 10732 | return 0; | 
|  | 10733 | if (sizeof (ac__type_new_)) | 
|  | 10734 | return 0; | 
|  | 10735 | ; | 
|  | 10736 | return 0; | 
|  | 10737 | } | 
|  | 10738 | _ACEOF | 
|  | 10739 | rm -f conftest.$ac_objext | 
|  | 10740 | if { (ac_try="$ac_compile" | 
|  | 10741 | case "(($ac_try" in | 
|  | 10742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10743 | *) ac_try_echo=$ac_try;; | 
|  | 10744 | esac | 
|  | 10745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10746 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10747 | ac_status=$? | 
|  | 10748 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10749 | rm -f conftest.er1 | 
|  | 10750 | cat conftest.err >&5 | 
|  | 10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10752 | (exit $ac_status); } && | 
|  | 10753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10754 | { (case "(($ac_try" in | 
|  | 10755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10756 | *) ac_try_echo=$ac_try;; | 
|  | 10757 | esac | 
|  | 10758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10759 | (eval "$ac_try") 2>&5 | 
|  | 10760 | ac_status=$? | 
|  | 10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10762 | (exit $ac_status); }; } && | 
|  | 10763 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10764 | { (case "(($ac_try" in | 
|  | 10765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10766 | *) ac_try_echo=$ac_try;; | 
|  | 10767 | esac | 
|  | 10768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10769 | (eval "$ac_try") 2>&5 | 
|  | 10770 | ac_status=$? | 
|  | 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10772 | (exit $ac_status); }; }; then | 
|  | 10773 | ac_cv_type_error_t=yes | 
|  | 10774 | else | 
|  | 10775 | echo "$as_me: failed program was:" >&5 | 
|  | 10776 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10777 |  | 
|  | 10778 | ac_cv_type_error_t=no | 
|  | 10779 | fi | 
|  | 10780 |  | 
|  | 10781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10782 | fi | 
|  | 10783 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
|  | 10784 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } | 
|  | 10785 | if test $ac_cv_type_error_t = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10786 |  | 
|  | 10787 | cat >>confdefs.h <<_ACEOF | 
|  | 10788 | #define HAVE_ERROR_T 1 | 
|  | 10789 | _ACEOF | 
|  | 10790 |  | 
|  | 10791 |  | 
|  | 10792 | else | 
|  | 10793 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10794 | cat >>confdefs.h <<\_ACEOF | 
|  | 10795 | #define error_t int | 
|  | 10796 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10797 |  | 
|  | 10798 | fi | 
|  | 10799 |  | 
|  | 10800 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10801 |  | 
|  | 10802 |  | 
|  | 10803 |  | 
|  | 10804 |  | 
|  | 10805 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10806 | 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] | 10807 | do | 
|  | 10808 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10809 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 10810 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 10811 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10813 | else | 
|  | 10814 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10815 | /* confdefs.h.  */ | 
|  | 10816 | _ACEOF | 
|  | 10817 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10818 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10819 | /* end confdefs.h.  */ | 
|  | 10820 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 10821 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10822 | #define $ac_func innocuous_$ac_func | 
|  | 10823 |  | 
|  | 10824 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10825 | which can conflict with char $ac_func (); below. | 
|  | 10826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10827 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 10828 |  | 
|  | 10829 | #ifdef __STDC__ | 
|  | 10830 | # include <limits.h> | 
|  | 10831 | #else | 
|  | 10832 | # include <assert.h> | 
|  | 10833 | #endif | 
|  | 10834 |  | 
|  | 10835 | #undef $ac_func | 
|  | 10836 |  | 
|  | 10837 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10838 | Use char because int might match the return type of a GCC | 
|  | 10839 | builtin and then its argument prototype would still apply.  */ | 
|  | 10840 | #ifdef __cplusplus | 
|  | 10841 | extern "C" | 
|  | 10842 | #endif | 
|  | 10843 | char $ac_func (); | 
|  | 10844 | /* The GNU C library defines this for functions which it implements | 
|  | 10845 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10846 | something starting with __ and the normal name is an alias.  */ | 
|  | 10847 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 10848 | choke me | 
|  | 10849 | #endif | 
|  | 10850 |  | 
|  | 10851 | int | 
|  | 10852 | main () | 
|  | 10853 | { | 
|  | 10854 | return $ac_func (); | 
|  | 10855 | ; | 
|  | 10856 | return 0; | 
|  | 10857 | } | 
|  | 10858 | _ACEOF | 
|  | 10859 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10860 | if { (ac_try="$ac_link" | 
|  | 10861 | case "(($ac_try" in | 
|  | 10862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10863 | *) ac_try_echo=$ac_try;; | 
|  | 10864 | esac | 
|  | 10865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10866 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10867 | ac_status=$? | 
|  | 10868 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10869 | rm -f conftest.er1 | 
|  | 10870 | cat conftest.err >&5 | 
|  | 10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10872 | (exit $ac_status); } && | 
|  | 10873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10874 | { (case "(($ac_try" in | 
|  | 10875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10876 | *) ac_try_echo=$ac_try;; | 
|  | 10877 | esac | 
|  | 10878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10879 | (eval "$ac_try") 2>&5 | 
|  | 10880 | ac_status=$? | 
|  | 10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10882 | (exit $ac_status); }; } && | 
|  | 10883 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10884 | { (case "(($ac_try" in | 
|  | 10885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10886 | *) ac_try_echo=$ac_try;; | 
|  | 10887 | esac | 
|  | 10888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10889 | (eval "$ac_try") 2>&5 | 
|  | 10890 | ac_status=$? | 
|  | 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10892 | (exit $ac_status); }; }; then | 
|  | 10893 | eval "$as_ac_var=yes" | 
|  | 10894 | else | 
|  | 10895 | echo "$as_me: failed program was:" >&5 | 
|  | 10896 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10897 |  | 
|  | 10898 | eval "$as_ac_var=no" | 
|  | 10899 | fi | 
|  | 10900 |  | 
|  | 10901 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10902 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10903 | fi | 
|  | 10904 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 10905 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10906 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10907 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10908 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10909 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10910 | _ACEOF | 
|  | 10911 |  | 
|  | 10912 | fi | 
|  | 10913 | done | 
|  | 10914 |  | 
|  | 10915 |  | 
|  | 10916 |  | 
|  | 10917 |  | 
|  | 10918 |  | 
|  | 10919 |  | 
|  | 10920 |  | 
|  | 10921 |  | 
|  | 10922 |  | 
|  | 10923 |  | 
|  | 10924 |  | 
|  | 10925 |  | 
|  | 10926 |  | 
|  | 10927 |  | 
|  | 10928 |  | 
|  | 10929 |  | 
|  | 10930 |  | 
|  | 10931 |  | 
|  | 10932 |  | 
|  | 10933 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10934 |  | 
|  | 10935 |  | 
|  | 10936 |  | 
|  | 10937 |  | 
|  | 10938 |  | 
|  | 10939 |  | 
|  | 10940 |  | 
|  | 10941 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10942 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
|  | 10943 | stdio.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10944 | do | 
|  | 10945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 10946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10947 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10951 | fi | 
|  | 10952 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10953 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10954 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10955 | else | 
|  | 10956 | # Is the header compilable? | 
|  | 10957 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 10958 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 10959 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10960 | /* confdefs.h.  */ | 
|  | 10961 | _ACEOF | 
|  | 10962 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10963 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10964 | /* end confdefs.h.  */ | 
|  | 10965 | $ac_includes_default | 
|  | 10966 | #include <$ac_header> | 
|  | 10967 | _ACEOF | 
|  | 10968 | rm -f conftest.$ac_objext | 
|  | 10969 | if { (ac_try="$ac_compile" | 
|  | 10970 | case "(($ac_try" in | 
|  | 10971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10972 | *) ac_try_echo=$ac_try;; | 
|  | 10973 | esac | 
|  | 10974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10975 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10976 | ac_status=$? | 
|  | 10977 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10978 | rm -f conftest.er1 | 
|  | 10979 | cat conftest.err >&5 | 
|  | 10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10981 | (exit $ac_status); } && | 
|  | 10982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10983 | { (case "(($ac_try" in | 
|  | 10984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10985 | *) ac_try_echo=$ac_try;; | 
|  | 10986 | esac | 
|  | 10987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10988 | (eval "$ac_try") 2>&5 | 
|  | 10989 | ac_status=$? | 
|  | 10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10991 | (exit $ac_status); }; } && | 
|  | 10992 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10993 | { (case "(($ac_try" in | 
|  | 10994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10995 | *) ac_try_echo=$ac_try;; | 
|  | 10996 | esac | 
|  | 10997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10998 | (eval "$ac_try") 2>&5 | 
|  | 10999 | ac_status=$? | 
|  | 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11001 | (exit $ac_status); }; }; then | 
|  | 11002 | ac_header_compiler=yes | 
|  | 11003 | else | 
|  | 11004 | echo "$as_me: failed program was:" >&5 | 
|  | 11005 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11006 |  | 
|  | 11007 | ac_header_compiler=no | 
|  | 11008 | fi | 
|  | 11009 |  | 
|  | 11010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11011 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11012 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11013 |  | 
|  | 11014 | # Is the header present? | 
|  | 11015 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11016 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11017 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11018 | /* confdefs.h.  */ | 
|  | 11019 | _ACEOF | 
|  | 11020 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11021 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11022 | /* end confdefs.h.  */ | 
|  | 11023 | #include <$ac_header> | 
|  | 11024 | _ACEOF | 
|  | 11025 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11026 | case "(($ac_try" in | 
|  | 11027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11028 | *) ac_try_echo=$ac_try;; | 
|  | 11029 | esac | 
|  | 11030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11031 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11032 | ac_status=$? | 
|  | 11033 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11034 | rm -f conftest.er1 | 
|  | 11035 | cat conftest.err >&5 | 
|  | 11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11037 | (exit $ac_status); } >/dev/null; then | 
|  | 11038 | if test -s conftest.err; then | 
|  | 11039 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11040 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11041 | else | 
|  | 11042 | ac_cpp_err= | 
|  | 11043 | fi | 
|  | 11044 | else | 
|  | 11045 | ac_cpp_err=yes | 
|  | 11046 | fi | 
|  | 11047 | if test -z "$ac_cpp_err"; then | 
|  | 11048 | ac_header_preproc=yes | 
|  | 11049 | else | 
|  | 11050 | echo "$as_me: failed program was:" >&5 | 
|  | 11051 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11052 |  | 
|  | 11053 | ac_header_preproc=no | 
|  | 11054 | fi | 
|  | 11055 |  | 
|  | 11056 | rm -f conftest.err conftest.$ac_ext | 
|  | 11057 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11058 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11059 |  | 
|  | 11060 | # So?  What about this header? | 
|  | 11061 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11062 | yes:no: ) | 
|  | 11063 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11064 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11066 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11067 | ac_header_preproc=yes | 
|  | 11068 | ;; | 
|  | 11069 | no:yes:* ) | 
|  | 11070 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11071 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11072 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11073 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11074 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11075 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11076 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11077 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11078 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11079 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11080 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11081 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11082 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11083 | ## ------------------------------------ ## | 
|  | 11084 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 11085 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11086 | _ASBOX | 
|  | 11087 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11088 | ;; | 
|  | 11089 | esac | 
|  | 11090 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11091 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11092 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11094 | else | 
|  | 11095 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11096 | fi | 
|  | 11097 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11098 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11099 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11100 |  | 
|  | 11101 | fi | 
|  | 11102 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11103 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11104 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11105 | _ACEOF | 
|  | 11106 |  | 
|  | 11107 | fi | 
|  | 11108 |  | 
|  | 11109 | done | 
|  | 11110 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11111 |  | 
|  | 11112 |  | 
|  | 11113 |  | 
|  | 11114 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11115 | 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] | 11116 | do | 
|  | 11117 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11119 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11121 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11123 | fi | 
|  | 11124 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11125 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11126 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11127 | else | 
|  | 11128 | # Is the header compilable? | 
|  | 11129 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11130 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11131 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11132 | /* confdefs.h.  */ | 
|  | 11133 | _ACEOF | 
|  | 11134 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11135 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11136 | /* end confdefs.h.  */ | 
|  | 11137 | $ac_includes_default | 
|  | 11138 | #include <$ac_header> | 
|  | 11139 | _ACEOF | 
|  | 11140 | rm -f conftest.$ac_objext | 
|  | 11141 | if { (ac_try="$ac_compile" | 
|  | 11142 | case "(($ac_try" in | 
|  | 11143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11144 | *) ac_try_echo=$ac_try;; | 
|  | 11145 | esac | 
|  | 11146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11147 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11148 | ac_status=$? | 
|  | 11149 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11150 | rm -f conftest.er1 | 
|  | 11151 | cat conftest.err >&5 | 
|  | 11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11153 | (exit $ac_status); } && | 
|  | 11154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11155 | { (case "(($ac_try" in | 
|  | 11156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11157 | *) ac_try_echo=$ac_try;; | 
|  | 11158 | esac | 
|  | 11159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11160 | (eval "$ac_try") 2>&5 | 
|  | 11161 | ac_status=$? | 
|  | 11162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11163 | (exit $ac_status); }; } && | 
|  | 11164 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11165 | { (case "(($ac_try" in | 
|  | 11166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11167 | *) ac_try_echo=$ac_try;; | 
|  | 11168 | esac | 
|  | 11169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11170 | (eval "$ac_try") 2>&5 | 
|  | 11171 | ac_status=$? | 
|  | 11172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11173 | (exit $ac_status); }; }; then | 
|  | 11174 | ac_header_compiler=yes | 
|  | 11175 | else | 
|  | 11176 | echo "$as_me: failed program was:" >&5 | 
|  | 11177 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11178 |  | 
|  | 11179 | ac_header_compiler=no | 
|  | 11180 | fi | 
|  | 11181 |  | 
|  | 11182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11183 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11184 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11185 |  | 
|  | 11186 | # Is the header present? | 
|  | 11187 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11188 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11189 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11190 | /* confdefs.h.  */ | 
|  | 11191 | _ACEOF | 
|  | 11192 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11193 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11194 | /* end confdefs.h.  */ | 
|  | 11195 | #include <$ac_header> | 
|  | 11196 | _ACEOF | 
|  | 11197 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11198 | case "(($ac_try" in | 
|  | 11199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11200 | *) ac_try_echo=$ac_try;; | 
|  | 11201 | esac | 
|  | 11202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11203 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11204 | ac_status=$? | 
|  | 11205 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11206 | rm -f conftest.er1 | 
|  | 11207 | cat conftest.err >&5 | 
|  | 11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11209 | (exit $ac_status); } >/dev/null; then | 
|  | 11210 | if test -s conftest.err; then | 
|  | 11211 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11212 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11213 | else | 
|  | 11214 | ac_cpp_err= | 
|  | 11215 | fi | 
|  | 11216 | else | 
|  | 11217 | ac_cpp_err=yes | 
|  | 11218 | fi | 
|  | 11219 | if test -z "$ac_cpp_err"; then | 
|  | 11220 | ac_header_preproc=yes | 
|  | 11221 | else | 
|  | 11222 | echo "$as_me: failed program was:" >&5 | 
|  | 11223 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11224 |  | 
|  | 11225 | ac_header_preproc=no | 
|  | 11226 | fi | 
|  | 11227 |  | 
|  | 11228 | rm -f conftest.err conftest.$ac_ext | 
|  | 11229 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11230 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11231 |  | 
|  | 11232 | # So?  What about this header? | 
|  | 11233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11234 | yes:no: ) | 
|  | 11235 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11236 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11238 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11239 | ac_header_preproc=yes | 
|  | 11240 | ;; | 
|  | 11241 | no:yes:* ) | 
|  | 11242 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11243 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11244 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11245 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11246 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11247 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11248 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11249 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11252 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11253 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11254 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11255 | ## ------------------------------------ ## | 
|  | 11256 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 11257 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11258 | _ASBOX | 
|  | 11259 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11260 | ;; | 
|  | 11261 | esac | 
|  | 11262 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11264 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11266 | else | 
|  | 11267 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11268 | fi | 
|  | 11269 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11270 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11271 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11272 |  | 
|  | 11273 | fi | 
|  | 11274 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11275 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11276 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11277 | _ACEOF | 
|  | 11278 |  | 
|  | 11279 | fi | 
|  | 11280 |  | 
|  | 11281 | done | 
|  | 11282 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11283 |  | 
|  | 11284 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11285 | for ac_header in string.h strings.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11286 | do | 
|  | 11287 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11289 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11291 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11293 | fi | 
|  | 11294 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11295 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11296 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11297 | else | 
|  | 11298 | # Is the header compilable? | 
|  | 11299 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11300 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11301 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11302 | /* confdefs.h.  */ | 
|  | 11303 | _ACEOF | 
|  | 11304 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11305 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11306 | /* end confdefs.h.  */ | 
|  | 11307 | $ac_includes_default | 
|  | 11308 | #include <$ac_header> | 
|  | 11309 | _ACEOF | 
|  | 11310 | rm -f conftest.$ac_objext | 
|  | 11311 | if { (ac_try="$ac_compile" | 
|  | 11312 | case "(($ac_try" in | 
|  | 11313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11314 | *) ac_try_echo=$ac_try;; | 
|  | 11315 | esac | 
|  | 11316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11317 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11318 | ac_status=$? | 
|  | 11319 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11320 | rm -f conftest.er1 | 
|  | 11321 | cat conftest.err >&5 | 
|  | 11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11323 | (exit $ac_status); } && | 
|  | 11324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11325 | { (case "(($ac_try" in | 
|  | 11326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11327 | *) ac_try_echo=$ac_try;; | 
|  | 11328 | esac | 
|  | 11329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11330 | (eval "$ac_try") 2>&5 | 
|  | 11331 | ac_status=$? | 
|  | 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11333 | (exit $ac_status); }; } && | 
|  | 11334 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11335 | { (case "(($ac_try" in | 
|  | 11336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11337 | *) ac_try_echo=$ac_try;; | 
|  | 11338 | esac | 
|  | 11339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11340 | (eval "$ac_try") 2>&5 | 
|  | 11341 | ac_status=$? | 
|  | 11342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11343 | (exit $ac_status); }; }; then | 
|  | 11344 | ac_header_compiler=yes | 
|  | 11345 | else | 
|  | 11346 | echo "$as_me: failed program was:" >&5 | 
|  | 11347 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11348 |  | 
|  | 11349 | ac_header_compiler=no | 
|  | 11350 | fi | 
|  | 11351 |  | 
|  | 11352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11353 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11354 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11355 |  | 
|  | 11356 | # Is the header present? | 
|  | 11357 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11358 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11359 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11360 | /* confdefs.h.  */ | 
|  | 11361 | _ACEOF | 
|  | 11362 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11363 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11364 | /* end confdefs.h.  */ | 
|  | 11365 | #include <$ac_header> | 
|  | 11366 | _ACEOF | 
|  | 11367 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11368 | case "(($ac_try" in | 
|  | 11369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11370 | *) ac_try_echo=$ac_try;; | 
|  | 11371 | esac | 
|  | 11372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11373 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11374 | ac_status=$? | 
|  | 11375 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11376 | rm -f conftest.er1 | 
|  | 11377 | cat conftest.err >&5 | 
|  | 11378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11379 | (exit $ac_status); } >/dev/null; then | 
|  | 11380 | if test -s conftest.err; then | 
|  | 11381 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11383 | else | 
|  | 11384 | ac_cpp_err= | 
|  | 11385 | fi | 
|  | 11386 | else | 
|  | 11387 | ac_cpp_err=yes | 
|  | 11388 | fi | 
|  | 11389 | if test -z "$ac_cpp_err"; then | 
|  | 11390 | ac_header_preproc=yes | 
|  | 11391 | else | 
|  | 11392 | echo "$as_me: failed program was:" >&5 | 
|  | 11393 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11394 |  | 
|  | 11395 | ac_header_preproc=no | 
|  | 11396 | fi | 
|  | 11397 |  | 
|  | 11398 | rm -f conftest.err conftest.$ac_ext | 
|  | 11399 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11400 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11401 |  | 
|  | 11402 | # So?  What about this header? | 
|  | 11403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11404 | yes:no: ) | 
|  | 11405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11409 | ac_header_preproc=yes | 
|  | 11410 | ;; | 
|  | 11411 | no:yes:* ) | 
|  | 11412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11414 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11415 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11418 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11419 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11424 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11425 | ## ------------------------------------ ## | 
|  | 11426 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 11427 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11428 | _ASBOX | 
|  | 11429 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11430 | ;; | 
|  | 11431 | esac | 
|  | 11432 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11434 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11436 | else | 
|  | 11437 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11438 | fi | 
|  | 11439 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11440 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11441 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11442 |  | 
|  | 11443 | fi | 
|  | 11444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11445 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11447 | _ACEOF | 
|  | 11448 | break | 
|  | 11449 | fi | 
|  | 11450 |  | 
|  | 11451 | done | 
|  | 11452 |  | 
|  | 11453 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11454 |  | 
|  | 11455 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11456 | for ac_func in strchr index | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11457 | do | 
|  | 11458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11459 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11461 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11463 | else | 
|  | 11464 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11465 | /* confdefs.h.  */ | 
|  | 11466 | _ACEOF | 
|  | 11467 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11468 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11469 | /* end confdefs.h.  */ | 
|  | 11470 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11471 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11472 | #define $ac_func innocuous_$ac_func | 
|  | 11473 |  | 
|  | 11474 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11475 | which can conflict with char $ac_func (); below. | 
|  | 11476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11477 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11478 |  | 
|  | 11479 | #ifdef __STDC__ | 
|  | 11480 | # include <limits.h> | 
|  | 11481 | #else | 
|  | 11482 | # include <assert.h> | 
|  | 11483 | #endif | 
|  | 11484 |  | 
|  | 11485 | #undef $ac_func | 
|  | 11486 |  | 
|  | 11487 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11488 | Use char because int might match the return type of a GCC | 
|  | 11489 | builtin and then its argument prototype would still apply.  */ | 
|  | 11490 | #ifdef __cplusplus | 
|  | 11491 | extern "C" | 
|  | 11492 | #endif | 
|  | 11493 | char $ac_func (); | 
|  | 11494 | /* The GNU C library defines this for functions which it implements | 
|  | 11495 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11496 | something starting with __ and the normal name is an alias.  */ | 
|  | 11497 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11498 | choke me | 
|  | 11499 | #endif | 
|  | 11500 |  | 
|  | 11501 | int | 
|  | 11502 | main () | 
|  | 11503 | { | 
|  | 11504 | return $ac_func (); | 
|  | 11505 | ; | 
|  | 11506 | return 0; | 
|  | 11507 | } | 
|  | 11508 | _ACEOF | 
|  | 11509 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11510 | if { (ac_try="$ac_link" | 
|  | 11511 | case "(($ac_try" in | 
|  | 11512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11513 | *) ac_try_echo=$ac_try;; | 
|  | 11514 | esac | 
|  | 11515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11516 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11517 | ac_status=$? | 
|  | 11518 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11519 | rm -f conftest.er1 | 
|  | 11520 | cat conftest.err >&5 | 
|  | 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11522 | (exit $ac_status); } && | 
|  | 11523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11524 | { (case "(($ac_try" in | 
|  | 11525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11526 | *) ac_try_echo=$ac_try;; | 
|  | 11527 | esac | 
|  | 11528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11529 | (eval "$ac_try") 2>&5 | 
|  | 11530 | ac_status=$? | 
|  | 11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11532 | (exit $ac_status); }; } && | 
|  | 11533 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11534 | { (case "(($ac_try" in | 
|  | 11535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11536 | *) ac_try_echo=$ac_try;; | 
|  | 11537 | esac | 
|  | 11538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11539 | (eval "$ac_try") 2>&5 | 
|  | 11540 | ac_status=$? | 
|  | 11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11542 | (exit $ac_status); }; }; then | 
|  | 11543 | eval "$as_ac_var=yes" | 
|  | 11544 | else | 
|  | 11545 | echo "$as_me: failed program was:" >&5 | 
|  | 11546 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11547 |  | 
|  | 11548 | eval "$as_ac_var=no" | 
|  | 11549 | fi | 
|  | 11550 |  | 
|  | 11551 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11552 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11553 | fi | 
|  | 11554 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11555 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11556 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11558 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11560 | _ACEOF | 
|  | 11561 | break | 
|  | 11562 | fi | 
|  | 11563 | done | 
|  | 11564 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11565 |  | 
|  | 11566 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11567 | for ac_func in strrchr rindex | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11568 | do | 
|  | 11569 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11570 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11571 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11572 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11574 | else | 
|  | 11575 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11576 | /* confdefs.h.  */ | 
|  | 11577 | _ACEOF | 
|  | 11578 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11579 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11580 | /* end confdefs.h.  */ | 
|  | 11581 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11582 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11583 | #define $ac_func innocuous_$ac_func | 
|  | 11584 |  | 
|  | 11585 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11586 | which can conflict with char $ac_func (); below. | 
|  | 11587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11588 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11589 |  | 
|  | 11590 | #ifdef __STDC__ | 
|  | 11591 | # include <limits.h> | 
|  | 11592 | #else | 
|  | 11593 | # include <assert.h> | 
|  | 11594 | #endif | 
|  | 11595 |  | 
|  | 11596 | #undef $ac_func | 
|  | 11597 |  | 
|  | 11598 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11599 | Use char because int might match the return type of a GCC | 
|  | 11600 | builtin and then its argument prototype would still apply.  */ | 
|  | 11601 | #ifdef __cplusplus | 
|  | 11602 | extern "C" | 
|  | 11603 | #endif | 
|  | 11604 | char $ac_func (); | 
|  | 11605 | /* The GNU C library defines this for functions which it implements | 
|  | 11606 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11607 | something starting with __ and the normal name is an alias.  */ | 
|  | 11608 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11609 | choke me | 
|  | 11610 | #endif | 
|  | 11611 |  | 
|  | 11612 | int | 
|  | 11613 | main () | 
|  | 11614 | { | 
|  | 11615 | return $ac_func (); | 
|  | 11616 | ; | 
|  | 11617 | return 0; | 
|  | 11618 | } | 
|  | 11619 | _ACEOF | 
|  | 11620 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11621 | if { (ac_try="$ac_link" | 
|  | 11622 | case "(($ac_try" in | 
|  | 11623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11624 | *) ac_try_echo=$ac_try;; | 
|  | 11625 | esac | 
|  | 11626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11627 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11628 | ac_status=$? | 
|  | 11629 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11630 | rm -f conftest.er1 | 
|  | 11631 | cat conftest.err >&5 | 
|  | 11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11633 | (exit $ac_status); } && | 
|  | 11634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11635 | { (case "(($ac_try" in | 
|  | 11636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11637 | *) ac_try_echo=$ac_try;; | 
|  | 11638 | esac | 
|  | 11639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11640 | (eval "$ac_try") 2>&5 | 
|  | 11641 | ac_status=$? | 
|  | 11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11643 | (exit $ac_status); }; } && | 
|  | 11644 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11645 | { (case "(($ac_try" in | 
|  | 11646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11647 | *) ac_try_echo=$ac_try;; | 
|  | 11648 | esac | 
|  | 11649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11650 | (eval "$ac_try") 2>&5 | 
|  | 11651 | ac_status=$? | 
|  | 11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11653 | (exit $ac_status); }; }; then | 
|  | 11654 | eval "$as_ac_var=yes" | 
|  | 11655 | else | 
|  | 11656 | echo "$as_me: failed program was:" >&5 | 
|  | 11657 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11658 |  | 
|  | 11659 | eval "$as_ac_var=no" | 
|  | 11660 | fi | 
|  | 11661 |  | 
|  | 11662 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11663 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11664 | fi | 
|  | 11665 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11666 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11667 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11668 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11669 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11670 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | _ACEOF | 
|  | 11672 | break | 
|  | 11673 | fi | 
|  | 11674 | done | 
|  | 11675 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11676 |  | 
|  | 11677 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11678 | for ac_func in memcpy bcopy | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11679 | do | 
|  | 11680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11681 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11683 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11685 | else | 
|  | 11686 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11687 | /* confdefs.h.  */ | 
|  | 11688 | _ACEOF | 
|  | 11689 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11690 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11691 | /* end confdefs.h.  */ | 
|  | 11692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11693 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11694 | #define $ac_func innocuous_$ac_func | 
|  | 11695 |  | 
|  | 11696 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11697 | which can conflict with char $ac_func (); below. | 
|  | 11698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11699 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11700 |  | 
|  | 11701 | #ifdef __STDC__ | 
|  | 11702 | # include <limits.h> | 
|  | 11703 | #else | 
|  | 11704 | # include <assert.h> | 
|  | 11705 | #endif | 
|  | 11706 |  | 
|  | 11707 | #undef $ac_func | 
|  | 11708 |  | 
|  | 11709 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11710 | Use char because int might match the return type of a GCC | 
|  | 11711 | builtin and then its argument prototype would still apply.  */ | 
|  | 11712 | #ifdef __cplusplus | 
|  | 11713 | extern "C" | 
|  | 11714 | #endif | 
|  | 11715 | char $ac_func (); | 
|  | 11716 | /* The GNU C library defines this for functions which it implements | 
|  | 11717 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11718 | something starting with __ and the normal name is an alias.  */ | 
|  | 11719 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11720 | choke me | 
|  | 11721 | #endif | 
|  | 11722 |  | 
|  | 11723 | int | 
|  | 11724 | main () | 
|  | 11725 | { | 
|  | 11726 | return $ac_func (); | 
|  | 11727 | ; | 
|  | 11728 | return 0; | 
|  | 11729 | } | 
|  | 11730 | _ACEOF | 
|  | 11731 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11732 | if { (ac_try="$ac_link" | 
|  | 11733 | case "(($ac_try" in | 
|  | 11734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11735 | *) ac_try_echo=$ac_try;; | 
|  | 11736 | esac | 
|  | 11737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11738 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11739 | ac_status=$? | 
|  | 11740 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11741 | rm -f conftest.er1 | 
|  | 11742 | cat conftest.err >&5 | 
|  | 11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11744 | (exit $ac_status); } && | 
|  | 11745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11746 | { (case "(($ac_try" in | 
|  | 11747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11748 | *) ac_try_echo=$ac_try;; | 
|  | 11749 | esac | 
|  | 11750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11751 | (eval "$ac_try") 2>&5 | 
|  | 11752 | ac_status=$? | 
|  | 11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11754 | (exit $ac_status); }; } && | 
|  | 11755 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11756 | { (case "(($ac_try" in | 
|  | 11757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11758 | *) ac_try_echo=$ac_try;; | 
|  | 11759 | esac | 
|  | 11760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11761 | (eval "$ac_try") 2>&5 | 
|  | 11762 | ac_status=$? | 
|  | 11763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11764 | (exit $ac_status); }; }; then | 
|  | 11765 | eval "$as_ac_var=yes" | 
|  | 11766 | else | 
|  | 11767 | echo "$as_me: failed program was:" >&5 | 
|  | 11768 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11769 |  | 
|  | 11770 | eval "$as_ac_var=no" | 
|  | 11771 | fi | 
|  | 11772 |  | 
|  | 11773 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11774 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11775 | fi | 
|  | 11776 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11777 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11778 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11779 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11780 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11781 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11782 | _ACEOF | 
|  | 11783 | break | 
|  | 11784 | fi | 
|  | 11785 | done | 
|  | 11786 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11787 |  | 
|  | 11788 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11789 | for ac_func in memmove strcmp | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11790 | do | 
|  | 11791 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11792 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11793 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11794 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11796 | else | 
|  | 11797 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11798 | /* confdefs.h.  */ | 
|  | 11799 | _ACEOF | 
|  | 11800 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11801 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11802 | /* end confdefs.h.  */ | 
|  | 11803 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11804 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11805 | #define $ac_func innocuous_$ac_func | 
|  | 11806 |  | 
|  | 11807 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11808 | which can conflict with char $ac_func (); below. | 
|  | 11809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11810 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11811 |  | 
|  | 11812 | #ifdef __STDC__ | 
|  | 11813 | # include <limits.h> | 
|  | 11814 | #else | 
|  | 11815 | # include <assert.h> | 
|  | 11816 | #endif | 
|  | 11817 |  | 
|  | 11818 | #undef $ac_func | 
|  | 11819 |  | 
|  | 11820 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11821 | Use char because int might match the return type of a GCC | 
|  | 11822 | builtin and then its argument prototype would still apply.  */ | 
|  | 11823 | #ifdef __cplusplus | 
|  | 11824 | extern "C" | 
|  | 11825 | #endif | 
|  | 11826 | char $ac_func (); | 
|  | 11827 | /* The GNU C library defines this for functions which it implements | 
|  | 11828 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11829 | something starting with __ and the normal name is an alias.  */ | 
|  | 11830 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11831 | choke me | 
|  | 11832 | #endif | 
|  | 11833 |  | 
|  | 11834 | int | 
|  | 11835 | main () | 
|  | 11836 | { | 
|  | 11837 | return $ac_func (); | 
|  | 11838 | ; | 
|  | 11839 | return 0; | 
|  | 11840 | } | 
|  | 11841 | _ACEOF | 
|  | 11842 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11843 | if { (ac_try="$ac_link" | 
|  | 11844 | case "(($ac_try" in | 
|  | 11845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11846 | *) ac_try_echo=$ac_try;; | 
|  | 11847 | esac | 
|  | 11848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11849 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11850 | ac_status=$? | 
|  | 11851 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11852 | rm -f conftest.er1 | 
|  | 11853 | cat conftest.err >&5 | 
|  | 11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11855 | (exit $ac_status); } && | 
|  | 11856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11857 | { (case "(($ac_try" in | 
|  | 11858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11859 | *) ac_try_echo=$ac_try;; | 
|  | 11860 | esac | 
|  | 11861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11862 | (eval "$ac_try") 2>&5 | 
|  | 11863 | ac_status=$? | 
|  | 11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11865 | (exit $ac_status); }; } && | 
|  | 11866 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11867 | { (case "(($ac_try" in | 
|  | 11868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11869 | *) ac_try_echo=$ac_try;; | 
|  | 11870 | esac | 
|  | 11871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11872 | (eval "$ac_try") 2>&5 | 
|  | 11873 | ac_status=$? | 
|  | 11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11875 | (exit $ac_status); }; }; then | 
|  | 11876 | eval "$as_ac_var=yes" | 
|  | 11877 | else | 
|  | 11878 | echo "$as_me: failed program was:" >&5 | 
|  | 11879 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11880 |  | 
|  | 11881 | eval "$as_ac_var=no" | 
|  | 11882 | fi | 
|  | 11883 |  | 
|  | 11884 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11885 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11886 | fi | 
|  | 11887 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11888 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11889 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11890 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11891 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11892 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11893 | _ACEOF | 
|  | 11894 |  | 
|  | 11895 | fi | 
|  | 11896 | done | 
|  | 11897 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11898 |  | 
|  | 11899 |  | 
|  | 11900 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11901 | for ac_func in closedir opendir readdir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11902 | do | 
|  | 11903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11904 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11906 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11908 | else | 
|  | 11909 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11910 | /* confdefs.h.  */ | 
|  | 11911 | _ACEOF | 
|  | 11912 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11913 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11914 | /* end confdefs.h.  */ | 
|  | 11915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11916 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11917 | #define $ac_func innocuous_$ac_func | 
|  | 11918 |  | 
|  | 11919 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11920 | which can conflict with char $ac_func (); below. | 
|  | 11921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11922 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11923 |  | 
|  | 11924 | #ifdef __STDC__ | 
|  | 11925 | # include <limits.h> | 
|  | 11926 | #else | 
|  | 11927 | # include <assert.h> | 
|  | 11928 | #endif | 
|  | 11929 |  | 
|  | 11930 | #undef $ac_func | 
|  | 11931 |  | 
|  | 11932 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11933 | Use char because int might match the return type of a GCC | 
|  | 11934 | builtin and then its argument prototype would still apply.  */ | 
|  | 11935 | #ifdef __cplusplus | 
|  | 11936 | extern "C" | 
|  | 11937 | #endif | 
|  | 11938 | char $ac_func (); | 
|  | 11939 | /* The GNU C library defines this for functions which it implements | 
|  | 11940 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11941 | something starting with __ and the normal name is an alias.  */ | 
|  | 11942 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11943 | choke me | 
|  | 11944 | #endif | 
|  | 11945 |  | 
|  | 11946 | int | 
|  | 11947 | main () | 
|  | 11948 | { | 
|  | 11949 | return $ac_func (); | 
|  | 11950 | ; | 
|  | 11951 | return 0; | 
|  | 11952 | } | 
|  | 11953 | _ACEOF | 
|  | 11954 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11955 | if { (ac_try="$ac_link" | 
|  | 11956 | case "(($ac_try" in | 
|  | 11957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11958 | *) ac_try_echo=$ac_try;; | 
|  | 11959 | esac | 
|  | 11960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11961 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11962 | ac_status=$? | 
|  | 11963 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11964 | rm -f conftest.er1 | 
|  | 11965 | cat conftest.err >&5 | 
|  | 11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11967 | (exit $ac_status); } && | 
|  | 11968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11969 | { (case "(($ac_try" in | 
|  | 11970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11971 | *) ac_try_echo=$ac_try;; | 
|  | 11972 | esac | 
|  | 11973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11974 | (eval "$ac_try") 2>&5 | 
|  | 11975 | ac_status=$? | 
|  | 11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11977 | (exit $ac_status); }; } && | 
|  | 11978 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11979 | { (case "(($ac_try" in | 
|  | 11980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11981 | *) ac_try_echo=$ac_try;; | 
|  | 11982 | esac | 
|  | 11983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11984 | (eval "$ac_try") 2>&5 | 
|  | 11985 | ac_status=$? | 
|  | 11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11987 | (exit $ac_status); }; }; then | 
|  | 11988 | eval "$as_ac_var=yes" | 
|  | 11989 | else | 
|  | 11990 | echo "$as_me: failed program was:" >&5 | 
|  | 11991 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11992 |  | 
|  | 11993 | eval "$as_ac_var=no" | 
|  | 11994 | fi | 
|  | 11995 |  | 
|  | 11996 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11997 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11998 | fi | 
|  | 11999 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 12000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 12001 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 12002 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12003 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12004 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12005 | _ACEOF | 
|  | 12006 |  | 
|  | 12007 | fi | 
|  | 12008 | done | 
|  | 12009 |  | 
|  | 12010 |  | 
| Douglas Gregor | 1543661 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12011 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12012 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
|  | 12013 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12014 |  | 
| Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12015 | ICC=no | 
|  | 12016 | IXX=no | 
|  | 12017 | case $CC in | 
|  | 12018 | icc*|icpc*) | 
|  | 12019 | ICC=yes | 
|  | 12020 | IXX=yes | 
|  | 12021 | ;; | 
|  | 12022 | *) | 
|  | 12023 | ;; | 
|  | 12024 | esac | 
|  | 12025 |  | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12026 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
|  | 12027 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12028 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
|  | 12029 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
|  | 12030 | { (exit 1); exit 1; }; } | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12031 | fi | 
|  | 12032 |  | 
|  | 12033 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
|  | 12034 | then | 
| Eric Christopher | 8d842da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12035 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 | 
|  | 12036 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12037 | { (exit 1); exit 1; }; } | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12038 | fi | 
|  | 12039 |  | 
| Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12040 | if test "$GCC" = "yes" | 
|  | 12041 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12042 | cat >conftest.$ac_ext <<_ACEOF | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12043 | #if !defined(__GNUC__) || __GNUC__ < 3 | 
|  | 12044 | #error Unsupported GCC version | 
|  | 12045 | #endif | 
|  | 12046 |  | 
|  | 12047 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12048 | rm -f conftest.$ac_objext | 
|  | 12049 | if { (ac_try="$ac_compile" | 
|  | 12050 | case "(($ac_try" in | 
|  | 12051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12052 | *) ac_try_echo=$ac_try;; | 
|  | 12053 | esac | 
|  | 12054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12055 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 12056 | ac_status=$? | 
|  | 12057 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12058 | rm -f conftest.er1 | 
|  | 12059 | cat conftest.err >&5 | 
|  | 12060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12061 | (exit $ac_status); } && | 
|  | 12062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12063 | { (case "(($ac_try" in | 
|  | 12064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12065 | *) ac_try_echo=$ac_try;; | 
|  | 12066 | esac | 
|  | 12067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12068 | (eval "$ac_try") 2>&5 | 
|  | 12069 | ac_status=$? | 
|  | 12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12071 | (exit $ac_status); }; } && | 
|  | 12072 | { ac_try='test -s conftest.$ac_objext' | 
|  | 12073 | { (case "(($ac_try" in | 
|  | 12074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12075 | *) ac_try_echo=$ac_try;; | 
|  | 12076 | esac | 
|  | 12077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12078 | (eval "$ac_try") 2>&5 | 
|  | 12079 | ac_status=$? | 
|  | 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12081 | (exit $ac_status); }; }; then | 
|  | 12082 | : | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12083 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12084 | echo "$as_me: failed program was:" >&5 | 
|  | 12085 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12086 |  | 
|  | 12087 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
|  | 12088 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
|  | 12089 | { (exit 1); exit 1; }; } | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12090 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12091 |  | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12093 | fi | 
|  | 12094 |  | 
|  | 12095 | if test -z "$llvm_cv_gnu_make_command" | 
|  | 12096 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12097 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
|  | 12098 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
|  | 12099 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12100 | fi | 
|  | 12101 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12102 | { echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 12103 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12104 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12105 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 | 
|  | 12106 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12107 | NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12108 |  | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12109 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12110 |  | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12111 | COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` | 
|  | 12112 |  | 
|  | 12113 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 | 
|  | 12114 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12115 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12116 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12117 |  | 
|  | 12118 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 | 
|  | 12119 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } | 
|  | 12120 | if test "${ac_cv_lib_m_sin+set}" = set; then | 
|  | 12121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12122 | else | 
|  | 12123 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12124 | LIBS="-lm  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12125 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12126 | /* confdefs.h.  */ | 
|  | 12127 | _ACEOF | 
|  | 12128 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12129 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12130 | /* end confdefs.h.  */ | 
|  | 12131 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12132 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12133 | Use char because int might match the return type of a GCC | 
|  | 12134 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12135 | #ifdef __cplusplus | 
|  | 12136 | extern "C" | 
|  | 12137 | #endif | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12138 | char sin (); | 
|  | 12139 | int | 
|  | 12140 | main () | 
|  | 12141 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12142 | return sin (); | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12143 | ; | 
|  | 12144 | return 0; | 
|  | 12145 | } | 
|  | 12146 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12147 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12148 | if { (ac_try="$ac_link" | 
|  | 12149 | case "(($ac_try" in | 
|  | 12150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12151 | *) ac_try_echo=$ac_try;; | 
|  | 12152 | esac | 
|  | 12153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12154 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12155 | ac_status=$? | 
|  | 12156 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12157 | rm -f conftest.er1 | 
|  | 12158 | cat conftest.err >&5 | 
|  | 12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12160 | (exit $ac_status); } && | 
|  | 12161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12162 | { (case "(($ac_try" in | 
|  | 12163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12164 | *) ac_try_echo=$ac_try;; | 
|  | 12165 | esac | 
|  | 12166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12167 | (eval "$ac_try") 2>&5 | 
|  | 12168 | ac_status=$? | 
|  | 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12170 | (exit $ac_status); }; } && | 
|  | 12171 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12172 | { (case "(($ac_try" in | 
|  | 12173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12174 | *) ac_try_echo=$ac_try;; | 
|  | 12175 | esac | 
|  | 12176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12177 | (eval "$ac_try") 2>&5 | 
|  | 12178 | ac_status=$? | 
|  | 12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12180 | (exit $ac_status); }; }; then | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12181 | ac_cv_lib_m_sin=yes | 
|  | 12182 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12183 | echo "$as_me: failed program was:" >&5 | 
|  | 12184 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12185 |  | 
|  | 12186 | ac_cv_lib_m_sin=no | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12187 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12188 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12189 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12190 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12191 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12192 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12193 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | 
|  | 12194 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } | 
|  | 12195 | if test $ac_cv_lib_m_sin = yes; then | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12196 | cat >>confdefs.h <<_ACEOF | 
|  | 12197 | #define HAVE_LIBM 1 | 
|  | 12198 | _ACEOF | 
|  | 12199 |  | 
|  | 12200 | LIBS="-lm $LIBS" | 
|  | 12201 |  | 
|  | 12202 | fi | 
|  | 12203 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12204 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12205 |  | 
|  | 12206 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 | 
|  | 12207 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } | 
|  | 12208 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then | 
|  | 12209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12210 | else | 
|  | 12211 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12212 | LIBS="-limagehlp  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12213 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12214 | /* confdefs.h.  */ | 
|  | 12215 | _ACEOF | 
|  | 12216 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12217 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12218 | /* end confdefs.h.  */ | 
|  | 12219 |  | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12220 |  | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12221 | int | 
|  | 12222 | main () | 
|  | 12223 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12224 | return main (); | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12225 | ; | 
|  | 12226 | return 0; | 
|  | 12227 | } | 
|  | 12228 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12229 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12230 | if { (ac_try="$ac_link" | 
|  | 12231 | case "(($ac_try" in | 
|  | 12232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12233 | *) ac_try_echo=$ac_try;; | 
|  | 12234 | esac | 
|  | 12235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12236 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12237 | ac_status=$? | 
|  | 12238 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12239 | rm -f conftest.er1 | 
|  | 12240 | cat conftest.err >&5 | 
|  | 12241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12242 | (exit $ac_status); } && | 
|  | 12243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12244 | { (case "(($ac_try" in | 
|  | 12245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12246 | *) ac_try_echo=$ac_try;; | 
|  | 12247 | esac | 
|  | 12248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12249 | (eval "$ac_try") 2>&5 | 
|  | 12250 | ac_status=$? | 
|  | 12251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12252 | (exit $ac_status); }; } && | 
|  | 12253 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12254 | { (case "(($ac_try" in | 
|  | 12255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12256 | *) ac_try_echo=$ac_try;; | 
|  | 12257 | esac | 
|  | 12258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12259 | (eval "$ac_try") 2>&5 | 
|  | 12260 | ac_status=$? | 
|  | 12261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12262 | (exit $ac_status); }; }; then | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12263 | ac_cv_lib_imagehlp_main=yes | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12264 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12265 | echo "$as_me: failed program was:" >&5 | 
|  | 12266 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12267 |  | 
|  | 12268 | ac_cv_lib_imagehlp_main=no | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12269 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12270 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12271 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12272 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12273 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12274 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12275 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 | 
|  | 12276 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } | 
|  | 12277 | if test $ac_cv_lib_imagehlp_main = yes; then | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12278 | cat >>confdefs.h <<_ACEOF | 
|  | 12279 | #define HAVE_LIBIMAGEHLP 1 | 
|  | 12280 | _ACEOF | 
|  | 12281 |  | 
|  | 12282 | LIBS="-limagehlp $LIBS" | 
|  | 12283 |  | 
|  | 12284 | fi | 
|  | 12285 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12286 |  | 
|  | 12287 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 | 
|  | 12288 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } | 
|  | 12289 | if test "${ac_cv_lib_psapi_main+set}" = set; then | 
|  | 12290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12291 | else | 
|  | 12292 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12293 | LIBS="-lpsapi  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12294 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12295 | /* confdefs.h.  */ | 
|  | 12296 | _ACEOF | 
|  | 12297 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12298 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12299 | /* end confdefs.h.  */ | 
|  | 12300 |  | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12301 |  | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12302 | int | 
|  | 12303 | main () | 
|  | 12304 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12305 | return main (); | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12306 | ; | 
|  | 12307 | return 0; | 
|  | 12308 | } | 
|  | 12309 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12310 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12311 | if { (ac_try="$ac_link" | 
|  | 12312 | case "(($ac_try" in | 
|  | 12313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12314 | *) ac_try_echo=$ac_try;; | 
|  | 12315 | esac | 
|  | 12316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12317 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12318 | ac_status=$? | 
|  | 12319 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12320 | rm -f conftest.er1 | 
|  | 12321 | cat conftest.err >&5 | 
|  | 12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12323 | (exit $ac_status); } && | 
|  | 12324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12325 | { (case "(($ac_try" in | 
|  | 12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12327 | *) ac_try_echo=$ac_try;; | 
|  | 12328 | esac | 
|  | 12329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12330 | (eval "$ac_try") 2>&5 | 
|  | 12331 | ac_status=$? | 
|  | 12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12333 | (exit $ac_status); }; } && | 
|  | 12334 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12335 | { (case "(($ac_try" in | 
|  | 12336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12337 | *) ac_try_echo=$ac_try;; | 
|  | 12338 | esac | 
|  | 12339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12340 | (eval "$ac_try") 2>&5 | 
|  | 12341 | ac_status=$? | 
|  | 12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12343 | (exit $ac_status); }; }; then | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12344 | ac_cv_lib_psapi_main=yes | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12345 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12346 | echo "$as_me: failed program was:" >&5 | 
|  | 12347 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12348 |  | 
|  | 12349 | ac_cv_lib_psapi_main=no | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12350 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12351 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12352 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12353 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12354 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12355 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12356 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 | 
|  | 12357 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } | 
|  | 12358 | if test $ac_cv_lib_psapi_main = yes; then | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12359 | cat >>confdefs.h <<_ACEOF | 
|  | 12360 | #define HAVE_LIBPSAPI 1 | 
|  | 12361 | _ACEOF | 
|  | 12362 |  | 
|  | 12363 | LIBS="-lpsapi $LIBS" | 
|  | 12364 |  | 
|  | 12365 | fi | 
|  | 12366 |  | 
|  | 12367 | fi | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12368 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12369 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
|  | 12370 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | 
|  | 12371 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12373 | else | 
|  | 12374 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12375 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12376 | /* confdefs.h.  */ | 
|  | 12377 | _ACEOF | 
|  | 12378 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12379 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12380 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12381 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12382 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12383 | Use char because int might match the return type of a GCC | 
|  | 12384 | builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12385 | #ifdef __cplusplus | 
|  | 12386 | extern "C" | 
|  | 12387 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12388 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12389 | int | 
|  | 12390 | main () | 
|  | 12391 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12392 | return dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12393 | ; | 
|  | 12394 | return 0; | 
|  | 12395 | } | 
|  | 12396 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12397 | for ac_lib in '' dl; do | 
|  | 12398 | if test -z "$ac_lib"; then | 
|  | 12399 | ac_res="none required" | 
|  | 12400 | else | 
|  | 12401 | ac_res=-l$ac_lib | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12402 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12403 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12404 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12405 | if { (ac_try="$ac_link" | 
|  | 12406 | case "(($ac_try" in | 
|  | 12407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12408 | *) ac_try_echo=$ac_try;; | 
|  | 12409 | esac | 
|  | 12410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12411 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12412 | ac_status=$? | 
|  | 12413 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12414 | rm -f conftest.er1 | 
|  | 12415 | cat conftest.err >&5 | 
|  | 12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12417 | (exit $ac_status); } && | 
|  | 12418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12419 | { (case "(($ac_try" in | 
|  | 12420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12421 | *) ac_try_echo=$ac_try;; | 
|  | 12422 | esac | 
|  | 12423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12424 | (eval "$ac_try") 2>&5 | 
|  | 12425 | ac_status=$? | 
|  | 12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12427 | (exit $ac_status); }; } && | 
|  | 12428 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12429 | { (case "(($ac_try" in | 
|  | 12430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12431 | *) ac_try_echo=$ac_try;; | 
|  | 12432 | esac | 
|  | 12433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12434 | (eval "$ac_try") 2>&5 | 
|  | 12435 | ac_status=$? | 
|  | 12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12437 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12438 | ac_cv_search_dlopen=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12439 | else | 
|  | 12440 | echo "$as_me: failed program was:" >&5 | 
|  | 12441 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12442 |  | 
|  | 12443 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12444 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12445 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12446 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12447 | conftest$ac_exeext | 
|  | 12448 | if test "${ac_cv_search_dlopen+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12449 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12450 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12451 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12452 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 12453 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12454 | else | 
|  | 12455 | ac_cv_search_dlopen=no | 
|  | 12456 | fi | 
|  | 12457 | rm conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12458 | LIBS=$ac_func_search_save_LIBS | 
|  | 12459 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12460 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
|  | 12461 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12462 | ac_res=$ac_cv_search_dlopen | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12463 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12464 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12465 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12466 | cat >>confdefs.h <<\_ACEOF | 
|  | 12467 | #define HAVE_DLOPEN 1 | 
|  | 12468 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12469 |  | 
|  | 12470 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12471 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
|  | 12472 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12473 | fi | 
|  | 12474 |  | 
|  | 12475 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12476 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12477 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 | 
|  | 12478 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } | 
|  | 12479 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
|  | 12480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12481 | else | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12482 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12483 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12484 | /* confdefs.h.  */ | 
|  | 12485 | _ACEOF | 
|  | 12486 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12487 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12488 | /* end confdefs.h.  */ | 
|  | 12489 |  | 
|  | 12490 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12491 | Use char because int might match the return type of a GCC | 
|  | 12492 | builtin and then its argument prototype would still apply.  */ | 
|  | 12493 | #ifdef __cplusplus | 
|  | 12494 | extern "C" | 
|  | 12495 | #endif | 
|  | 12496 | char ffi_call (); | 
|  | 12497 | int | 
|  | 12498 | main () | 
|  | 12499 | { | 
|  | 12500 | return ffi_call (); | 
|  | 12501 | ; | 
|  | 12502 | return 0; | 
|  | 12503 | } | 
|  | 12504 | _ACEOF | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12505 | for ac_lib in '' ffi; do | 
|  | 12506 | if test -z "$ac_lib"; then | 
|  | 12507 | ac_res="none required" | 
|  | 12508 | else | 
|  | 12509 | ac_res=-l$ac_lib | 
|  | 12510 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 12511 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12512 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12513 | if { (ac_try="$ac_link" | 
|  | 12514 | case "(($ac_try" in | 
|  | 12515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12516 | *) ac_try_echo=$ac_try;; | 
|  | 12517 | esac | 
|  | 12518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12519 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12520 | ac_status=$? | 
|  | 12521 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12522 | rm -f conftest.er1 | 
|  | 12523 | cat conftest.err >&5 | 
|  | 12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12525 | (exit $ac_status); } && | 
|  | 12526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12527 | { (case "(($ac_try" in | 
|  | 12528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12529 | *) ac_try_echo=$ac_try;; | 
|  | 12530 | esac | 
|  | 12531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12532 | (eval "$ac_try") 2>&5 | 
|  | 12533 | ac_status=$? | 
|  | 12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12535 | (exit $ac_status); }; } && | 
|  | 12536 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12537 | { (case "(($ac_try" in | 
|  | 12538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12539 | *) ac_try_echo=$ac_try;; | 
|  | 12540 | esac | 
|  | 12541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12542 | (eval "$ac_try") 2>&5 | 
|  | 12543 | ac_status=$? | 
|  | 12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12545 | (exit $ac_status); }; }; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12546 | ac_cv_search_ffi_call=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12547 | else | 
|  | 12548 | echo "$as_me: failed program was:" >&5 | 
|  | 12549 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12550 |  | 
|  | 12551 |  | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12552 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12553 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12554 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12555 | conftest$ac_exeext | 
|  | 12556 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12557 | break | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12558 | fi | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12559 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12560 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
|  | 12561 | : | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12562 | else | 
|  | 12563 | ac_cv_search_ffi_call=no | 
|  | 12564 | fi | 
|  | 12565 | rm conftest.$ac_ext | 
|  | 12566 | LIBS=$ac_func_search_save_LIBS | 
|  | 12567 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12568 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 | 
|  | 12569 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12570 | ac_res=$ac_cv_search_ffi_call | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12571 | if test "$ac_res" != no; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12572 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 12573 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12574 | cat >>confdefs.h <<\_ACEOF | 
|  | 12575 | #define HAVE_FFI_CALL 1 | 
|  | 12576 | _ACEOF | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12577 |  | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12578 | else | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12579 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 | 
|  | 12580 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} | 
|  | 12581 | { (exit 1); exit 1; }; } | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12582 | fi | 
|  | 12583 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12584 | fi | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12585 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12586 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
|  | 12587 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } | 
|  | 12588 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 12589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12590 | else | 
|  | 12591 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12592 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12593 | /* confdefs.h.  */ | 
|  | 12594 | _ACEOF | 
|  | 12595 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12596 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12597 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12598 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12599 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12600 | Use char because int might match the return type of a GCC | 
|  | 12601 | builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12602 | #ifdef __cplusplus | 
|  | 12603 | extern "C" | 
|  | 12604 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12605 | char mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12606 | int | 
|  | 12607 | main () | 
|  | 12608 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12609 | return mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12610 | ; | 
|  | 12611 | return 0; | 
|  | 12612 | } | 
|  | 12613 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12614 | for ac_lib in '' malloc; do | 
|  | 12615 | if test -z "$ac_lib"; then | 
|  | 12616 | ac_res="none required" | 
|  | 12617 | else | 
|  | 12618 | ac_res=-l$ac_lib | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12619 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12621 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12622 | if { (ac_try="$ac_link" | 
|  | 12623 | case "(($ac_try" in | 
|  | 12624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12625 | *) ac_try_echo=$ac_try;; | 
|  | 12626 | esac | 
|  | 12627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12628 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12629 | ac_status=$? | 
|  | 12630 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12631 | rm -f conftest.er1 | 
|  | 12632 | cat conftest.err >&5 | 
|  | 12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12634 | (exit $ac_status); } && | 
|  | 12635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12636 | { (case "(($ac_try" in | 
|  | 12637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12638 | *) ac_try_echo=$ac_try;; | 
|  | 12639 | esac | 
|  | 12640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12641 | (eval "$ac_try") 2>&5 | 
|  | 12642 | ac_status=$? | 
|  | 12643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12644 | (exit $ac_status); }; } && | 
|  | 12645 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12646 | { (case "(($ac_try" in | 
|  | 12647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12648 | *) ac_try_echo=$ac_try;; | 
|  | 12649 | esac | 
|  | 12650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12651 | (eval "$ac_try") 2>&5 | 
|  | 12652 | ac_status=$? | 
|  | 12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12654 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12655 | ac_cv_search_mallinfo=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12656 | else | 
|  | 12657 | echo "$as_me: failed program was:" >&5 | 
|  | 12658 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12659 |  | 
|  | 12660 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12661 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12662 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12663 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12664 | conftest$ac_exeext | 
|  | 12665 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12666 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12667 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12668 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12669 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 12670 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12671 | else | 
|  | 12672 | ac_cv_search_mallinfo=no | 
|  | 12673 | fi | 
|  | 12674 | rm conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12675 | LIBS=$ac_func_search_save_LIBS | 
|  | 12676 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12677 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
|  | 12678 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12679 | ac_res=$ac_cv_search_mallinfo | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12680 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12681 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12682 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12683 | cat >>confdefs.h <<\_ACEOF | 
|  | 12684 | #define HAVE_MALLINFO 1 | 
|  | 12685 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12686 |  | 
|  | 12687 | fi | 
|  | 12688 |  | 
|  | 12689 |  | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12690 | 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] | 12691 |  | 
|  | 12692 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | 
|  | 12693 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } | 
|  | 12694 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | 
|  | 12695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12696 | else | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12697 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12698 | LIBS="-lpthread  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12699 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12700 | /* confdefs.h.  */ | 
|  | 12701 | _ACEOF | 
|  | 12702 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12703 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12704 | /* end confdefs.h.  */ | 
|  | 12705 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12706 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12707 | Use char because int might match the return type of a GCC | 
|  | 12708 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12709 | #ifdef __cplusplus | 
|  | 12710 | extern "C" | 
|  | 12711 | #endif | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12712 | char pthread_mutex_init (); | 
|  | 12713 | int | 
|  | 12714 | main () | 
|  | 12715 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12716 | return pthread_mutex_init (); | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12717 | ; | 
|  | 12718 | return 0; | 
|  | 12719 | } | 
|  | 12720 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12721 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12722 | if { (ac_try="$ac_link" | 
|  | 12723 | case "(($ac_try" in | 
|  | 12724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12725 | *) ac_try_echo=$ac_try;; | 
|  | 12726 | esac | 
|  | 12727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12728 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12729 | ac_status=$? | 
|  | 12730 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12731 | rm -f conftest.er1 | 
|  | 12732 | cat conftest.err >&5 | 
|  | 12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12734 | (exit $ac_status); } && | 
|  | 12735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12736 | { (case "(($ac_try" in | 
|  | 12737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12738 | *) ac_try_echo=$ac_try;; | 
|  | 12739 | esac | 
|  | 12740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12741 | (eval "$ac_try") 2>&5 | 
|  | 12742 | ac_status=$? | 
|  | 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12744 | (exit $ac_status); }; } && | 
|  | 12745 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12746 | { (case "(($ac_try" in | 
|  | 12747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12748 | *) ac_try_echo=$ac_try;; | 
|  | 12749 | esac | 
|  | 12750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12751 | (eval "$ac_try") 2>&5 | 
|  | 12752 | ac_status=$? | 
|  | 12753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12754 | (exit $ac_status); }; }; then | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12755 | ac_cv_lib_pthread_pthread_mutex_init=yes | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12756 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12757 | echo "$as_me: failed program was:" >&5 | 
|  | 12758 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12759 |  | 
|  | 12760 | ac_cv_lib_pthread_pthread_mutex_init=no | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12761 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12762 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12763 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12764 | conftest$ac_exeext conftest.$ac_ext | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12765 | LIBS=$ac_check_lib_save_LIBS | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12766 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12767 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | 
|  | 12768 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } | 
|  | 12769 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12770 | cat >>confdefs.h <<_ACEOF | 
|  | 12771 | #define HAVE_LIBPTHREAD 1 | 
| Edward O'Callaghan | a5314b8 | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12772 | _ACEOF | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12773 |  | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12774 | LIBS="-lpthread $LIBS" | 
|  | 12775 |  | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12776 | fi | 
|  | 12777 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12778 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
|  | 12779 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | 
|  | 12780 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 12781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12782 | else | 
|  | 12783 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12784 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12785 | /* confdefs.h.  */ | 
|  | 12786 | _ACEOF | 
|  | 12787 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12788 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12789 | /* end confdefs.h.  */ | 
|  | 12790 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12791 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12792 | Use char because int might match the return type of a GCC | 
|  | 12793 | builtin and then its argument prototype would still apply.  */ | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12794 | #ifdef __cplusplus | 
|  | 12795 | extern "C" | 
|  | 12796 | #endif | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12797 | char pthread_mutex_lock (); | 
|  | 12798 | int | 
|  | 12799 | main () | 
|  | 12800 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12801 | return pthread_mutex_lock (); | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12802 | ; | 
|  | 12803 | return 0; | 
|  | 12804 | } | 
|  | 12805 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | for ac_lib in '' pthread; do | 
|  | 12807 | if test -z "$ac_lib"; then | 
|  | 12808 | ac_res="none required" | 
|  | 12809 | else | 
|  | 12810 | ac_res=-l$ac_lib | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12811 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12812 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12813 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12814 | if { (ac_try="$ac_link" | 
|  | 12815 | case "(($ac_try" in | 
|  | 12816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12817 | *) ac_try_echo=$ac_try;; | 
|  | 12818 | esac | 
|  | 12819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12820 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12821 | ac_status=$? | 
|  | 12822 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12823 | rm -f conftest.er1 | 
|  | 12824 | cat conftest.err >&5 | 
|  | 12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12826 | (exit $ac_status); } && | 
|  | 12827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12828 | { (case "(($ac_try" in | 
|  | 12829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12830 | *) ac_try_echo=$ac_try;; | 
|  | 12831 | esac | 
|  | 12832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12833 | (eval "$ac_try") 2>&5 | 
|  | 12834 | ac_status=$? | 
|  | 12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12836 | (exit $ac_status); }; } && | 
|  | 12837 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12838 | { (case "(($ac_try" in | 
|  | 12839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12840 | *) ac_try_echo=$ac_try;; | 
|  | 12841 | esac | 
|  | 12842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12843 | (eval "$ac_try") 2>&5 | 
|  | 12844 | ac_status=$? | 
|  | 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12846 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12847 | ac_cv_search_pthread_mutex_lock=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12848 | else | 
|  | 12849 | echo "$as_me: failed program was:" >&5 | 
|  | 12850 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12851 |  | 
|  | 12852 |  | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12853 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12854 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12855 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12856 | conftest$ac_exeext | 
|  | 12857 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12858 | break | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12859 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12860 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12861 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 12862 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12863 | else | 
|  | 12864 | ac_cv_search_pthread_mutex_lock=no | 
|  | 12865 | fi | 
|  | 12866 | rm conftest.$ac_ext | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12867 | LIBS=$ac_func_search_save_LIBS | 
|  | 12868 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12869 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
|  | 12870 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12871 | ac_res=$ac_cv_search_pthread_mutex_lock | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12872 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12873 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12874 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12875 | cat >>confdefs.h <<\_ACEOF | 
|  | 12876 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
|  | 12877 | _ACEOF | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12878 |  | 
|  | 12879 | fi | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12880 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12881 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 | 
|  | 12882 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } | 
|  | 12883 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
|  | 12884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12885 | else | 
|  | 12886 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12887 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12888 | /* confdefs.h.  */ | 
|  | 12889 | _ACEOF | 
|  | 12890 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12891 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12892 | /* end confdefs.h.  */ | 
|  | 12893 |  | 
|  | 12894 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12895 | Use char because int might match the return type of a GCC | 
|  | 12896 | builtin and then its argument prototype would still apply.  */ | 
|  | 12897 | #ifdef __cplusplus | 
|  | 12898 | extern "C" | 
|  | 12899 | #endif | 
|  | 12900 | char pthread_rwlock_init (); | 
|  | 12901 | int | 
|  | 12902 | main () | 
|  | 12903 | { | 
|  | 12904 | return pthread_rwlock_init (); | 
|  | 12905 | ; | 
|  | 12906 | return 0; | 
|  | 12907 | } | 
|  | 12908 | _ACEOF | 
|  | 12909 | for ac_lib in '' pthread; do | 
|  | 12910 | if test -z "$ac_lib"; then | 
|  | 12911 | ac_res="none required" | 
|  | 12912 | else | 
|  | 12913 | ac_res=-l$ac_lib | 
|  | 12914 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 12915 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12916 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12917 | if { (ac_try="$ac_link" | 
|  | 12918 | case "(($ac_try" in | 
|  | 12919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12920 | *) ac_try_echo=$ac_try;; | 
|  | 12921 | esac | 
|  | 12922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12923 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12924 | ac_status=$? | 
|  | 12925 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12926 | rm -f conftest.er1 | 
|  | 12927 | cat conftest.err >&5 | 
|  | 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12929 | (exit $ac_status); } && | 
|  | 12930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12931 | { (case "(($ac_try" in | 
|  | 12932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12933 | *) ac_try_echo=$ac_try;; | 
|  | 12934 | esac | 
|  | 12935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12936 | (eval "$ac_try") 2>&5 | 
|  | 12937 | ac_status=$? | 
|  | 12938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12939 | (exit $ac_status); }; } && | 
|  | 12940 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12941 | { (case "(($ac_try" in | 
|  | 12942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12943 | *) ac_try_echo=$ac_try;; | 
|  | 12944 | esac | 
|  | 12945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12946 | (eval "$ac_try") 2>&5 | 
|  | 12947 | ac_status=$? | 
|  | 12948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12949 | (exit $ac_status); }; }; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12950 | ac_cv_search_pthread_rwlock_init=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12951 | else | 
|  | 12952 | echo "$as_me: failed program was:" >&5 | 
|  | 12953 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12954 |  | 
|  | 12955 |  | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12956 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12957 |  | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12958 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12959 | conftest$ac_exeext | 
|  | 12960 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12961 | break | 
|  | 12962 | fi | 
|  | 12963 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12964 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
|  | 12965 | : | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12966 | else | 
|  | 12967 | ac_cv_search_pthread_rwlock_init=no | 
|  | 12968 | fi | 
|  | 12969 | rm conftest.$ac_ext | 
|  | 12970 | LIBS=$ac_func_search_save_LIBS | 
|  | 12971 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12972 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 | 
|  | 12973 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12974 | ac_res=$ac_cv_search_pthread_rwlock_init | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12975 | if test "$ac_res" != no; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12976 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 12977 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12978 | cat >>confdefs.h <<\_ACEOF | 
|  | 12979 | #define HAVE_PTHREAD_RWLOCK_INIT 1 | 
|  | 12980 | _ACEOF | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12981 |  | 
|  | 12982 | fi | 
|  | 12983 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12984 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 | 
|  | 12985 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } | 
|  | 12986 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
|  | 12987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 12988 | else | 
|  | 12989 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12990 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12991 | /* confdefs.h.  */ | 
|  | 12992 | _ACEOF | 
|  | 12993 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12994 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 12995 | /* end confdefs.h.  */ | 
|  | 12996 |  | 
|  | 12997 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12998 | Use char because int might match the return type of a GCC | 
|  | 12999 | builtin and then its argument prototype would still apply.  */ | 
|  | 13000 | #ifdef __cplusplus | 
|  | 13001 | extern "C" | 
|  | 13002 | #endif | 
|  | 13003 | char pthread_getspecific (); | 
|  | 13004 | int | 
|  | 13005 | main () | 
|  | 13006 | { | 
|  | 13007 | return pthread_getspecific (); | 
|  | 13008 | ; | 
|  | 13009 | return 0; | 
|  | 13010 | } | 
|  | 13011 | _ACEOF | 
|  | 13012 | for ac_lib in '' pthread; do | 
|  | 13013 | if test -z "$ac_lib"; then | 
|  | 13014 | ac_res="none required" | 
|  | 13015 | else | 
|  | 13016 | ac_res=-l$ac_lib | 
|  | 13017 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13018 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13019 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13020 | if { (ac_try="$ac_link" | 
|  | 13021 | case "(($ac_try" in | 
|  | 13022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13023 | *) ac_try_echo=$ac_try;; | 
|  | 13024 | esac | 
|  | 13025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13026 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13027 | ac_status=$? | 
|  | 13028 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13029 | rm -f conftest.er1 | 
|  | 13030 | cat conftest.err >&5 | 
|  | 13031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13032 | (exit $ac_status); } && | 
|  | 13033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13034 | { (case "(($ac_try" in | 
|  | 13035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13036 | *) ac_try_echo=$ac_try;; | 
|  | 13037 | esac | 
|  | 13038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13039 | (eval "$ac_try") 2>&5 | 
|  | 13040 | ac_status=$? | 
|  | 13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13042 | (exit $ac_status); }; } && | 
|  | 13043 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13044 | { (case "(($ac_try" in | 
|  | 13045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13046 | *) ac_try_echo=$ac_try;; | 
|  | 13047 | esac | 
|  | 13048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13049 | (eval "$ac_try") 2>&5 | 
|  | 13050 | ac_status=$? | 
|  | 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13052 | (exit $ac_status); }; }; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13053 | ac_cv_search_pthread_getspecific=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13054 | else | 
|  | 13055 | echo "$as_me: failed program was:" >&5 | 
|  | 13056 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13057 |  | 
|  | 13058 |  | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13059 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13060 |  | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13061 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13062 | conftest$ac_exeext | 
|  | 13063 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13064 | break | 
|  | 13065 | fi | 
|  | 13066 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13067 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
|  | 13068 | : | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13069 | else | 
|  | 13070 | ac_cv_search_pthread_getspecific=no | 
|  | 13071 | fi | 
|  | 13072 | rm conftest.$ac_ext | 
|  | 13073 | LIBS=$ac_func_search_save_LIBS | 
|  | 13074 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13075 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 | 
|  | 13076 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13077 | ac_res=$ac_cv_search_pthread_getspecific | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13078 | if test "$ac_res" != no; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13079 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13080 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13081 | cat >>confdefs.h <<\_ACEOF | 
|  | 13082 | #define HAVE_PTHREAD_GETSPECIFIC 1 | 
|  | 13083 | _ACEOF | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13084 |  | 
|  | 13085 | fi | 
|  | 13086 |  | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13087 | fi | 
| Brian Gaeke | d3de6c0 | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13088 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13089 |  | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13090 | # Check whether --with-udis86 was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13091 | if test "${with_udis86+set}" = set; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13092 | withval=$with_udis86; | 
|  | 13093 | USE_UDIS86=1 | 
|  | 13094 |  | 
|  | 13095 | case "$withval" in | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13096 | /usr/lib|yes) ;; | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13097 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; | 
|  | 13098 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13099 |  | 
|  | 13100 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 | 
|  | 13101 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } | 
|  | 13102 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then | 
|  | 13103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13104 | else | 
|  | 13105 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13106 | LIBS="-ludis86  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13107 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13108 | /* confdefs.h.  */ | 
|  | 13109 | _ACEOF | 
|  | 13110 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13111 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13112 | /* end confdefs.h.  */ | 
|  | 13113 |  | 
|  | 13114 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13115 | Use char because int might match the return type of a GCC | 
|  | 13116 | builtin and then its argument prototype would still apply.  */ | 
|  | 13117 | #ifdef __cplusplus | 
|  | 13118 | extern "C" | 
|  | 13119 | #endif | 
|  | 13120 | char ud_init (); | 
|  | 13121 | int | 
|  | 13122 | main () | 
|  | 13123 | { | 
|  | 13124 | return ud_init (); | 
|  | 13125 | ; | 
|  | 13126 | return 0; | 
|  | 13127 | } | 
|  | 13128 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13129 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13130 | if { (ac_try="$ac_link" | 
|  | 13131 | case "(($ac_try" in | 
|  | 13132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13133 | *) ac_try_echo=$ac_try;; | 
|  | 13134 | esac | 
|  | 13135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13136 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13137 | ac_status=$? | 
|  | 13138 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13139 | rm -f conftest.er1 | 
|  | 13140 | cat conftest.err >&5 | 
|  | 13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13142 | (exit $ac_status); } && | 
|  | 13143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13144 | { (case "(($ac_try" in | 
|  | 13145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13146 | *) ac_try_echo=$ac_try;; | 
|  | 13147 | esac | 
|  | 13148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13149 | (eval "$ac_try") 2>&5 | 
|  | 13150 | ac_status=$? | 
|  | 13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13152 | (exit $ac_status); }; } && | 
|  | 13153 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13154 | { (case "(($ac_try" in | 
|  | 13155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13156 | *) ac_try_echo=$ac_try;; | 
|  | 13157 | esac | 
|  | 13158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13159 | (eval "$ac_try") 2>&5 | 
|  | 13160 | ac_status=$? | 
|  | 13161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13162 | (exit $ac_status); }; }; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13163 | ac_cv_lib_udis86_ud_init=yes | 
|  | 13164 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13165 | echo "$as_me: failed program was:" >&5 | 
|  | 13166 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13167 |  | 
|  | 13168 | ac_cv_lib_udis86_ud_init=no | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13169 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13170 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13171 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13172 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13173 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13174 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13175 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 | 
|  | 13176 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } | 
|  | 13177 | if test $ac_cv_lib_udis86_ud_init = yes; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13178 | cat >>confdefs.h <<_ACEOF | 
|  | 13179 | #define HAVE_LIBUDIS86 1 | 
|  | 13180 | _ACEOF | 
|  | 13181 |  | 
|  | 13182 | LIBS="-ludis86 $LIBS" | 
|  | 13183 |  | 
|  | 13184 | else | 
|  | 13185 |  | 
|  | 13186 | echo "Error! You need to have libudis86 around." | 
|  | 13187 | exit -1 | 
|  | 13188 |  | 
|  | 13189 | fi | 
|  | 13190 |  | 
|  | 13191 |  | 
|  | 13192 | else | 
|  | 13193 | USE_UDIS86=0 | 
|  | 13194 |  | 
|  | 13195 | fi | 
|  | 13196 |  | 
|  | 13197 |  | 
|  | 13198 | cat >>confdefs.h <<_ACEOF | 
|  | 13199 | #define USE_UDIS86 $USE_UDIS86 | 
|  | 13200 | _ACEOF | 
|  | 13201 |  | 
|  | 13202 |  | 
|  | 13203 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13204 | # Check whether --with-oprofile was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13205 | if test "${with_oprofile+set}" = set; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13206 | withval=$with_oprofile; | 
|  | 13207 | USE_OPROFILE=1 | 
|  | 13208 |  | 
|  | 13209 | case "$withval" in | 
|  | 13210 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13211 | no) llvm_cv_oppath= | 
|  | 13212 | USE_OPROFILE=0 | 
|  | 13213 | ;; | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13214 | *) llvm_cv_oppath="${withval}/lib/oprofile" | 
|  | 13215 | CPPFLAGS="-I${withval}/include";; | 
|  | 13216 | esac | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13217 | case $llvm_cv_os_type in | 
|  | 13218 | Linux) | 
|  | 13219 | if test -n "$llvm_cv_oppath" ; then | 
|  | 13220 | LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" | 
|  | 13221 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } | 
|  | 13223 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
|  | 13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13225 | else | 
|  | 13226 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13227 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13228 | /* confdefs.h.  */ | 
|  | 13229 | _ACEOF | 
|  | 13230 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13231 | cat >>conftest.$ac_ext <<_ACEOF | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13232 | /* end confdefs.h.  */ | 
|  | 13233 |  | 
|  | 13234 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13235 | Use char because int might match the return type of a GCC | 
|  | 13236 | builtin and then its argument prototype would still apply.  */ | 
|  | 13237 | #ifdef __cplusplus | 
|  | 13238 | extern "C" | 
|  | 13239 | #endif | 
|  | 13240 | char bfd_init (); | 
|  | 13241 | int | 
|  | 13242 | main () | 
|  | 13243 | { | 
|  | 13244 | return bfd_init (); | 
|  | 13245 | ; | 
|  | 13246 | return 0; | 
|  | 13247 | } | 
|  | 13248 | _ACEOF | 
|  | 13249 | for ac_lib in '' bfd; do | 
|  | 13250 | if test -z "$ac_lib"; then | 
|  | 13251 | ac_res="none required" | 
|  | 13252 | else | 
|  | 13253 | ac_res=-l$ac_lib | 
|  | 13254 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13255 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13256 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13257 | if { (ac_try="$ac_link" | 
|  | 13258 | case "(($ac_try" in | 
|  | 13259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13260 | *) ac_try_echo=$ac_try;; | 
|  | 13261 | esac | 
|  | 13262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13263 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13264 | ac_status=$? | 
|  | 13265 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13266 | rm -f conftest.er1 | 
|  | 13267 | cat conftest.err >&5 | 
|  | 13268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13269 | (exit $ac_status); } && | 
|  | 13270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13271 | { (case "(($ac_try" in | 
|  | 13272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13273 | *) ac_try_echo=$ac_try;; | 
|  | 13274 | esac | 
|  | 13275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13276 | (eval "$ac_try") 2>&5 | 
|  | 13277 | ac_status=$? | 
|  | 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13279 | (exit $ac_status); }; } && | 
|  | 13280 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13281 | { (case "(($ac_try" in | 
|  | 13282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13283 | *) ac_try_echo=$ac_try;; | 
|  | 13284 | esac | 
|  | 13285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13286 | (eval "$ac_try") 2>&5 | 
|  | 13287 | ac_status=$? | 
|  | 13288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13289 | (exit $ac_status); }; }; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13290 | ac_cv_search_bfd_init=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13291 | else | 
|  | 13292 | echo "$as_me: failed program was:" >&5 | 
|  | 13293 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13294 |  | 
|  | 13295 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13296 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13297 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13298 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13299 | conftest$ac_exeext | 
|  | 13300 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13301 | break | 
|  | 13302 | fi | 
|  | 13303 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13304 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
|  | 13305 | : | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13306 | else | 
|  | 13307 | ac_cv_search_bfd_init=no | 
|  | 13308 | fi | 
|  | 13309 | rm conftest.$ac_ext | 
|  | 13310 | LIBS=$ac_func_search_save_LIBS | 
|  | 13311 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13312 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 | 
|  | 13313 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13314 | ac_res=$ac_cv_search_bfd_init | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13315 | if test "$ac_res" != no; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13316 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13317 |  | 
|  | 13318 | fi | 
|  | 13319 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13320 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13321 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } | 
|  | 13322 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
|  | 13323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13324 | else | 
|  | 13325 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13326 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13327 | /* confdefs.h.  */ | 
|  | 13328 | _ACEOF | 
|  | 13329 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13330 | cat >>conftest.$ac_ext <<_ACEOF | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13331 | /* end confdefs.h.  */ | 
|  | 13332 |  | 
|  | 13333 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13334 | Use char because int might match the return type of a GCC | 
|  | 13335 | builtin and then its argument prototype would still apply.  */ | 
|  | 13336 | #ifdef __cplusplus | 
|  | 13337 | extern "C" | 
|  | 13338 | #endif | 
|  | 13339 | char op_open_agent (); | 
|  | 13340 | int | 
|  | 13341 | main () | 
|  | 13342 | { | 
|  | 13343 | return op_open_agent (); | 
|  | 13344 | ; | 
|  | 13345 | return 0; | 
|  | 13346 | } | 
|  | 13347 | _ACEOF | 
|  | 13348 | for ac_lib in '' opagent; do | 
|  | 13349 | if test -z "$ac_lib"; then | 
|  | 13350 | ac_res="none required" | 
|  | 13351 | else | 
|  | 13352 | ac_res=-l$ac_lib | 
|  | 13353 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13354 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13355 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13356 | if { (ac_try="$ac_link" | 
|  | 13357 | case "(($ac_try" in | 
|  | 13358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13359 | *) ac_try_echo=$ac_try;; | 
|  | 13360 | esac | 
|  | 13361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13362 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13363 | ac_status=$? | 
|  | 13364 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13365 | rm -f conftest.er1 | 
|  | 13366 | cat conftest.err >&5 | 
|  | 13367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13368 | (exit $ac_status); } && | 
|  | 13369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13370 | { (case "(($ac_try" in | 
|  | 13371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13372 | *) ac_try_echo=$ac_try;; | 
|  | 13373 | esac | 
|  | 13374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13375 | (eval "$ac_try") 2>&5 | 
|  | 13376 | ac_status=$? | 
|  | 13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13378 | (exit $ac_status); }; } && | 
|  | 13379 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13380 | { (case "(($ac_try" in | 
|  | 13381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13382 | *) ac_try_echo=$ac_try;; | 
|  | 13383 | esac | 
|  | 13384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13385 | (eval "$ac_try") 2>&5 | 
|  | 13386 | ac_status=$? | 
|  | 13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13388 | (exit $ac_status); }; }; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13389 | ac_cv_search_op_open_agent=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13390 | else | 
|  | 13391 | echo "$as_me: failed program was:" >&5 | 
|  | 13392 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13393 |  | 
|  | 13394 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13395 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13396 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13397 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13398 | conftest$ac_exeext | 
|  | 13399 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13400 | break | 
|  | 13401 | fi | 
|  | 13402 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13403 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
|  | 13404 | : | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13405 | else | 
|  | 13406 | ac_cv_search_op_open_agent=no | 
|  | 13407 | fi | 
|  | 13408 | rm conftest.$ac_ext | 
|  | 13409 | LIBS=$ac_func_search_save_LIBS | 
|  | 13410 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13411 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 | 
|  | 13412 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13413 | ac_res=$ac_cv_search_op_open_agent | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13414 | if test "$ac_res" != no; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13415 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13416 |  | 
|  | 13417 | else | 
|  | 13418 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13419 | echo "Error! You need to have libopagent around." | 
|  | 13420 | exit -1 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13421 |  | 
|  | 13422 | fi | 
|  | 13423 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13424 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13425 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
|  | 13426 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
|  | 13427 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13429 | fi | 
|  | 13430 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
|  | 13431 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
|  | 13432 | else | 
|  | 13433 | # Is the header compilable? | 
|  | 13434 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 | 
|  | 13435 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } | 
|  | 13436 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13437 | /* confdefs.h.  */ | 
|  | 13438 | _ACEOF | 
|  | 13439 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13440 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13441 | /* end confdefs.h.  */ | 
|  | 13442 | $ac_includes_default | 
|  | 13443 | #include <opagent.h> | 
|  | 13444 | _ACEOF | 
|  | 13445 | rm -f conftest.$ac_objext | 
|  | 13446 | if { (ac_try="$ac_compile" | 
|  | 13447 | case "(($ac_try" in | 
|  | 13448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13449 | *) ac_try_echo=$ac_try;; | 
|  | 13450 | esac | 
|  | 13451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13452 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13453 | ac_status=$? | 
|  | 13454 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13455 | rm -f conftest.er1 | 
|  | 13456 | cat conftest.err >&5 | 
|  | 13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13458 | (exit $ac_status); } && | 
|  | 13459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13460 | { (case "(($ac_try" in | 
|  | 13461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13462 | *) ac_try_echo=$ac_try;; | 
|  | 13463 | esac | 
|  | 13464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13465 | (eval "$ac_try") 2>&5 | 
|  | 13466 | ac_status=$? | 
|  | 13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13468 | (exit $ac_status); }; } && | 
|  | 13469 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13470 | { (case "(($ac_try" in | 
|  | 13471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13472 | *) ac_try_echo=$ac_try;; | 
|  | 13473 | esac | 
|  | 13474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13475 | (eval "$ac_try") 2>&5 | 
|  | 13476 | ac_status=$? | 
|  | 13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13478 | (exit $ac_status); }; }; then | 
|  | 13479 | ac_header_compiler=yes | 
|  | 13480 | else | 
|  | 13481 | echo "$as_me: failed program was:" >&5 | 
|  | 13482 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13483 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13484 | ac_header_compiler=no | 
|  | 13485 | fi | 
|  | 13486 |  | 
|  | 13487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13488 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 13489 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 13490 |  | 
|  | 13491 | # Is the header present? | 
|  | 13492 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 | 
|  | 13493 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } | 
|  | 13494 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13495 | /* confdefs.h.  */ | 
|  | 13496 | _ACEOF | 
|  | 13497 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13498 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13499 | /* end confdefs.h.  */ | 
|  | 13500 | #include <opagent.h> | 
|  | 13501 | _ACEOF | 
|  | 13502 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 13503 | case "(($ac_try" in | 
|  | 13504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13505 | *) ac_try_echo=$ac_try;; | 
|  | 13506 | esac | 
|  | 13507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13508 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 13509 | ac_status=$? | 
|  | 13510 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13511 | rm -f conftest.er1 | 
|  | 13512 | cat conftest.err >&5 | 
|  | 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13514 | (exit $ac_status); } >/dev/null; then | 
|  | 13515 | if test -s conftest.err; then | 
|  | 13516 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 13517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 13518 | else | 
|  | 13519 | ac_cpp_err= | 
|  | 13520 | fi | 
|  | 13521 | else | 
|  | 13522 | ac_cpp_err=yes | 
|  | 13523 | fi | 
|  | 13524 | if test -z "$ac_cpp_err"; then | 
|  | 13525 | ac_header_preproc=yes | 
|  | 13526 | else | 
|  | 13527 | echo "$as_me: failed program was:" >&5 | 
|  | 13528 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13529 |  | 
|  | 13530 | ac_header_preproc=no | 
|  | 13531 | fi | 
|  | 13532 |  | 
|  | 13533 | rm -f conftest.err conftest.$ac_ext | 
|  | 13534 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 13535 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 13536 |  | 
|  | 13537 | # So?  What about this header? | 
|  | 13538 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 13539 | yes:no: ) | 
|  | 13540 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 13541 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 13542 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 | 
|  | 13543 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} | 
|  | 13544 | ac_header_preproc=yes | 
|  | 13545 | ;; | 
|  | 13546 | no:yes:* ) | 
|  | 13547 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 | 
|  | 13548 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} | 
|  | 13549 | { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5 | 
|  | 13550 | echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;} | 
|  | 13551 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 | 
|  | 13552 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} | 
|  | 13553 | { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 13554 | echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 13555 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 | 
|  | 13556 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} | 
|  | 13557 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 | 
|  | 13558 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} | 
|  | 13559 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13560 | ## ------------------------------------ ## | 
|  | 13561 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 13562 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13563 | _ASBOX | 
|  | 13564 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 13565 | ;; | 
|  | 13566 | esac | 
|  | 13567 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
|  | 13568 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
|  | 13569 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13571 | else | 
|  | 13572 | ac_cv_header_opagent_h=$ac_header_preproc | 
|  | 13573 | fi | 
|  | 13574 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
|  | 13575 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
|  | 13576 |  | 
|  | 13577 | fi | 
|  | 13578 | if test $ac_cv_header_opagent_h = yes; then | 
|  | 13579 | : | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13580 | else | 
|  | 13581 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13582 | echo "Error! You need to have opagent.h around." | 
|  | 13583 | exit -1 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13584 |  | 
|  | 13585 | fi | 
|  | 13586 |  | 
|  | 13587 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13588 | fi ;; | 
|  | 13589 | *) | 
|  | 13590 | { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 | 
|  | 13591 | echo "$as_me: error: OProfile support is available on Linux only." >&2;} | 
|  | 13592 | { (exit 1); exit 1; }; } ;; | 
|  | 13593 | esac | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13594 |  | 
|  | 13595 | else | 
|  | 13596 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13597 | USE_OPROFILE=0 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13598 |  | 
|  | 13599 |  | 
|  | 13600 | fi | 
|  | 13601 |  | 
|  | 13602 |  | 
|  | 13603 | cat >>confdefs.h <<_ACEOF | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13604 | #define LLVM_USE_OPROFILE $USE_OPROFILE | 
|  | 13605 | _ACEOF | 
|  | 13606 |  | 
|  | 13607 |  | 
|  | 13608 |  | 
|  | 13609 | # Check whether --with-intel-jitevents was given. | 
|  | 13610 | if test "${with_intel_jitevents+set}" = set; then | 
|  | 13611 | withval=$with_intel_jitevents; | 
|  | 13612 | case $llvm_cv_os_type in | 
|  | 13613 | Linux|Win32|Cygwin|MingW) ;; | 
|  | 13614 | *) | 
|  | 13615 | { { echo "$as_me:$LINENO: error: | 
|  | 13616 | Intel JIT API support is available on Linux and Windows only.\"" >&5 | 
|  | 13617 | echo "$as_me: error: | 
|  | 13618 | Intel JIT API support is available on Linux and Windows only.\"" >&2;} | 
|  | 13619 | { (exit 1); exit 1; }; } ;; | 
|  | 13620 | esac | 
|  | 13621 |  | 
|  | 13622 | USE_INTEL_JITEVENTS=1 | 
|  | 13623 |  | 
|  | 13624 | case "$llvm_cv_target_arch" in | 
|  | 13625 | x86)    llvm_intel_jitevents_archdir="lib32";; | 
|  | 13626 | x86_64) llvm_intel_jitevents_archdir="lib64";; | 
|  | 13627 | *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API" | 
|  | 13628 | exit -1;; | 
|  | 13629 | esac | 
|  | 13630 | INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include" | 
|  | 13631 | INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir" | 
|  | 13632 | case "$withval" in | 
|  | 13633 | /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include | 
|  | 13634 | INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;; | 
|  | 13635 | *) ;; | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13636 | esac | 
|  | 13637 |  | 
|  | 13638 |  | 
|  | 13639 |  | 
|  | 13640 |  | 
|  | 13641 | LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}" | 
|  | 13642 | CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR" | 
|  | 13643 |  | 
|  | 13644 | { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5 | 
|  | 13645 | echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; } | 
|  | 13646 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then | 
|  | 13647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13648 | else | 
|  | 13649 | ac_func_search_save_LIBS=$LIBS | 
|  | 13650 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13651 | /* confdefs.h.  */ | 
|  | 13652 | _ACEOF | 
|  | 13653 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13654 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13655 | /* end confdefs.h.  */ | 
|  | 13656 |  | 
|  | 13657 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13658 | Use char because int might match the return type of a GCC | 
|  | 13659 | builtin and then its argument prototype would still apply.  */ | 
|  | 13660 | #ifdef __cplusplus | 
|  | 13661 | extern "C" | 
|  | 13662 | #endif | 
|  | 13663 | char iJIT_IsProfilingActive (); | 
|  | 13664 | int | 
|  | 13665 | main () | 
|  | 13666 | { | 
|  | 13667 | return iJIT_IsProfilingActive (); | 
|  | 13668 | ; | 
|  | 13669 | return 0; | 
|  | 13670 | } | 
|  | 13671 | _ACEOF | 
|  | 13672 | for ac_lib in '' jitprofiling; do | 
|  | 13673 | if test -z "$ac_lib"; then | 
|  | 13674 | ac_res="none required" | 
|  | 13675 | else | 
|  | 13676 | ac_res=-l$ac_lib | 
|  | 13677 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13678 | fi | 
|  | 13679 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13680 | if { (ac_try="$ac_link" | 
|  | 13681 | case "(($ac_try" in | 
|  | 13682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13683 | *) ac_try_echo=$ac_try;; | 
|  | 13684 | esac | 
|  | 13685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13686 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13687 | ac_status=$? | 
|  | 13688 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13689 | rm -f conftest.er1 | 
|  | 13690 | cat conftest.err >&5 | 
|  | 13691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13692 | (exit $ac_status); } && | 
|  | 13693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13694 | { (case "(($ac_try" in | 
|  | 13695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13696 | *) ac_try_echo=$ac_try;; | 
|  | 13697 | esac | 
|  | 13698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13699 | (eval "$ac_try") 2>&5 | 
|  | 13700 | ac_status=$? | 
|  | 13701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13702 | (exit $ac_status); }; } && | 
|  | 13703 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13704 | { (case "(($ac_try" in | 
|  | 13705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13706 | *) ac_try_echo=$ac_try;; | 
|  | 13707 | esac | 
|  | 13708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13709 | (eval "$ac_try") 2>&5 | 
|  | 13710 | ac_status=$? | 
|  | 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13712 | (exit $ac_status); }; }; then | 
|  | 13713 | ac_cv_search_iJIT_IsProfilingActive=$ac_res | 
|  | 13714 | else | 
|  | 13715 | echo "$as_me: failed program was:" >&5 | 
|  | 13716 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13717 |  | 
|  | 13718 |  | 
|  | 13719 | fi | 
|  | 13720 |  | 
|  | 13721 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13722 | conftest$ac_exeext | 
|  | 13723 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then | 
|  | 13724 | break | 
|  | 13725 | fi | 
|  | 13726 | done | 
|  | 13727 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then | 
|  | 13728 | : | 
|  | 13729 | else | 
|  | 13730 | ac_cv_search_iJIT_IsProfilingActive=no | 
|  | 13731 | fi | 
|  | 13732 | rm conftest.$ac_ext | 
|  | 13733 | LIBS=$ac_func_search_save_LIBS | 
|  | 13734 | fi | 
|  | 13735 | { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5 | 
|  | 13736 | echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; } | 
|  | 13737 | ac_res=$ac_cv_search_iJIT_IsProfilingActive | 
|  | 13738 | if test "$ac_res" != no; then | 
|  | 13739 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13740 |  | 
|  | 13741 | else | 
|  | 13742 |  | 
|  | 13743 | echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents" | 
|  | 13744 | exit -1 | 
|  | 13745 |  | 
|  | 13746 | fi | 
|  | 13747 |  | 
|  | 13748 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then | 
|  | 13749 | { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 | 
|  | 13750 | echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } | 
|  | 13751 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then | 
|  | 13752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13753 | fi | 
|  | 13754 | { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 | 
|  | 13755 | echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } | 
|  | 13756 | else | 
|  | 13757 | # Is the header compilable? | 
|  | 13758 | { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5 | 
|  | 13759 | echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; } | 
|  | 13760 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13761 | /* confdefs.h.  */ | 
|  | 13762 | _ACEOF | 
|  | 13763 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13764 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13765 | /* end confdefs.h.  */ | 
|  | 13766 | $ac_includes_default | 
|  | 13767 | #include <jitprofiling.h> | 
|  | 13768 | _ACEOF | 
|  | 13769 | rm -f conftest.$ac_objext | 
|  | 13770 | if { (ac_try="$ac_compile" | 
|  | 13771 | case "(($ac_try" in | 
|  | 13772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13773 | *) ac_try_echo=$ac_try;; | 
|  | 13774 | esac | 
|  | 13775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13776 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13777 | ac_status=$? | 
|  | 13778 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13779 | rm -f conftest.er1 | 
|  | 13780 | cat conftest.err >&5 | 
|  | 13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13782 | (exit $ac_status); } && | 
|  | 13783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13784 | { (case "(($ac_try" in | 
|  | 13785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13786 | *) ac_try_echo=$ac_try;; | 
|  | 13787 | esac | 
|  | 13788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13789 | (eval "$ac_try") 2>&5 | 
|  | 13790 | ac_status=$? | 
|  | 13791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13792 | (exit $ac_status); }; } && | 
|  | 13793 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13794 | { (case "(($ac_try" in | 
|  | 13795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13796 | *) ac_try_echo=$ac_try;; | 
|  | 13797 | esac | 
|  | 13798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13799 | (eval "$ac_try") 2>&5 | 
|  | 13800 | ac_status=$? | 
|  | 13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13802 | (exit $ac_status); }; }; then | 
|  | 13803 | ac_header_compiler=yes | 
|  | 13804 | else | 
|  | 13805 | echo "$as_me: failed program was:" >&5 | 
|  | 13806 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13807 |  | 
|  | 13808 | ac_header_compiler=no | 
|  | 13809 | fi | 
|  | 13810 |  | 
|  | 13811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13812 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 13813 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 13814 |  | 
|  | 13815 | # Is the header present? | 
|  | 13816 | { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5 | 
|  | 13817 | echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; } | 
|  | 13818 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13819 | /* confdefs.h.  */ | 
|  | 13820 | _ACEOF | 
|  | 13821 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13822 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13823 | /* end confdefs.h.  */ | 
|  | 13824 | #include <jitprofiling.h> | 
|  | 13825 | _ACEOF | 
|  | 13826 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 13827 | case "(($ac_try" in | 
|  | 13828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13829 | *) ac_try_echo=$ac_try;; | 
|  | 13830 | esac | 
|  | 13831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13832 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 13833 | ac_status=$? | 
|  | 13834 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13835 | rm -f conftest.er1 | 
|  | 13836 | cat conftest.err >&5 | 
|  | 13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13838 | (exit $ac_status); } >/dev/null; then | 
|  | 13839 | if test -s conftest.err; then | 
|  | 13840 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 13841 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 13842 | else | 
|  | 13843 | ac_cpp_err= | 
|  | 13844 | fi | 
|  | 13845 | else | 
|  | 13846 | ac_cpp_err=yes | 
|  | 13847 | fi | 
|  | 13848 | if test -z "$ac_cpp_err"; then | 
|  | 13849 | ac_header_preproc=yes | 
|  | 13850 | else | 
|  | 13851 | echo "$as_me: failed program was:" >&5 | 
|  | 13852 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13853 |  | 
|  | 13854 | ac_header_preproc=no | 
|  | 13855 | fi | 
|  | 13856 |  | 
|  | 13857 | rm -f conftest.err conftest.$ac_ext | 
|  | 13858 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 13859 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 13860 |  | 
|  | 13861 | # So?  What about this header? | 
|  | 13862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 13863 | yes:no: ) | 
|  | 13864 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 13865 | echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 13866 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5 | 
|  | 13867 | echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;} | 
|  | 13868 | ac_header_preproc=yes | 
|  | 13869 | ;; | 
|  | 13870 | no:yes:* ) | 
|  | 13871 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5 | 
|  | 13872 | echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;} | 
|  | 13873 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5 | 
|  | 13874 | echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;} | 
|  | 13875 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5 | 
|  | 13876 | echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;} | 
|  | 13877 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 13878 | echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 13879 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5 | 
|  | 13880 | echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;} | 
|  | 13881 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5 | 
|  | 13882 | echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;} | 
|  | 13883 | ( cat <<\_ASBOX | 
|  | 13884 | ## ------------------------------------ ## | 
|  | 13885 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 13886 | ## ------------------------------------ ## | 
|  | 13887 | _ASBOX | 
|  | 13888 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 13889 | ;; | 
|  | 13890 | esac | 
|  | 13891 | { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 | 
|  | 13892 | echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } | 
|  | 13893 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then | 
|  | 13894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13895 | else | 
|  | 13896 | ac_cv_header_jitprofiling_h=$ac_header_preproc | 
|  | 13897 | fi | 
|  | 13898 | { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 | 
|  | 13899 | echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } | 
|  | 13900 |  | 
|  | 13901 | fi | 
|  | 13902 | if test $ac_cv_header_jitprofiling_h = yes; then | 
|  | 13903 | : | 
|  | 13904 | else | 
|  | 13905 |  | 
|  | 13906 | echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents" | 
|  | 13907 | exit -1 | 
|  | 13908 |  | 
|  | 13909 | fi | 
|  | 13910 |  | 
|  | 13911 |  | 
|  | 13912 |  | 
|  | 13913 |  | 
|  | 13914 | else | 
|  | 13915 |  | 
|  | 13916 | USE_INTEL_JITEVENTS=0 | 
|  | 13917 |  | 
|  | 13918 |  | 
|  | 13919 | fi | 
|  | 13920 |  | 
|  | 13921 |  | 
|  | 13922 | cat >>confdefs.h <<_ACEOF | 
|  | 13923 | #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13924 | _ACEOF | 
|  | 13925 |  | 
|  | 13926 |  | 
|  | 13927 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13928 |  | 
|  | 13929 |  | 
|  | 13930 |  | 
|  | 13931 |  | 
|  | 13932 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13933 | ac_header_dirent=no | 
|  | 13934 | 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] | 13935 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 13936 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 13937 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
|  | 13938 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 13939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13940 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13941 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13942 | /* confdefs.h.  */ | 
|  | 13943 | _ACEOF | 
|  | 13944 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13945 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13946 | /* end confdefs.h.  */ | 
|  | 13947 | #include <sys/types.h> | 
|  | 13948 | #include <$ac_hdr> | 
|  | 13949 |  | 
|  | 13950 | int | 
|  | 13951 | main () | 
|  | 13952 | { | 
|  | 13953 | if ((DIR *) 0) | 
|  | 13954 | return 0; | 
|  | 13955 | ; | 
|  | 13956 | return 0; | 
|  | 13957 | } | 
|  | 13958 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13959 | rm -f conftest.$ac_objext | 
|  | 13960 | if { (ac_try="$ac_compile" | 
|  | 13961 | case "(($ac_try" in | 
|  | 13962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13963 | *) ac_try_echo=$ac_try;; | 
|  | 13964 | esac | 
|  | 13965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13966 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13967 | ac_status=$? | 
|  | 13968 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13969 | rm -f conftest.er1 | 
|  | 13970 | cat conftest.err >&5 | 
|  | 13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13972 | (exit $ac_status); } && | 
|  | 13973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13974 | { (case "(($ac_try" in | 
|  | 13975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13976 | *) ac_try_echo=$ac_try;; | 
|  | 13977 | esac | 
|  | 13978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13979 | (eval "$ac_try") 2>&5 | 
|  | 13980 | ac_status=$? | 
|  | 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13982 | (exit $ac_status); }; } && | 
|  | 13983 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13984 | { (case "(($ac_try" in | 
|  | 13985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13986 | *) ac_try_echo=$ac_try;; | 
|  | 13987 | esac | 
|  | 13988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13989 | (eval "$ac_try") 2>&5 | 
|  | 13990 | ac_status=$? | 
|  | 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13992 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13993 | eval "$as_ac_Header=yes" | 
|  | 13994 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13995 | echo "$as_me: failed program was:" >&5 | 
|  | 13996 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13997 |  | 
|  | 13998 | eval "$as_ac_Header=no" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13999 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14000 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14002 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14003 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14004 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14005 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14007 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14008 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14009 | _ACEOF | 
|  | 14010 |  | 
|  | 14011 | ac_header_dirent=$ac_hdr; break | 
|  | 14012 | fi | 
|  | 14013 |  | 
|  | 14014 | done | 
|  | 14015 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 14016 | if test $ac_header_dirent = dirent.h; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14017 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 14018 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 14019 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14021 | else | 
|  | 14022 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14023 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14024 | /* confdefs.h.  */ | 
|  | 14025 | _ACEOF | 
|  | 14026 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14027 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14028 | /* end confdefs.h.  */ | 
|  | 14029 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14030 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14031 | Use char because int might match the return type of a GCC | 
|  | 14032 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14033 | #ifdef __cplusplus | 
|  | 14034 | extern "C" | 
|  | 14035 | #endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14036 | char opendir (); | 
|  | 14037 | int | 
|  | 14038 | main () | 
|  | 14039 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14040 | return opendir (); | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14041 | ; | 
|  | 14042 | return 0; | 
|  | 14043 | } | 
|  | 14044 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14045 | for ac_lib in '' dir; do | 
|  | 14046 | if test -z "$ac_lib"; then | 
|  | 14047 | ac_res="none required" | 
|  | 14048 | else | 
|  | 14049 | ac_res=-l$ac_lib | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14050 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14051 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14052 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14053 | if { (ac_try="$ac_link" | 
|  | 14054 | case "(($ac_try" in | 
|  | 14055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14056 | *) ac_try_echo=$ac_try;; | 
|  | 14057 | esac | 
|  | 14058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14059 | (eval "$ac_link") 2>conftest.er1 | 
|  | 14060 | ac_status=$? | 
|  | 14061 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14062 | rm -f conftest.er1 | 
|  | 14063 | cat conftest.err >&5 | 
|  | 14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14065 | (exit $ac_status); } && | 
|  | 14066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14067 | { (case "(($ac_try" in | 
|  | 14068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14069 | *) ac_try_echo=$ac_try;; | 
|  | 14070 | esac | 
|  | 14071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14072 | (eval "$ac_try") 2>&5 | 
|  | 14073 | ac_status=$? | 
|  | 14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14075 | (exit $ac_status); }; } && | 
|  | 14076 | { ac_try='test -s conftest$ac_exeext' | 
|  | 14077 | { (case "(($ac_try" in | 
|  | 14078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14079 | *) ac_try_echo=$ac_try;; | 
|  | 14080 | esac | 
|  | 14081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14082 | (eval "$ac_try") 2>&5 | 
|  | 14083 | ac_status=$? | 
|  | 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14085 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14086 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14087 | else | 
|  | 14088 | echo "$as_me: failed program was:" >&5 | 
|  | 14089 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14090 |  | 
|  | 14091 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14092 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14093 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14094 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14095 | conftest$ac_exeext | 
|  | 14096 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14097 | break | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14098 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14099 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14100 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14101 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14102 | else | 
|  | 14103 | ac_cv_search_opendir=no | 
|  | 14104 | fi | 
|  | 14105 | rm conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14106 | LIBS=$ac_func_search_save_LIBS | 
|  | 14107 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14108 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 14109 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14110 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14111 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14112 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14113 |  | 
|  | 14114 | fi | 
|  | 14115 |  | 
|  | 14116 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14117 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 14118 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 14119 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14121 | else | 
|  | 14122 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14123 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14124 | /* confdefs.h.  */ | 
|  | 14125 | _ACEOF | 
|  | 14126 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14127 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14128 | /* end confdefs.h.  */ | 
|  | 14129 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14130 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14131 | Use char because int might match the return type of a GCC | 
|  | 14132 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14133 | #ifdef __cplusplus | 
|  | 14134 | extern "C" | 
|  | 14135 | #endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14136 | char opendir (); | 
|  | 14137 | int | 
|  | 14138 | main () | 
|  | 14139 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14140 | return opendir (); | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14141 | ; | 
|  | 14142 | return 0; | 
|  | 14143 | } | 
|  | 14144 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14145 | for ac_lib in '' x; do | 
|  | 14146 | if test -z "$ac_lib"; then | 
|  | 14147 | ac_res="none required" | 
|  | 14148 | else | 
|  | 14149 | ac_res=-l$ac_lib | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14150 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14151 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14152 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14153 | if { (ac_try="$ac_link" | 
|  | 14154 | case "(($ac_try" in | 
|  | 14155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14156 | *) ac_try_echo=$ac_try;; | 
|  | 14157 | esac | 
|  | 14158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14159 | (eval "$ac_link") 2>conftest.er1 | 
|  | 14160 | ac_status=$? | 
|  | 14161 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14162 | rm -f conftest.er1 | 
|  | 14163 | cat conftest.err >&5 | 
|  | 14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14165 | (exit $ac_status); } && | 
|  | 14166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14167 | { (case "(($ac_try" in | 
|  | 14168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14169 | *) ac_try_echo=$ac_try;; | 
|  | 14170 | esac | 
|  | 14171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14172 | (eval "$ac_try") 2>&5 | 
|  | 14173 | ac_status=$? | 
|  | 14174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14175 | (exit $ac_status); }; } && | 
|  | 14176 | { ac_try='test -s conftest$ac_exeext' | 
|  | 14177 | { (case "(($ac_try" in | 
|  | 14178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14179 | *) ac_try_echo=$ac_try;; | 
|  | 14180 | esac | 
|  | 14181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14182 | (eval "$ac_try") 2>&5 | 
|  | 14183 | ac_status=$? | 
|  | 14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14185 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14186 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14187 | else | 
|  | 14188 | echo "$as_me: failed program was:" >&5 | 
|  | 14189 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14190 |  | 
|  | 14191 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14192 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14193 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14194 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14195 | conftest$ac_exeext | 
|  | 14196 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14197 | break | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14198 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14199 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14200 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14201 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14202 | else | 
|  | 14203 | ac_cv_search_opendir=no | 
|  | 14204 | fi | 
|  | 14205 | rm conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14206 | LIBS=$ac_func_search_save_LIBS | 
|  | 14207 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14208 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 14209 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14210 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14211 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14212 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14213 |  | 
|  | 14214 | fi | 
|  | 14215 |  | 
|  | 14216 | fi | 
|  | 14217 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14218 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
|  | 14219 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } | 
|  | 14220 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
|  | 14221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14222 | else | 
|  | 14223 | ac_ext=c | 
|  | 14224 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14228 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14229 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14230 | /* confdefs.h.  */ | 
|  | 14231 | _ACEOF | 
|  | 14232 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14233 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14234 | /* end confdefs.h.  */ | 
|  | 14235 | #include <sys/mman.h> | 
|  | 14236 | #include <unistd.h> | 
|  | 14237 | #include <fcntl.h> | 
|  | 14238 | int | 
|  | 14239 | main () | 
|  | 14240 | { | 
|  | 14241 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
|  | 14242 | ; | 
|  | 14243 | return 0; | 
|  | 14244 | } | 
|  | 14245 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14246 | rm -f conftest.$ac_objext | 
|  | 14247 | if { (ac_try="$ac_compile" | 
|  | 14248 | case "(($ac_try" in | 
|  | 14249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14250 | *) ac_try_echo=$ac_try;; | 
|  | 14251 | esac | 
|  | 14252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14253 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14254 | ac_status=$? | 
|  | 14255 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14256 | rm -f conftest.er1 | 
|  | 14257 | cat conftest.err >&5 | 
|  | 14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14259 | (exit $ac_status); } && | 
|  | 14260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14261 | { (case "(($ac_try" in | 
|  | 14262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14263 | *) ac_try_echo=$ac_try;; | 
|  | 14264 | esac | 
|  | 14265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14266 | (eval "$ac_try") 2>&5 | 
|  | 14267 | ac_status=$? | 
|  | 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14269 | (exit $ac_status); }; } && | 
|  | 14270 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14271 | { (case "(($ac_try" in | 
|  | 14272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14273 | *) ac_try_echo=$ac_try;; | 
|  | 14274 | esac | 
|  | 14275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14276 | (eval "$ac_try") 2>&5 | 
|  | 14277 | ac_status=$? | 
|  | 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14279 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14280 | ac_cv_header_mmap_anon=yes | 
|  | 14281 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14282 | echo "$as_me: failed program was:" >&5 | 
|  | 14283 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14284 |  | 
|  | 14285 | ac_cv_header_mmap_anon=no | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14286 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14287 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14289 | ac_ext=c | 
|  | 14290 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14294 |  | 
|  | 14295 |  | 
|  | 14296 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14297 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
|  | 14298 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14299 | if test "$ac_cv_header_mmap_anon" = yes; then | 
|  | 14300 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14301 | cat >>confdefs.h <<\_ACEOF | 
|  | 14302 | #define HAVE_MMAP_ANONYMOUS 1 | 
|  | 14303 | _ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14304 |  | 
|  | 14305 | fi | 
|  | 14306 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14307 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | 
|  | 14308 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } | 
|  | 14309 | if test "${ac_cv_header_stat_broken+set}" = set; then | 
|  | 14310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14311 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14312 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14313 | /* confdefs.h.  */ | 
|  | 14314 | _ACEOF | 
|  | 14315 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14316 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14317 | /* end confdefs.h.  */ | 
|  | 14318 | #include <sys/types.h> | 
|  | 14319 | #include <sys/stat.h> | 
|  | 14320 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14321 | #if defined S_ISBLK && defined S_IFDIR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14322 | # if S_ISBLK (S_IFDIR) | 
|  | 14323 | You lose. | 
|  | 14324 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14325 | #endif | 
|  | 14326 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14327 | #if defined S_ISBLK && defined S_IFCHR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14328 | # if S_ISBLK (S_IFCHR) | 
|  | 14329 | You lose. | 
|  | 14330 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14331 | #endif | 
|  | 14332 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14333 | #if defined S_ISLNK && defined S_IFREG | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14334 | # if S_ISLNK (S_IFREG) | 
|  | 14335 | You lose. | 
|  | 14336 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14337 | #endif | 
|  | 14338 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14339 | #if defined S_ISSOCK && defined S_IFREG | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14340 | # if S_ISSOCK (S_IFREG) | 
|  | 14341 | You lose. | 
|  | 14342 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14343 | #endif | 
|  | 14344 |  | 
|  | 14345 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 14347 | $EGREP "You lose" >/dev/null 2>&1; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14348 | ac_cv_header_stat_broken=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14349 | else | 
|  | 14350 | ac_cv_header_stat_broken=no | 
| Mikhail Glushenkov | 4308aa5 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14351 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14352 | rm -f conftest* | 
|  | 14353 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14354 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14355 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 | 
|  | 14356 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14357 | if test $ac_cv_header_stat_broken = yes; then | 
|  | 14358 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14359 | cat >>confdefs.h <<\_ACEOF | 
|  | 14360 | #define STAT_MACROS_BROKEN 1 | 
|  | 14361 | _ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14362 |  | 
|  | 14363 | fi | 
|  | 14364 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14365 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|  | 14366 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | 
|  | 14367 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
|  | 14368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14369 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14370 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14371 | /* confdefs.h.  */ | 
|  | 14372 | _ACEOF | 
|  | 14373 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14374 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14375 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14376 | #include <sys/types.h> | 
|  | 14377 | #include <sys/wait.h> | 
|  | 14378 | #ifndef WEXITSTATUS | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14379 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14380 | #endif | 
|  | 14381 | #ifndef WIFEXITED | 
|  | 14382 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|  | 14383 | #endif | 
|  | 14384 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14385 | int | 
|  | 14386 | main () | 
|  | 14387 | { | 
|  | 14388 | int s; | 
|  | 14389 | wait (&s); | 
|  | 14390 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|  | 14391 | ; | 
|  | 14392 | return 0; | 
|  | 14393 | } | 
|  | 14394 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14395 | rm -f conftest.$ac_objext | 
|  | 14396 | if { (ac_try="$ac_compile" | 
|  | 14397 | case "(($ac_try" in | 
|  | 14398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14399 | *) ac_try_echo=$ac_try;; | 
|  | 14400 | esac | 
|  | 14401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14402 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14403 | ac_status=$? | 
|  | 14404 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14405 | rm -f conftest.er1 | 
|  | 14406 | cat conftest.err >&5 | 
|  | 14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14408 | (exit $ac_status); } && | 
|  | 14409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14410 | { (case "(($ac_try" in | 
|  | 14411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14412 | *) ac_try_echo=$ac_try;; | 
|  | 14413 | esac | 
|  | 14414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14415 | (eval "$ac_try") 2>&5 | 
|  | 14416 | ac_status=$? | 
|  | 14417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14418 | (exit $ac_status); }; } && | 
|  | 14419 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14420 | { (case "(($ac_try" in | 
|  | 14421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14422 | *) ac_try_echo=$ac_try;; | 
|  | 14423 | esac | 
|  | 14424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14425 | (eval "$ac_try") 2>&5 | 
|  | 14426 | ac_status=$? | 
|  | 14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14428 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14429 | ac_cv_header_sys_wait_h=yes | 
|  | 14430 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14431 | echo "$as_me: failed program was:" >&5 | 
|  | 14432 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14433 |  | 
|  | 14434 | ac_cv_header_sys_wait_h=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14435 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14436 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14438 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14439 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
|  | 14440 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14441 | if test $ac_cv_header_sys_wait_h = yes; then | 
|  | 14442 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14443 | cat >>confdefs.h <<\_ACEOF | 
|  | 14444 | #define HAVE_SYS_WAIT_H 1 | 
|  | 14445 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14446 |  | 
|  | 14447 | fi | 
|  | 14448 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14449 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 14450 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | 
|  | 14451 | if test "${ac_cv_header_time+set}" = set; then | 
|  | 14452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14453 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14454 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14455 | /* confdefs.h.  */ | 
|  | 14456 | _ACEOF | 
|  | 14457 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14458 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14459 | /* end confdefs.h.  */ | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14460 | #include <sys/types.h> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14461 | #include <sys/time.h> | 
|  | 14462 | #include <time.h> | 
|  | 14463 |  | 
|  | 14464 | int | 
|  | 14465 | main () | 
|  | 14466 | { | 
|  | 14467 | if ((struct tm *) 0) | 
|  | 14468 | return 0; | 
|  | 14469 | ; | 
|  | 14470 | return 0; | 
|  | 14471 | } | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14472 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14473 | rm -f conftest.$ac_objext | 
|  | 14474 | if { (ac_try="$ac_compile" | 
|  | 14475 | case "(($ac_try" in | 
|  | 14476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14477 | *) ac_try_echo=$ac_try;; | 
|  | 14478 | esac | 
|  | 14479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14480 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14481 | ac_status=$? | 
|  | 14482 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14483 | rm -f conftest.er1 | 
|  | 14484 | cat conftest.err >&5 | 
|  | 14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14486 | (exit $ac_status); } && | 
|  | 14487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14488 | { (case "(($ac_try" in | 
|  | 14489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14490 | *) ac_try_echo=$ac_try;; | 
|  | 14491 | esac | 
|  | 14492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14493 | (eval "$ac_try") 2>&5 | 
|  | 14494 | ac_status=$? | 
|  | 14495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14496 | (exit $ac_status); }; } && | 
|  | 14497 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14498 | { (case "(($ac_try" in | 
|  | 14499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14500 | *) ac_try_echo=$ac_try;; | 
|  | 14501 | esac | 
|  | 14502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14503 | (eval "$ac_try") 2>&5 | 
|  | 14504 | ac_status=$? | 
|  | 14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14506 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14507 | ac_cv_header_time=yes | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14508 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14509 | echo "$as_me: failed program was:" >&5 | 
|  | 14510 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14511 |  | 
|  | 14512 | ac_cv_header_time=no | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14513 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14514 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14516 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14517 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
|  | 14518 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14519 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14520 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14521 | cat >>confdefs.h <<\_ACEOF | 
|  | 14522 | #define TIME_WITH_SYS_TIME 1 | 
|  | 14523 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14524 |  | 
|  | 14525 | fi | 
|  | 14526 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14527 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14528 |  | 
|  | 14529 |  | 
|  | 14530 |  | 
|  | 14531 |  | 
|  | 14532 |  | 
|  | 14533 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14534 | 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] | 14535 | do | 
|  | 14536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14538 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14540 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14542 | fi | 
|  | 14543 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14545 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14546 | else | 
|  | 14547 | # Is the header compilable? | 
|  | 14548 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14549 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14550 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14551 | /* confdefs.h.  */ | 
|  | 14552 | _ACEOF | 
|  | 14553 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14554 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14555 | /* end confdefs.h.  */ | 
|  | 14556 | $ac_includes_default | 
|  | 14557 | #include <$ac_header> | 
|  | 14558 | _ACEOF | 
|  | 14559 | rm -f conftest.$ac_objext | 
|  | 14560 | if { (ac_try="$ac_compile" | 
|  | 14561 | case "(($ac_try" in | 
|  | 14562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14563 | *) ac_try_echo=$ac_try;; | 
|  | 14564 | esac | 
|  | 14565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14566 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14567 | ac_status=$? | 
|  | 14568 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14569 | rm -f conftest.er1 | 
|  | 14570 | cat conftest.err >&5 | 
|  | 14571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14572 | (exit $ac_status); } && | 
|  | 14573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14574 | { (case "(($ac_try" in | 
|  | 14575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14576 | *) ac_try_echo=$ac_try;; | 
|  | 14577 | esac | 
|  | 14578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14579 | (eval "$ac_try") 2>&5 | 
|  | 14580 | ac_status=$? | 
|  | 14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14582 | (exit $ac_status); }; } && | 
|  | 14583 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14584 | { (case "(($ac_try" in | 
|  | 14585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14586 | *) ac_try_echo=$ac_try;; | 
|  | 14587 | esac | 
|  | 14588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14589 | (eval "$ac_try") 2>&5 | 
|  | 14590 | ac_status=$? | 
|  | 14591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14592 | (exit $ac_status); }; }; then | 
|  | 14593 | ac_header_compiler=yes | 
|  | 14594 | else | 
|  | 14595 | echo "$as_me: failed program was:" >&5 | 
|  | 14596 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14597 |  | 
|  | 14598 | ac_header_compiler=no | 
|  | 14599 | fi | 
|  | 14600 |  | 
|  | 14601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14602 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14603 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14604 |  | 
|  | 14605 | # Is the header present? | 
|  | 14606 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14607 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14608 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14609 | /* confdefs.h.  */ | 
|  | 14610 | _ACEOF | 
|  | 14611 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14612 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14613 | /* end confdefs.h.  */ | 
|  | 14614 | #include <$ac_header> | 
|  | 14615 | _ACEOF | 
|  | 14616 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14617 | case "(($ac_try" in | 
|  | 14618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14619 | *) ac_try_echo=$ac_try;; | 
|  | 14620 | esac | 
|  | 14621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14623 | ac_status=$? | 
|  | 14624 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14625 | rm -f conftest.er1 | 
|  | 14626 | cat conftest.err >&5 | 
|  | 14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14628 | (exit $ac_status); } >/dev/null; then | 
|  | 14629 | if test -s conftest.err; then | 
|  | 14630 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14631 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14632 | else | 
|  | 14633 | ac_cpp_err= | 
|  | 14634 | fi | 
|  | 14635 | else | 
|  | 14636 | ac_cpp_err=yes | 
|  | 14637 | fi | 
|  | 14638 | if test -z "$ac_cpp_err"; then | 
|  | 14639 | ac_header_preproc=yes | 
|  | 14640 | else | 
|  | 14641 | echo "$as_me: failed program was:" >&5 | 
|  | 14642 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14643 |  | 
|  | 14644 | ac_header_preproc=no | 
|  | 14645 | fi | 
|  | 14646 |  | 
|  | 14647 | rm -f conftest.err conftest.$ac_ext | 
|  | 14648 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14649 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14650 |  | 
|  | 14651 | # So?  What about this header? | 
|  | 14652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14653 | yes:no: ) | 
|  | 14654 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14655 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14657 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14658 | ac_header_preproc=yes | 
|  | 14659 | ;; | 
|  | 14660 | no:yes:* ) | 
|  | 14661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14663 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14664 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14665 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14666 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14667 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14668 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14671 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14672 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14673 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14674 | ## ------------------------------------ ## | 
|  | 14675 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 14676 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14677 | _ASBOX | 
|  | 14678 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14679 | ;; | 
|  | 14680 | esac | 
|  | 14681 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14685 | else | 
|  | 14686 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14687 | fi | 
|  | 14688 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14689 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14690 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14691 |  | 
|  | 14692 | fi | 
|  | 14693 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14694 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14695 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14696 | _ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14697 |  | 
|  | 14698 | fi | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14699 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14700 | done | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14701 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14702 |  | 
|  | 14703 |  | 
|  | 14704 |  | 
|  | 14705 |  | 
|  | 14706 |  | 
|  | 14707 |  | 
| Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14708 | 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] | 14709 | do | 
|  | 14710 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14711 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14716 | fi | 
|  | 14717 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14719 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14720 | else | 
|  | 14721 | # Is the header compilable? | 
|  | 14722 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14724 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14725 | /* confdefs.h.  */ | 
|  | 14726 | _ACEOF | 
|  | 14727 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14728 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14729 | /* end confdefs.h.  */ | 
|  | 14730 | $ac_includes_default | 
|  | 14731 | #include <$ac_header> | 
|  | 14732 | _ACEOF | 
|  | 14733 | rm -f conftest.$ac_objext | 
|  | 14734 | if { (ac_try="$ac_compile" | 
|  | 14735 | case "(($ac_try" in | 
|  | 14736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14737 | *) ac_try_echo=$ac_try;; | 
|  | 14738 | esac | 
|  | 14739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14740 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14741 | ac_status=$? | 
|  | 14742 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14743 | rm -f conftest.er1 | 
|  | 14744 | cat conftest.err >&5 | 
|  | 14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14746 | (exit $ac_status); } && | 
|  | 14747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14748 | { (case "(($ac_try" in | 
|  | 14749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14750 | *) ac_try_echo=$ac_try;; | 
|  | 14751 | esac | 
|  | 14752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14753 | (eval "$ac_try") 2>&5 | 
|  | 14754 | ac_status=$? | 
|  | 14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14756 | (exit $ac_status); }; } && | 
|  | 14757 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14758 | { (case "(($ac_try" in | 
|  | 14759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14760 | *) ac_try_echo=$ac_try;; | 
|  | 14761 | esac | 
|  | 14762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14763 | (eval "$ac_try") 2>&5 | 
|  | 14764 | ac_status=$? | 
|  | 14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14766 | (exit $ac_status); }; }; then | 
|  | 14767 | ac_header_compiler=yes | 
|  | 14768 | else | 
|  | 14769 | echo "$as_me: failed program was:" >&5 | 
|  | 14770 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14771 |  | 
|  | 14772 | ac_header_compiler=no | 
|  | 14773 | fi | 
|  | 14774 |  | 
|  | 14775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14776 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14777 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14778 |  | 
|  | 14779 | # Is the header present? | 
|  | 14780 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14781 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14782 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14783 | /* confdefs.h.  */ | 
|  | 14784 | _ACEOF | 
|  | 14785 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14786 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14787 | /* end confdefs.h.  */ | 
|  | 14788 | #include <$ac_header> | 
|  | 14789 | _ACEOF | 
|  | 14790 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14791 | case "(($ac_try" in | 
|  | 14792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14793 | *) ac_try_echo=$ac_try;; | 
|  | 14794 | esac | 
|  | 14795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14796 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14797 | ac_status=$? | 
|  | 14798 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14799 | rm -f conftest.er1 | 
|  | 14800 | cat conftest.err >&5 | 
|  | 14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14802 | (exit $ac_status); } >/dev/null; then | 
|  | 14803 | if test -s conftest.err; then | 
|  | 14804 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14806 | else | 
|  | 14807 | ac_cpp_err= | 
|  | 14808 | fi | 
|  | 14809 | else | 
|  | 14810 | ac_cpp_err=yes | 
|  | 14811 | fi | 
|  | 14812 | if test -z "$ac_cpp_err"; then | 
|  | 14813 | ac_header_preproc=yes | 
|  | 14814 | else | 
|  | 14815 | echo "$as_me: failed program was:" >&5 | 
|  | 14816 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14817 |  | 
|  | 14818 | ac_header_preproc=no | 
|  | 14819 | fi | 
|  | 14820 |  | 
|  | 14821 | rm -f conftest.err conftest.$ac_ext | 
|  | 14822 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14823 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14824 |  | 
|  | 14825 | # So?  What about this header? | 
|  | 14826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14827 | yes:no: ) | 
|  | 14828 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14829 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14831 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14832 | ac_header_preproc=yes | 
|  | 14833 | ;; | 
|  | 14834 | no:yes:* ) | 
|  | 14835 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14836 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14837 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14838 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14839 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14840 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14841 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14842 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14843 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14844 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14845 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14846 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14847 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14848 | ## ------------------------------------ ## | 
|  | 14849 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 14850 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14851 | _ASBOX | 
|  | 14852 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14853 | ;; | 
|  | 14854 | esac | 
|  | 14855 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14857 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14859 | else | 
|  | 14860 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14861 | fi | 
|  | 14862 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14864 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14865 |  | 
|  | 14866 | fi | 
|  | 14867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14868 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14870 | _ACEOF | 
|  | 14871 |  | 
|  | 14872 | fi | 
|  | 14873 |  | 
|  | 14874 | done | 
|  | 14875 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14876 |  | 
|  | 14877 |  | 
| Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14878 | for ac_header in utime.h windows.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14879 | do | 
|  | 14880 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14882 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14883 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14884 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14886 | fi | 
|  | 14887 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14888 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14889 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14890 | else | 
|  | 14891 | # Is the header compilable? | 
|  | 14892 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14893 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14894 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14895 | /* confdefs.h.  */ | 
|  | 14896 | _ACEOF | 
|  | 14897 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14898 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14899 | /* end confdefs.h.  */ | 
|  | 14900 | $ac_includes_default | 
|  | 14901 | #include <$ac_header> | 
|  | 14902 | _ACEOF | 
|  | 14903 | rm -f conftest.$ac_objext | 
|  | 14904 | if { (ac_try="$ac_compile" | 
|  | 14905 | case "(($ac_try" in | 
|  | 14906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14907 | *) ac_try_echo=$ac_try;; | 
|  | 14908 | esac | 
|  | 14909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14910 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14911 | ac_status=$? | 
|  | 14912 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14913 | rm -f conftest.er1 | 
|  | 14914 | cat conftest.err >&5 | 
|  | 14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14916 | (exit $ac_status); } && | 
|  | 14917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14918 | { (case "(($ac_try" in | 
|  | 14919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14920 | *) ac_try_echo=$ac_try;; | 
|  | 14921 | esac | 
|  | 14922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14923 | (eval "$ac_try") 2>&5 | 
|  | 14924 | ac_status=$? | 
|  | 14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14926 | (exit $ac_status); }; } && | 
|  | 14927 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14928 | { (case "(($ac_try" in | 
|  | 14929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14930 | *) ac_try_echo=$ac_try;; | 
|  | 14931 | esac | 
|  | 14932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14933 | (eval "$ac_try") 2>&5 | 
|  | 14934 | ac_status=$? | 
|  | 14935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14936 | (exit $ac_status); }; }; then | 
|  | 14937 | ac_header_compiler=yes | 
|  | 14938 | else | 
|  | 14939 | echo "$as_me: failed program was:" >&5 | 
|  | 14940 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14941 |  | 
|  | 14942 | ac_header_compiler=no | 
|  | 14943 | fi | 
|  | 14944 |  | 
|  | 14945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14946 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14947 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14948 |  | 
|  | 14949 | # Is the header present? | 
|  | 14950 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14951 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14952 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14953 | /* confdefs.h.  */ | 
|  | 14954 | _ACEOF | 
|  | 14955 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14956 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14957 | /* end confdefs.h.  */ | 
|  | 14958 | #include <$ac_header> | 
|  | 14959 | _ACEOF | 
|  | 14960 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14961 | case "(($ac_try" in | 
|  | 14962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14963 | *) ac_try_echo=$ac_try;; | 
|  | 14964 | esac | 
|  | 14965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14967 | ac_status=$? | 
|  | 14968 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14969 | rm -f conftest.er1 | 
|  | 14970 | cat conftest.err >&5 | 
|  | 14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14972 | (exit $ac_status); } >/dev/null; then | 
|  | 14973 | if test -s conftest.err; then | 
|  | 14974 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14975 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14976 | else | 
|  | 14977 | ac_cpp_err= | 
|  | 14978 | fi | 
|  | 14979 | else | 
|  | 14980 | ac_cpp_err=yes | 
|  | 14981 | fi | 
|  | 14982 | if test -z "$ac_cpp_err"; then | 
|  | 14983 | ac_header_preproc=yes | 
|  | 14984 | else | 
|  | 14985 | echo "$as_me: failed program was:" >&5 | 
|  | 14986 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14987 |  | 
|  | 14988 | ac_header_preproc=no | 
|  | 14989 | fi | 
|  | 14990 |  | 
|  | 14991 | rm -f conftest.err conftest.$ac_ext | 
|  | 14992 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14993 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14994 |  | 
|  | 14995 | # So?  What about this header? | 
|  | 14996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14997 | yes:no: ) | 
|  | 14998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15002 | ac_header_preproc=yes | 
|  | 15003 | ;; | 
|  | 15004 | no:yes:* ) | 
|  | 15005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15007 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15008 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15011 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15012 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15017 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15018 | ## ------------------------------------ ## | 
|  | 15019 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15020 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15021 | _ASBOX | 
|  | 15022 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15023 | ;; | 
|  | 15024 | esac | 
|  | 15025 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15027 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15029 | else | 
|  | 15030 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15031 | fi | 
|  | 15032 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15033 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15034 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15035 |  | 
|  | 15036 | fi | 
|  | 15037 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15038 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15039 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15040 | _ACEOF | 
|  | 15041 |  | 
|  | 15042 | fi | 
|  | 15043 |  | 
|  | 15044 | done | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15045 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15046 |  | 
|  | 15047 |  | 
|  | 15048 |  | 
|  | 15049 |  | 
| Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 15050 |  | 
|  | 15051 | 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] | 15052 | do | 
|  | 15053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15055 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15059 | fi | 
|  | 15060 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15062 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15063 | else | 
|  | 15064 | # Is the header compilable? | 
|  | 15065 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15066 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15067 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15068 | /* confdefs.h.  */ | 
|  | 15069 | _ACEOF | 
|  | 15070 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15071 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15072 | /* end confdefs.h.  */ | 
|  | 15073 | $ac_includes_default | 
|  | 15074 | #include <$ac_header> | 
|  | 15075 | _ACEOF | 
|  | 15076 | rm -f conftest.$ac_objext | 
|  | 15077 | if { (ac_try="$ac_compile" | 
|  | 15078 | case "(($ac_try" in | 
|  | 15079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15080 | *) ac_try_echo=$ac_try;; | 
|  | 15081 | esac | 
|  | 15082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15083 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15084 | ac_status=$? | 
|  | 15085 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15086 | rm -f conftest.er1 | 
|  | 15087 | cat conftest.err >&5 | 
|  | 15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15089 | (exit $ac_status); } && | 
|  | 15090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15091 | { (case "(($ac_try" in | 
|  | 15092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15093 | *) ac_try_echo=$ac_try;; | 
|  | 15094 | esac | 
|  | 15095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15096 | (eval "$ac_try") 2>&5 | 
|  | 15097 | ac_status=$? | 
|  | 15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15099 | (exit $ac_status); }; } && | 
|  | 15100 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15101 | { (case "(($ac_try" in | 
|  | 15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15103 | *) ac_try_echo=$ac_try;; | 
|  | 15104 | esac | 
|  | 15105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15106 | (eval "$ac_try") 2>&5 | 
|  | 15107 | ac_status=$? | 
|  | 15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15109 | (exit $ac_status); }; }; then | 
|  | 15110 | ac_header_compiler=yes | 
|  | 15111 | else | 
|  | 15112 | echo "$as_me: failed program was:" >&5 | 
|  | 15113 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15114 |  | 
|  | 15115 | ac_header_compiler=no | 
|  | 15116 | fi | 
|  | 15117 |  | 
|  | 15118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15119 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15120 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15121 |  | 
|  | 15122 | # Is the header present? | 
|  | 15123 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15125 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15126 | /* confdefs.h.  */ | 
|  | 15127 | _ACEOF | 
|  | 15128 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15129 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15130 | /* end confdefs.h.  */ | 
|  | 15131 | #include <$ac_header> | 
|  | 15132 | _ACEOF | 
|  | 15133 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15134 | case "(($ac_try" in | 
|  | 15135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15136 | *) ac_try_echo=$ac_try;; | 
|  | 15137 | esac | 
|  | 15138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15139 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15140 | ac_status=$? | 
|  | 15141 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15142 | rm -f conftest.er1 | 
|  | 15143 | cat conftest.err >&5 | 
|  | 15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15145 | (exit $ac_status); } >/dev/null; then | 
|  | 15146 | if test -s conftest.err; then | 
|  | 15147 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15148 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15149 | else | 
|  | 15150 | ac_cpp_err= | 
|  | 15151 | fi | 
|  | 15152 | else | 
|  | 15153 | ac_cpp_err=yes | 
|  | 15154 | fi | 
|  | 15155 | if test -z "$ac_cpp_err"; then | 
|  | 15156 | ac_header_preproc=yes | 
|  | 15157 | else | 
|  | 15158 | echo "$as_me: failed program was:" >&5 | 
|  | 15159 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15160 |  | 
|  | 15161 | ac_header_preproc=no | 
|  | 15162 | fi | 
|  | 15163 |  | 
|  | 15164 | rm -f conftest.err conftest.$ac_ext | 
|  | 15165 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15166 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15167 |  | 
|  | 15168 | # So?  What about this header? | 
|  | 15169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15170 | yes:no: ) | 
|  | 15171 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15172 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15174 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15175 | ac_header_preproc=yes | 
|  | 15176 | ;; | 
|  | 15177 | no:yes:* ) | 
|  | 15178 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15179 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15180 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15181 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15182 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15183 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15184 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15185 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15187 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15188 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15189 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15190 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15191 | ## ------------------------------------ ## | 
|  | 15192 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15193 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15194 | _ASBOX | 
|  | 15195 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15196 | ;; | 
|  | 15197 | esac | 
|  | 15198 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15202 | else | 
|  | 15203 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15204 | fi | 
|  | 15205 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15206 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15207 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15208 |  | 
|  | 15209 | fi | 
|  | 15210 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15211 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15212 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15213 | _ACEOF | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15214 |  | 
|  | 15215 | fi | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15216 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15217 | done | 
|  | 15218 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15219 |  | 
|  | 15220 |  | 
|  | 15221 |  | 
|  | 15222 |  | 
| Douglas Gregor | 1543661 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15223 | 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] | 15224 | do | 
|  | 15225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15227 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15229 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15231 | fi | 
|  | 15232 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15233 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15234 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15235 | else | 
|  | 15236 | # Is the header compilable? | 
|  | 15237 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15238 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15239 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15240 | /* confdefs.h.  */ | 
|  | 15241 | _ACEOF | 
|  | 15242 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15243 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15244 | /* end confdefs.h.  */ | 
|  | 15245 | $ac_includes_default | 
|  | 15246 | #include <$ac_header> | 
|  | 15247 | _ACEOF | 
|  | 15248 | rm -f conftest.$ac_objext | 
|  | 15249 | if { (ac_try="$ac_compile" | 
|  | 15250 | case "(($ac_try" in | 
|  | 15251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15252 | *) ac_try_echo=$ac_try;; | 
|  | 15253 | esac | 
|  | 15254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15255 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15256 | ac_status=$? | 
|  | 15257 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15258 | rm -f conftest.er1 | 
|  | 15259 | cat conftest.err >&5 | 
|  | 15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15261 | (exit $ac_status); } && | 
|  | 15262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15263 | { (case "(($ac_try" in | 
|  | 15264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15265 | *) ac_try_echo=$ac_try;; | 
|  | 15266 | esac | 
|  | 15267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15268 | (eval "$ac_try") 2>&5 | 
|  | 15269 | ac_status=$? | 
|  | 15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15271 | (exit $ac_status); }; } && | 
|  | 15272 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15273 | { (case "(($ac_try" in | 
|  | 15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15275 | *) ac_try_echo=$ac_try;; | 
|  | 15276 | esac | 
|  | 15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15278 | (eval "$ac_try") 2>&5 | 
|  | 15279 | ac_status=$? | 
|  | 15280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15281 | (exit $ac_status); }; }; then | 
|  | 15282 | ac_header_compiler=yes | 
|  | 15283 | else | 
|  | 15284 | echo "$as_me: failed program was:" >&5 | 
|  | 15285 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15286 |  | 
|  | 15287 | ac_header_compiler=no | 
|  | 15288 | fi | 
|  | 15289 |  | 
|  | 15290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15291 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15292 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15293 |  | 
|  | 15294 | # Is the header present? | 
|  | 15295 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15296 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15297 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15298 | /* confdefs.h.  */ | 
|  | 15299 | _ACEOF | 
|  | 15300 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15301 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15302 | /* end confdefs.h.  */ | 
|  | 15303 | #include <$ac_header> | 
|  | 15304 | _ACEOF | 
|  | 15305 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15306 | case "(($ac_try" in | 
|  | 15307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15308 | *) ac_try_echo=$ac_try;; | 
|  | 15309 | esac | 
|  | 15310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15311 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15312 | ac_status=$? | 
|  | 15313 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15314 | rm -f conftest.er1 | 
|  | 15315 | cat conftest.err >&5 | 
|  | 15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15317 | (exit $ac_status); } >/dev/null; then | 
|  | 15318 | if test -s conftest.err; then | 
|  | 15319 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15320 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15321 | else | 
|  | 15322 | ac_cpp_err= | 
|  | 15323 | fi | 
|  | 15324 | else | 
|  | 15325 | ac_cpp_err=yes | 
|  | 15326 | fi | 
|  | 15327 | if test -z "$ac_cpp_err"; then | 
|  | 15328 | ac_header_preproc=yes | 
|  | 15329 | else | 
|  | 15330 | echo "$as_me: failed program was:" >&5 | 
|  | 15331 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15332 |  | 
|  | 15333 | ac_header_preproc=no | 
|  | 15334 | fi | 
|  | 15335 |  | 
|  | 15336 | rm -f conftest.err conftest.$ac_ext | 
|  | 15337 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15338 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15339 |  | 
|  | 15340 | # So?  What about this header? | 
|  | 15341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15342 | yes:no: ) | 
|  | 15343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15347 | ac_header_preproc=yes | 
|  | 15348 | ;; | 
|  | 15349 | no:yes:* ) | 
|  | 15350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15352 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15353 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15356 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15357 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15362 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15363 | ## ------------------------------------ ## | 
|  | 15364 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15365 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15366 | _ASBOX | 
|  | 15367 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15368 | ;; | 
|  | 15369 | esac | 
|  | 15370 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15372 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15374 | else | 
|  | 15375 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15376 | fi | 
|  | 15377 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15378 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15379 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15380 |  | 
|  | 15381 | fi | 
|  | 15382 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15383 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15384 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15385 | _ACEOF | 
|  | 15386 |  | 
|  | 15387 | fi | 
|  | 15388 |  | 
|  | 15389 | done | 
|  | 15390 |  | 
| Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15391 |  | 
|  | 15392 | for ac_header in valgrind/valgrind.h | 
|  | 15393 | do | 
|  | 15394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15396 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15400 | fi | 
|  | 15401 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15403 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15404 | else | 
|  | 15405 | # Is the header compilable? | 
|  | 15406 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15408 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15409 | /* confdefs.h.  */ | 
|  | 15410 | _ACEOF | 
|  | 15411 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15412 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15413 | /* end confdefs.h.  */ | 
|  | 15414 | $ac_includes_default | 
|  | 15415 | #include <$ac_header> | 
|  | 15416 | _ACEOF | 
|  | 15417 | rm -f conftest.$ac_objext | 
|  | 15418 | if { (ac_try="$ac_compile" | 
|  | 15419 | case "(($ac_try" in | 
|  | 15420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15421 | *) ac_try_echo=$ac_try;; | 
|  | 15422 | esac | 
|  | 15423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15424 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15425 | ac_status=$? | 
|  | 15426 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15427 | rm -f conftest.er1 | 
|  | 15428 | cat conftest.err >&5 | 
|  | 15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15430 | (exit $ac_status); } && | 
|  | 15431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15432 | { (case "(($ac_try" in | 
|  | 15433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15434 | *) ac_try_echo=$ac_try;; | 
|  | 15435 | esac | 
|  | 15436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15437 | (eval "$ac_try") 2>&5 | 
|  | 15438 | ac_status=$? | 
|  | 15439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15440 | (exit $ac_status); }; } && | 
|  | 15441 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15442 | { (case "(($ac_try" in | 
|  | 15443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15444 | *) ac_try_echo=$ac_try;; | 
|  | 15445 | esac | 
|  | 15446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15447 | (eval "$ac_try") 2>&5 | 
|  | 15448 | ac_status=$? | 
|  | 15449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15450 | (exit $ac_status); }; }; then | 
|  | 15451 | ac_header_compiler=yes | 
|  | 15452 | else | 
|  | 15453 | echo "$as_me: failed program was:" >&5 | 
|  | 15454 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15455 |  | 
|  | 15456 | ac_header_compiler=no | 
|  | 15457 | fi | 
|  | 15458 |  | 
|  | 15459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15461 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15462 |  | 
|  | 15463 | # Is the header present? | 
|  | 15464 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15466 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15467 | /* confdefs.h.  */ | 
|  | 15468 | _ACEOF | 
|  | 15469 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15470 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15471 | /* end confdefs.h.  */ | 
|  | 15472 | #include <$ac_header> | 
|  | 15473 | _ACEOF | 
|  | 15474 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15475 | case "(($ac_try" in | 
|  | 15476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15477 | *) ac_try_echo=$ac_try;; | 
|  | 15478 | esac | 
|  | 15479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15481 | ac_status=$? | 
|  | 15482 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15483 | rm -f conftest.er1 | 
|  | 15484 | cat conftest.err >&5 | 
|  | 15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15486 | (exit $ac_status); } >/dev/null; then | 
|  | 15487 | if test -s conftest.err; then | 
|  | 15488 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15490 | else | 
|  | 15491 | ac_cpp_err= | 
|  | 15492 | fi | 
|  | 15493 | else | 
|  | 15494 | ac_cpp_err=yes | 
|  | 15495 | fi | 
|  | 15496 | if test -z "$ac_cpp_err"; then | 
|  | 15497 | ac_header_preproc=yes | 
|  | 15498 | else | 
|  | 15499 | echo "$as_me: failed program was:" >&5 | 
|  | 15500 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15501 |  | 
|  | 15502 | ac_header_preproc=no | 
|  | 15503 | fi | 
|  | 15504 |  | 
|  | 15505 | rm -f conftest.err conftest.$ac_ext | 
|  | 15506 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15507 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15508 |  | 
|  | 15509 | # So?  What about this header? | 
|  | 15510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15511 | yes:no: ) | 
|  | 15512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15515 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15516 | ac_header_preproc=yes | 
|  | 15517 | ;; | 
|  | 15518 | no:yes:* ) | 
|  | 15519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15521 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15522 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15523 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15524 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15525 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15526 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15529 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15530 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15531 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15532 | ## ------------------------------------ ## | 
|  | 15533 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15534 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15535 | _ASBOX | 
|  | 15536 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15537 | ;; | 
|  | 15538 | esac | 
|  | 15539 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15543 | else | 
|  | 15544 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15545 | fi | 
|  | 15546 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15548 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15549 |  | 
|  | 15550 | fi | 
|  | 15551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 15552 | cat >>confdefs.h <<_ACEOF | 
|  | 15553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15554 | _ACEOF | 
|  | 15555 |  | 
|  | 15556 | fi | 
|  | 15557 |  | 
|  | 15558 | done | 
|  | 15559 |  | 
| Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15560 |  | 
|  | 15561 | for ac_header in fenv.h | 
|  | 15562 | do | 
|  | 15563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15565 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15567 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15569 | fi | 
|  | 15570 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15572 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15573 | else | 
|  | 15574 | # Is the header compilable? | 
|  | 15575 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15576 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15577 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15578 | /* confdefs.h.  */ | 
|  | 15579 | _ACEOF | 
|  | 15580 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15581 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15582 | /* end confdefs.h.  */ | 
|  | 15583 | $ac_includes_default | 
|  | 15584 | #include <$ac_header> | 
|  | 15585 | _ACEOF | 
|  | 15586 | rm -f conftest.$ac_objext | 
|  | 15587 | if { (ac_try="$ac_compile" | 
|  | 15588 | case "(($ac_try" in | 
|  | 15589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15590 | *) ac_try_echo=$ac_try;; | 
|  | 15591 | esac | 
|  | 15592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15593 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15594 | ac_status=$? | 
|  | 15595 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15596 | rm -f conftest.er1 | 
|  | 15597 | cat conftest.err >&5 | 
|  | 15598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15599 | (exit $ac_status); } && | 
|  | 15600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15601 | { (case "(($ac_try" in | 
|  | 15602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15603 | *) ac_try_echo=$ac_try;; | 
|  | 15604 | esac | 
|  | 15605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15606 | (eval "$ac_try") 2>&5 | 
|  | 15607 | ac_status=$? | 
|  | 15608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15609 | (exit $ac_status); }; } && | 
|  | 15610 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15611 | { (case "(($ac_try" in | 
|  | 15612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15613 | *) ac_try_echo=$ac_try;; | 
|  | 15614 | esac | 
|  | 15615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15616 | (eval "$ac_try") 2>&5 | 
|  | 15617 | ac_status=$? | 
|  | 15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15619 | (exit $ac_status); }; }; then | 
|  | 15620 | ac_header_compiler=yes | 
|  | 15621 | else | 
|  | 15622 | echo "$as_me: failed program was:" >&5 | 
|  | 15623 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15624 |  | 
|  | 15625 | ac_header_compiler=no | 
|  | 15626 | fi | 
|  | 15627 |  | 
|  | 15628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15629 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15630 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15631 |  | 
|  | 15632 | # Is the header present? | 
|  | 15633 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15634 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15635 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15636 | /* confdefs.h.  */ | 
|  | 15637 | _ACEOF | 
|  | 15638 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15639 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15640 | /* end confdefs.h.  */ | 
|  | 15641 | #include <$ac_header> | 
|  | 15642 | _ACEOF | 
|  | 15643 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15644 | case "(($ac_try" in | 
|  | 15645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15646 | *) ac_try_echo=$ac_try;; | 
|  | 15647 | esac | 
|  | 15648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15649 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15650 | ac_status=$? | 
|  | 15651 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15652 | rm -f conftest.er1 | 
|  | 15653 | cat conftest.err >&5 | 
|  | 15654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15655 | (exit $ac_status); } >/dev/null; then | 
|  | 15656 | if test -s conftest.err; then | 
|  | 15657 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15659 | else | 
|  | 15660 | ac_cpp_err= | 
|  | 15661 | fi | 
|  | 15662 | else | 
|  | 15663 | ac_cpp_err=yes | 
|  | 15664 | fi | 
|  | 15665 | if test -z "$ac_cpp_err"; then | 
|  | 15666 | ac_header_preproc=yes | 
|  | 15667 | else | 
|  | 15668 | echo "$as_me: failed program was:" >&5 | 
|  | 15669 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15670 |  | 
|  | 15671 | ac_header_preproc=no | 
|  | 15672 | fi | 
|  | 15673 |  | 
|  | 15674 | rm -f conftest.err conftest.$ac_ext | 
|  | 15675 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15676 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15677 |  | 
|  | 15678 | # So?  What about this header? | 
|  | 15679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15680 | yes:no: ) | 
|  | 15681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15685 | ac_header_preproc=yes | 
|  | 15686 | ;; | 
|  | 15687 | no:yes:* ) | 
|  | 15688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15690 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15691 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15694 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15695 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15699 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15700 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15701 | ## ------------------------------------ ## | 
|  | 15702 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15703 | ## ------------------------------------ ## | 
| Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15704 | _ASBOX | 
|  | 15705 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15706 | ;; | 
|  | 15707 | esac | 
|  | 15708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15712 | else | 
|  | 15713 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15714 | fi | 
|  | 15715 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15717 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15718 |  | 
|  | 15719 | fi | 
|  | 15720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 15721 | cat >>confdefs.h <<_ACEOF | 
|  | 15722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15723 | _ACEOF | 
|  | 15724 |  | 
|  | 15725 | fi | 
|  | 15726 |  | 
|  | 15727 | done | 
|  | 15728 |  | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15729 | 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] | 15730 |  | 
|  | 15731 | for ac_header in pthread.h | 
|  | 15732 | do | 
|  | 15733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15735 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15739 | fi | 
|  | 15740 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15742 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15743 | else | 
|  | 15744 | # Is the header compilable? | 
|  | 15745 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15746 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15747 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15748 | /* confdefs.h.  */ | 
|  | 15749 | _ACEOF | 
|  | 15750 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15751 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15752 | /* end confdefs.h.  */ | 
|  | 15753 | $ac_includes_default | 
|  | 15754 | #include <$ac_header> | 
|  | 15755 | _ACEOF | 
|  | 15756 | rm -f conftest.$ac_objext | 
|  | 15757 | if { (ac_try="$ac_compile" | 
|  | 15758 | case "(($ac_try" in | 
|  | 15759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15760 | *) ac_try_echo=$ac_try;; | 
|  | 15761 | esac | 
|  | 15762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15763 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15764 | ac_status=$? | 
|  | 15765 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15766 | rm -f conftest.er1 | 
|  | 15767 | cat conftest.err >&5 | 
|  | 15768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15769 | (exit $ac_status); } && | 
|  | 15770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15771 | { (case "(($ac_try" in | 
|  | 15772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15773 | *) ac_try_echo=$ac_try;; | 
|  | 15774 | esac | 
|  | 15775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15776 | (eval "$ac_try") 2>&5 | 
|  | 15777 | ac_status=$? | 
|  | 15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15779 | (exit $ac_status); }; } && | 
|  | 15780 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15781 | { (case "(($ac_try" in | 
|  | 15782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15783 | *) ac_try_echo=$ac_try;; | 
|  | 15784 | esac | 
|  | 15785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15786 | (eval "$ac_try") 2>&5 | 
|  | 15787 | ac_status=$? | 
|  | 15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15789 | (exit $ac_status); }; }; then | 
|  | 15790 | ac_header_compiler=yes | 
|  | 15791 | else | 
|  | 15792 | echo "$as_me: failed program was:" >&5 | 
|  | 15793 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15794 |  | 
|  | 15795 | ac_header_compiler=no | 
|  | 15796 | fi | 
|  | 15797 |  | 
|  | 15798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15799 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15800 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15801 |  | 
|  | 15802 | # Is the header present? | 
|  | 15803 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15805 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15806 | /* confdefs.h.  */ | 
|  | 15807 | _ACEOF | 
|  | 15808 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15809 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15810 | /* end confdefs.h.  */ | 
|  | 15811 | #include <$ac_header> | 
|  | 15812 | _ACEOF | 
|  | 15813 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15814 | case "(($ac_try" in | 
|  | 15815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15816 | *) ac_try_echo=$ac_try;; | 
|  | 15817 | esac | 
|  | 15818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15819 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15820 | ac_status=$? | 
|  | 15821 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15822 | rm -f conftest.er1 | 
|  | 15823 | cat conftest.err >&5 | 
|  | 15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15825 | (exit $ac_status); } >/dev/null; then | 
|  | 15826 | if test -s conftest.err; then | 
|  | 15827 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15829 | else | 
|  | 15830 | ac_cpp_err= | 
|  | 15831 | fi | 
|  | 15832 | else | 
|  | 15833 | ac_cpp_err=yes | 
|  | 15834 | fi | 
|  | 15835 | if test -z "$ac_cpp_err"; then | 
|  | 15836 | ac_header_preproc=yes | 
|  | 15837 | else | 
|  | 15838 | echo "$as_me: failed program was:" >&5 | 
|  | 15839 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15840 |  | 
|  | 15841 | ac_header_preproc=no | 
|  | 15842 | fi | 
|  | 15843 |  | 
|  | 15844 | rm -f conftest.err conftest.$ac_ext | 
|  | 15845 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15846 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15847 |  | 
|  | 15848 | # So?  What about this header? | 
|  | 15849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15850 | yes:no: ) | 
|  | 15851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15854 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15855 | ac_header_preproc=yes | 
|  | 15856 | ;; | 
|  | 15857 | no:yes:* ) | 
|  | 15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15860 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15861 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15864 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15865 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15869 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15870 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15871 | ## ------------------------------------ ## | 
|  | 15872 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15873 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15874 | _ASBOX | 
|  | 15875 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15876 | ;; | 
|  | 15877 | esac | 
|  | 15878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15880 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15882 | else | 
|  | 15883 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15884 | fi | 
|  | 15885 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15887 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15888 |  | 
|  | 15889 | fi | 
|  | 15890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15891 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15893 | _ACEOF | 
|  | 15894 | HAVE_PTHREAD=1 | 
| Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15895 |  | 
|  | 15896 | else | 
|  | 15897 | HAVE_PTHREAD=0 | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15898 |  | 
|  | 15899 | fi | 
|  | 15900 |  | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15901 | done | 
| Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15902 |  | 
|  | 15903 | else | 
|  | 15904 | HAVE_PTHREAD=0 | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15905 |  | 
|  | 15906 | fi | 
| Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15907 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15908 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15909 |  | 
|  | 15910 |  | 
|  | 15911 | for ac_header in ffi.h ffi/ffi.h | 
|  | 15912 | do | 
|  | 15913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15919 | fi | 
|  | 15920 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15921 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15922 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15923 | else | 
|  | 15924 | # Is the header compilable? | 
|  | 15925 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15926 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15927 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15928 | /* confdefs.h.  */ | 
|  | 15929 | _ACEOF | 
|  | 15930 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15931 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15932 | /* end confdefs.h.  */ | 
|  | 15933 | $ac_includes_default | 
|  | 15934 | #include <$ac_header> | 
|  | 15935 | _ACEOF | 
|  | 15936 | rm -f conftest.$ac_objext | 
|  | 15937 | if { (ac_try="$ac_compile" | 
|  | 15938 | case "(($ac_try" in | 
|  | 15939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15940 | *) ac_try_echo=$ac_try;; | 
|  | 15941 | esac | 
|  | 15942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15943 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15944 | ac_status=$? | 
|  | 15945 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15946 | rm -f conftest.er1 | 
|  | 15947 | cat conftest.err >&5 | 
|  | 15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15949 | (exit $ac_status); } && | 
|  | 15950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15951 | { (case "(($ac_try" in | 
|  | 15952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15953 | *) ac_try_echo=$ac_try;; | 
|  | 15954 | esac | 
|  | 15955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15956 | (eval "$ac_try") 2>&5 | 
|  | 15957 | ac_status=$? | 
|  | 15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15959 | (exit $ac_status); }; } && | 
|  | 15960 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15961 | { (case "(($ac_try" in | 
|  | 15962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15963 | *) ac_try_echo=$ac_try;; | 
|  | 15964 | esac | 
|  | 15965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15966 | (eval "$ac_try") 2>&5 | 
|  | 15967 | ac_status=$? | 
|  | 15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15969 | (exit $ac_status); }; }; then | 
|  | 15970 | ac_header_compiler=yes | 
|  | 15971 | else | 
|  | 15972 | echo "$as_me: failed program was:" >&5 | 
|  | 15973 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15974 |  | 
|  | 15975 | ac_header_compiler=no | 
|  | 15976 | fi | 
|  | 15977 |  | 
|  | 15978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15979 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15980 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15981 |  | 
|  | 15982 | # Is the header present? | 
|  | 15983 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15985 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15986 | /* confdefs.h.  */ | 
|  | 15987 | _ACEOF | 
|  | 15988 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15989 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15990 | /* end confdefs.h.  */ | 
|  | 15991 | #include <$ac_header> | 
|  | 15992 | _ACEOF | 
|  | 15993 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15994 | case "(($ac_try" in | 
|  | 15995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15996 | *) ac_try_echo=$ac_try;; | 
|  | 15997 | esac | 
|  | 15998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15999 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 16000 | ac_status=$? | 
|  | 16001 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16002 | rm -f conftest.er1 | 
|  | 16003 | cat conftest.err >&5 | 
|  | 16004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16005 | (exit $ac_status); } >/dev/null; then | 
|  | 16006 | if test -s conftest.err; then | 
|  | 16007 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 16008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 16009 | else | 
|  | 16010 | ac_cpp_err= | 
|  | 16011 | fi | 
|  | 16012 | else | 
|  | 16013 | ac_cpp_err=yes | 
|  | 16014 | fi | 
|  | 16015 | if test -z "$ac_cpp_err"; then | 
|  | 16016 | ac_header_preproc=yes | 
|  | 16017 | else | 
|  | 16018 | echo "$as_me: failed program was:" >&5 | 
|  | 16019 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16020 |  | 
|  | 16021 | ac_header_preproc=no | 
|  | 16022 | fi | 
|  | 16023 |  | 
|  | 16024 | rm -f conftest.err conftest.$ac_ext | 
|  | 16025 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 16026 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 16027 |  | 
|  | 16028 | # So?  What about this header? | 
|  | 16029 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 16030 | yes:no: ) | 
|  | 16031 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 16032 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 16033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 16034 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 16035 | ac_header_preproc=yes | 
|  | 16036 | ;; | 
|  | 16037 | no:yes:* ) | 
|  | 16038 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 16039 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 16040 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 16041 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 16042 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 16043 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 16044 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 16045 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 16046 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 16047 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 16048 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 16049 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 16050 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16051 | ## ------------------------------------ ## | 
|  | 16052 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 16053 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16054 | _ASBOX | 
|  | 16055 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 16056 | ;; | 
|  | 16057 | esac | 
|  | 16058 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16060 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16062 | else | 
|  | 16063 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 16064 | fi | 
|  | 16065 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16066 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16067 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16068 |  | 
|  | 16069 | fi | 
|  | 16070 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16071 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16072 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16073 | _ACEOF | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16074 |  | 
|  | 16075 | fi | 
|  | 16076 |  | 
|  | 16077 | done | 
|  | 16078 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16079 | fi | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16080 |  | 
| Nick Lewycky | c94134d | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16081 |  | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16082 | for ac_header in CrashReporterClient.h | 
|  | 16083 | do | 
|  | 16084 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 16085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16086 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16088 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16090 | fi | 
|  | 16091 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16093 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16094 | else | 
|  | 16095 | # Is the header compilable? | 
|  | 16096 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 16097 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 16098 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16099 | /* confdefs.h.  */ | 
|  | 16100 | _ACEOF | 
|  | 16101 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16102 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16103 | /* end confdefs.h.  */ | 
|  | 16104 | $ac_includes_default | 
|  | 16105 | #include <$ac_header> | 
|  | 16106 | _ACEOF | 
|  | 16107 | rm -f conftest.$ac_objext | 
|  | 16108 | if { (ac_try="$ac_compile" | 
|  | 16109 | case "(($ac_try" in | 
|  | 16110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16111 | *) ac_try_echo=$ac_try;; | 
|  | 16112 | esac | 
|  | 16113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16114 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16115 | ac_status=$? | 
|  | 16116 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16117 | rm -f conftest.er1 | 
|  | 16118 | cat conftest.err >&5 | 
|  | 16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16120 | (exit $ac_status); } && | 
|  | 16121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16122 | { (case "(($ac_try" in | 
|  | 16123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16124 | *) ac_try_echo=$ac_try;; | 
|  | 16125 | esac | 
|  | 16126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16127 | (eval "$ac_try") 2>&5 | 
|  | 16128 | ac_status=$? | 
|  | 16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16130 | (exit $ac_status); }; } && | 
|  | 16131 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16132 | { (case "(($ac_try" in | 
|  | 16133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16134 | *) ac_try_echo=$ac_try;; | 
|  | 16135 | esac | 
|  | 16136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16137 | (eval "$ac_try") 2>&5 | 
|  | 16138 | ac_status=$? | 
|  | 16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16140 | (exit $ac_status); }; }; then | 
|  | 16141 | ac_header_compiler=yes | 
|  | 16142 | else | 
|  | 16143 | echo "$as_me: failed program was:" >&5 | 
|  | 16144 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16145 |  | 
|  | 16146 | ac_header_compiler=no | 
|  | 16147 | fi | 
|  | 16148 |  | 
|  | 16149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16150 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 16151 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 16152 |  | 
|  | 16153 | # Is the header present? | 
|  | 16154 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 16155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 16156 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16157 | /* confdefs.h.  */ | 
|  | 16158 | _ACEOF | 
|  | 16159 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16160 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16161 | /* end confdefs.h.  */ | 
|  | 16162 | #include <$ac_header> | 
|  | 16163 | _ACEOF | 
|  | 16164 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 16165 | case "(($ac_try" in | 
|  | 16166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16167 | *) ac_try_echo=$ac_try;; | 
|  | 16168 | esac | 
|  | 16169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 16171 | ac_status=$? | 
|  | 16172 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16173 | rm -f conftest.er1 | 
|  | 16174 | cat conftest.err >&5 | 
|  | 16175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16176 | (exit $ac_status); } >/dev/null; then | 
|  | 16177 | if test -s conftest.err; then | 
|  | 16178 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 16179 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 16180 | else | 
|  | 16181 | ac_cpp_err= | 
|  | 16182 | fi | 
|  | 16183 | else | 
|  | 16184 | ac_cpp_err=yes | 
|  | 16185 | fi | 
|  | 16186 | if test -z "$ac_cpp_err"; then | 
|  | 16187 | ac_header_preproc=yes | 
|  | 16188 | else | 
|  | 16189 | echo "$as_me: failed program was:" >&5 | 
|  | 16190 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16191 |  | 
|  | 16192 | ac_header_preproc=no | 
|  | 16193 | fi | 
|  | 16194 |  | 
|  | 16195 | rm -f conftest.err conftest.$ac_ext | 
|  | 16196 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 16197 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 16198 |  | 
|  | 16199 | # So?  What about this header? | 
|  | 16200 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 16201 | yes:no: ) | 
|  | 16202 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 16203 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 16204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 16205 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 16206 | ac_header_preproc=yes | 
|  | 16207 | ;; | 
|  | 16208 | no:yes:* ) | 
|  | 16209 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 16210 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 16211 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 16212 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 16213 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 16214 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 16215 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 16216 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 16217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 16218 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 16219 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 16220 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 16221 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16222 | ## ------------------------------------ ## | 
|  | 16223 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 16224 | ## ------------------------------------ ## | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16225 | _ASBOX | 
|  | 16226 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 16227 | ;; | 
|  | 16228 | esac | 
|  | 16229 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16233 | else | 
|  | 16234 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 16235 | fi | 
|  | 16236 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16238 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16239 |  | 
|  | 16240 | fi | 
|  | 16241 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 16242 | cat >>confdefs.h <<_ACEOF | 
|  | 16243 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 16244 | _ACEOF | 
|  | 16245 |  | 
|  | 16246 | fi | 
|  | 16247 |  | 
|  | 16248 | done | 
|  | 16249 |  | 
|  | 16250 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16251 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 | 
|  | 16252 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16253 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16254 | /* confdefs.h.  */ | 
|  | 16255 | _ACEOF | 
|  | 16256 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16257 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16258 | /* end confdefs.h.  */ | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16259 | extern const char *__crashreporter_info__; | 
|  | 16260 | int main() { | 
|  | 16261 | __crashreporter_info__ = "test"; | 
|  | 16262 | return 0; | 
|  | 16263 | } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16264 |  | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16265 | _ACEOF | 
|  | 16266 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16267 | if { (ac_try="$ac_link" | 
|  | 16268 | case "(($ac_try" in | 
|  | 16269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16270 | *) ac_try_echo=$ac_try;; | 
|  | 16271 | esac | 
|  | 16272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16273 | (eval "$ac_link") 2>conftest.er1 | 
|  | 16274 | ac_status=$? | 
|  | 16275 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16276 | rm -f conftest.er1 | 
|  | 16277 | cat conftest.err >&5 | 
|  | 16278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16279 | (exit $ac_status); } && | 
|  | 16280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16281 | { (case "(($ac_try" in | 
|  | 16282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16283 | *) ac_try_echo=$ac_try;; | 
|  | 16284 | esac | 
|  | 16285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16286 | (eval "$ac_try") 2>&5 | 
|  | 16287 | ac_status=$? | 
|  | 16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16289 | (exit $ac_status); }; } && | 
|  | 16290 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16291 | { (case "(($ac_try" in | 
|  | 16292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16293 | *) ac_try_echo=$ac_try;; | 
|  | 16294 | esac | 
|  | 16295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16296 | (eval "$ac_try") 2>&5 | 
|  | 16297 | ac_status=$? | 
|  | 16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16299 | (exit $ac_status); }; }; then | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16300 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 16301 | echo "${ECHO_T}yes" >&6; } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16302 |  | 
|  | 16303 | cat >>confdefs.h <<\_ACEOF | 
|  | 16304 | #define HAVE_CRASHREPORTER_INFO 1 | 
|  | 16305 | _ACEOF | 
|  | 16306 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16307 | else | 
|  | 16308 | echo "$as_me: failed program was:" >&5 | 
|  | 16309 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16310 |  | 
|  | 16311 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 16312 | echo "${ECHO_T}no" >&6; } | 
|  | 16313 |  | 
|  | 16314 | cat >>confdefs.h <<\_ACEOF | 
|  | 16315 | #define HAVE_CRASHREPORTER_INFO 0 | 
|  | 16316 | _ACEOF | 
|  | 16317 |  | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16318 | fi | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16319 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16320 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16321 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16322 |  | 
|  | 16323 |  | 
| Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16324 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16325 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16326 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 | 
|  | 16327 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } | 
|  | 16328 | if test "${ac_cv_huge_val_sanity+set}" = set; then | 
|  | 16329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16330 | else | 
|  | 16331 |  | 
| Reid Spencer | 7b7ab9c | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16332 | ac_ext=cpp | 
|  | 16333 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 16334 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16335 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16336 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16337 |  | 
| Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16338 | ac_save_CXXFLAGS=$CXXFLAGS | 
| Eric Christopher | 8e52bdc | 2012-04-02 06:54:01 +0000 | [diff] [blame] | 16339 | CXXFLAGS="$CXXFLAGS -pedantic" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16340 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16341 | ac_cv_huge_val_sanity=yes | 
|  | 16342 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16343 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16344 | /* confdefs.h.  */ | 
|  | 16345 | _ACEOF | 
|  | 16346 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16347 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16348 | /* end confdefs.h.  */ | 
|  | 16349 | #include <math.h> | 
|  | 16350 | int | 
|  | 16351 | main () | 
|  | 16352 | { | 
|  | 16353 | double x = HUGE_VAL; return x != x; | 
|  | 16354 | ; | 
|  | 16355 | return 0; | 
|  | 16356 | } | 
|  | 16357 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16358 | rm -f conftest$ac_exeext | 
|  | 16359 | if { (ac_try="$ac_link" | 
|  | 16360 | case "(($ac_try" in | 
|  | 16361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16362 | *) ac_try_echo=$ac_try;; | 
|  | 16363 | esac | 
|  | 16364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16365 | (eval "$ac_link") 2>&5 | 
|  | 16366 | ac_status=$? | 
|  | 16367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16368 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 16369 | { (case "(($ac_try" in | 
|  | 16370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16371 | *) ac_try_echo=$ac_try;; | 
|  | 16372 | esac | 
|  | 16373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16374 | (eval "$ac_try") 2>&5 | 
|  | 16375 | ac_status=$? | 
|  | 16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16377 | (exit $ac_status); }; }; then | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16378 | ac_cv_huge_val_sanity=yes | 
|  | 16379 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16380 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 16381 | echo "$as_me: failed program was:" >&5 | 
|  | 16382 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16383 |  | 
|  | 16384 | ( exit $ac_status ) | 
|  | 16385 | ac_cv_huge_val_sanity=no | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16386 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16387 | 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] | 16388 | fi | 
|  | 16389 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16390 |  | 
| Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16391 | CXXFLAGS=$ac_save_CXXFLAGS | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16392 | ac_ext=c | 
|  | 16393 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 16397 |  | 
|  | 16398 |  | 
|  | 16399 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16400 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 | 
|  | 16401 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16402 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity | 
|  | 16403 |  | 
|  | 16404 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16405 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | 
|  | 16406 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | 
|  | 16407 | if test "${ac_cv_type_pid_t+set}" = set; then | 
|  | 16408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16409 | else | 
|  | 16410 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16411 | /* confdefs.h.  */ | 
|  | 16412 | _ACEOF | 
|  | 16413 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16414 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16415 | /* end confdefs.h.  */ | 
|  | 16416 | $ac_includes_default | 
|  | 16417 | typedef pid_t ac__type_new_; | 
|  | 16418 | int | 
|  | 16419 | main () | 
|  | 16420 | { | 
|  | 16421 | if ((ac__type_new_ *) 0) | 
|  | 16422 | return 0; | 
|  | 16423 | if (sizeof (ac__type_new_)) | 
|  | 16424 | return 0; | 
|  | 16425 | ; | 
|  | 16426 | return 0; | 
|  | 16427 | } | 
|  | 16428 | _ACEOF | 
|  | 16429 | rm -f conftest.$ac_objext | 
|  | 16430 | if { (ac_try="$ac_compile" | 
|  | 16431 | case "(($ac_try" in | 
|  | 16432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16433 | *) ac_try_echo=$ac_try;; | 
|  | 16434 | esac | 
|  | 16435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16436 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16437 | ac_status=$? | 
|  | 16438 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16439 | rm -f conftest.er1 | 
|  | 16440 | cat conftest.err >&5 | 
|  | 16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16442 | (exit $ac_status); } && | 
|  | 16443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16444 | { (case "(($ac_try" in | 
|  | 16445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16446 | *) ac_try_echo=$ac_try;; | 
|  | 16447 | esac | 
|  | 16448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16449 | (eval "$ac_try") 2>&5 | 
|  | 16450 | ac_status=$? | 
|  | 16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16452 | (exit $ac_status); }; } && | 
|  | 16453 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16454 | { (case "(($ac_try" in | 
|  | 16455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16456 | *) ac_try_echo=$ac_try;; | 
|  | 16457 | esac | 
|  | 16458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16459 | (eval "$ac_try") 2>&5 | 
|  | 16460 | ac_status=$? | 
|  | 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16462 | (exit $ac_status); }; }; then | 
|  | 16463 | ac_cv_type_pid_t=yes | 
|  | 16464 | else | 
|  | 16465 | echo "$as_me: failed program was:" >&5 | 
|  | 16466 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16467 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16468 | ac_cv_type_pid_t=no | 
|  | 16469 | fi | 
|  | 16470 |  | 
|  | 16471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16472 | fi | 
|  | 16473 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
|  | 16474 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | 
|  | 16475 | if test $ac_cv_type_pid_t = yes; then | 
|  | 16476 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16477 | else | 
|  | 16478 |  | 
|  | 16479 | cat >>confdefs.h <<_ACEOF | 
|  | 16480 | #define pid_t int | 
|  | 16481 | _ACEOF | 
|  | 16482 |  | 
|  | 16483 | fi | 
|  | 16484 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16485 | { echo "$as_me:$LINENO: checking for size_t" >&5 | 
|  | 16486 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | 
|  | 16487 | if test "${ac_cv_type_size_t+set}" = set; then | 
|  | 16488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16489 | else | 
|  | 16490 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16491 | /* confdefs.h.  */ | 
|  | 16492 | _ACEOF | 
|  | 16493 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16494 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16495 | /* end confdefs.h.  */ | 
|  | 16496 | $ac_includes_default | 
|  | 16497 | typedef size_t ac__type_new_; | 
|  | 16498 | int | 
|  | 16499 | main () | 
|  | 16500 | { | 
|  | 16501 | if ((ac__type_new_ *) 0) | 
|  | 16502 | return 0; | 
|  | 16503 | if (sizeof (ac__type_new_)) | 
|  | 16504 | return 0; | 
|  | 16505 | ; | 
|  | 16506 | return 0; | 
|  | 16507 | } | 
|  | 16508 | _ACEOF | 
|  | 16509 | rm -f conftest.$ac_objext | 
|  | 16510 | if { (ac_try="$ac_compile" | 
|  | 16511 | case "(($ac_try" in | 
|  | 16512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16513 | *) ac_try_echo=$ac_try;; | 
|  | 16514 | esac | 
|  | 16515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16516 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16517 | ac_status=$? | 
|  | 16518 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16519 | rm -f conftest.er1 | 
|  | 16520 | cat conftest.err >&5 | 
|  | 16521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16522 | (exit $ac_status); } && | 
|  | 16523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16524 | { (case "(($ac_try" in | 
|  | 16525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16526 | *) ac_try_echo=$ac_try;; | 
|  | 16527 | esac | 
|  | 16528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16529 | (eval "$ac_try") 2>&5 | 
|  | 16530 | ac_status=$? | 
|  | 16531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16532 | (exit $ac_status); }; } && | 
|  | 16533 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16534 | { (case "(($ac_try" in | 
|  | 16535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16536 | *) ac_try_echo=$ac_try;; | 
|  | 16537 | esac | 
|  | 16538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16539 | (eval "$ac_try") 2>&5 | 
|  | 16540 | ac_status=$? | 
|  | 16541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16542 | (exit $ac_status); }; }; then | 
|  | 16543 | ac_cv_type_size_t=yes | 
|  | 16544 | else | 
|  | 16545 | echo "$as_me: failed program was:" >&5 | 
|  | 16546 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16547 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16548 | ac_cv_type_size_t=no | 
|  | 16549 | fi | 
|  | 16550 |  | 
|  | 16551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16552 | fi | 
|  | 16553 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
|  | 16554 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | 
|  | 16555 | if test $ac_cv_type_size_t = yes; then | 
|  | 16556 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16557 | else | 
|  | 16558 |  | 
|  | 16559 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16560 | #define size_t unsigned int | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16561 | _ACEOF | 
|  | 16562 |  | 
|  | 16563 | fi | 
|  | 16564 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16565 |  | 
|  | 16566 | cat >>confdefs.h <<_ACEOF | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16567 | #define RETSIGTYPE void | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16568 | _ACEOF | 
|  | 16569 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16570 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 16571 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | 
|  | 16572 | if test "${ac_cv_struct_tm+set}" = set; then | 
|  | 16573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16574 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16575 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16576 | /* confdefs.h.  */ | 
|  | 16577 | _ACEOF | 
|  | 16578 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16579 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16580 | /* end confdefs.h.  */ | 
|  | 16581 | #include <sys/types.h> | 
|  | 16582 | #include <time.h> | 
|  | 16583 |  | 
|  | 16584 | int | 
|  | 16585 | main () | 
|  | 16586 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16587 | struct tm *tp; tp->tm_sec; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16588 | ; | 
|  | 16589 | return 0; | 
|  | 16590 | } | 
|  | 16591 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16592 | rm -f conftest.$ac_objext | 
|  | 16593 | if { (ac_try="$ac_compile" | 
|  | 16594 | case "(($ac_try" in | 
|  | 16595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16596 | *) ac_try_echo=$ac_try;; | 
|  | 16597 | esac | 
|  | 16598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16599 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16600 | ac_status=$? | 
|  | 16601 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16602 | rm -f conftest.er1 | 
|  | 16603 | cat conftest.err >&5 | 
|  | 16604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16605 | (exit $ac_status); } && | 
|  | 16606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16607 | { (case "(($ac_try" in | 
|  | 16608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16609 | *) ac_try_echo=$ac_try;; | 
|  | 16610 | esac | 
|  | 16611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16612 | (eval "$ac_try") 2>&5 | 
|  | 16613 | ac_status=$? | 
|  | 16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16615 | (exit $ac_status); }; } && | 
|  | 16616 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16617 | { (case "(($ac_try" in | 
|  | 16618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16619 | *) ac_try_echo=$ac_try;; | 
|  | 16620 | esac | 
|  | 16621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16622 | (eval "$ac_try") 2>&5 | 
|  | 16623 | ac_status=$? | 
|  | 16624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16625 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16626 | ac_cv_struct_tm=time.h | 
|  | 16627 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16628 | echo "$as_me: failed program was:" >&5 | 
|  | 16629 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16630 |  | 
|  | 16631 | ac_cv_struct_tm=sys/time.h | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16632 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16633 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16635 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16636 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
|  | 16637 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16638 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 16639 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16640 | cat >>confdefs.h <<\_ACEOF | 
|  | 16641 | #define TM_IN_SYS_TIME 1 | 
|  | 16642 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16643 |  | 
|  | 16644 | fi | 
|  | 16645 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16646 | { echo "$as_me:$LINENO: checking for int64_t" >&5 | 
|  | 16647 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } | 
|  | 16648 | if test "${ac_cv_type_int64_t+set}" = set; then | 
|  | 16649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16650 | else | 
|  | 16651 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16652 | /* confdefs.h.  */ | 
|  | 16653 | _ACEOF | 
|  | 16654 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16655 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16656 | /* end confdefs.h.  */ | 
|  | 16657 | $ac_includes_default | 
|  | 16658 | typedef int64_t ac__type_new_; | 
|  | 16659 | int | 
|  | 16660 | main () | 
|  | 16661 | { | 
|  | 16662 | if ((ac__type_new_ *) 0) | 
|  | 16663 | return 0; | 
|  | 16664 | if (sizeof (ac__type_new_)) | 
|  | 16665 | return 0; | 
|  | 16666 | ; | 
|  | 16667 | return 0; | 
|  | 16668 | } | 
|  | 16669 | _ACEOF | 
|  | 16670 | rm -f conftest.$ac_objext | 
|  | 16671 | if { (ac_try="$ac_compile" | 
|  | 16672 | case "(($ac_try" in | 
|  | 16673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16674 | *) ac_try_echo=$ac_try;; | 
|  | 16675 | esac | 
|  | 16676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16677 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16678 | ac_status=$? | 
|  | 16679 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16680 | rm -f conftest.er1 | 
|  | 16681 | cat conftest.err >&5 | 
|  | 16682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16683 | (exit $ac_status); } && | 
|  | 16684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16685 | { (case "(($ac_try" in | 
|  | 16686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16687 | *) ac_try_echo=$ac_try;; | 
|  | 16688 | esac | 
|  | 16689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16690 | (eval "$ac_try") 2>&5 | 
|  | 16691 | ac_status=$? | 
|  | 16692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16693 | (exit $ac_status); }; } && | 
|  | 16694 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16695 | { (case "(($ac_try" in | 
|  | 16696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16697 | *) ac_try_echo=$ac_try;; | 
|  | 16698 | esac | 
|  | 16699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16700 | (eval "$ac_try") 2>&5 | 
|  | 16701 | ac_status=$? | 
|  | 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16703 | (exit $ac_status); }; }; then | 
|  | 16704 | ac_cv_type_int64_t=yes | 
|  | 16705 | else | 
|  | 16706 | echo "$as_me: failed program was:" >&5 | 
|  | 16707 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16708 |  | 
|  | 16709 | ac_cv_type_int64_t=no | 
|  | 16710 | fi | 
|  | 16711 |  | 
|  | 16712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16713 | fi | 
|  | 16714 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
|  | 16715 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } | 
|  | 16716 | if test $ac_cv_type_int64_t = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16717 |  | 
|  | 16718 | cat >>confdefs.h <<_ACEOF | 
|  | 16719 | #define HAVE_INT64_T 1 | 
|  | 16720 | _ACEOF | 
|  | 16721 |  | 
|  | 16722 |  | 
|  | 16723 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16724 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
|  | 16725 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
|  | 16726 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16727 | fi | 
|  | 16728 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16729 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
|  | 16730 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } | 
|  | 16731 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
|  | 16732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16733 | else | 
|  | 16734 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16735 | /* confdefs.h.  */ | 
|  | 16736 | _ACEOF | 
|  | 16737 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16738 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16739 | /* end confdefs.h.  */ | 
|  | 16740 | $ac_includes_default | 
|  | 16741 | typedef uint64_t ac__type_new_; | 
|  | 16742 | int | 
|  | 16743 | main () | 
|  | 16744 | { | 
|  | 16745 | if ((ac__type_new_ *) 0) | 
|  | 16746 | return 0; | 
|  | 16747 | if (sizeof (ac__type_new_)) | 
|  | 16748 | return 0; | 
|  | 16749 | ; | 
|  | 16750 | return 0; | 
|  | 16751 | } | 
|  | 16752 | _ACEOF | 
|  | 16753 | rm -f conftest.$ac_objext | 
|  | 16754 | if { (ac_try="$ac_compile" | 
|  | 16755 | case "(($ac_try" in | 
|  | 16756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16757 | *) ac_try_echo=$ac_try;; | 
|  | 16758 | esac | 
|  | 16759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16760 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16761 | ac_status=$? | 
|  | 16762 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16763 | rm -f conftest.er1 | 
|  | 16764 | cat conftest.err >&5 | 
|  | 16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16766 | (exit $ac_status); } && | 
|  | 16767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16768 | { (case "(($ac_try" in | 
|  | 16769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16770 | *) ac_try_echo=$ac_try;; | 
|  | 16771 | esac | 
|  | 16772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16773 | (eval "$ac_try") 2>&5 | 
|  | 16774 | ac_status=$? | 
|  | 16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16776 | (exit $ac_status); }; } && | 
|  | 16777 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16778 | { (case "(($ac_try" in | 
|  | 16779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16780 | *) ac_try_echo=$ac_try;; | 
|  | 16781 | esac | 
|  | 16782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16783 | (eval "$ac_try") 2>&5 | 
|  | 16784 | ac_status=$? | 
|  | 16785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16786 | (exit $ac_status); }; }; then | 
|  | 16787 | ac_cv_type_uint64_t=yes | 
|  | 16788 | else | 
|  | 16789 | echo "$as_me: failed program was:" >&5 | 
|  | 16790 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16791 |  | 
|  | 16792 | ac_cv_type_uint64_t=no | 
|  | 16793 | fi | 
|  | 16794 |  | 
|  | 16795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16796 | fi | 
|  | 16797 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
|  | 16798 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } | 
|  | 16799 | if test $ac_cv_type_uint64_t = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16800 |  | 
|  | 16801 | cat >>confdefs.h <<_ACEOF | 
|  | 16802 | #define HAVE_UINT64_T 1 | 
|  | 16803 | _ACEOF | 
|  | 16804 |  | 
|  | 16805 |  | 
|  | 16806 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16807 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
|  | 16808 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } | 
|  | 16809 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
|  | 16810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16811 | else | 
|  | 16812 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16813 | /* confdefs.h.  */ | 
|  | 16814 | _ACEOF | 
|  | 16815 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16816 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16817 | /* end confdefs.h.  */ | 
|  | 16818 | $ac_includes_default | 
|  | 16819 | typedef u_int64_t ac__type_new_; | 
|  | 16820 | int | 
|  | 16821 | main () | 
|  | 16822 | { | 
|  | 16823 | if ((ac__type_new_ *) 0) | 
|  | 16824 | return 0; | 
|  | 16825 | if (sizeof (ac__type_new_)) | 
|  | 16826 | return 0; | 
|  | 16827 | ; | 
|  | 16828 | return 0; | 
|  | 16829 | } | 
|  | 16830 | _ACEOF | 
|  | 16831 | rm -f conftest.$ac_objext | 
|  | 16832 | if { (ac_try="$ac_compile" | 
|  | 16833 | case "(($ac_try" in | 
|  | 16834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16835 | *) ac_try_echo=$ac_try;; | 
|  | 16836 | esac | 
|  | 16837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16838 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16839 | ac_status=$? | 
|  | 16840 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16841 | rm -f conftest.er1 | 
|  | 16842 | cat conftest.err >&5 | 
|  | 16843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16844 | (exit $ac_status); } && | 
|  | 16845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16846 | { (case "(($ac_try" in | 
|  | 16847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16848 | *) ac_try_echo=$ac_try;; | 
|  | 16849 | esac | 
|  | 16850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16851 | (eval "$ac_try") 2>&5 | 
|  | 16852 | ac_status=$? | 
|  | 16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16854 | (exit $ac_status); }; } && | 
|  | 16855 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16856 | { (case "(($ac_try" in | 
|  | 16857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16858 | *) ac_try_echo=$ac_try;; | 
|  | 16859 | esac | 
|  | 16860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16861 | (eval "$ac_try") 2>&5 | 
|  | 16862 | ac_status=$? | 
|  | 16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16864 | (exit $ac_status); }; }; then | 
|  | 16865 | ac_cv_type_u_int64_t=yes | 
|  | 16866 | else | 
|  | 16867 | echo "$as_me: failed program was:" >&5 | 
|  | 16868 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16869 |  | 
|  | 16870 | ac_cv_type_u_int64_t=no | 
|  | 16871 | fi | 
|  | 16872 |  | 
|  | 16873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16874 | fi | 
|  | 16875 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
|  | 16876 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } | 
|  | 16877 | if test $ac_cv_type_u_int64_t = yes; then | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16878 |  | 
|  | 16879 | cat >>confdefs.h <<_ACEOF | 
|  | 16880 | #define HAVE_U_INT64_T 1 | 
|  | 16881 | _ACEOF | 
|  | 16882 |  | 
|  | 16883 |  | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16884 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16885 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
|  | 16886 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
|  | 16887 | { (exit 1); exit 1; }; } | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16888 | fi | 
|  | 16889 |  | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16890 | fi | 
|  | 16891 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16892 |  | 
|  | 16893 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16894 |  | 
|  | 16895 |  | 
|  | 16896 |  | 
|  | 16897 |  | 
|  | 16898 |  | 
|  | 16899 |  | 
|  | 16900 |  | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16901 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16902 | do | 
|  | 16903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 16904 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 16905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 16906 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16908 | else | 
|  | 16909 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16910 | /* confdefs.h.  */ | 
|  | 16911 | _ACEOF | 
|  | 16912 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16913 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16914 | /* end confdefs.h.  */ | 
|  | 16915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 16916 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 16917 | #define $ac_func innocuous_$ac_func | 
|  | 16918 |  | 
|  | 16919 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 16920 | which can conflict with char $ac_func (); below. | 
|  | 16921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16922 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16923 |  | 
|  | 16924 | #ifdef __STDC__ | 
|  | 16925 | # include <limits.h> | 
|  | 16926 | #else | 
|  | 16927 | # include <assert.h> | 
|  | 16928 | #endif | 
|  | 16929 |  | 
|  | 16930 | #undef $ac_func | 
|  | 16931 |  | 
|  | 16932 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16933 | Use char because int might match the return type of a GCC | 
|  | 16934 | builtin and then its argument prototype would still apply.  */ | 
|  | 16935 | #ifdef __cplusplus | 
|  | 16936 | extern "C" | 
|  | 16937 | #endif | 
|  | 16938 | char $ac_func (); | 
|  | 16939 | /* The GNU C library defines this for functions which it implements | 
|  | 16940 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16941 | something starting with __ and the normal name is an alias.  */ | 
|  | 16942 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 16943 | choke me | 
|  | 16944 | #endif | 
|  | 16945 |  | 
|  | 16946 | int | 
|  | 16947 | main () | 
|  | 16948 | { | 
|  | 16949 | return $ac_func (); | 
|  | 16950 | ; | 
|  | 16951 | return 0; | 
|  | 16952 | } | 
|  | 16953 | _ACEOF | 
|  | 16954 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16955 | if { (ac_try="$ac_link" | 
|  | 16956 | case "(($ac_try" in | 
|  | 16957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16958 | *) ac_try_echo=$ac_try;; | 
|  | 16959 | esac | 
|  | 16960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16961 | (eval "$ac_link") 2>conftest.er1 | 
|  | 16962 | ac_status=$? | 
|  | 16963 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16964 | rm -f conftest.er1 | 
|  | 16965 | cat conftest.err >&5 | 
|  | 16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16967 | (exit $ac_status); } && | 
|  | 16968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16969 | { (case "(($ac_try" in | 
|  | 16970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16971 | *) ac_try_echo=$ac_try;; | 
|  | 16972 | esac | 
|  | 16973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16974 | (eval "$ac_try") 2>&5 | 
|  | 16975 | ac_status=$? | 
|  | 16976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16977 | (exit $ac_status); }; } && | 
|  | 16978 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16979 | { (case "(($ac_try" in | 
|  | 16980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16981 | *) ac_try_echo=$ac_try;; | 
|  | 16982 | esac | 
|  | 16983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16984 | (eval "$ac_try") 2>&5 | 
|  | 16985 | ac_status=$? | 
|  | 16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16987 | (exit $ac_status); }; }; then | 
|  | 16988 | eval "$as_ac_var=yes" | 
|  | 16989 | else | 
|  | 16990 | echo "$as_me: failed program was:" >&5 | 
|  | 16991 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16992 |  | 
|  | 16993 | eval "$as_ac_var=no" | 
|  | 16994 | fi | 
|  | 16995 |  | 
|  | 16996 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16997 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16998 | fi | 
|  | 16999 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17001 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17002 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17003 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17004 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17005 | _ACEOF | 
|  | 17006 |  | 
|  | 17007 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17008 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17009 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17010 |  | 
|  | 17011 |  | 
|  | 17012 |  | 
|  | 17013 |  | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17014 | for ac_func in powf fmodf strtof round | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17015 | do | 
|  | 17016 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17017 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17018 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17019 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17021 | else | 
|  | 17022 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17023 | /* confdefs.h.  */ | 
|  | 17024 | _ACEOF | 
|  | 17025 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17026 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17027 | /* end confdefs.h.  */ | 
|  | 17028 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17029 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17030 | #define $ac_func innocuous_$ac_func | 
|  | 17031 |  | 
|  | 17032 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17033 | which can conflict with char $ac_func (); below. | 
|  | 17034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17035 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17036 |  | 
|  | 17037 | #ifdef __STDC__ | 
|  | 17038 | # include <limits.h> | 
|  | 17039 | #else | 
|  | 17040 | # include <assert.h> | 
|  | 17041 | #endif | 
|  | 17042 |  | 
|  | 17043 | #undef $ac_func | 
|  | 17044 |  | 
|  | 17045 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17046 | Use char because int might match the return type of a GCC | 
|  | 17047 | builtin and then its argument prototype would still apply.  */ | 
|  | 17048 | #ifdef __cplusplus | 
|  | 17049 | extern "C" | 
|  | 17050 | #endif | 
|  | 17051 | char $ac_func (); | 
|  | 17052 | /* The GNU C library defines this for functions which it implements | 
|  | 17053 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17054 | something starting with __ and the normal name is an alias.  */ | 
|  | 17055 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17056 | choke me | 
|  | 17057 | #endif | 
|  | 17058 |  | 
|  | 17059 | int | 
|  | 17060 | main () | 
|  | 17061 | { | 
|  | 17062 | return $ac_func (); | 
|  | 17063 | ; | 
|  | 17064 | return 0; | 
|  | 17065 | } | 
|  | 17066 | _ACEOF | 
|  | 17067 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17068 | if { (ac_try="$ac_link" | 
|  | 17069 | case "(($ac_try" in | 
|  | 17070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17071 | *) ac_try_echo=$ac_try;; | 
|  | 17072 | esac | 
|  | 17073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17074 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17075 | ac_status=$? | 
|  | 17076 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17077 | rm -f conftest.er1 | 
|  | 17078 | cat conftest.err >&5 | 
|  | 17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17080 | (exit $ac_status); } && | 
|  | 17081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17082 | { (case "(($ac_try" in | 
|  | 17083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17084 | *) ac_try_echo=$ac_try;; | 
|  | 17085 | esac | 
|  | 17086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17087 | (eval "$ac_try") 2>&5 | 
|  | 17088 | ac_status=$? | 
|  | 17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17090 | (exit $ac_status); }; } && | 
|  | 17091 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17092 | { (case "(($ac_try" in | 
|  | 17093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17094 | *) ac_try_echo=$ac_try;; | 
|  | 17095 | esac | 
|  | 17096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17097 | (eval "$ac_try") 2>&5 | 
|  | 17098 | ac_status=$? | 
|  | 17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17100 | (exit $ac_status); }; }; then | 
|  | 17101 | eval "$as_ac_var=yes" | 
|  | 17102 | else | 
|  | 17103 | echo "$as_me: failed program was:" >&5 | 
|  | 17104 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17105 |  | 
|  | 17106 | eval "$as_ac_var=no" | 
|  | 17107 | fi | 
|  | 17108 |  | 
|  | 17109 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17110 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17111 | fi | 
|  | 17112 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17113 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17114 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17115 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17116 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17118 | _ACEOF | 
|  | 17119 |  | 
|  | 17120 | fi | 
|  | 17121 | done | 
|  | 17122 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17123 |  | 
|  | 17124 |  | 
|  | 17125 |  | 
|  | 17126 |  | 
|  | 17127 |  | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17128 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17129 | do | 
|  | 17130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17131 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17133 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17135 | else | 
|  | 17136 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17137 | /* confdefs.h.  */ | 
|  | 17138 | _ACEOF | 
|  | 17139 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17140 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17141 | /* end confdefs.h.  */ | 
|  | 17142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17143 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17144 | #define $ac_func innocuous_$ac_func | 
|  | 17145 |  | 
|  | 17146 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17147 | which can conflict with char $ac_func (); below. | 
|  | 17148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17149 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17150 |  | 
|  | 17151 | #ifdef __STDC__ | 
|  | 17152 | # include <limits.h> | 
|  | 17153 | #else | 
|  | 17154 | # include <assert.h> | 
|  | 17155 | #endif | 
|  | 17156 |  | 
|  | 17157 | #undef $ac_func | 
|  | 17158 |  | 
|  | 17159 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17160 | Use char because int might match the return type of a GCC | 
|  | 17161 | builtin and then its argument prototype would still apply.  */ | 
|  | 17162 | #ifdef __cplusplus | 
|  | 17163 | extern "C" | 
|  | 17164 | #endif | 
|  | 17165 | char $ac_func (); | 
|  | 17166 | /* The GNU C library defines this for functions which it implements | 
|  | 17167 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17168 | something starting with __ and the normal name is an alias.  */ | 
|  | 17169 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17170 | choke me | 
|  | 17171 | #endif | 
|  | 17172 |  | 
|  | 17173 | int | 
|  | 17174 | main () | 
|  | 17175 | { | 
|  | 17176 | return $ac_func (); | 
|  | 17177 | ; | 
|  | 17178 | return 0; | 
|  | 17179 | } | 
|  | 17180 | _ACEOF | 
|  | 17181 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17182 | if { (ac_try="$ac_link" | 
|  | 17183 | case "(($ac_try" in | 
|  | 17184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17185 | *) ac_try_echo=$ac_try;; | 
|  | 17186 | esac | 
|  | 17187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17188 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17189 | ac_status=$? | 
|  | 17190 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17191 | rm -f conftest.er1 | 
|  | 17192 | cat conftest.err >&5 | 
|  | 17193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17194 | (exit $ac_status); } && | 
|  | 17195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17196 | { (case "(($ac_try" in | 
|  | 17197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17198 | *) ac_try_echo=$ac_try;; | 
|  | 17199 | esac | 
|  | 17200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17201 | (eval "$ac_try") 2>&5 | 
|  | 17202 | ac_status=$? | 
|  | 17203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17204 | (exit $ac_status); }; } && | 
|  | 17205 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17206 | { (case "(($ac_try" in | 
|  | 17207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17208 | *) ac_try_echo=$ac_try;; | 
|  | 17209 | esac | 
|  | 17210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17211 | (eval "$ac_try") 2>&5 | 
|  | 17212 | ac_status=$? | 
|  | 17213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17214 | (exit $ac_status); }; }; then | 
|  | 17215 | eval "$as_ac_var=yes" | 
|  | 17216 | else | 
|  | 17217 | echo "$as_me: failed program was:" >&5 | 
|  | 17218 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17219 |  | 
|  | 17220 | eval "$as_ac_var=no" | 
|  | 17221 | fi | 
|  | 17222 |  | 
|  | 17223 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17224 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17225 | fi | 
|  | 17226 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17228 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17230 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17232 | _ACEOF | 
|  | 17233 |  | 
|  | 17234 | fi | 
|  | 17235 | done | 
|  | 17236 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17237 |  | 
|  | 17238 |  | 
|  | 17239 |  | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17240 | for ac_func in isatty mkdtemp mkstemp | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17241 | do | 
|  | 17242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17243 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17245 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17247 | else | 
|  | 17248 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17249 | /* confdefs.h.  */ | 
|  | 17250 | _ACEOF | 
|  | 17251 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17252 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17253 | /* end confdefs.h.  */ | 
|  | 17254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17255 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17256 | #define $ac_func innocuous_$ac_func | 
|  | 17257 |  | 
|  | 17258 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17259 | which can conflict with char $ac_func (); below. | 
|  | 17260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17261 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17262 |  | 
|  | 17263 | #ifdef __STDC__ | 
|  | 17264 | # include <limits.h> | 
|  | 17265 | #else | 
|  | 17266 | # include <assert.h> | 
|  | 17267 | #endif | 
|  | 17268 |  | 
|  | 17269 | #undef $ac_func | 
|  | 17270 |  | 
|  | 17271 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17272 | Use char because int might match the return type of a GCC | 
|  | 17273 | builtin and then its argument prototype would still apply.  */ | 
|  | 17274 | #ifdef __cplusplus | 
|  | 17275 | extern "C" | 
|  | 17276 | #endif | 
|  | 17277 | char $ac_func (); | 
|  | 17278 | /* The GNU C library defines this for functions which it implements | 
|  | 17279 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17280 | something starting with __ and the normal name is an alias.  */ | 
|  | 17281 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17282 | choke me | 
|  | 17283 | #endif | 
|  | 17284 |  | 
|  | 17285 | int | 
|  | 17286 | main () | 
|  | 17287 | { | 
|  | 17288 | return $ac_func (); | 
|  | 17289 | ; | 
|  | 17290 | return 0; | 
|  | 17291 | } | 
|  | 17292 | _ACEOF | 
|  | 17293 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17294 | if { (ac_try="$ac_link" | 
|  | 17295 | case "(($ac_try" in | 
|  | 17296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17297 | *) ac_try_echo=$ac_try;; | 
|  | 17298 | esac | 
|  | 17299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17300 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17301 | ac_status=$? | 
|  | 17302 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17303 | rm -f conftest.er1 | 
|  | 17304 | cat conftest.err >&5 | 
|  | 17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17306 | (exit $ac_status); } && | 
|  | 17307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17308 | { (case "(($ac_try" in | 
|  | 17309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17310 | *) ac_try_echo=$ac_try;; | 
|  | 17311 | esac | 
|  | 17312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17313 | (eval "$ac_try") 2>&5 | 
|  | 17314 | ac_status=$? | 
|  | 17315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17316 | (exit $ac_status); }; } && | 
|  | 17317 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17318 | { (case "(($ac_try" in | 
|  | 17319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17320 | *) ac_try_echo=$ac_try;; | 
|  | 17321 | esac | 
|  | 17322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17323 | (eval "$ac_try") 2>&5 | 
|  | 17324 | ac_status=$? | 
|  | 17325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17326 | (exit $ac_status); }; }; then | 
|  | 17327 | eval "$as_ac_var=yes" | 
|  | 17328 | else | 
|  | 17329 | echo "$as_me: failed program was:" >&5 | 
|  | 17330 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17331 |  | 
|  | 17332 | eval "$as_ac_var=no" | 
|  | 17333 | fi | 
|  | 17334 |  | 
|  | 17335 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17336 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17337 | fi | 
|  | 17338 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17340 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17342 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17344 | _ACEOF | 
|  | 17345 |  | 
|  | 17346 | fi | 
|  | 17347 | done | 
|  | 17348 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17349 |  | 
|  | 17350 |  | 
|  | 17351 |  | 
|  | 17352 |  | 
|  | 17353 |  | 
| Eric Christopher | dea3bda | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17354 |  | 
| Benjamin Kramer | e1effb0 | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17355 |  | 
|  | 17356 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17357 | do | 
|  | 17358 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17359 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17360 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17361 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17363 | else | 
|  | 17364 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17365 | /* confdefs.h.  */ | 
|  | 17366 | _ACEOF | 
|  | 17367 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17368 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17369 | /* end confdefs.h.  */ | 
|  | 17370 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17371 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17372 | #define $ac_func innocuous_$ac_func | 
|  | 17373 |  | 
|  | 17374 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17375 | which can conflict with char $ac_func (); below. | 
|  | 17376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17377 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17378 |  | 
|  | 17379 | #ifdef __STDC__ | 
|  | 17380 | # include <limits.h> | 
|  | 17381 | #else | 
|  | 17382 | # include <assert.h> | 
|  | 17383 | #endif | 
|  | 17384 |  | 
|  | 17385 | #undef $ac_func | 
|  | 17386 |  | 
|  | 17387 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17388 | Use char because int might match the return type of a GCC | 
|  | 17389 | builtin and then its argument prototype would still apply.  */ | 
|  | 17390 | #ifdef __cplusplus | 
|  | 17391 | extern "C" | 
|  | 17392 | #endif | 
|  | 17393 | char $ac_func (); | 
|  | 17394 | /* The GNU C library defines this for functions which it implements | 
|  | 17395 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17396 | something starting with __ and the normal name is an alias.  */ | 
|  | 17397 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17398 | choke me | 
|  | 17399 | #endif | 
|  | 17400 |  | 
|  | 17401 | int | 
|  | 17402 | main () | 
|  | 17403 | { | 
|  | 17404 | return $ac_func (); | 
|  | 17405 | ; | 
|  | 17406 | return 0; | 
|  | 17407 | } | 
|  | 17408 | _ACEOF | 
|  | 17409 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17410 | if { (ac_try="$ac_link" | 
|  | 17411 | case "(($ac_try" in | 
|  | 17412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17413 | *) ac_try_echo=$ac_try;; | 
|  | 17414 | esac | 
|  | 17415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17416 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17417 | ac_status=$? | 
|  | 17418 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17419 | rm -f conftest.er1 | 
|  | 17420 | cat conftest.err >&5 | 
|  | 17421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17422 | (exit $ac_status); } && | 
|  | 17423 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17424 | { (case "(($ac_try" in | 
|  | 17425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17426 | *) ac_try_echo=$ac_try;; | 
|  | 17427 | esac | 
|  | 17428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17429 | (eval "$ac_try") 2>&5 | 
|  | 17430 | ac_status=$? | 
|  | 17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17432 | (exit $ac_status); }; } && | 
|  | 17433 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17434 | { (case "(($ac_try" in | 
|  | 17435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17436 | *) ac_try_echo=$ac_try;; | 
|  | 17437 | esac | 
|  | 17438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17439 | (eval "$ac_try") 2>&5 | 
|  | 17440 | ac_status=$? | 
|  | 17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17442 | (exit $ac_status); }; }; then | 
|  | 17443 | eval "$as_ac_var=yes" | 
|  | 17444 | else | 
|  | 17445 | echo "$as_me: failed program was:" >&5 | 
|  | 17446 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17447 |  | 
|  | 17448 | eval "$as_ac_var=no" | 
|  | 17449 | fi | 
|  | 17450 |  | 
|  | 17451 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17452 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17453 | fi | 
|  | 17454 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17455 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17456 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17457 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17458 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17460 | _ACEOF | 
|  | 17461 |  | 
|  | 17462 | fi | 
|  | 17463 | done | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17464 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17465 |  | 
|  | 17466 |  | 
|  | 17467 |  | 
| Daniel Dunbar | 407a85e | 2012-05-05 16:36:16 +0000 | [diff] [blame] | 17468 |  | 
|  | 17469 | for ac_func in strerror strerror_r setenv arc4random | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17470 | do | 
|  | 17471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17472 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17474 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17476 | else | 
|  | 17477 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17478 | /* confdefs.h.  */ | 
|  | 17479 | _ACEOF | 
|  | 17480 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17481 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17482 | /* end confdefs.h.  */ | 
|  | 17483 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17484 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17485 | #define $ac_func innocuous_$ac_func | 
|  | 17486 |  | 
|  | 17487 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17488 | which can conflict with char $ac_func (); below. | 
|  | 17489 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17490 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17491 |  | 
|  | 17492 | #ifdef __STDC__ | 
|  | 17493 | # include <limits.h> | 
|  | 17494 | #else | 
|  | 17495 | # include <assert.h> | 
|  | 17496 | #endif | 
|  | 17497 |  | 
|  | 17498 | #undef $ac_func | 
|  | 17499 |  | 
|  | 17500 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17501 | Use char because int might match the return type of a GCC | 
|  | 17502 | builtin and then its argument prototype would still apply.  */ | 
|  | 17503 | #ifdef __cplusplus | 
|  | 17504 | extern "C" | 
|  | 17505 | #endif | 
|  | 17506 | char $ac_func (); | 
|  | 17507 | /* The GNU C library defines this for functions which it implements | 
|  | 17508 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17509 | something starting with __ and the normal name is an alias.  */ | 
|  | 17510 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17511 | choke me | 
|  | 17512 | #endif | 
|  | 17513 |  | 
|  | 17514 | int | 
|  | 17515 | main () | 
|  | 17516 | { | 
|  | 17517 | return $ac_func (); | 
|  | 17518 | ; | 
|  | 17519 | return 0; | 
|  | 17520 | } | 
|  | 17521 | _ACEOF | 
|  | 17522 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17523 | if { (ac_try="$ac_link" | 
|  | 17524 | case "(($ac_try" in | 
|  | 17525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17526 | *) ac_try_echo=$ac_try;; | 
|  | 17527 | esac | 
|  | 17528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17529 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17530 | ac_status=$? | 
|  | 17531 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17532 | rm -f conftest.er1 | 
|  | 17533 | cat conftest.err >&5 | 
|  | 17534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17535 | (exit $ac_status); } && | 
|  | 17536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17537 | { (case "(($ac_try" in | 
|  | 17538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17539 | *) ac_try_echo=$ac_try;; | 
|  | 17540 | esac | 
|  | 17541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17542 | (eval "$ac_try") 2>&5 | 
|  | 17543 | ac_status=$? | 
|  | 17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17545 | (exit $ac_status); }; } && | 
|  | 17546 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17547 | { (case "(($ac_try" in | 
|  | 17548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17549 | *) ac_try_echo=$ac_try;; | 
|  | 17550 | esac | 
|  | 17551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17552 | (eval "$ac_try") 2>&5 | 
|  | 17553 | ac_status=$? | 
|  | 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17555 | (exit $ac_status); }; }; then | 
|  | 17556 | eval "$as_ac_var=yes" | 
|  | 17557 | else | 
|  | 17558 | echo "$as_me: failed program was:" >&5 | 
|  | 17559 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17560 |  | 
|  | 17561 | eval "$as_ac_var=no" | 
|  | 17562 | fi | 
|  | 17563 |  | 
|  | 17564 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17565 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17566 | fi | 
|  | 17567 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17568 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17569 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17570 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17571 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17572 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17573 | _ACEOF | 
|  | 17574 |  | 
|  | 17575 | fi | 
|  | 17576 | done | 
|  | 17577 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17578 |  | 
|  | 17579 |  | 
|  | 17580 |  | 
|  | 17581 |  | 
| Chris Lattner | 8147902 | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17582 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17583 | do | 
|  | 17584 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17585 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17586 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17587 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17589 | else | 
|  | 17590 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17591 | /* confdefs.h.  */ | 
|  | 17592 | _ACEOF | 
|  | 17593 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17594 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17595 | /* end confdefs.h.  */ | 
|  | 17596 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17597 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17598 | #define $ac_func innocuous_$ac_func | 
|  | 17599 |  | 
|  | 17600 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17601 | which can conflict with char $ac_func (); below. | 
|  | 17602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17603 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17604 |  | 
|  | 17605 | #ifdef __STDC__ | 
|  | 17606 | # include <limits.h> | 
|  | 17607 | #else | 
|  | 17608 | # include <assert.h> | 
|  | 17609 | #endif | 
|  | 17610 |  | 
|  | 17611 | #undef $ac_func | 
|  | 17612 |  | 
|  | 17613 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17614 | Use char because int might match the return type of a GCC | 
|  | 17615 | builtin and then its argument prototype would still apply.  */ | 
|  | 17616 | #ifdef __cplusplus | 
|  | 17617 | extern "C" | 
|  | 17618 | #endif | 
|  | 17619 | char $ac_func (); | 
|  | 17620 | /* The GNU C library defines this for functions which it implements | 
|  | 17621 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17622 | something starting with __ and the normal name is an alias.  */ | 
|  | 17623 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17624 | choke me | 
|  | 17625 | #endif | 
|  | 17626 |  | 
|  | 17627 | int | 
|  | 17628 | main () | 
|  | 17629 | { | 
|  | 17630 | return $ac_func (); | 
|  | 17631 | ; | 
|  | 17632 | return 0; | 
|  | 17633 | } | 
|  | 17634 | _ACEOF | 
|  | 17635 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17636 | if { (ac_try="$ac_link" | 
|  | 17637 | case "(($ac_try" in | 
|  | 17638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17639 | *) ac_try_echo=$ac_try;; | 
|  | 17640 | esac | 
|  | 17641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17642 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17643 | ac_status=$? | 
|  | 17644 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17645 | rm -f conftest.er1 | 
|  | 17646 | cat conftest.err >&5 | 
|  | 17647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17648 | (exit $ac_status); } && | 
|  | 17649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17650 | { (case "(($ac_try" in | 
|  | 17651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17652 | *) ac_try_echo=$ac_try;; | 
|  | 17653 | esac | 
|  | 17654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17655 | (eval "$ac_try") 2>&5 | 
|  | 17656 | ac_status=$? | 
|  | 17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17658 | (exit $ac_status); }; } && | 
|  | 17659 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17660 | { (case "(($ac_try" in | 
|  | 17661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17662 | *) ac_try_echo=$ac_try;; | 
|  | 17663 | esac | 
|  | 17664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17665 | (eval "$ac_try") 2>&5 | 
|  | 17666 | ac_status=$? | 
|  | 17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17668 | (exit $ac_status); }; }; then | 
|  | 17669 | eval "$as_ac_var=yes" | 
|  | 17670 | else | 
|  | 17671 | echo "$as_me: failed program was:" >&5 | 
|  | 17672 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17673 |  | 
|  | 17674 | eval "$as_ac_var=no" | 
|  | 17675 | fi | 
|  | 17676 |  | 
|  | 17677 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17678 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17679 | fi | 
|  | 17680 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17681 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17682 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17683 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17684 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17686 | _ACEOF | 
|  | 17687 |  | 
|  | 17688 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17689 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17690 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17691 |  | 
|  | 17692 |  | 
|  | 17693 |  | 
|  | 17694 |  | 
| Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17695 |  | 
|  | 17696 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17697 | do | 
|  | 17698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17699 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17701 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17703 | else | 
|  | 17704 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17705 | /* confdefs.h.  */ | 
|  | 17706 | _ACEOF | 
|  | 17707 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17708 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17709 | /* end confdefs.h.  */ | 
|  | 17710 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17711 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17712 | #define $ac_func innocuous_$ac_func | 
|  | 17713 |  | 
|  | 17714 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17715 | which can conflict with char $ac_func (); below. | 
|  | 17716 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17717 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17718 |  | 
|  | 17719 | #ifdef __STDC__ | 
|  | 17720 | # include <limits.h> | 
|  | 17721 | #else | 
|  | 17722 | # include <assert.h> | 
|  | 17723 | #endif | 
|  | 17724 |  | 
|  | 17725 | #undef $ac_func | 
|  | 17726 |  | 
|  | 17727 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17728 | Use char because int might match the return type of a GCC | 
|  | 17729 | builtin and then its argument prototype would still apply.  */ | 
|  | 17730 | #ifdef __cplusplus | 
|  | 17731 | extern "C" | 
|  | 17732 | #endif | 
|  | 17733 | char $ac_func (); | 
|  | 17734 | /* The GNU C library defines this for functions which it implements | 
|  | 17735 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17736 | something starting with __ and the normal name is an alias.  */ | 
|  | 17737 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17738 | choke me | 
|  | 17739 | #endif | 
|  | 17740 |  | 
|  | 17741 | int | 
|  | 17742 | main () | 
|  | 17743 | { | 
|  | 17744 | return $ac_func (); | 
|  | 17745 | ; | 
|  | 17746 | return 0; | 
|  | 17747 | } | 
|  | 17748 | _ACEOF | 
|  | 17749 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17750 | if { (ac_try="$ac_link" | 
|  | 17751 | case "(($ac_try" in | 
|  | 17752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17753 | *) ac_try_echo=$ac_try;; | 
|  | 17754 | esac | 
|  | 17755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17756 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17757 | ac_status=$? | 
|  | 17758 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17759 | rm -f conftest.er1 | 
|  | 17760 | cat conftest.err >&5 | 
|  | 17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17762 | (exit $ac_status); } && | 
|  | 17763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17764 | { (case "(($ac_try" in | 
|  | 17765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17766 | *) ac_try_echo=$ac_try;; | 
|  | 17767 | esac | 
|  | 17768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17769 | (eval "$ac_try") 2>&5 | 
|  | 17770 | ac_status=$? | 
|  | 17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17772 | (exit $ac_status); }; } && | 
|  | 17773 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17774 | { (case "(($ac_try" in | 
|  | 17775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17776 | *) ac_try_echo=$ac_try;; | 
|  | 17777 | esac | 
|  | 17778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17779 | (eval "$ac_try") 2>&5 | 
|  | 17780 | ac_status=$? | 
|  | 17781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17782 | (exit $ac_status); }; }; then | 
|  | 17783 | eval "$as_ac_var=yes" | 
|  | 17784 | else | 
|  | 17785 | echo "$as_me: failed program was:" >&5 | 
|  | 17786 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17787 |  | 
|  | 17788 | eval "$as_ac_var=no" | 
|  | 17789 | fi | 
|  | 17790 |  | 
|  | 17791 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17792 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17793 | fi | 
|  | 17794 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17796 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17797 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17798 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17799 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17800 | _ACEOF | 
|  | 17801 |  | 
|  | 17802 | fi | 
|  | 17803 | done | 
|  | 17804 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17805 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
|  | 17806 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } | 
|  | 17807 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
|  | 17808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17809 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17810 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17811 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17815 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17816 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17817 | llvmac_cv_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17818 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17819 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17820 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17821 | /* confdefs.h.  */ | 
|  | 17822 | _ACEOF | 
|  | 17823 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17824 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17825 | /* end confdefs.h.  */ | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17826 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17827 | #include <stdio.h> | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17828 | #include <stdlib.h> | 
|  | 17829 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17830 | int | 
|  | 17831 | main () | 
|  | 17832 | { | 
|  | 17833 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17834 | volatile double A, B; | 
|  | 17835 | char Buffer[100]; | 
|  | 17836 | A = 1; | 
|  | 17837 | A /= 10.0; | 
|  | 17838 | sprintf(Buffer, "%a", A); | 
|  | 17839 | B = atof(Buffer); | 
|  | 17840 | if (A != B) | 
|  | 17841 | return (1); | 
|  | 17842 | if (A != 0x1.999999999999ap-4) | 
|  | 17843 | return (1); | 
|  | 17844 | return (0); | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17845 | ; | 
|  | 17846 | return 0; | 
|  | 17847 | } | 
|  | 17848 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17849 | rm -f conftest$ac_exeext | 
|  | 17850 | if { (ac_try="$ac_link" | 
|  | 17851 | case "(($ac_try" in | 
|  | 17852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17853 | *) ac_try_echo=$ac_try;; | 
|  | 17854 | esac | 
|  | 17855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17856 | (eval "$ac_link") 2>&5 | 
|  | 17857 | ac_status=$? | 
|  | 17858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 17860 | { (case "(($ac_try" in | 
|  | 17861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17862 | *) ac_try_echo=$ac_try;; | 
|  | 17863 | esac | 
|  | 17864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17865 | (eval "$ac_try") 2>&5 | 
|  | 17866 | ac_status=$? | 
|  | 17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17868 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17869 | llvm_cv_c_printf_a=yes | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17870 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17871 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 17872 | echo "$as_me: failed program was:" >&5 | 
|  | 17873 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17874 |  | 
|  | 17875 | ( exit $ac_status ) | 
|  | 17876 | llvmac_cv_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17877 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17878 | 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] | 17879 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17880 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17881 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17882 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17883 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17887 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17888 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17889 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
|  | 17890 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17891 | if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17892 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17893 | cat >>confdefs.h <<\_ACEOF | 
|  | 17894 | #define HAVE_PRINTF_A 1 | 
|  | 17895 | _ACEOF | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17896 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17897 | fi | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17898 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17899 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17900 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
|  | 17901 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } | 
|  | 17902 | if test "${ac_cv_func_rand48+set}" = set; then | 
|  | 17903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17904 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17905 | ac_ext=cpp | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17906 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 17907 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17908 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17909 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 17910 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17911 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17912 | /* confdefs.h.  */ | 
|  | 17913 | _ACEOF | 
|  | 17914 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17915 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17916 | /* end confdefs.h.  */ | 
|  | 17917 | #include <stdlib.h> | 
|  | 17918 | int | 
|  | 17919 | main () | 
|  | 17920 | { | 
|  | 17921 | srand48(0);lrand48();drand48(); | 
|  | 17922 | ; | 
|  | 17923 | return 0; | 
|  | 17924 | } | 
|  | 17925 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17926 | rm -f conftest.$ac_objext | 
|  | 17927 | if { (ac_try="$ac_compile" | 
|  | 17928 | case "(($ac_try" in | 
|  | 17929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17930 | *) ac_try_echo=$ac_try;; | 
|  | 17931 | esac | 
|  | 17932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17933 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 17934 | ac_status=$? | 
|  | 17935 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17936 | rm -f conftest.er1 | 
|  | 17937 | cat conftest.err >&5 | 
|  | 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17939 | (exit $ac_status); } && | 
|  | 17940 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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); }; } && | 
|  | 17950 | { ac_try='test -s conftest.$ac_objext' | 
|  | 17951 | { (case "(($ac_try" in | 
|  | 17952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17953 | *) ac_try_echo=$ac_try;; | 
|  | 17954 | esac | 
|  | 17955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17956 | (eval "$ac_try") 2>&5 | 
|  | 17957 | ac_status=$? | 
|  | 17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17959 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17960 | ac_cv_func_rand48=yes | 
|  | 17961 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17962 | echo "$as_me: failed program was:" >&5 | 
|  | 17963 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17964 |  | 
|  | 17965 | ac_cv_func_rand48=no | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17966 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17967 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17969 | ac_ext=c | 
|  | 17970 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17974 |  | 
|  | 17975 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17976 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
|  | 17977 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17978 |  | 
|  | 17979 | if test "$ac_cv_func_rand48" = "yes" ; then | 
|  | 17980 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17981 | cat >>confdefs.h <<\_ACEOF | 
|  | 17982 | #define HAVE_RAND48 1 | 
|  | 17983 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17984 |  | 
|  | 17985 | fi | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17986 |  | 
|  | 17987 |  | 
| NAKAMURA Takumi | 18911180 | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17988 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 | 
|  | 17989 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } | 
|  | 17990 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then | 
|  | 17991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17992 | else | 
|  | 17993 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17994 | /* confdefs.h.  */ | 
|  | 17995 | _ACEOF | 
|  | 17996 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17997 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17998 | /* end confdefs.h.  */ | 
|  | 17999 | $ac_includes_default | 
|  | 18000 | int | 
|  | 18001 | main () | 
|  | 18002 | { | 
|  | 18003 | #ifndef strerror_s | 
|  | 18004 | char *p = (char *) strerror_s; | 
|  | 18005 | return !p; | 
|  | 18006 | #endif | 
|  | 18007 |  | 
|  | 18008 | ; | 
|  | 18009 | return 0; | 
|  | 18010 | } | 
|  | 18011 | _ACEOF | 
|  | 18012 | rm -f conftest.$ac_objext | 
|  | 18013 | if { (ac_try="$ac_compile" | 
|  | 18014 | case "(($ac_try" in | 
|  | 18015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18016 | *) ac_try_echo=$ac_try;; | 
|  | 18017 | esac | 
|  | 18018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18019 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 18020 | ac_status=$? | 
|  | 18021 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18022 | rm -f conftest.er1 | 
|  | 18023 | cat conftest.err >&5 | 
|  | 18024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18025 | (exit $ac_status); } && | 
|  | 18026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18027 | { (case "(($ac_try" in | 
|  | 18028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18029 | *) ac_try_echo=$ac_try;; | 
|  | 18030 | esac | 
|  | 18031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18032 | (eval "$ac_try") 2>&5 | 
|  | 18033 | ac_status=$? | 
|  | 18034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18035 | (exit $ac_status); }; } && | 
|  | 18036 | { ac_try='test -s conftest.$ac_objext' | 
|  | 18037 | { (case "(($ac_try" in | 
|  | 18038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18039 | *) ac_try_echo=$ac_try;; | 
|  | 18040 | esac | 
|  | 18041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18042 | (eval "$ac_try") 2>&5 | 
|  | 18043 | ac_status=$? | 
|  | 18044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18045 | (exit $ac_status); }; }; then | 
|  | 18046 | ac_cv_have_decl_strerror_s=yes | 
|  | 18047 | else | 
|  | 18048 | echo "$as_me: failed program was:" >&5 | 
|  | 18049 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18050 |  | 
|  | 18051 | ac_cv_have_decl_strerror_s=no | 
|  | 18052 | fi | 
|  | 18053 |  | 
|  | 18054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 18055 | fi | 
|  | 18056 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 | 
|  | 18057 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } | 
|  | 18058 | if test $ac_cv_have_decl_strerror_s = yes; then | 
|  | 18059 |  | 
|  | 18060 | cat >>confdefs.h <<_ACEOF | 
|  | 18061 | #define HAVE_DECL_STRERROR_S 1 | 
|  | 18062 | _ACEOF | 
|  | 18063 |  | 
|  | 18064 |  | 
|  | 18065 | else | 
|  | 18066 | cat >>confdefs.h <<_ACEOF | 
|  | 18067 | #define HAVE_DECL_STRERROR_S 0 | 
|  | 18068 | _ACEOF | 
|  | 18069 |  | 
|  | 18070 |  | 
|  | 18071 | fi | 
|  | 18072 |  | 
|  | 18073 |  | 
|  | 18074 |  | 
| NAKAMURA Takumi | 03a541f | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 18075 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 18076 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 | 
|  | 18077 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } | 
|  | 18078 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then | 
|  | 18079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18080 | else | 
|  | 18081 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18082 | LIBS="-lgcc  $LIBS" | 
|  | 18083 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18084 | /* confdefs.h.  */ | 
|  | 18085 | _ACEOF | 
|  | 18086 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18087 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18088 | /* end confdefs.h.  */ | 
|  | 18089 |  | 
|  | 18090 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18091 | Use char because int might match the return type of a GCC | 
|  | 18092 | builtin and then its argument prototype would still apply.  */ | 
|  | 18093 | #ifdef __cplusplus | 
|  | 18094 | extern "C" | 
|  | 18095 | #endif | 
|  | 18096 | char _alloca (); | 
|  | 18097 | int | 
|  | 18098 | main () | 
|  | 18099 | { | 
|  | 18100 | return _alloca (); | 
|  | 18101 | ; | 
|  | 18102 | return 0; | 
|  | 18103 | } | 
|  | 18104 | _ACEOF | 
|  | 18105 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18106 | if { (ac_try="$ac_link" | 
|  | 18107 | case "(($ac_try" in | 
|  | 18108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18109 | *) ac_try_echo=$ac_try;; | 
|  | 18110 | esac | 
|  | 18111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18112 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18113 | ac_status=$? | 
|  | 18114 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18115 | rm -f conftest.er1 | 
|  | 18116 | cat conftest.err >&5 | 
|  | 18117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18118 | (exit $ac_status); } && | 
|  | 18119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18120 | { (case "(($ac_try" in | 
|  | 18121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18122 | *) ac_try_echo=$ac_try;; | 
|  | 18123 | esac | 
|  | 18124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18125 | (eval "$ac_try") 2>&5 | 
|  | 18126 | ac_status=$? | 
|  | 18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18128 | (exit $ac_status); }; } && | 
|  | 18129 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18130 | { (case "(($ac_try" in | 
|  | 18131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18132 | *) ac_try_echo=$ac_try;; | 
|  | 18133 | esac | 
|  | 18134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18135 | (eval "$ac_try") 2>&5 | 
|  | 18136 | ac_status=$? | 
|  | 18137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18138 | (exit $ac_status); }; }; then | 
|  | 18139 | ac_cv_lib_gcc__alloca=yes | 
|  | 18140 | else | 
|  | 18141 | echo "$as_me: failed program was:" >&5 | 
|  | 18142 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18143 |  | 
|  | 18144 | ac_cv_lib_gcc__alloca=no | 
|  | 18145 | fi | 
|  | 18146 |  | 
|  | 18147 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18148 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18149 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18150 | fi | 
|  | 18151 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 | 
|  | 18152 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } | 
|  | 18153 | if test $ac_cv_lib_gcc__alloca = yes; then | 
|  | 18154 |  | 
|  | 18155 | cat >>confdefs.h <<\_ACEOF | 
|  | 18156 | #define HAVE__ALLOCA 1 | 
|  | 18157 | _ACEOF | 
|  | 18158 |  | 
|  | 18159 | fi | 
|  | 18160 |  | 
|  | 18161 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 | 
|  | 18162 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } | 
|  | 18163 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then | 
|  | 18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18165 | else | 
|  | 18166 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18167 | LIBS="-lgcc  $LIBS" | 
|  | 18168 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18169 | /* confdefs.h.  */ | 
|  | 18170 | _ACEOF | 
|  | 18171 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18172 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18173 | /* end confdefs.h.  */ | 
|  | 18174 |  | 
|  | 18175 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18176 | Use char because int might match the return type of a GCC | 
|  | 18177 | builtin and then its argument prototype would still apply.  */ | 
|  | 18178 | #ifdef __cplusplus | 
|  | 18179 | extern "C" | 
|  | 18180 | #endif | 
|  | 18181 | char __alloca (); | 
|  | 18182 | int | 
|  | 18183 | main () | 
|  | 18184 | { | 
|  | 18185 | return __alloca (); | 
|  | 18186 | ; | 
|  | 18187 | return 0; | 
|  | 18188 | } | 
|  | 18189 | _ACEOF | 
|  | 18190 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18191 | if { (ac_try="$ac_link" | 
|  | 18192 | case "(($ac_try" in | 
|  | 18193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18194 | *) ac_try_echo=$ac_try;; | 
|  | 18195 | esac | 
|  | 18196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18197 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18198 | ac_status=$? | 
|  | 18199 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18200 | rm -f conftest.er1 | 
|  | 18201 | cat conftest.err >&5 | 
|  | 18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18203 | (exit $ac_status); } && | 
|  | 18204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18205 | { (case "(($ac_try" in | 
|  | 18206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18207 | *) ac_try_echo=$ac_try;; | 
|  | 18208 | esac | 
|  | 18209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18210 | (eval "$ac_try") 2>&5 | 
|  | 18211 | ac_status=$? | 
|  | 18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18213 | (exit $ac_status); }; } && | 
|  | 18214 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18215 | { (case "(($ac_try" in | 
|  | 18216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18217 | *) ac_try_echo=$ac_try;; | 
|  | 18218 | esac | 
|  | 18219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18220 | (eval "$ac_try") 2>&5 | 
|  | 18221 | ac_status=$? | 
|  | 18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18223 | (exit $ac_status); }; }; then | 
|  | 18224 | ac_cv_lib_gcc___alloca=yes | 
|  | 18225 | else | 
|  | 18226 | echo "$as_me: failed program was:" >&5 | 
|  | 18227 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18228 |  | 
|  | 18229 | ac_cv_lib_gcc___alloca=no | 
|  | 18230 | fi | 
|  | 18231 |  | 
|  | 18232 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18233 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18234 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18235 | fi | 
|  | 18236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 | 
|  | 18237 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } | 
|  | 18238 | if test $ac_cv_lib_gcc___alloca = yes; then | 
|  | 18239 |  | 
|  | 18240 | cat >>confdefs.h <<\_ACEOF | 
|  | 18241 | #define HAVE___ALLOCA 1 | 
|  | 18242 | _ACEOF | 
|  | 18243 |  | 
|  | 18244 | fi | 
|  | 18245 |  | 
|  | 18246 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 | 
|  | 18247 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } | 
|  | 18248 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then | 
|  | 18249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18250 | else | 
|  | 18251 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18252 | LIBS="-lgcc  $LIBS" | 
|  | 18253 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18254 | /* confdefs.h.  */ | 
|  | 18255 | _ACEOF | 
|  | 18256 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18257 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18258 | /* end confdefs.h.  */ | 
|  | 18259 |  | 
|  | 18260 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18261 | Use char because int might match the return type of a GCC | 
|  | 18262 | builtin and then its argument prototype would still apply.  */ | 
|  | 18263 | #ifdef __cplusplus | 
|  | 18264 | extern "C" | 
|  | 18265 | #endif | 
|  | 18266 | char __chkstk (); | 
|  | 18267 | int | 
|  | 18268 | main () | 
|  | 18269 | { | 
|  | 18270 | return __chkstk (); | 
|  | 18271 | ; | 
|  | 18272 | return 0; | 
|  | 18273 | } | 
|  | 18274 | _ACEOF | 
|  | 18275 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18276 | if { (ac_try="$ac_link" | 
|  | 18277 | case "(($ac_try" in | 
|  | 18278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18279 | *) ac_try_echo=$ac_try;; | 
|  | 18280 | esac | 
|  | 18281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18282 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18283 | ac_status=$? | 
|  | 18284 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18285 | rm -f conftest.er1 | 
|  | 18286 | cat conftest.err >&5 | 
|  | 18287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18288 | (exit $ac_status); } && | 
|  | 18289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18290 | { (case "(($ac_try" in | 
|  | 18291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18292 | *) ac_try_echo=$ac_try;; | 
|  | 18293 | esac | 
|  | 18294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18295 | (eval "$ac_try") 2>&5 | 
|  | 18296 | ac_status=$? | 
|  | 18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18298 | (exit $ac_status); }; } && | 
|  | 18299 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18300 | { (case "(($ac_try" in | 
|  | 18301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18302 | *) ac_try_echo=$ac_try;; | 
|  | 18303 | esac | 
|  | 18304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18305 | (eval "$ac_try") 2>&5 | 
|  | 18306 | ac_status=$? | 
|  | 18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18308 | (exit $ac_status); }; }; then | 
|  | 18309 | ac_cv_lib_gcc___chkstk=yes | 
|  | 18310 | else | 
|  | 18311 | echo "$as_me: failed program was:" >&5 | 
|  | 18312 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18313 |  | 
|  | 18314 | ac_cv_lib_gcc___chkstk=no | 
|  | 18315 | fi | 
|  | 18316 |  | 
|  | 18317 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18318 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18319 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18320 | fi | 
|  | 18321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 | 
|  | 18322 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } | 
|  | 18323 | if test $ac_cv_lib_gcc___chkstk = yes; then | 
|  | 18324 |  | 
|  | 18325 | cat >>confdefs.h <<\_ACEOF | 
|  | 18326 | #define HAVE___CHKSTK 1 | 
|  | 18327 | _ACEOF | 
|  | 18328 |  | 
|  | 18329 | fi | 
|  | 18330 |  | 
|  | 18331 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 | 
|  | 18332 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } | 
|  | 18333 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then | 
|  | 18334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18335 | else | 
|  | 18336 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18337 | LIBS="-lgcc  $LIBS" | 
|  | 18338 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18339 | /* confdefs.h.  */ | 
|  | 18340 | _ACEOF | 
|  | 18341 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18342 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18343 | /* end confdefs.h.  */ | 
|  | 18344 |  | 
|  | 18345 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18346 | Use char because int might match the return type of a GCC | 
|  | 18347 | builtin and then its argument prototype would still apply.  */ | 
|  | 18348 | #ifdef __cplusplus | 
|  | 18349 | extern "C" | 
|  | 18350 | #endif | 
|  | 18351 | char ___chkstk (); | 
|  | 18352 | int | 
|  | 18353 | main () | 
|  | 18354 | { | 
|  | 18355 | return ___chkstk (); | 
|  | 18356 | ; | 
|  | 18357 | return 0; | 
|  | 18358 | } | 
|  | 18359 | _ACEOF | 
|  | 18360 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18361 | if { (ac_try="$ac_link" | 
|  | 18362 | case "(($ac_try" in | 
|  | 18363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18364 | *) ac_try_echo=$ac_try;; | 
|  | 18365 | esac | 
|  | 18366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18367 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18368 | ac_status=$? | 
|  | 18369 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18370 | rm -f conftest.er1 | 
|  | 18371 | cat conftest.err >&5 | 
|  | 18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18373 | (exit $ac_status); } && | 
|  | 18374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18375 | { (case "(($ac_try" in | 
|  | 18376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18377 | *) ac_try_echo=$ac_try;; | 
|  | 18378 | esac | 
|  | 18379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18380 | (eval "$ac_try") 2>&5 | 
|  | 18381 | ac_status=$? | 
|  | 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18383 | (exit $ac_status); }; } && | 
|  | 18384 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18385 | { (case "(($ac_try" in | 
|  | 18386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18387 | *) ac_try_echo=$ac_try;; | 
|  | 18388 | esac | 
|  | 18389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18390 | (eval "$ac_try") 2>&5 | 
|  | 18391 | ac_status=$? | 
|  | 18392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18393 | (exit $ac_status); }; }; then | 
|  | 18394 | ac_cv_lib_gcc____chkstk=yes | 
|  | 18395 | else | 
|  | 18396 | echo "$as_me: failed program was:" >&5 | 
|  | 18397 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18398 |  | 
|  | 18399 | ac_cv_lib_gcc____chkstk=no | 
|  | 18400 | fi | 
|  | 18401 |  | 
|  | 18402 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18403 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18404 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18405 | fi | 
|  | 18406 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 | 
|  | 18407 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } | 
|  | 18408 | if test $ac_cv_lib_gcc____chkstk = yes; then | 
|  | 18409 |  | 
|  | 18410 | cat >>confdefs.h <<\_ACEOF | 
|  | 18411 | #define HAVE____CHKSTK 1 | 
|  | 18412 | _ACEOF | 
|  | 18413 |  | 
|  | 18414 | fi | 
|  | 18415 |  | 
|  | 18416 |  | 
|  | 18417 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 | 
|  | 18418 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18419 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then | 
|  | 18420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18421 | else | 
|  | 18422 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18423 | LIBS="-lgcc  $LIBS" | 
|  | 18424 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18425 | /* confdefs.h.  */ | 
|  | 18426 | _ACEOF | 
|  | 18427 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18428 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18429 | /* end confdefs.h.  */ | 
|  | 18430 |  | 
|  | 18431 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18432 | Use char because int might match the return type of a GCC | 
|  | 18433 | builtin and then its argument prototype would still apply.  */ | 
|  | 18434 | #ifdef __cplusplus | 
|  | 18435 | extern "C" | 
|  | 18436 | #endif | 
|  | 18437 | char __ashldi3 (); | 
|  | 18438 | int | 
|  | 18439 | main () | 
|  | 18440 | { | 
|  | 18441 | return __ashldi3 (); | 
|  | 18442 | ; | 
|  | 18443 | return 0; | 
|  | 18444 | } | 
|  | 18445 | _ACEOF | 
|  | 18446 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18447 | if { (ac_try="$ac_link" | 
|  | 18448 | case "(($ac_try" in | 
|  | 18449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18450 | *) ac_try_echo=$ac_try;; | 
|  | 18451 | esac | 
|  | 18452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18453 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18454 | ac_status=$? | 
|  | 18455 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18456 | rm -f conftest.er1 | 
|  | 18457 | cat conftest.err >&5 | 
|  | 18458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18459 | (exit $ac_status); } && | 
|  | 18460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18461 | { (case "(($ac_try" in | 
|  | 18462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18463 | *) ac_try_echo=$ac_try;; | 
|  | 18464 | esac | 
|  | 18465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18466 | (eval "$ac_try") 2>&5 | 
|  | 18467 | ac_status=$? | 
|  | 18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18469 | (exit $ac_status); }; } && | 
|  | 18470 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18471 | { (case "(($ac_try" in | 
|  | 18472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18473 | *) ac_try_echo=$ac_try;; | 
|  | 18474 | esac | 
|  | 18475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18476 | (eval "$ac_try") 2>&5 | 
|  | 18477 | ac_status=$? | 
|  | 18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18479 | (exit $ac_status); }; }; then | 
|  | 18480 | ac_cv_lib_gcc___ashldi3=yes | 
|  | 18481 | else | 
|  | 18482 | echo "$as_me: failed program was:" >&5 | 
|  | 18483 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18484 |  | 
|  | 18485 | ac_cv_lib_gcc___ashldi3=no | 
|  | 18486 | fi | 
|  | 18487 |  | 
|  | 18488 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18489 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18490 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18491 | fi | 
|  | 18492 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 | 
|  | 18493 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } | 
|  | 18494 | if test $ac_cv_lib_gcc___ashldi3 = yes; then | 
|  | 18495 |  | 
|  | 18496 | cat >>confdefs.h <<\_ACEOF | 
|  | 18497 | #define HAVE___ASHLDI3 1 | 
|  | 18498 | _ACEOF | 
|  | 18499 |  | 
|  | 18500 | fi | 
|  | 18501 |  | 
|  | 18502 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 | 
|  | 18503 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18504 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then | 
|  | 18505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18506 | else | 
|  | 18507 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18508 | LIBS="-lgcc  $LIBS" | 
|  | 18509 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18510 | /* confdefs.h.  */ | 
|  | 18511 | _ACEOF | 
|  | 18512 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18513 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18514 | /* end confdefs.h.  */ | 
|  | 18515 |  | 
|  | 18516 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18517 | Use char because int might match the return type of a GCC | 
|  | 18518 | builtin and then its argument prototype would still apply.  */ | 
|  | 18519 | #ifdef __cplusplus | 
|  | 18520 | extern "C" | 
|  | 18521 | #endif | 
|  | 18522 | char __ashrdi3 (); | 
|  | 18523 | int | 
|  | 18524 | main () | 
|  | 18525 | { | 
|  | 18526 | return __ashrdi3 (); | 
|  | 18527 | ; | 
|  | 18528 | return 0; | 
|  | 18529 | } | 
|  | 18530 | _ACEOF | 
|  | 18531 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18532 | if { (ac_try="$ac_link" | 
|  | 18533 | case "(($ac_try" in | 
|  | 18534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18535 | *) ac_try_echo=$ac_try;; | 
|  | 18536 | esac | 
|  | 18537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18538 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18539 | ac_status=$? | 
|  | 18540 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18541 | rm -f conftest.er1 | 
|  | 18542 | cat conftest.err >&5 | 
|  | 18543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18544 | (exit $ac_status); } && | 
|  | 18545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18546 | { (case "(($ac_try" in | 
|  | 18547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18548 | *) ac_try_echo=$ac_try;; | 
|  | 18549 | esac | 
|  | 18550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18551 | (eval "$ac_try") 2>&5 | 
|  | 18552 | ac_status=$? | 
|  | 18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18554 | (exit $ac_status); }; } && | 
|  | 18555 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18556 | { (case "(($ac_try" in | 
|  | 18557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18558 | *) ac_try_echo=$ac_try;; | 
|  | 18559 | esac | 
|  | 18560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18561 | (eval "$ac_try") 2>&5 | 
|  | 18562 | ac_status=$? | 
|  | 18563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18564 | (exit $ac_status); }; }; then | 
|  | 18565 | ac_cv_lib_gcc___ashrdi3=yes | 
|  | 18566 | else | 
|  | 18567 | echo "$as_me: failed program was:" >&5 | 
|  | 18568 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18569 |  | 
|  | 18570 | ac_cv_lib_gcc___ashrdi3=no | 
|  | 18571 | fi | 
|  | 18572 |  | 
|  | 18573 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18574 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18575 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18576 | fi | 
|  | 18577 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 | 
|  | 18578 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } | 
|  | 18579 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then | 
|  | 18580 |  | 
|  | 18581 | cat >>confdefs.h <<\_ACEOF | 
|  | 18582 | #define HAVE___ASHRDI3 1 | 
|  | 18583 | _ACEOF | 
|  | 18584 |  | 
|  | 18585 | fi | 
|  | 18586 |  | 
|  | 18587 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 | 
|  | 18588 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18589 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then | 
|  | 18590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18591 | else | 
|  | 18592 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18593 | LIBS="-lgcc  $LIBS" | 
|  | 18594 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18595 | /* confdefs.h.  */ | 
|  | 18596 | _ACEOF | 
|  | 18597 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18598 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18599 | /* end confdefs.h.  */ | 
|  | 18600 |  | 
|  | 18601 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18602 | Use char because int might match the return type of a GCC | 
|  | 18603 | builtin and then its argument prototype would still apply.  */ | 
|  | 18604 | #ifdef __cplusplus | 
|  | 18605 | extern "C" | 
|  | 18606 | #endif | 
|  | 18607 | char __divdi3 (); | 
|  | 18608 | int | 
|  | 18609 | main () | 
|  | 18610 | { | 
|  | 18611 | return __divdi3 (); | 
|  | 18612 | ; | 
|  | 18613 | return 0; | 
|  | 18614 | } | 
|  | 18615 | _ACEOF | 
|  | 18616 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18617 | if { (ac_try="$ac_link" | 
|  | 18618 | case "(($ac_try" in | 
|  | 18619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18620 | *) ac_try_echo=$ac_try;; | 
|  | 18621 | esac | 
|  | 18622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18623 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18624 | ac_status=$? | 
|  | 18625 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18626 | rm -f conftest.er1 | 
|  | 18627 | cat conftest.err >&5 | 
|  | 18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18629 | (exit $ac_status); } && | 
|  | 18630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18631 | { (case "(($ac_try" in | 
|  | 18632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18633 | *) ac_try_echo=$ac_try;; | 
|  | 18634 | esac | 
|  | 18635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18636 | (eval "$ac_try") 2>&5 | 
|  | 18637 | ac_status=$? | 
|  | 18638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18639 | (exit $ac_status); }; } && | 
|  | 18640 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18641 | { (case "(($ac_try" in | 
|  | 18642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18643 | *) ac_try_echo=$ac_try;; | 
|  | 18644 | esac | 
|  | 18645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18646 | (eval "$ac_try") 2>&5 | 
|  | 18647 | ac_status=$? | 
|  | 18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18649 | (exit $ac_status); }; }; then | 
|  | 18650 | ac_cv_lib_gcc___divdi3=yes | 
|  | 18651 | else | 
|  | 18652 | echo "$as_me: failed program was:" >&5 | 
|  | 18653 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18654 |  | 
|  | 18655 | ac_cv_lib_gcc___divdi3=no | 
|  | 18656 | fi | 
|  | 18657 |  | 
|  | 18658 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18659 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18660 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18661 | fi | 
|  | 18662 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 | 
|  | 18663 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } | 
|  | 18664 | if test $ac_cv_lib_gcc___divdi3 = yes; then | 
|  | 18665 |  | 
|  | 18666 | cat >>confdefs.h <<\_ACEOF | 
|  | 18667 | #define HAVE___DIVDI3 1 | 
|  | 18668 | _ACEOF | 
|  | 18669 |  | 
|  | 18670 | fi | 
|  | 18671 |  | 
|  | 18672 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 | 
|  | 18673 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } | 
|  | 18674 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then | 
|  | 18675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18676 | else | 
|  | 18677 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18678 | LIBS="-lgcc  $LIBS" | 
|  | 18679 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18680 | /* confdefs.h.  */ | 
|  | 18681 | _ACEOF | 
|  | 18682 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18683 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18684 | /* end confdefs.h.  */ | 
|  | 18685 |  | 
|  | 18686 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18687 | Use char because int might match the return type of a GCC | 
|  | 18688 | builtin and then its argument prototype would still apply.  */ | 
|  | 18689 | #ifdef __cplusplus | 
|  | 18690 | extern "C" | 
|  | 18691 | #endif | 
|  | 18692 | char __fixdfdi (); | 
|  | 18693 | int | 
|  | 18694 | main () | 
|  | 18695 | { | 
|  | 18696 | return __fixdfdi (); | 
|  | 18697 | ; | 
|  | 18698 | return 0; | 
|  | 18699 | } | 
|  | 18700 | _ACEOF | 
|  | 18701 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18702 | if { (ac_try="$ac_link" | 
|  | 18703 | case "(($ac_try" in | 
|  | 18704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18705 | *) ac_try_echo=$ac_try;; | 
|  | 18706 | esac | 
|  | 18707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18708 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18709 | ac_status=$? | 
|  | 18710 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18711 | rm -f conftest.er1 | 
|  | 18712 | cat conftest.err >&5 | 
|  | 18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18714 | (exit $ac_status); } && | 
|  | 18715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18716 | { (case "(($ac_try" in | 
|  | 18717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18718 | *) ac_try_echo=$ac_try;; | 
|  | 18719 | esac | 
|  | 18720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18721 | (eval "$ac_try") 2>&5 | 
|  | 18722 | ac_status=$? | 
|  | 18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18724 | (exit $ac_status); }; } && | 
|  | 18725 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18726 | { (case "(($ac_try" in | 
|  | 18727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18728 | *) ac_try_echo=$ac_try;; | 
|  | 18729 | esac | 
|  | 18730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18731 | (eval "$ac_try") 2>&5 | 
|  | 18732 | ac_status=$? | 
|  | 18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18734 | (exit $ac_status); }; }; then | 
|  | 18735 | ac_cv_lib_gcc___fixdfdi=yes | 
|  | 18736 | else | 
|  | 18737 | echo "$as_me: failed program was:" >&5 | 
|  | 18738 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18739 |  | 
|  | 18740 | ac_cv_lib_gcc___fixdfdi=no | 
|  | 18741 | fi | 
|  | 18742 |  | 
|  | 18743 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18744 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18745 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18746 | fi | 
|  | 18747 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 | 
|  | 18748 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } | 
|  | 18749 | if test $ac_cv_lib_gcc___fixdfdi = yes; then | 
|  | 18750 |  | 
|  | 18751 | cat >>confdefs.h <<\_ACEOF | 
|  | 18752 | #define HAVE___FIXDFDI 1 | 
|  | 18753 | _ACEOF | 
|  | 18754 |  | 
|  | 18755 | fi | 
|  | 18756 |  | 
|  | 18757 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 | 
|  | 18758 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } | 
|  | 18759 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then | 
|  | 18760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18761 | else | 
|  | 18762 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18763 | LIBS="-lgcc  $LIBS" | 
|  | 18764 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18765 | /* confdefs.h.  */ | 
|  | 18766 | _ACEOF | 
|  | 18767 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18768 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18769 | /* end confdefs.h.  */ | 
|  | 18770 |  | 
|  | 18771 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18772 | Use char because int might match the return type of a GCC | 
|  | 18773 | builtin and then its argument prototype would still apply.  */ | 
|  | 18774 | #ifdef __cplusplus | 
|  | 18775 | extern "C" | 
|  | 18776 | #endif | 
|  | 18777 | char __fixsfdi (); | 
|  | 18778 | int | 
|  | 18779 | main () | 
|  | 18780 | { | 
|  | 18781 | return __fixsfdi (); | 
|  | 18782 | ; | 
|  | 18783 | return 0; | 
|  | 18784 | } | 
|  | 18785 | _ACEOF | 
|  | 18786 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18787 | if { (ac_try="$ac_link" | 
|  | 18788 | case "(($ac_try" in | 
|  | 18789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18790 | *) ac_try_echo=$ac_try;; | 
|  | 18791 | esac | 
|  | 18792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18793 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18794 | ac_status=$? | 
|  | 18795 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18796 | rm -f conftest.er1 | 
|  | 18797 | cat conftest.err >&5 | 
|  | 18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18799 | (exit $ac_status); } && | 
|  | 18800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18801 | { (case "(($ac_try" in | 
|  | 18802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18803 | *) ac_try_echo=$ac_try;; | 
|  | 18804 | esac | 
|  | 18805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18806 | (eval "$ac_try") 2>&5 | 
|  | 18807 | ac_status=$? | 
|  | 18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18809 | (exit $ac_status); }; } && | 
|  | 18810 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18811 | { (case "(($ac_try" in | 
|  | 18812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18813 | *) ac_try_echo=$ac_try;; | 
|  | 18814 | esac | 
|  | 18815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18816 | (eval "$ac_try") 2>&5 | 
|  | 18817 | ac_status=$? | 
|  | 18818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18819 | (exit $ac_status); }; }; then | 
|  | 18820 | ac_cv_lib_gcc___fixsfdi=yes | 
|  | 18821 | else | 
|  | 18822 | echo "$as_me: failed program was:" >&5 | 
|  | 18823 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18824 |  | 
|  | 18825 | ac_cv_lib_gcc___fixsfdi=no | 
|  | 18826 | fi | 
|  | 18827 |  | 
|  | 18828 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18829 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18830 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18831 | fi | 
|  | 18832 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 | 
|  | 18833 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } | 
|  | 18834 | if test $ac_cv_lib_gcc___fixsfdi = yes; then | 
|  | 18835 |  | 
|  | 18836 | cat >>confdefs.h <<\_ACEOF | 
|  | 18837 | #define HAVE___FIXSFDI 1 | 
|  | 18838 | _ACEOF | 
|  | 18839 |  | 
|  | 18840 | fi | 
|  | 18841 |  | 
|  | 18842 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 | 
|  | 18843 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } | 
|  | 18844 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then | 
|  | 18845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18846 | else | 
|  | 18847 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18848 | LIBS="-lgcc  $LIBS" | 
|  | 18849 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18850 | /* confdefs.h.  */ | 
|  | 18851 | _ACEOF | 
|  | 18852 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18853 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18854 | /* end confdefs.h.  */ | 
|  | 18855 |  | 
|  | 18856 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18857 | Use char because int might match the return type of a GCC | 
|  | 18858 | builtin and then its argument prototype would still apply.  */ | 
|  | 18859 | #ifdef __cplusplus | 
|  | 18860 | extern "C" | 
|  | 18861 | #endif | 
|  | 18862 | char __floatdidf (); | 
|  | 18863 | int | 
|  | 18864 | main () | 
|  | 18865 | { | 
|  | 18866 | return __floatdidf (); | 
|  | 18867 | ; | 
|  | 18868 | return 0; | 
|  | 18869 | } | 
|  | 18870 | _ACEOF | 
|  | 18871 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18872 | if { (ac_try="$ac_link" | 
|  | 18873 | case "(($ac_try" in | 
|  | 18874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18875 | *) ac_try_echo=$ac_try;; | 
|  | 18876 | esac | 
|  | 18877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18878 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18879 | ac_status=$? | 
|  | 18880 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18881 | rm -f conftest.er1 | 
|  | 18882 | cat conftest.err >&5 | 
|  | 18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18884 | (exit $ac_status); } && | 
|  | 18885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18886 | { (case "(($ac_try" in | 
|  | 18887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18888 | *) ac_try_echo=$ac_try;; | 
|  | 18889 | esac | 
|  | 18890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18891 | (eval "$ac_try") 2>&5 | 
|  | 18892 | ac_status=$? | 
|  | 18893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18894 | (exit $ac_status); }; } && | 
|  | 18895 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18896 | { (case "(($ac_try" in | 
|  | 18897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18898 | *) ac_try_echo=$ac_try;; | 
|  | 18899 | esac | 
|  | 18900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18901 | (eval "$ac_try") 2>&5 | 
|  | 18902 | ac_status=$? | 
|  | 18903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18904 | (exit $ac_status); }; }; then | 
|  | 18905 | ac_cv_lib_gcc___floatdidf=yes | 
|  | 18906 | else | 
|  | 18907 | echo "$as_me: failed program was:" >&5 | 
|  | 18908 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18909 |  | 
|  | 18910 | ac_cv_lib_gcc___floatdidf=no | 
|  | 18911 | fi | 
|  | 18912 |  | 
|  | 18913 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18914 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18915 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18916 | fi | 
|  | 18917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 | 
|  | 18918 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } | 
|  | 18919 | if test $ac_cv_lib_gcc___floatdidf = yes; then | 
|  | 18920 |  | 
|  | 18921 | cat >>confdefs.h <<\_ACEOF | 
|  | 18922 | #define HAVE___FLOATDIDF 1 | 
|  | 18923 | _ACEOF | 
|  | 18924 |  | 
|  | 18925 | fi | 
|  | 18926 |  | 
|  | 18927 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 | 
|  | 18928 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18929 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then | 
|  | 18930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18931 | else | 
|  | 18932 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18933 | LIBS="-lgcc  $LIBS" | 
|  | 18934 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18935 | /* confdefs.h.  */ | 
|  | 18936 | _ACEOF | 
|  | 18937 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18938 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18939 | /* end confdefs.h.  */ | 
|  | 18940 |  | 
|  | 18941 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18942 | Use char because int might match the return type of a GCC | 
|  | 18943 | builtin and then its argument prototype would still apply.  */ | 
|  | 18944 | #ifdef __cplusplus | 
|  | 18945 | extern "C" | 
|  | 18946 | #endif | 
|  | 18947 | char __lshrdi3 (); | 
|  | 18948 | int | 
|  | 18949 | main () | 
|  | 18950 | { | 
|  | 18951 | return __lshrdi3 (); | 
|  | 18952 | ; | 
|  | 18953 | return 0; | 
|  | 18954 | } | 
|  | 18955 | _ACEOF | 
|  | 18956 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18957 | if { (ac_try="$ac_link" | 
|  | 18958 | case "(($ac_try" in | 
|  | 18959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18960 | *) ac_try_echo=$ac_try;; | 
|  | 18961 | esac | 
|  | 18962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18963 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18964 | ac_status=$? | 
|  | 18965 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18966 | rm -f conftest.er1 | 
|  | 18967 | cat conftest.err >&5 | 
|  | 18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18969 | (exit $ac_status); } && | 
|  | 18970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18971 | { (case "(($ac_try" in | 
|  | 18972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18973 | *) ac_try_echo=$ac_try;; | 
|  | 18974 | esac | 
|  | 18975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18976 | (eval "$ac_try") 2>&5 | 
|  | 18977 | ac_status=$? | 
|  | 18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18979 | (exit $ac_status); }; } && | 
|  | 18980 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18981 | { (case "(($ac_try" in | 
|  | 18982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18983 | *) ac_try_echo=$ac_try;; | 
|  | 18984 | esac | 
|  | 18985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18986 | (eval "$ac_try") 2>&5 | 
|  | 18987 | ac_status=$? | 
|  | 18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18989 | (exit $ac_status); }; }; then | 
|  | 18990 | ac_cv_lib_gcc___lshrdi3=yes | 
|  | 18991 | else | 
|  | 18992 | echo "$as_me: failed program was:" >&5 | 
|  | 18993 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18994 |  | 
|  | 18995 | ac_cv_lib_gcc___lshrdi3=no | 
|  | 18996 | fi | 
|  | 18997 |  | 
|  | 18998 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18999 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19000 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19001 | fi | 
|  | 19002 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 | 
|  | 19003 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } | 
|  | 19004 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then | 
|  | 19005 |  | 
|  | 19006 | cat >>confdefs.h <<\_ACEOF | 
|  | 19007 | #define HAVE___LSHRDI3 1 | 
|  | 19008 | _ACEOF | 
|  | 19009 |  | 
|  | 19010 | fi | 
|  | 19011 |  | 
|  | 19012 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 | 
|  | 19013 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 19014 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then | 
|  | 19015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19016 | else | 
|  | 19017 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19018 | LIBS="-lgcc  $LIBS" | 
|  | 19019 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19020 | /* confdefs.h.  */ | 
|  | 19021 | _ACEOF | 
|  | 19022 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19023 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19024 | /* end confdefs.h.  */ | 
|  | 19025 |  | 
|  | 19026 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19027 | Use char because int might match the return type of a GCC | 
|  | 19028 | builtin and then its argument prototype would still apply.  */ | 
|  | 19029 | #ifdef __cplusplus | 
|  | 19030 | extern "C" | 
|  | 19031 | #endif | 
|  | 19032 | char __moddi3 (); | 
|  | 19033 | int | 
|  | 19034 | main () | 
|  | 19035 | { | 
|  | 19036 | return __moddi3 (); | 
|  | 19037 | ; | 
|  | 19038 | return 0; | 
|  | 19039 | } | 
|  | 19040 | _ACEOF | 
|  | 19041 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19042 | if { (ac_try="$ac_link" | 
|  | 19043 | case "(($ac_try" in | 
|  | 19044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19045 | *) ac_try_echo=$ac_try;; | 
|  | 19046 | esac | 
|  | 19047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19048 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19049 | ac_status=$? | 
|  | 19050 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19051 | rm -f conftest.er1 | 
|  | 19052 | cat conftest.err >&5 | 
|  | 19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19054 | (exit $ac_status); } && | 
|  | 19055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19056 | { (case "(($ac_try" in | 
|  | 19057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19058 | *) ac_try_echo=$ac_try;; | 
|  | 19059 | esac | 
|  | 19060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19061 | (eval "$ac_try") 2>&5 | 
|  | 19062 | ac_status=$? | 
|  | 19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19064 | (exit $ac_status); }; } && | 
|  | 19065 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19066 | { (case "(($ac_try" in | 
|  | 19067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19068 | *) ac_try_echo=$ac_try;; | 
|  | 19069 | esac | 
|  | 19070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19071 | (eval "$ac_try") 2>&5 | 
|  | 19072 | ac_status=$? | 
|  | 19073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19074 | (exit $ac_status); }; }; then | 
|  | 19075 | ac_cv_lib_gcc___moddi3=yes | 
|  | 19076 | else | 
|  | 19077 | echo "$as_me: failed program was:" >&5 | 
|  | 19078 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19079 |  | 
|  | 19080 | ac_cv_lib_gcc___moddi3=no | 
|  | 19081 | fi | 
|  | 19082 |  | 
|  | 19083 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19084 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19085 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19086 | fi | 
|  | 19087 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 | 
|  | 19088 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } | 
|  | 19089 | if test $ac_cv_lib_gcc___moddi3 = yes; then | 
|  | 19090 |  | 
|  | 19091 | cat >>confdefs.h <<\_ACEOF | 
|  | 19092 | #define HAVE___MODDI3 1 | 
|  | 19093 | _ACEOF | 
|  | 19094 |  | 
|  | 19095 | fi | 
|  | 19096 |  | 
|  | 19097 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 | 
|  | 19098 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 19099 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then | 
|  | 19100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19101 | else | 
|  | 19102 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19103 | LIBS="-lgcc  $LIBS" | 
|  | 19104 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19105 | /* confdefs.h.  */ | 
|  | 19106 | _ACEOF | 
|  | 19107 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19108 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19109 | /* end confdefs.h.  */ | 
|  | 19110 |  | 
|  | 19111 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19112 | Use char because int might match the return type of a GCC | 
|  | 19113 | builtin and then its argument prototype would still apply.  */ | 
|  | 19114 | #ifdef __cplusplus | 
|  | 19115 | extern "C" | 
|  | 19116 | #endif | 
|  | 19117 | char __udivdi3 (); | 
|  | 19118 | int | 
|  | 19119 | main () | 
|  | 19120 | { | 
|  | 19121 | return __udivdi3 (); | 
|  | 19122 | ; | 
|  | 19123 | return 0; | 
|  | 19124 | } | 
|  | 19125 | _ACEOF | 
|  | 19126 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19127 | if { (ac_try="$ac_link" | 
|  | 19128 | case "(($ac_try" in | 
|  | 19129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19130 | *) ac_try_echo=$ac_try;; | 
|  | 19131 | esac | 
|  | 19132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19133 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19134 | ac_status=$? | 
|  | 19135 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19136 | rm -f conftest.er1 | 
|  | 19137 | cat conftest.err >&5 | 
|  | 19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19139 | (exit $ac_status); } && | 
|  | 19140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19141 | { (case "(($ac_try" in | 
|  | 19142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19143 | *) ac_try_echo=$ac_try;; | 
|  | 19144 | esac | 
|  | 19145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19146 | (eval "$ac_try") 2>&5 | 
|  | 19147 | ac_status=$? | 
|  | 19148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19149 | (exit $ac_status); }; } && | 
|  | 19150 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19151 | { (case "(($ac_try" in | 
|  | 19152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19153 | *) ac_try_echo=$ac_try;; | 
|  | 19154 | esac | 
|  | 19155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19156 | (eval "$ac_try") 2>&5 | 
|  | 19157 | ac_status=$? | 
|  | 19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19159 | (exit $ac_status); }; }; then | 
|  | 19160 | ac_cv_lib_gcc___udivdi3=yes | 
|  | 19161 | else | 
|  | 19162 | echo "$as_me: failed program was:" >&5 | 
|  | 19163 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19164 |  | 
|  | 19165 | ac_cv_lib_gcc___udivdi3=no | 
|  | 19166 | fi | 
|  | 19167 |  | 
|  | 19168 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19169 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19170 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19171 | fi | 
|  | 19172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 | 
|  | 19173 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } | 
|  | 19174 | if test $ac_cv_lib_gcc___udivdi3 = yes; then | 
|  | 19175 |  | 
|  | 19176 | cat >>confdefs.h <<\_ACEOF | 
|  | 19177 | #define HAVE___UDIVDI3 1 | 
|  | 19178 | _ACEOF | 
|  | 19179 |  | 
|  | 19180 | fi | 
|  | 19181 |  | 
|  | 19182 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 | 
|  | 19183 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 19184 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then | 
|  | 19185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19186 | else | 
|  | 19187 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19188 | LIBS="-lgcc  $LIBS" | 
|  | 19189 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19190 | /* confdefs.h.  */ | 
|  | 19191 | _ACEOF | 
|  | 19192 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19193 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19194 | /* end confdefs.h.  */ | 
|  | 19195 |  | 
|  | 19196 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19197 | Use char because int might match the return type of a GCC | 
|  | 19198 | builtin and then its argument prototype would still apply.  */ | 
|  | 19199 | #ifdef __cplusplus | 
|  | 19200 | extern "C" | 
|  | 19201 | #endif | 
|  | 19202 | char __umoddi3 (); | 
|  | 19203 | int | 
|  | 19204 | main () | 
|  | 19205 | { | 
|  | 19206 | return __umoddi3 (); | 
|  | 19207 | ; | 
|  | 19208 | return 0; | 
|  | 19209 | } | 
|  | 19210 | _ACEOF | 
|  | 19211 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19212 | if { (ac_try="$ac_link" | 
|  | 19213 | case "(($ac_try" in | 
|  | 19214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19215 | *) ac_try_echo=$ac_try;; | 
|  | 19216 | esac | 
|  | 19217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19218 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19219 | ac_status=$? | 
|  | 19220 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19221 | rm -f conftest.er1 | 
|  | 19222 | cat conftest.err >&5 | 
|  | 19223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19224 | (exit $ac_status); } && | 
|  | 19225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19226 | { (case "(($ac_try" in | 
|  | 19227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19228 | *) ac_try_echo=$ac_try;; | 
|  | 19229 | esac | 
|  | 19230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19231 | (eval "$ac_try") 2>&5 | 
|  | 19232 | ac_status=$? | 
|  | 19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19234 | (exit $ac_status); }; } && | 
|  | 19235 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19236 | { (case "(($ac_try" in | 
|  | 19237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19238 | *) ac_try_echo=$ac_try;; | 
|  | 19239 | esac | 
|  | 19240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19241 | (eval "$ac_try") 2>&5 | 
|  | 19242 | ac_status=$? | 
|  | 19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19244 | (exit $ac_status); }; }; then | 
|  | 19245 | ac_cv_lib_gcc___umoddi3=yes | 
|  | 19246 | else | 
|  | 19247 | echo "$as_me: failed program was:" >&5 | 
|  | 19248 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19249 |  | 
|  | 19250 | ac_cv_lib_gcc___umoddi3=no | 
|  | 19251 | fi | 
|  | 19252 |  | 
|  | 19253 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19254 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19255 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19256 | fi | 
|  | 19257 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 | 
|  | 19258 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } | 
|  | 19259 | if test $ac_cv_lib_gcc___umoddi3 = yes; then | 
|  | 19260 |  | 
|  | 19261 | cat >>confdefs.h <<\_ACEOF | 
|  | 19262 | #define HAVE___UMODDI3 1 | 
|  | 19263 | _ACEOF | 
|  | 19264 |  | 
|  | 19265 | fi | 
|  | 19266 |  | 
|  | 19267 |  | 
|  | 19268 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 | 
|  | 19269 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } | 
|  | 19270 | if test "${ac_cv_lib_gcc___main+set}" = set; then | 
|  | 19271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19272 | else | 
|  | 19273 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19274 | LIBS="-lgcc  $LIBS" | 
|  | 19275 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19276 | /* confdefs.h.  */ | 
|  | 19277 | _ACEOF | 
|  | 19278 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19279 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19280 | /* end confdefs.h.  */ | 
|  | 19281 |  | 
|  | 19282 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19283 | Use char because int might match the return type of a GCC | 
|  | 19284 | builtin and then its argument prototype would still apply.  */ | 
|  | 19285 | #ifdef __cplusplus | 
|  | 19286 | extern "C" | 
|  | 19287 | #endif | 
|  | 19288 | char __main (); | 
|  | 19289 | int | 
|  | 19290 | main () | 
|  | 19291 | { | 
|  | 19292 | return __main (); | 
|  | 19293 | ; | 
|  | 19294 | return 0; | 
|  | 19295 | } | 
|  | 19296 | _ACEOF | 
|  | 19297 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19298 | if { (ac_try="$ac_link" | 
|  | 19299 | case "(($ac_try" in | 
|  | 19300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19301 | *) ac_try_echo=$ac_try;; | 
|  | 19302 | esac | 
|  | 19303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19304 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19305 | ac_status=$? | 
|  | 19306 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19307 | rm -f conftest.er1 | 
|  | 19308 | cat conftest.err >&5 | 
|  | 19309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19310 | (exit $ac_status); } && | 
|  | 19311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19312 | { (case "(($ac_try" in | 
|  | 19313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19314 | *) ac_try_echo=$ac_try;; | 
|  | 19315 | esac | 
|  | 19316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19317 | (eval "$ac_try") 2>&5 | 
|  | 19318 | ac_status=$? | 
|  | 19319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19320 | (exit $ac_status); }; } && | 
|  | 19321 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19322 | { (case "(($ac_try" in | 
|  | 19323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19324 | *) ac_try_echo=$ac_try;; | 
|  | 19325 | esac | 
|  | 19326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19327 | (eval "$ac_try") 2>&5 | 
|  | 19328 | ac_status=$? | 
|  | 19329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19330 | (exit $ac_status); }; }; then | 
|  | 19331 | ac_cv_lib_gcc___main=yes | 
|  | 19332 | else | 
|  | 19333 | echo "$as_me: failed program was:" >&5 | 
|  | 19334 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19335 |  | 
|  | 19336 | ac_cv_lib_gcc___main=no | 
|  | 19337 | fi | 
|  | 19338 |  | 
|  | 19339 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19340 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19341 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19342 | fi | 
|  | 19343 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 | 
|  | 19344 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } | 
|  | 19345 | if test $ac_cv_lib_gcc___main = yes; then | 
|  | 19346 |  | 
|  | 19347 | cat >>confdefs.h <<\_ACEOF | 
|  | 19348 | #define HAVE___MAIN 1 | 
|  | 19349 | _ACEOF | 
|  | 19350 |  | 
|  | 19351 | fi | 
|  | 19352 |  | 
|  | 19353 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 | 
|  | 19354 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } | 
|  | 19355 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then | 
|  | 19356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19357 | else | 
|  | 19358 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19359 | LIBS="-lgcc  $LIBS" | 
|  | 19360 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19361 | /* confdefs.h.  */ | 
|  | 19362 | _ACEOF | 
|  | 19363 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19364 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19365 | /* end confdefs.h.  */ | 
|  | 19366 |  | 
|  | 19367 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19368 | Use char because int might match the return type of a GCC | 
|  | 19369 | builtin and then its argument prototype would still apply.  */ | 
|  | 19370 | #ifdef __cplusplus | 
|  | 19371 | extern "C" | 
|  | 19372 | #endif | 
|  | 19373 | char __cmpdi2 (); | 
|  | 19374 | int | 
|  | 19375 | main () | 
|  | 19376 | { | 
|  | 19377 | return __cmpdi2 (); | 
|  | 19378 | ; | 
|  | 19379 | return 0; | 
|  | 19380 | } | 
|  | 19381 | _ACEOF | 
|  | 19382 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19383 | if { (ac_try="$ac_link" | 
|  | 19384 | case "(($ac_try" in | 
|  | 19385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19386 | *) ac_try_echo=$ac_try;; | 
|  | 19387 | esac | 
|  | 19388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19389 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19390 | ac_status=$? | 
|  | 19391 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19392 | rm -f conftest.er1 | 
|  | 19393 | cat conftest.err >&5 | 
|  | 19394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19395 | (exit $ac_status); } && | 
|  | 19396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19397 | { (case "(($ac_try" in | 
|  | 19398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19399 | *) ac_try_echo=$ac_try;; | 
|  | 19400 | esac | 
|  | 19401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19402 | (eval "$ac_try") 2>&5 | 
|  | 19403 | ac_status=$? | 
|  | 19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19405 | (exit $ac_status); }; } && | 
|  | 19406 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19407 | { (case "(($ac_try" in | 
|  | 19408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19409 | *) ac_try_echo=$ac_try;; | 
|  | 19410 | esac | 
|  | 19411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19412 | (eval "$ac_try") 2>&5 | 
|  | 19413 | ac_status=$? | 
|  | 19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19415 | (exit $ac_status); }; }; then | 
|  | 19416 | ac_cv_lib_gcc___cmpdi2=yes | 
|  | 19417 | else | 
|  | 19418 | echo "$as_me: failed program was:" >&5 | 
|  | 19419 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19420 |  | 
|  | 19421 | ac_cv_lib_gcc___cmpdi2=no | 
|  | 19422 | fi | 
|  | 19423 |  | 
|  | 19424 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19425 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19426 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19427 | fi | 
|  | 19428 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 | 
|  | 19429 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } | 
|  | 19430 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then | 
|  | 19431 |  | 
|  | 19432 | cat >>confdefs.h <<\_ACEOF | 
|  | 19433 | #define HAVE___CMPDI2 1 | 
|  | 19434 | _ACEOF | 
|  | 19435 |  | 
|  | 19436 | fi | 
|  | 19437 |  | 
|  | 19438 | fi | 
|  | 19439 |  | 
| NAKAMURA Takumi | 4471f82 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19440 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 19441 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 | 
|  | 19442 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } | 
|  | 19443 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19444 | #include <windows.h> | 
|  | 19445 | #include <imagehlp.h> | 
|  | 19446 | extern void foo(PENUMLOADED_MODULES_CALLBACK); | 
|  | 19447 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); | 
|  | 19448 | _ACEOF | 
|  | 19449 | rm -f conftest.$ac_objext | 
|  | 19450 | if { (ac_try="$ac_compile" | 
|  | 19451 | case "(($ac_try" in | 
|  | 19452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19453 | *) ac_try_echo=$ac_try;; | 
|  | 19454 | esac | 
|  | 19455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19456 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19457 | ac_status=$? | 
|  | 19458 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19459 | rm -f conftest.er1 | 
|  | 19460 | cat conftest.err >&5 | 
|  | 19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19462 | (exit $ac_status); } && | 
|  | 19463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19464 | { (case "(($ac_try" in | 
|  | 19465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19466 | *) ac_try_echo=$ac_try;; | 
|  | 19467 | esac | 
|  | 19468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19469 | (eval "$ac_try") 2>&5 | 
|  | 19470 | ac_status=$? | 
|  | 19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19472 | (exit $ac_status); }; } && | 
|  | 19473 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19474 | { (case "(($ac_try" in | 
|  | 19475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19476 | *) ac_try_echo=$ac_try;; | 
|  | 19477 | esac | 
|  | 19478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19479 | (eval "$ac_try") 2>&5 | 
|  | 19480 | ac_status=$? | 
|  | 19481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19482 | (exit $ac_status); }; }; then | 
|  | 19483 |  | 
|  | 19484 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 19485 | echo "${ECHO_T}yes" >&6; } | 
|  | 19486 | llvm_cv_win32_elmcb_pcstr="PCSTR" | 
|  | 19487 |  | 
|  | 19488 | else | 
|  | 19489 | echo "$as_me: failed program was:" >&5 | 
|  | 19490 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19491 |  | 
|  | 19492 |  | 
|  | 19493 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19494 | echo "${ECHO_T}no" >&6; } | 
|  | 19495 | llvm_cv_win32_elmcb_pcstr="PSTR" | 
|  | 19496 |  | 
|  | 19497 | fi | 
|  | 19498 |  | 
|  | 19499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 19500 |  | 
|  | 19501 | cat >>confdefs.h <<_ACEOF | 
|  | 19502 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr | 
|  | 19503 | _ACEOF | 
|  | 19504 |  | 
|  | 19505 | fi | 
|  | 19506 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19507 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19508 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
|  | 19509 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } | 
|  | 19510 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
|  | 19511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19512 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19513 | ac_ext=cpp | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19514 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19515 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19516 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19517 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19518 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19519 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19520 | /* confdefs.h.  */ | 
|  | 19521 | _ACEOF | 
|  | 19522 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19523 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19524 | /* end confdefs.h.  */ | 
|  | 19525 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19526 | int | 
|  | 19527 | main () | 
|  | 19528 | { | 
|  | 19529 | float f; isnan(f); | 
|  | 19530 | ; | 
|  | 19531 | return 0; | 
|  | 19532 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19533 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19534 | rm -f conftest.$ac_objext | 
|  | 19535 | if { (ac_try="$ac_compile" | 
|  | 19536 | case "(($ac_try" in | 
|  | 19537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19538 | *) ac_try_echo=$ac_try;; | 
|  | 19539 | esac | 
|  | 19540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19541 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19542 | ac_status=$? | 
|  | 19543 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19544 | rm -f conftest.er1 | 
|  | 19545 | cat conftest.err >&5 | 
|  | 19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19547 | (exit $ac_status); } && | 
|  | 19548 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19549 | { (case "(($ac_try" in | 
|  | 19550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19551 | *) ac_try_echo=$ac_try;; | 
|  | 19552 | esac | 
|  | 19553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19554 | (eval "$ac_try") 2>&5 | 
|  | 19555 | ac_status=$? | 
|  | 19556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19557 | (exit $ac_status); }; } && | 
|  | 19558 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19559 | { (case "(($ac_try" in | 
|  | 19560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19561 | *) ac_try_echo=$ac_try;; | 
|  | 19562 | esac | 
|  | 19563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19564 | (eval "$ac_try") 2>&5 | 
|  | 19565 | ac_status=$? | 
|  | 19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19567 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19568 | ac_cv_func_isnan_in_math_h=yes | 
|  | 19569 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19570 | echo "$as_me: failed program was:" >&5 | 
|  | 19571 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19572 |  | 
|  | 19573 | ac_cv_func_isnan_in_math_h=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19574 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19575 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19577 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19578 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19582 |  | 
|  | 19583 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19584 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
|  | 19585 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19586 |  | 
|  | 19587 |  | 
|  | 19588 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19589 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19590 | cat >>confdefs.h <<\_ACEOF | 
|  | 19591 | #define HAVE_ISNAN_IN_MATH_H 1 | 
|  | 19592 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19593 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19594 | fi | 
|  | 19595 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19596 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
|  | 19597 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } | 
|  | 19598 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
|  | 19599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19600 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19601 | ac_ext=cpp | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19602 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19603 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19604 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19605 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19606 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19607 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19608 | /* confdefs.h.  */ | 
|  | 19609 | _ACEOF | 
|  | 19610 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19611 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19612 | /* end confdefs.h.  */ | 
|  | 19613 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19614 | int | 
|  | 19615 | main () | 
|  | 19616 | { | 
|  | 19617 | float f; isnan(f); | 
|  | 19618 | ; | 
|  | 19619 | return 0; | 
|  | 19620 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19621 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19622 | rm -f conftest.$ac_objext | 
|  | 19623 | if { (ac_try="$ac_compile" | 
|  | 19624 | case "(($ac_try" in | 
|  | 19625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19626 | *) ac_try_echo=$ac_try;; | 
|  | 19627 | esac | 
|  | 19628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19629 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19630 | ac_status=$? | 
|  | 19631 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19632 | rm -f conftest.er1 | 
|  | 19633 | cat conftest.err >&5 | 
|  | 19634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19635 | (exit $ac_status); } && | 
|  | 19636 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19637 | { (case "(($ac_try" in | 
|  | 19638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19639 | *) ac_try_echo=$ac_try;; | 
|  | 19640 | esac | 
|  | 19641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19642 | (eval "$ac_try") 2>&5 | 
|  | 19643 | ac_status=$? | 
|  | 19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19645 | (exit $ac_status); }; } && | 
|  | 19646 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19647 | { (case "(($ac_try" in | 
|  | 19648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19649 | *) ac_try_echo=$ac_try;; | 
|  | 19650 | esac | 
|  | 19651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19652 | (eval "$ac_try") 2>&5 | 
|  | 19653 | ac_status=$? | 
|  | 19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19655 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19656 | ac_cv_func_isnan_in_cmath=yes | 
|  | 19657 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19658 | echo "$as_me: failed program was:" >&5 | 
|  | 19659 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19660 |  | 
|  | 19661 | ac_cv_func_isnan_in_cmath=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19662 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19663 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19665 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19666 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19670 |  | 
|  | 19671 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19672 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
|  | 19673 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19674 |  | 
|  | 19675 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19676 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19677 | cat >>confdefs.h <<\_ACEOF | 
|  | 19678 | #define HAVE_ISNAN_IN_CMATH 1 | 
|  | 19679 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19680 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19681 | fi | 
|  | 19682 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19683 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
|  | 19684 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } | 
|  | 19685 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
|  | 19686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19687 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19688 | ac_ext=cpp | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19689 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19690 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19691 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19692 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19693 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19694 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19695 | /* confdefs.h.  */ | 
|  | 19696 | _ACEOF | 
|  | 19697 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19698 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19699 | /* end confdefs.h.  */ | 
|  | 19700 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19701 | int | 
|  | 19702 | main () | 
|  | 19703 | { | 
|  | 19704 | float f; std::isnan(f); | 
|  | 19705 | ; | 
|  | 19706 | return 0; | 
|  | 19707 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19708 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19709 | rm -f conftest.$ac_objext | 
|  | 19710 | if { (ac_try="$ac_compile" | 
|  | 19711 | case "(($ac_try" in | 
|  | 19712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19713 | *) ac_try_echo=$ac_try;; | 
|  | 19714 | esac | 
|  | 19715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19716 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19717 | ac_status=$? | 
|  | 19718 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19719 | rm -f conftest.er1 | 
|  | 19720 | cat conftest.err >&5 | 
|  | 19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19722 | (exit $ac_status); } && | 
|  | 19723 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19724 | { (case "(($ac_try" in | 
|  | 19725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19726 | *) ac_try_echo=$ac_try;; | 
|  | 19727 | esac | 
|  | 19728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19729 | (eval "$ac_try") 2>&5 | 
|  | 19730 | ac_status=$? | 
|  | 19731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19732 | (exit $ac_status); }; } && | 
|  | 19733 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19734 | { (case "(($ac_try" in | 
|  | 19735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19736 | *) ac_try_echo=$ac_try;; | 
|  | 19737 | esac | 
|  | 19738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19739 | (eval "$ac_try") 2>&5 | 
|  | 19740 | ac_status=$? | 
|  | 19741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19742 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19743 | ac_cv_func_std_isnan_in_cmath=yes | 
|  | 19744 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19745 | echo "$as_me: failed program was:" >&5 | 
|  | 19746 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19747 |  | 
|  | 19748 | ac_cv_func_std_isnan_in_cmath=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19749 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19750 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19752 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19753 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19757 |  | 
|  | 19758 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19759 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
|  | 19760 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19761 |  | 
|  | 19762 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19763 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19764 | cat >>confdefs.h <<\_ACEOF | 
|  | 19765 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
|  | 19766 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19767 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19768 | fi | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19769 |  | 
|  | 19770 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19771 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
|  | 19772 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } | 
|  | 19773 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
|  | 19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19775 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19776 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19777 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19778 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19779 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19780 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19781 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19782 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19783 | /* confdefs.h.  */ | 
|  | 19784 | _ACEOF | 
|  | 19785 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19786 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19787 | /* end confdefs.h.  */ | 
|  | 19788 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19789 | int | 
|  | 19790 | main () | 
|  | 19791 | { | 
|  | 19792 | float f; isinf(f); | 
|  | 19793 | ; | 
|  | 19794 | return 0; | 
|  | 19795 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19796 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19797 | rm -f conftest.$ac_objext | 
|  | 19798 | if { (ac_try="$ac_compile" | 
|  | 19799 | case "(($ac_try" in | 
|  | 19800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19801 | *) ac_try_echo=$ac_try;; | 
|  | 19802 | esac | 
|  | 19803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19804 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19805 | ac_status=$? | 
|  | 19806 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19807 | rm -f conftest.er1 | 
|  | 19808 | cat conftest.err >&5 | 
|  | 19809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19810 | (exit $ac_status); } && | 
|  | 19811 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19812 | { (case "(($ac_try" in | 
|  | 19813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19814 | *) ac_try_echo=$ac_try;; | 
|  | 19815 | esac | 
|  | 19816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19817 | (eval "$ac_try") 2>&5 | 
|  | 19818 | ac_status=$? | 
|  | 19819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19820 | (exit $ac_status); }; } && | 
|  | 19821 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19822 | { (case "(($ac_try" in | 
|  | 19823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19824 | *) ac_try_echo=$ac_try;; | 
|  | 19825 | esac | 
|  | 19826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19827 | (eval "$ac_try") 2>&5 | 
|  | 19828 | ac_status=$? | 
|  | 19829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19830 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19831 | ac_cv_func_isinf_in_math_h=yes | 
|  | 19832 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19833 | echo "$as_me: failed program was:" >&5 | 
|  | 19834 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19835 |  | 
|  | 19836 | ac_cv_func_isinf_in_math_h=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19837 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19838 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19840 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19841 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19845 |  | 
|  | 19846 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19847 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
|  | 19848 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19849 |  | 
|  | 19850 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19851 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19852 | cat >>confdefs.h <<\_ACEOF | 
|  | 19853 | #define HAVE_ISINF_IN_MATH_H 1 | 
|  | 19854 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19855 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19856 | fi | 
|  | 19857 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19858 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
|  | 19859 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } | 
|  | 19860 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
|  | 19861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19862 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19863 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19864 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19868 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19869 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19870 | /* confdefs.h.  */ | 
|  | 19871 | _ACEOF | 
|  | 19872 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19873 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19874 | /* end confdefs.h.  */ | 
|  | 19875 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19876 | int | 
|  | 19877 | main () | 
|  | 19878 | { | 
|  | 19879 | float f; isinf(f); | 
|  | 19880 | ; | 
|  | 19881 | return 0; | 
|  | 19882 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19883 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19884 | rm -f conftest.$ac_objext | 
|  | 19885 | if { (ac_try="$ac_compile" | 
|  | 19886 | case "(($ac_try" in | 
|  | 19887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19888 | *) ac_try_echo=$ac_try;; | 
|  | 19889 | esac | 
|  | 19890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19891 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19892 | ac_status=$? | 
|  | 19893 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19894 | rm -f conftest.er1 | 
|  | 19895 | cat conftest.err >&5 | 
|  | 19896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19897 | (exit $ac_status); } && | 
|  | 19898 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19899 | { (case "(($ac_try" in | 
|  | 19900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19901 | *) ac_try_echo=$ac_try;; | 
|  | 19902 | esac | 
|  | 19903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19904 | (eval "$ac_try") 2>&5 | 
|  | 19905 | ac_status=$? | 
|  | 19906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19907 | (exit $ac_status); }; } && | 
|  | 19908 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19909 | { (case "(($ac_try" in | 
|  | 19910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19911 | *) ac_try_echo=$ac_try;; | 
|  | 19912 | esac | 
|  | 19913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19914 | (eval "$ac_try") 2>&5 | 
|  | 19915 | ac_status=$? | 
|  | 19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19917 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19918 | ac_cv_func_isinf_in_cmath=yes | 
|  | 19919 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19920 | echo "$as_me: failed program was:" >&5 | 
|  | 19921 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19922 |  | 
|  | 19923 | ac_cv_func_isinf_in_cmath=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19924 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19925 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19927 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19928 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19932 |  | 
|  | 19933 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19934 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
|  | 19935 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19936 |  | 
|  | 19937 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19938 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19939 | cat >>confdefs.h <<\_ACEOF | 
|  | 19940 | #define HAVE_ISINF_IN_CMATH 1 | 
|  | 19941 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19942 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19943 | fi | 
|  | 19944 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19945 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
|  | 19946 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } | 
|  | 19947 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
|  | 19948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19949 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19950 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19951 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19952 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19953 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19954 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19955 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19956 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19957 | /* confdefs.h.  */ | 
|  | 19958 | _ACEOF | 
|  | 19959 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19960 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19961 | /* end confdefs.h.  */ | 
|  | 19962 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19963 | int | 
|  | 19964 | main () | 
|  | 19965 | { | 
| Eric Christopher | eb75cc2 | 2012-03-26 02:09:01 +0000 | [diff] [blame] | 19966 | float f; std::isinf(f); | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19967 | ; | 
|  | 19968 | return 0; | 
|  | 19969 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19970 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19971 | rm -f conftest.$ac_objext | 
|  | 19972 | if { (ac_try="$ac_compile" | 
|  | 19973 | case "(($ac_try" in | 
|  | 19974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19975 | *) ac_try_echo=$ac_try;; | 
|  | 19976 | esac | 
|  | 19977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19978 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19979 | ac_status=$? | 
|  | 19980 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19981 | rm -f conftest.er1 | 
|  | 19982 | cat conftest.err >&5 | 
|  | 19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19984 | (exit $ac_status); } && | 
|  | 19985 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19986 | { (case "(($ac_try" in | 
|  | 19987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19988 | *) ac_try_echo=$ac_try;; | 
|  | 19989 | esac | 
|  | 19990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19991 | (eval "$ac_try") 2>&5 | 
|  | 19992 | ac_status=$? | 
|  | 19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19994 | (exit $ac_status); }; } && | 
|  | 19995 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19996 | { (case "(($ac_try" in | 
|  | 19997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19998 | *) ac_try_echo=$ac_try;; | 
|  | 19999 | esac | 
|  | 20000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20001 | (eval "$ac_try") 2>&5 | 
|  | 20002 | ac_status=$? | 
|  | 20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20004 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20005 | ac_cv_func_std_isinf_in_cmath=yes | 
|  | 20006 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20007 | echo "$as_me: failed program was:" >&5 | 
|  | 20008 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20009 |  | 
|  | 20010 | ac_cv_func_std_isinf_in_cmath=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20011 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20012 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20014 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20015 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20019 |  | 
|  | 20020 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20021 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
|  | 20022 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20023 |  | 
|  | 20024 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20025 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20026 | cat >>confdefs.h <<\_ACEOF | 
|  | 20027 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
|  | 20028 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20029 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20030 | fi | 
|  | 20031 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20032 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
|  | 20033 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } | 
|  | 20034 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
|  | 20035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20036 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20037 | ac_ext=cpp | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20038 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20042 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20043 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20044 | /* confdefs.h.  */ | 
|  | 20045 | _ACEOF | 
|  | 20046 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20047 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20048 | /* end confdefs.h.  */ | 
|  | 20049 | #include <ieeefp.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20050 | int | 
|  | 20051 | main () | 
|  | 20052 | { | 
|  | 20053 | float f; finite(f); | 
|  | 20054 | ; | 
|  | 20055 | return 0; | 
|  | 20056 | } | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20057 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20058 | rm -f conftest.$ac_objext | 
|  | 20059 | if { (ac_try="$ac_compile" | 
|  | 20060 | case "(($ac_try" in | 
|  | 20061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20062 | *) ac_try_echo=$ac_try;; | 
|  | 20063 | esac | 
|  | 20064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20065 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20066 | ac_status=$? | 
|  | 20067 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20068 | rm -f conftest.er1 | 
|  | 20069 | cat conftest.err >&5 | 
|  | 20070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20071 | (exit $ac_status); } && | 
|  | 20072 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 20073 | { (case "(($ac_try" in | 
|  | 20074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20075 | *) ac_try_echo=$ac_try;; | 
|  | 20076 | esac | 
|  | 20077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20078 | (eval "$ac_try") 2>&5 | 
|  | 20079 | ac_status=$? | 
|  | 20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20081 | (exit $ac_status); }; } && | 
|  | 20082 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20083 | { (case "(($ac_try" in | 
|  | 20084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20085 | *) ac_try_echo=$ac_try;; | 
|  | 20086 | esac | 
|  | 20087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20088 | (eval "$ac_try") 2>&5 | 
|  | 20089 | ac_status=$? | 
|  | 20090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20091 | (exit $ac_status); }; }; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20092 | ac_cv_func_finite_in_ieeefp_h=yes | 
|  | 20093 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20094 | echo "$as_me: failed program was:" >&5 | 
|  | 20095 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20096 |  | 
|  | 20097 | ac_cv_func_finite_in_ieeefp_h=no | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20098 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20099 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20101 | ac_ext=c | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20102 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20106 |  | 
|  | 20107 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20108 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
|  | 20109 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20110 |  | 
| Brian Gaeke | ae050e0 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 20111 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20112 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20113 | cat >>confdefs.h <<\_ACEOF | 
|  | 20114 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
|  | 20115 | _ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20116 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20117 | fi | 
|  | 20118 |  | 
|  | 20119 |  | 
|  | 20120 |  | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20121 | if test "$llvm_cv_platform_type" = "Unix" ; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20122 |  | 
|  | 20123 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20124 | for ac_header in stdlib.h unistd.h | 
|  | 20125 | do | 
|  | 20126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 20127 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20128 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 20130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20132 | fi | 
|  | 20133 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 20134 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20135 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20136 | else | 
|  | 20137 | # Is the header compilable? | 
|  | 20138 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 20139 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 20140 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20141 | /* confdefs.h.  */ | 
|  | 20142 | _ACEOF | 
|  | 20143 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20144 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20145 | /* end confdefs.h.  */ | 
|  | 20146 | $ac_includes_default | 
|  | 20147 | #include <$ac_header> | 
|  | 20148 | _ACEOF | 
|  | 20149 | rm -f conftest.$ac_objext | 
|  | 20150 | if { (ac_try="$ac_compile" | 
|  | 20151 | case "(($ac_try" in | 
|  | 20152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20153 | *) ac_try_echo=$ac_try;; | 
|  | 20154 | esac | 
|  | 20155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20156 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20157 | ac_status=$? | 
|  | 20158 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20159 | rm -f conftest.er1 | 
|  | 20160 | cat conftest.err >&5 | 
|  | 20161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20162 | (exit $ac_status); } && | 
|  | 20163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20164 | { (case "(($ac_try" in | 
|  | 20165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20166 | *) ac_try_echo=$ac_try;; | 
|  | 20167 | esac | 
|  | 20168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20169 | (eval "$ac_try") 2>&5 | 
|  | 20170 | ac_status=$? | 
|  | 20171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20172 | (exit $ac_status); }; } && | 
|  | 20173 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20174 | { (case "(($ac_try" in | 
|  | 20175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20176 | *) ac_try_echo=$ac_try;; | 
|  | 20177 | esac | 
|  | 20178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20179 | (eval "$ac_try") 2>&5 | 
|  | 20180 | ac_status=$? | 
|  | 20181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20182 | (exit $ac_status); }; }; then | 
|  | 20183 | ac_header_compiler=yes | 
|  | 20184 | else | 
|  | 20185 | echo "$as_me: failed program was:" >&5 | 
|  | 20186 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20187 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20188 | ac_header_compiler=no | 
|  | 20189 | fi | 
|  | 20190 |  | 
|  | 20191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20192 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 20193 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 20194 |  | 
|  | 20195 | # Is the header present? | 
|  | 20196 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 20197 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 20198 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20199 | /* confdefs.h.  */ | 
|  | 20200 | _ACEOF | 
|  | 20201 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20202 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20203 | /* end confdefs.h.  */ | 
|  | 20204 | #include <$ac_header> | 
|  | 20205 | _ACEOF | 
|  | 20206 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 20207 | case "(($ac_try" in | 
|  | 20208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20209 | *) ac_try_echo=$ac_try;; | 
|  | 20210 | esac | 
|  | 20211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20212 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 20213 | ac_status=$? | 
|  | 20214 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20215 | rm -f conftest.er1 | 
|  | 20216 | cat conftest.err >&5 | 
|  | 20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20218 | (exit $ac_status); } >/dev/null; then | 
|  | 20219 | if test -s conftest.err; then | 
|  | 20220 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 20221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 20222 | else | 
|  | 20223 | ac_cpp_err= | 
|  | 20224 | fi | 
|  | 20225 | else | 
|  | 20226 | ac_cpp_err=yes | 
|  | 20227 | fi | 
|  | 20228 | if test -z "$ac_cpp_err"; then | 
|  | 20229 | ac_header_preproc=yes | 
|  | 20230 | else | 
|  | 20231 | echo "$as_me: failed program was:" >&5 | 
|  | 20232 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20233 |  | 
|  | 20234 | ac_header_preproc=no | 
|  | 20235 | fi | 
|  | 20236 |  | 
|  | 20237 | rm -f conftest.err conftest.$ac_ext | 
|  | 20238 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 20239 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 20240 |  | 
|  | 20241 | # So?  What about this header? | 
|  | 20242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 20243 | yes:no: ) | 
|  | 20244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 20245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 20246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 20247 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 20248 | ac_header_preproc=yes | 
|  | 20249 | ;; | 
|  | 20250 | no:yes:* ) | 
|  | 20251 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 20252 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 20253 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 20254 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 20255 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 20256 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 20257 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 20258 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 20259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 20260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 20261 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 20262 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 20263 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20264 | ## ------------------------------------ ## | 
|  | 20265 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 20266 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20267 | _ASBOX | 
|  | 20268 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 20269 | ;; | 
|  | 20270 | esac | 
|  | 20271 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 20273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20275 | else | 
|  | 20276 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 20277 | fi | 
|  | 20278 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 20279 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20280 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20281 |  | 
|  | 20282 | fi | 
|  | 20283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20284 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20285 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20286 | _ACEOF | 
|  | 20287 |  | 
|  | 20288 | fi | 
|  | 20289 |  | 
|  | 20290 | done | 
|  | 20291 |  | 
|  | 20292 |  | 
|  | 20293 | for ac_func in getpagesize | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20294 | do | 
|  | 20295 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20296 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20297 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 20298 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20300 | else | 
|  | 20301 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20302 | /* confdefs.h.  */ | 
|  | 20303 | _ACEOF | 
|  | 20304 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20305 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20306 | /* end confdefs.h.  */ | 
|  | 20307 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 20308 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 20309 | #define $ac_func innocuous_$ac_func | 
|  | 20310 |  | 
|  | 20311 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 20312 | which can conflict with char $ac_func (); below. | 
|  | 20313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20314 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20315 |  | 
|  | 20316 | #ifdef __STDC__ | 
|  | 20317 | # include <limits.h> | 
|  | 20318 | #else | 
|  | 20319 | # include <assert.h> | 
|  | 20320 | #endif | 
|  | 20321 |  | 
|  | 20322 | #undef $ac_func | 
|  | 20323 |  | 
|  | 20324 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20325 | Use char because int might match the return type of a GCC | 
|  | 20326 | builtin and then its argument prototype would still apply.  */ | 
|  | 20327 | #ifdef __cplusplus | 
|  | 20328 | extern "C" | 
|  | 20329 | #endif | 
|  | 20330 | char $ac_func (); | 
|  | 20331 | /* The GNU C library defines this for functions which it implements | 
|  | 20332 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20333 | something starting with __ and the normal name is an alias.  */ | 
|  | 20334 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 20335 | choke me | 
|  | 20336 | #endif | 
|  | 20337 |  | 
|  | 20338 | int | 
|  | 20339 | main () | 
|  | 20340 | { | 
|  | 20341 | return $ac_func (); | 
|  | 20342 | ; | 
|  | 20343 | return 0; | 
|  | 20344 | } | 
|  | 20345 | _ACEOF | 
|  | 20346 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20347 | if { (ac_try="$ac_link" | 
|  | 20348 | case "(($ac_try" in | 
|  | 20349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20350 | *) ac_try_echo=$ac_try;; | 
|  | 20351 | esac | 
|  | 20352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20353 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20354 | ac_status=$? | 
|  | 20355 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20356 | rm -f conftest.er1 | 
|  | 20357 | cat conftest.err >&5 | 
|  | 20358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20359 | (exit $ac_status); } && | 
|  | 20360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20361 | { (case "(($ac_try" in | 
|  | 20362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20363 | *) ac_try_echo=$ac_try;; | 
|  | 20364 | esac | 
|  | 20365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20366 | (eval "$ac_try") 2>&5 | 
|  | 20367 | ac_status=$? | 
|  | 20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20369 | (exit $ac_status); }; } && | 
|  | 20370 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20371 | { (case "(($ac_try" in | 
|  | 20372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20373 | *) ac_try_echo=$ac_try;; | 
|  | 20374 | esac | 
|  | 20375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20376 | (eval "$ac_try") 2>&5 | 
|  | 20377 | ac_status=$? | 
|  | 20378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20379 | (exit $ac_status); }; }; then | 
|  | 20380 | eval "$as_ac_var=yes" | 
|  | 20381 | else | 
|  | 20382 | echo "$as_me: failed program was:" >&5 | 
|  | 20383 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20384 |  | 
|  | 20385 | eval "$as_ac_var=no" | 
|  | 20386 | fi | 
|  | 20387 |  | 
|  | 20388 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20389 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20390 | fi | 
|  | 20391 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 20392 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20393 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20394 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20395 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20397 | _ACEOF | 
|  | 20398 |  | 
|  | 20399 | fi | 
|  | 20400 | done | 
|  | 20401 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20402 | { echo "$as_me:$LINENO: checking for working mmap" >&5 | 
|  | 20403 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | 
|  | 20404 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
|  | 20405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20406 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20407 | if test "$cross_compiling" = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20408 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 20409 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20410 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20411 | /* confdefs.h.  */ | 
|  | 20412 | _ACEOF | 
|  | 20413 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20414 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20415 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20416 | $ac_includes_default | 
|  | 20417 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 20418 | #undef malloc | 
|  | 20419 |  | 
|  | 20420 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 20421 | Here is a matrix of mmap possibilities: | 
|  | 20422 | mmap private not fixed | 
|  | 20423 | mmap private fixed at somewhere currently unmapped | 
|  | 20424 | mmap private fixed at somewhere already mapped | 
|  | 20425 | mmap shared not fixed | 
|  | 20426 | mmap shared fixed at somewhere currently unmapped | 
|  | 20427 | mmap shared fixed at somewhere already mapped | 
|  | 20428 | For private mappings, we should verify that changes cannot be read() | 
|  | 20429 | back from the file, nor mmap's back from the file at a different | 
|  | 20430 | address.  (There have been systems where private was not correctly | 
|  | 20431 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 20432 | VM page cache was not coherent with the file system buffer cache | 
|  | 20433 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 20434 | For shared mappings, we should conversely verify that changes get | 
|  | 20435 | propagated back to all the places they're supposed to be. | 
|  | 20436 |  | 
|  | 20437 | Grep wants private fixed already mapped. | 
|  | 20438 | The main things grep needs to know about mmap are: | 
|  | 20439 | * does it exist and is it safe to write into the mmap'd area | 
|  | 20440 | * how to use it (BSD variants)  */ | 
|  | 20441 |  | 
|  | 20442 | #include <fcntl.h> | 
|  | 20443 | #include <sys/mman.h> | 
|  | 20444 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20445 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20446 | char *malloc (); | 
|  | 20447 | #endif | 
|  | 20448 |  | 
|  | 20449 | /* This mess was copied from the GNU getpagesize.h.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20450 | #if !HAVE_GETPAGESIZE | 
|  | 20451 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 20452 | # if !HAVE_SYS_PARAM_H | 
|  | 20453 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 20454 | # endif | 
|  | 20455 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20456 | # ifdef _SC_PAGESIZE | 
|  | 20457 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 20458 | # else /* no _SC_PAGESIZE */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20459 | #  if HAVE_SYS_PARAM_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20460 | #   include <sys/param.h> | 
|  | 20461 | #   ifdef EXEC_PAGESIZE | 
|  | 20462 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 20463 | #   else /* no EXEC_PAGESIZE */ | 
|  | 20464 | #    ifdef NBPG | 
|  | 20465 | #     define getpagesize() NBPG * CLSIZE | 
|  | 20466 | #     ifndef CLSIZE | 
|  | 20467 | #      define CLSIZE 1 | 
|  | 20468 | #     endif /* no CLSIZE */ | 
|  | 20469 | #    else /* no NBPG */ | 
|  | 20470 | #     ifdef NBPC | 
|  | 20471 | #      define getpagesize() NBPC | 
|  | 20472 | #     else /* no NBPC */ | 
|  | 20473 | #      ifdef PAGESIZE | 
|  | 20474 | #       define getpagesize() PAGESIZE | 
|  | 20475 | #      endif /* PAGESIZE */ | 
|  | 20476 | #     endif /* no NBPC */ | 
|  | 20477 | #    endif /* no NBPG */ | 
|  | 20478 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 20479 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 20480 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 20481 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 20482 | # endif /* no _SC_PAGESIZE */ | 
|  | 20483 |  | 
|  | 20484 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 20485 |  | 
|  | 20486 | int | 
|  | 20487 | main () | 
|  | 20488 | { | 
|  | 20489 | char *data, *data2, *data3; | 
|  | 20490 | int i, pagesize; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20491 | int fd; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20492 |  | 
|  | 20493 | pagesize = getpagesize (); | 
|  | 20494 |  | 
|  | 20495 | /* First, make a file with some known garbage in it. */ | 
|  | 20496 | data = (char *) malloc (pagesize); | 
|  | 20497 | if (!data) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20498 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20499 | for (i = 0; i < pagesize; ++i) | 
|  | 20500 | *(data + i) = rand (); | 
|  | 20501 | umask (0); | 
|  | 20502 | fd = creat ("conftest.mmap", 0600); | 
|  | 20503 | if (fd < 0) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20504 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20505 | if (write (fd, data, pagesize) != pagesize) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20506 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20507 | close (fd); | 
|  | 20508 |  | 
|  | 20509 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 20510 | something else allocated at it.  If we can, also make sure that | 
|  | 20511 | we see the same garbage.  */ | 
|  | 20512 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 20513 | if (fd < 0) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20514 | return 1; | 
|  | 20515 | data2 = (char *) malloc (2 * pagesize); | 
|  | 20516 | if (!data2) | 
|  | 20517 | return 1; | 
|  | 20518 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20519 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20520 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20521 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20522 | for (i = 0; i < pagesize; ++i) | 
|  | 20523 | if (*(data + i) != *(data2 + i)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20524 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20525 |  | 
|  | 20526 | /* Finally, make sure that changes to the mapped area do not | 
|  | 20527 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 20528 | some variants of i386 svr4.0.)  */ | 
|  | 20529 | for (i = 0; i < pagesize; ++i) | 
|  | 20530 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 20531 | data3 = (char *) malloc (pagesize); | 
|  | 20532 | if (!data3) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20533 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20534 | if (read (fd, data3, pagesize) != pagesize) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20535 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20536 | for (i = 0; i < pagesize; ++i) | 
|  | 20537 | if (*(data + i) != *(data3 + i)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20538 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20539 | close (fd); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20540 | return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20541 | } | 
|  | 20542 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20543 | rm -f conftest$ac_exeext | 
|  | 20544 | if { (ac_try="$ac_link" | 
|  | 20545 | case "(($ac_try" in | 
|  | 20546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20547 | *) ac_try_echo=$ac_try;; | 
|  | 20548 | esac | 
|  | 20549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20550 | (eval "$ac_link") 2>&5 | 
|  | 20551 | ac_status=$? | 
|  | 20552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20554 | { (case "(($ac_try" in | 
|  | 20555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20556 | *) ac_try_echo=$ac_try;; | 
|  | 20557 | esac | 
|  | 20558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20559 | (eval "$ac_try") 2>&5 | 
|  | 20560 | ac_status=$? | 
|  | 20561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20562 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20563 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 20564 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20565 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20566 | echo "$as_me: failed program was:" >&5 | 
|  | 20567 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20568 |  | 
|  | 20569 | ( exit $ac_status ) | 
|  | 20570 | ac_cv_func_mmap_fixed_mapped=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20571 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20572 | 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] | 20573 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20574 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20575 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20576 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20577 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
|  | 20578 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20579 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 20580 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20581 | cat >>confdefs.h <<\_ACEOF | 
|  | 20582 | #define HAVE_MMAP 1 | 
|  | 20583 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20584 |  | 
|  | 20585 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20586 | rm -f conftest.mmap | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20587 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20588 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
|  | 20589 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } | 
|  | 20590 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
|  | 20591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20592 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20593 | ac_ext=c | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20594 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20598 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20599 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20600 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20601 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20602 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20603 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20604 | /* confdefs.h.  */ | 
|  | 20605 | _ACEOF | 
|  | 20606 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20607 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20608 | /* end confdefs.h.  */ | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20609 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20610 | #include <sys/types.h> | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20611 | #include <sys/mman.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20612 | #include <fcntl.h> | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20613 |  | 
|  | 20614 | int | 
|  | 20615 | main () | 
|  | 20616 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20617 |  | 
|  | 20618 | int fd; | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20619 | fd = creat ("foo",0777); | 
|  | 20620 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
|  | 20621 | unlink ("foo"); | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20622 | return (fd != (int) MAP_FAILED); | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20623 | ; | 
|  | 20624 | return 0; | 
|  | 20625 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20626 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20627 | rm -f conftest$ac_exeext | 
|  | 20628 | if { (ac_try="$ac_link" | 
|  | 20629 | case "(($ac_try" in | 
|  | 20630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20631 | *) ac_try_echo=$ac_try;; | 
|  | 20632 | esac | 
|  | 20633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20634 | (eval "$ac_link") 2>&5 | 
|  | 20635 | ac_status=$? | 
|  | 20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20637 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20638 | { (case "(($ac_try" in | 
|  | 20639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20640 | *) ac_try_echo=$ac_try;; | 
|  | 20641 | esac | 
|  | 20642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20643 | (eval "$ac_try") 2>&5 | 
|  | 20644 | ac_status=$? | 
|  | 20645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20646 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20647 | ac_cv_func_mmap_file=yes | 
|  | 20648 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20649 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20650 | echo "$as_me: failed program was:" >&5 | 
|  | 20651 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20652 |  | 
|  | 20653 | ( exit $ac_status ) | 
|  | 20654 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20655 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20656 | 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] | 20657 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20658 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20659 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20660 | ac_ext=c | 
|  | 20661 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20665 |  | 
|  | 20666 |  | 
|  | 20667 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20668 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
|  | 20669 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20670 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20671 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20672 | cat >>confdefs.h <<\_ACEOF | 
|  | 20673 | #define HAVE_MMAP_FILE | 
|  | 20674 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20675 |  | 
|  | 20676 | MMAP_FILE=yes | 
|  | 20677 |  | 
|  | 20678 | fi | 
|  | 20679 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20680 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 | 
|  | 20681 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } | 
|  | 20682 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then | 
|  | 20683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20684 | else | 
| Reid Spencer | 3d745d4 | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20685 | if test "$llvm_cv_os_type" = "Interix" ; then | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20686 | ac_cv_need_dev_zero_for_mmap=yes | 
|  | 20687 | else | 
|  | 20688 | ac_cv_need_dev_zero_for_mmap=no | 
|  | 20689 | fi | 
|  | 20690 |  | 
|  | 20691 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20692 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 | 
|  | 20693 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20694 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then | 
|  | 20695 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20696 | cat >>confdefs.h <<\_ACEOF | 
|  | 20697 | #define NEED_DEV_ZERO_FOR_MMAP 1 | 
|  | 20698 | _ACEOF | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20699 |  | 
|  | 20700 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20701 |  | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20702 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
|  | 20703 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20704 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 | 
|  | 20705 | 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] | 20706 | fi | 
|  | 20707 | if test "$ac_cv_func_mmap_file" = "no" | 
|  | 20708 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20709 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
|  | 20710 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20711 | fi | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20712 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20713 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20714 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 | 
|  | 20715 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } | 
| Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20716 | ac_ext=cpp | 
|  | 20717 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20718 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20719 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20720 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20721 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20722 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20723 | /* confdefs.h.  */ | 
|  | 20724 | _ACEOF | 
|  | 20725 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20726 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20727 | /* end confdefs.h.  */ | 
|  | 20728 | int main() { | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20729 | volatile unsigned long val = 1; | 
|  | 20730 | __sync_synchronize(); | 
|  | 20731 | __sync_val_compare_and_swap(&val, 1, 0); | 
| Owen Anderson | 8d0fe6f | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20732 | __sync_add_and_fetch(&val, 1); | 
|  | 20733 | __sync_sub_and_fetch(&val, 1); | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20734 | return 0; | 
|  | 20735 | } | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20736 |  | 
|  | 20737 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20738 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20739 | if { (ac_try="$ac_link" | 
|  | 20740 | case "(($ac_try" in | 
|  | 20741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20742 | *) ac_try_echo=$ac_try;; | 
|  | 20743 | esac | 
|  | 20744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20745 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20746 | ac_status=$? | 
|  | 20747 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20748 | rm -f conftest.er1 | 
|  | 20749 | cat conftest.err >&5 | 
|  | 20750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20751 | (exit $ac_status); } && | 
|  | 20752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20753 | { (case "(($ac_try" in | 
|  | 20754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20755 | *) ac_try_echo=$ac_try;; | 
|  | 20756 | esac | 
|  | 20757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20758 | (eval "$ac_try") 2>&5 | 
|  | 20759 | ac_status=$? | 
|  | 20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20761 | (exit $ac_status); }; } && | 
|  | 20762 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20763 | { (case "(($ac_try" in | 
|  | 20764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20765 | *) ac_try_echo=$ac_try;; | 
|  | 20766 | esac | 
|  | 20767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20768 | (eval "$ac_try") 2>&5 | 
|  | 20769 | ac_status=$? | 
|  | 20770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20771 | (exit $ac_status); }; }; then | 
| Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20772 | ac_ext=c | 
|  | 20773 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20777 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20778 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 20779 | echo "${ECHO_T}yes" >&6; } | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20780 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20781 | cat >>confdefs.h <<\_ACEOF | 
| Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20782 | #define LLVM_HAS_ATOMICS 1 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20783 | _ACEOF | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20784 |  | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20785 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20786 | echo "$as_me: failed program was:" >&5 | 
|  | 20787 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20788 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20789 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20790 | echo "${ECHO_T}no" >&6; } | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20791 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20792 | cat >>confdefs.h <<\_ACEOF | 
| Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20793 | #define LLVM_HAS_ATOMICS 0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20794 | _ACEOF | 
|  | 20795 |  | 
|  | 20796 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 | 
|  | 20797 | 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] | 20798 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20799 |  | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20800 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20801 | conftest$ac_exeext conftest.$ac_ext | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20802 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20803 |  | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20804 | 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] | 20805 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 | 
|  | 20806 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } | 
|  | 20807 | if test "${llvm_cv_linux_mixed+set}" = set; then | 
|  | 20808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20809 | else | 
|  | 20810 | ac_ext=c | 
|  | 20811 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20815 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20816 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20817 | /* confdefs.h.  */ | 
|  | 20818 | _ACEOF | 
|  | 20819 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20820 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20821 | /* end confdefs.h.  */ | 
|  | 20822 | #ifndef __x86_64__ | 
|  | 20823 | error: Not x86-64 even if uname says so! | 
|  | 20824 | #endif | 
|  | 20825 |  | 
|  | 20826 | int | 
|  | 20827 | main () | 
|  | 20828 | { | 
|  | 20829 |  | 
|  | 20830 | ; | 
|  | 20831 | return 0; | 
|  | 20832 | } | 
|  | 20833 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20834 | rm -f conftest.$ac_objext | 
|  | 20835 | if { (ac_try="$ac_compile" | 
|  | 20836 | case "(($ac_try" in | 
|  | 20837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20838 | *) ac_try_echo=$ac_try;; | 
|  | 20839 | esac | 
|  | 20840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20841 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20842 | ac_status=$? | 
|  | 20843 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20844 | rm -f conftest.er1 | 
|  | 20845 | cat conftest.err >&5 | 
|  | 20846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20847 | (exit $ac_status); } && | 
|  | 20848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20849 | { (case "(($ac_try" in | 
|  | 20850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20851 | *) ac_try_echo=$ac_try;; | 
|  | 20852 | esac | 
|  | 20853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20854 | (eval "$ac_try") 2>&5 | 
|  | 20855 | ac_status=$? | 
|  | 20856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20857 | (exit $ac_status); }; } && | 
|  | 20858 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20859 | { (case "(($ac_try" in | 
|  | 20860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20861 | *) ac_try_echo=$ac_try;; | 
|  | 20862 | esac | 
|  | 20863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20864 | (eval "$ac_try") 2>&5 | 
|  | 20865 | ac_status=$? | 
|  | 20866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20867 | (exit $ac_status); }; }; then | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20868 | llvm_cv_linux_mixed=no | 
|  | 20869 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20870 | echo "$as_me: failed program was:" >&5 | 
|  | 20871 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20872 |  | 
|  | 20873 | llvm_cv_linux_mixed=yes | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20874 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20875 |  | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20877 | ac_ext=c | 
|  | 20878 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20882 |  | 
|  | 20883 |  | 
|  | 20884 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20885 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 | 
|  | 20886 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20887 |  | 
|  | 20888 | if test "$llvm_cv_linux_mixed" = "yes"; then | 
|  | 20889 | llvm_cv_target_arch="x86" | 
|  | 20890 | ARCH="x86" | 
|  | 20891 | fi | 
|  | 20892 | fi | 
|  | 20893 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20894 |  | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20895 | for ac_func in __dso_handle | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20896 | do | 
|  | 20897 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20898 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20899 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 20900 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20902 | else | 
|  | 20903 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20904 | /* confdefs.h.  */ | 
|  | 20905 | _ACEOF | 
|  | 20906 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20907 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20908 | /* end confdefs.h.  */ | 
|  | 20909 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 20910 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 20911 | #define $ac_func innocuous_$ac_func | 
|  | 20912 |  | 
|  | 20913 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 20914 | which can conflict with char $ac_func (); below. | 
|  | 20915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20916 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20917 |  | 
|  | 20918 | #ifdef __STDC__ | 
|  | 20919 | # include <limits.h> | 
|  | 20920 | #else | 
|  | 20921 | # include <assert.h> | 
|  | 20922 | #endif | 
|  | 20923 |  | 
|  | 20924 | #undef $ac_func | 
|  | 20925 |  | 
|  | 20926 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20927 | Use char because int might match the return type of a GCC | 
|  | 20928 | builtin and then its argument prototype would still apply.  */ | 
|  | 20929 | #ifdef __cplusplus | 
|  | 20930 | extern "C" | 
|  | 20931 | #endif | 
|  | 20932 | char $ac_func (); | 
|  | 20933 | /* The GNU C library defines this for functions which it implements | 
|  | 20934 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20935 | something starting with __ and the normal name is an alias.  */ | 
|  | 20936 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 20937 | choke me | 
|  | 20938 | #endif | 
|  | 20939 |  | 
|  | 20940 | int | 
|  | 20941 | main () | 
|  | 20942 | { | 
|  | 20943 | return $ac_func (); | 
|  | 20944 | ; | 
|  | 20945 | return 0; | 
|  | 20946 | } | 
|  | 20947 | _ACEOF | 
|  | 20948 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20949 | if { (ac_try="$ac_link" | 
|  | 20950 | case "(($ac_try" in | 
|  | 20951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20952 | *) ac_try_echo=$ac_try;; | 
|  | 20953 | esac | 
|  | 20954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20955 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20956 | ac_status=$? | 
|  | 20957 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20958 | rm -f conftest.er1 | 
|  | 20959 | cat conftest.err >&5 | 
|  | 20960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20961 | (exit $ac_status); } && | 
|  | 20962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20963 | { (case "(($ac_try" in | 
|  | 20964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20965 | *) ac_try_echo=$ac_try;; | 
|  | 20966 | esac | 
|  | 20967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20968 | (eval "$ac_try") 2>&5 | 
|  | 20969 | ac_status=$? | 
|  | 20970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20971 | (exit $ac_status); }; } && | 
|  | 20972 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20973 | { (case "(($ac_try" in | 
|  | 20974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20975 | *) ac_try_echo=$ac_try;; | 
|  | 20976 | esac | 
|  | 20977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20978 | (eval "$ac_try") 2>&5 | 
|  | 20979 | ac_status=$? | 
|  | 20980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20981 | (exit $ac_status); }; }; then | 
|  | 20982 | eval "$as_ac_var=yes" | 
|  | 20983 | else | 
|  | 20984 | echo "$as_me: failed program was:" >&5 | 
|  | 20985 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20986 |  | 
|  | 20987 | eval "$as_ac_var=no" | 
|  | 20988 | fi | 
|  | 20989 |  | 
|  | 20990 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20991 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20992 | fi | 
|  | 20993 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 20994 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20995 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20996 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20997 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20998 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20999 | _ACEOF | 
|  | 21000 |  | 
|  | 21001 | fi | 
|  | 21002 | done | 
|  | 21003 |  | 
|  | 21004 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21005 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21006 |  | 
|  | 21007 |  | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21008 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var | 
|  | 21009 |  | 
|  | 21010 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 21011 | if test "${prefix}" = "NONE" ; then | 
| Reid Spencer | 40f1b13 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 21012 | prefix="/usr/local" | 
|  | 21013 | fi | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21014 | eval LLVM_PREFIX="${prefix}"; | 
|  | 21015 | eval LLVM_BINDIR="${prefix}/bin"; | 
|  | 21016 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21017 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
| Eric Christopher | b3762a0 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 21018 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21019 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21020 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
|  | 21021 | eval LLVM_INFODIR="${prefix}/info"; | 
|  | 21022 | eval LLVM_MANDIR="${prefix}/man"; | 
|  | 21023 | LLVM_CONFIGTIME=`date` | 
|  | 21024 |  | 
|  | 21025 |  | 
|  | 21026 |  | 
|  | 21027 |  | 
|  | 21028 |  | 
|  | 21029 |  | 
|  | 21030 |  | 
|  | 21031 |  | 
|  | 21032 |  | 
|  | 21033 |  | 
|  | 21034 |  | 
| Daniel Dunbar | 9370ecf | 2012-03-02 16:24:21 +0000 | [diff] [blame] | 21035 | if test "${ENABLE_TIMESTAMPS}" = "0"; then | 
|  | 21036 | LLVM_CONFIGTIME="(timestamp not enabled)" | 
|  | 21037 | fi | 
|  | 21038 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21039 |  | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21040 | cat >>confdefs.h <<_ACEOF | 
|  | 21041 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
|  | 21042 | _ACEOF | 
|  | 21043 |  | 
|  | 21044 |  | 
|  | 21045 | cat >>confdefs.h <<_ACEOF | 
|  | 21046 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
|  | 21047 | _ACEOF | 
|  | 21048 |  | 
|  | 21049 |  | 
|  | 21050 | cat >>confdefs.h <<_ACEOF | 
|  | 21051 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
|  | 21052 | _ACEOF | 
|  | 21053 |  | 
|  | 21054 |  | 
|  | 21055 | cat >>confdefs.h <<_ACEOF | 
|  | 21056 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
|  | 21057 | _ACEOF | 
|  | 21058 |  | 
|  | 21059 |  | 
|  | 21060 | cat >>confdefs.h <<_ACEOF | 
| Gordon Henriksen | 80f35e0 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 21061 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21062 | _ACEOF | 
|  | 21063 |  | 
|  | 21064 |  | 
|  | 21065 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 288adf1 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 21066 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21067 | _ACEOF | 
|  | 21068 |  | 
|  | 21069 |  | 
|  | 21070 | cat >>confdefs.h <<_ACEOF | 
|  | 21071 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
|  | 21072 | _ACEOF | 
|  | 21073 |  | 
|  | 21074 |  | 
|  | 21075 | cat >>confdefs.h <<_ACEOF | 
|  | 21076 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
|  | 21077 | _ACEOF | 
|  | 21078 |  | 
|  | 21079 |  | 
|  | 21080 | cat >>confdefs.h <<_ACEOF | 
|  | 21081 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
|  | 21082 | _ACEOF | 
|  | 21083 |  | 
|  | 21084 |  | 
|  | 21085 | cat >>confdefs.h <<_ACEOF | 
|  | 21086 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
|  | 21087 | _ACEOF | 
|  | 21088 |  | 
|  | 21089 |  | 
| Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21090 | cat >>confdefs.h <<_ACEOF | 
| Sebastian Pop | ec2fb22 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 21091 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" | 
| Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21092 | _ACEOF | 
|  | 21093 |  | 
|  | 21094 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21095 | if test "$BINDINGS_TO_BUILD" = auto ; then | 
|  | 21096 | BINDINGS_TO_BUILD="" | 
|  | 21097 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then | 
|  | 21098 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" | 
|  | 21099 | fi | 
|  | 21100 | fi | 
|  | 21101 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD | 
|  | 21102 |  | 
|  | 21103 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21104 | ALL_BINDINGS=ocaml | 
|  | 21105 |  | 
|  | 21106 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21107 | binding_prereqs_failed=0 | 
|  | 21108 | for a_binding in $BINDINGS_TO_BUILD ; do | 
|  | 21109 | case "$a_binding" in | 
|  | 21110 | ocaml) | 
|  | 21111 | if test "x$OCAMLC" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21112 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 | 
|  | 21113 | 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] | 21114 | binding_prereqs_failed=1 | 
|  | 21115 | fi | 
|  | 21116 | if test "x$OCAMLDEP" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21117 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 | 
|  | 21118 | 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] | 21119 | binding_prereqs_failed=1 | 
|  | 21120 | fi | 
|  | 21121 | if test "x$OCAMLOPT" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21122 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 | 
|  | 21123 | 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] | 21124 | fi | 
|  | 21125 | if test "x$with_ocaml_libdir" != xauto ; then | 
|  | 21126 | OCAML_LIBDIR=$with_ocaml_libdir | 
|  | 21127 |  | 
|  | 21128 | else | 
|  | 21129 | ocaml_stdlib="`"$OCAMLC" -where`" | 
|  | 21130 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" | 
|  | 21131 | then | 
|  | 21132 | # ocaml stdlib is beneath our prefix; use stdlib | 
|  | 21133 | OCAML_LIBDIR=$ocaml_stdlib | 
|  | 21134 |  | 
|  | 21135 | else | 
|  | 21136 | # ocaml stdlib is outside our prefix; use libdir/ocaml | 
|  | 21137 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml | 
|  | 21138 |  | 
|  | 21139 | fi | 
|  | 21140 | fi | 
|  | 21141 | ;; | 
|  | 21142 | esac | 
|  | 21143 | done | 
|  | 21144 | if test "$binding_prereqs_failed" = 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21145 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 | 
|  | 21146 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} | 
|  | 21147 | { (exit 1); exit 1; }; } | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21148 | fi | 
|  | 21149 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21150 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 | 
|  | 21151 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } | 
|  | 21152 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then | 
|  | 21153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21154 | else | 
|  | 21155 | ac_ext=cpp | 
|  | 21156 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 21157 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21158 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21159 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 21160 |  | 
|  | 21161 | oldcxxflags="$CXXFLAGS" | 
| NAKAMURA Takumi | 652e013 | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 21162 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21164 | /* confdefs.h.  */ | 
|  | 21165 | _ACEOF | 
|  | 21166 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21167 | cat >>conftest.$ac_ext <<_ACEOF | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21168 | /* end confdefs.h.  */ | 
| Benjamin Kramer | 54671a7 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 21169 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21170 | int | 
|  | 21171 | main () | 
|  | 21172 | { | 
| Benjamin Kramer | 942b287 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 21173 | X<int>().f(); | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21174 | ; | 
|  | 21175 | return 0; | 
|  | 21176 | } | 
|  | 21177 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21178 | rm -f conftest.$ac_objext | 
|  | 21179 | if { (ac_try="$ac_compile" | 
|  | 21180 | case "(($ac_try" in | 
|  | 21181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21182 | *) ac_try_echo=$ac_try;; | 
|  | 21183 | esac | 
|  | 21184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21185 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 21186 | ac_status=$? | 
|  | 21187 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21188 | rm -f conftest.er1 | 
|  | 21189 | cat conftest.err >&5 | 
|  | 21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21191 | (exit $ac_status); } && | 
|  | 21192 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 21193 | { (case "(($ac_try" in | 
|  | 21194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21195 | *) ac_try_echo=$ac_try;; | 
|  | 21196 | esac | 
|  | 21197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21198 | (eval "$ac_try") 2>&5 | 
|  | 21199 | ac_status=$? | 
|  | 21200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21201 | (exit $ac_status); }; } && | 
|  | 21202 | { ac_try='test -s conftest.$ac_objext' | 
|  | 21203 | { (case "(($ac_try" in | 
|  | 21204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21205 | *) ac_try_echo=$ac_try;; | 
|  | 21206 | esac | 
|  | 21207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21208 | (eval "$ac_try") 2>&5 | 
|  | 21209 | ac_status=$? | 
|  | 21210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21211 | (exit $ac_status); }; }; then | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21212 | llvm_cv_cxx_visibility_inlines_hidden=yes | 
|  | 21213 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21214 | echo "$as_me: failed program was:" >&5 | 
|  | 21215 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21216 |  | 
|  | 21217 | llvm_cv_cxx_visibility_inlines_hidden=no | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21218 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21219 |  | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21221 | CXXFLAGS="$oldcxxflags" | 
|  | 21222 | ac_ext=c | 
|  | 21223 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21227 |  | 
|  | 21228 |  | 
|  | 21229 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21230 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 | 
|  | 21231 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21232 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then | 
|  | 21233 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 | 
|  | 21234 |  | 
|  | 21235 | else | 
|  | 21236 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 | 
|  | 21237 |  | 
|  | 21238 | fi | 
|  | 21239 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21240 |  | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21241 | if test "$llvm_cv_link_use_r" = "yes" ; then | 
|  | 21242 | RPATH="-Wl,-R" | 
|  | 21243 | else | 
|  | 21244 | RPATH="-Wl,-rpath" | 
|  | 21245 | fi | 
|  | 21246 |  | 
|  | 21247 |  | 
|  | 21248 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then | 
|  | 21249 | RDYNAMIC="-Wl,-export-dynamic" | 
|  | 21250 | else | 
|  | 21251 | RDYNAMIC="" | 
|  | 21252 | fi | 
| Nick Lewycky | ed8472e | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21253 |  | 
|  | 21254 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21255 |  | 
| Eric Christopher | 97014d8 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21256 | 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] | 21257 |  | 
| Eric Christopher | 41983c6 | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21258 |  | 
|  | 21259 |  | 
|  | 21260 |  | 
|  | 21261 |  | 
|  | 21262 |  | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21263 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" | 
|  | 21264 |  | 
|  | 21265 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" | 
|  | 21266 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21267 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" | 
|  | 21268 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21269 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" | 
|  | 21270 |  | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21271 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21272 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21273 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21274 | ac_config_files="$ac_config_files Makefile.config" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21275 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21276 |  | 
| Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21277 | ac_config_files="$ac_config_files llvm.spec" | 
|  | 21278 |  | 
|  | 21279 |  | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21280 | ac_config_files="$ac_config_files docs/doxygen.cfg" | 
|  | 21281 |  | 
| Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21282 |  | 
| Dylan Noblesmith | e21a3b2 | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 21283 | if test "${clang_src_root}" = ""; then | 
| Eric Christopher | dc51a5d | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 21284 | clang_src_root="$srcdir/tools/clang" | 
| Eric Christopher | 7f977de | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 21285 | fi | 
| Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21286 | if test -f ${clang_src_root}/README.txt; then | 
| Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21287 | configh="include/clang/Config/config.h" | 
|  | 21288 | doxy="docs/doxygen.cfg" | 
|  | 21289 | ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" | 
| Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21290 |  | 
| Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21291 | ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21292 |  | 
|  | 21293 | fi | 
|  | 21294 |  | 
| Torok Edwin | 229f8d7 | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21295 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" | 
| Reid Spencer | 6f682b7 | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21296 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21297 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21298 | ac_config_commands="$ac_config_commands setup" | 
| Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21299 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | ac_config_commands="$ac_config_commands Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21301 |  | 
|  | 21302 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21303 | ac_config_commands="$ac_config_commands Makefile.common" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21304 |  | 
|  | 21305 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21306 | ac_config_commands="$ac_config_commands examples/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21307 |  | 
|  | 21308 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21309 | ac_config_commands="$ac_config_commands lib/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21310 |  | 
|  | 21311 |  | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21312 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
|  | 21313 |  | 
|  | 21314 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21315 | ac_config_commands="$ac_config_commands test/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21316 |  | 
|  | 21317 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21318 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21319 |  | 
|  | 21320 |  | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21321 | ac_config_commands="$ac_config_commands unittests/Makefile" | 
|  | 21322 |  | 
|  | 21323 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21324 | ac_config_commands="$ac_config_commands tools/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21325 |  | 
|  | 21326 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21327 | ac_config_commands="$ac_config_commands utils/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21328 |  | 
|  | 21329 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21330 | ac_config_commands="$ac_config_commands projects/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21331 |  | 
|  | 21332 |  | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21333 | ac_config_commands="$ac_config_commands bindings/Makefile" | 
|  | 21334 |  | 
|  | 21335 |  | 
|  | 21336 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" | 
|  | 21337 |  | 
|  | 21338 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21339 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21340 | cat >confcache <<\_ACEOF | 
|  | 21341 | # This file is a shell script that caches the results of configure | 
|  | 21342 | # tests run on this system so they can be shared between configure | 
|  | 21343 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 21344 | # It is not useful on other systems.  If it contains results you don't | 
|  | 21345 | # want to keep, you may remove or edit it. | 
|  | 21346 | # | 
|  | 21347 | # config.status only pays attention to the cache file if you give it | 
|  | 21348 | # the --recheck option to rerun configure. | 
|  | 21349 | # | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21350 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21351 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 21352 | # following values. | 
|  | 21353 |  | 
|  | 21354 | _ACEOF | 
|  | 21355 |  | 
|  | 21356 | # The following way of writing the cache mishandles newlines in values, | 
|  | 21357 | # but we know of no workaround that is simple, portable, and efficient. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21358 | # So, we kill variables containing newlines. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21359 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 21360 | # 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] | 21361 | ( | 
|  | 21362 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 21363 | eval ac_val=\$$ac_var | 
|  | 21364 | case $ac_val in #( | 
|  | 21365 | *${as_nl}*) | 
|  | 21366 | case $ac_var in #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21367 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
|  | 21368 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21369 | esac | 
|  | 21370 | case $ac_var in #( | 
|  | 21371 | _ | IFS | as_nl) ;; #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21372 | *) $as_unset $ac_var ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21373 | esac ;; | 
|  | 21374 | esac | 
|  | 21375 | done | 
|  | 21376 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21377 | (set) 2>&1 | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21378 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 21379 | *${as_nl}ac_space=\ *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21380 | # `set' does not quote correctly, so add quotes (double-quote | 
|  | 21381 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21382 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21383 | "s/'/'\\\\''/g; | 
|  | 21384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21385 | ;; #( | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21386 | *) | 
|  | 21387 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21388 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21389 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21390 | esac | | 
|  | 21391 | sort | 
|  | 21392 | ) | | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21393 | sed ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21394 | /^ac_cv_env_/b end | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21395 | t clear | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21396 | :clear | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21397 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 21398 | t end | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 21400 | :end' >>confcache | 
|  | 21401 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 21402 | if test -w "$cache_file"; then | 
|  | 21403 | test "x$cache_file" != "x/dev/null" && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21404 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | 
|  | 21405 | echo "$as_me: updating cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21406 | cat confcache >$cache_file | 
|  | 21407 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21408 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | 
|  | 21409 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21410 | fi | 
|  | 21411 | fi | 
|  | 21412 | rm -f confcache | 
|  | 21413 |  | 
|  | 21414 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 21415 | # Let make expand exec_prefix. | 
|  | 21416 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 21417 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21418 | DEFS=-DHAVE_CONFIG_H | 
|  | 21419 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21420 | ac_libobjs= | 
|  | 21421 | ac_ltlibobjs= | 
|  | 21422 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 21423 | # 1. Remove the extension, and $U if already installed. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21424 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21425 | ac_i=`echo "$ac_i" | sed "$ac_script"` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21426 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 21427 | #    will be set to the directory where LIBOBJS objects are built. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21428 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 21429 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21430 | done | 
|  | 21431 | LIBOBJS=$ac_libobjs | 
|  | 21432 |  | 
|  | 21433 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 21434 |  | 
|  | 21435 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21436 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21437 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 21438 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 21439 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 21440 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 21441 | { (exit 1); exit 1; }; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21442 | fi | 
|  | 21443 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21444 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 21445 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 21446 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 21447 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 21448 | { (exit 1); exit 1; }; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21449 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21450 |  | 
|  | 21451 | : ${CONFIG_STATUS=./config.status} | 
|  | 21452 | ac_clean_files_save=$ac_clean_files | 
|  | 21453 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21454 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
|  | 21455 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 21456 | cat >$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21457 | #! $SHELL | 
|  | 21458 | # Generated by $as_me. | 
|  | 21459 | # Run this file to recreate the current configuration. | 
|  | 21460 | # Compiler output produced by configure, useful for debugging | 
|  | 21461 | # configure, is in config.log if it exists. | 
|  | 21462 |  | 
|  | 21463 | debug=false | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21464 | ac_cs_recheck=false | 
|  | 21465 | ac_cs_silent=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21466 | SHELL=\${CONFIG_SHELL-$SHELL} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21467 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21468 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21469 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 21470 | ## --------------------- ## | 
|  | 21471 | ## M4sh Initialization.  ## | 
|  | 21472 | ## --------------------- ## | 
|  | 21473 |  | 
|  | 21474 | # Be Bourne compatible | 
|  | 21475 | 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] | 21476 | emulate sh | 
|  | 21477 | NULLCMD=: | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21478 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21479 | # is contrary to our usage.  Disable this feature. | 
|  | 21480 | alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21481 | setopt NO_GLOB_SUBST | 
|  | 21482 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21483 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21484 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21485 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
|  | 21486 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21487 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21488 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21489 | # PATH needs CR | 
|  | 21490 | # Avoid depending upon Character Ranges. | 
|  | 21491 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 21492 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 21493 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 21494 | as_cr_digits='0123456789' | 
|  | 21495 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21496 |  | 
|  | 21497 | # The user is always right. | 
|  | 21498 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21499 | echo "#! /bin/sh" >conf$$.sh | 
|  | 21500 | echo  "exit 0"   >>conf$$.sh | 
|  | 21501 | chmod +x conf$$.sh | 
|  | 21502 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
|  | 21503 | PATH_SEPARATOR=';' | 
|  | 21504 | else | 
|  | 21505 | PATH_SEPARATOR=: | 
|  | 21506 | fi | 
|  | 21507 | rm -f conf$$.sh | 
|  | 21508 | fi | 
|  | 21509 |  | 
|  | 21510 | # Support unset when possible. | 
|  | 21511 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
|  | 21512 | as_unset=unset | 
|  | 21513 | else | 
|  | 21514 | as_unset=false | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21515 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21516 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21517 |  | 
|  | 21518 | # IFS | 
|  | 21519 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 21520 | # there to prevent editors from complaining about space-tab. | 
|  | 21521 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 21522 | # splitting by setting IFS to empty value.) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21523 | as_nl=' | 
|  | 21524 | ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21525 | IFS=" ""	$as_nl" | 
|  | 21526 |  | 
|  | 21527 | # 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] | 21528 | case $0 in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21529 | *[\\/]* ) as_myself=$0 ;; | 
|  | 21530 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21531 | for as_dir in $PATH | 
|  | 21532 | do | 
|  | 21533 | IFS=$as_save_IFS | 
|  | 21534 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21535 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 21536 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21537 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21538 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21539 | ;; | 
|  | 21540 | esac | 
|  | 21541 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 21542 | # in which case we are not to be found in the path. | 
|  | 21543 | if test "x$as_myself" = x; then | 
|  | 21544 | as_myself=$0 | 
|  | 21545 | fi | 
|  | 21546 | if test ! -f "$as_myself"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21547 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 21548 | { (exit 1); exit 1; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21549 | fi | 
|  | 21550 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21551 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 21552 | for as_var in ENV MAIL MAILPATH | 
|  | 21553 | 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] | 21554 | done | 
|  | 21555 | PS1='$ ' | 
|  | 21556 | PS2='> ' | 
|  | 21557 | PS4='+ ' | 
|  | 21558 |  | 
|  | 21559 | # NLS nuisances. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21560 | for as_var in \ | 
|  | 21561 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 21562 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 21563 | LC_TELEPHONE LC_TIME | 
|  | 21564 | do | 
|  | 21565 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
|  | 21566 | eval $as_var=C; export $as_var | 
|  | 21567 | else | 
|  | 21568 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21569 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21570 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21571 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21572 | # Required to use basename. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21573 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 21574 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 21575 | as_expr=expr | 
|  | 21576 | else | 
|  | 21577 | as_expr=false | 
|  | 21578 | fi | 
|  | 21579 |  | 
|  | 21580 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 21581 | as_basename=basename | 
|  | 21582 | else | 
|  | 21583 | as_basename=false | 
|  | 21584 | fi | 
|  | 21585 |  | 
|  | 21586 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21587 | # Name of the executable. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21588 | as_me=`$as_basename -- "$0" || | 
|  | 21589 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 21590 | X"$0" : 'X\(//\)$' \| \ | 
|  | 21591 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21592 | echo X/"$0" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21593 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 21594 | s//\1/ | 
|  | 21595 | q | 
|  | 21596 | } | 
|  | 21597 | /^X\/\(\/\/\)$/{ | 
|  | 21598 | s//\1/ | 
|  | 21599 | q | 
|  | 21600 | } | 
|  | 21601 | /^X\/\(\/\).*/{ | 
|  | 21602 | s//\1/ | 
|  | 21603 | q | 
|  | 21604 | } | 
|  | 21605 | s/.*/./; q'` | 
|  | 21606 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21607 | # CDPATH. | 
|  | 21608 | $as_unset CDPATH | 
|  | 21609 |  | 
|  | 21610 |  | 
|  | 21611 |  | 
|  | 21612 | as_lineno_1=$LINENO | 
|  | 21613 | as_lineno_2=$LINENO | 
|  | 21614 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 21615 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | 
|  | 21616 |  | 
|  | 21617 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 21618 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 21619 | # line-number line after each line using $LINENO; the second 'sed' | 
|  | 21620 | # does the real work.  The second script uses 'N' to pair each | 
|  | 21621 | # line-number line with the line containing $LINENO, and appends | 
|  | 21622 | # trailing '-' during substitution so that $LINENO is not a special | 
|  | 21623 | # case at line end. | 
|  | 21624 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 21625 | # scripts with optimization help from Paolo Bonzini.  Blame Lee | 
|  | 21626 | # E. McMahon (1931-1989) for sed's syntax.  :-) | 
|  | 21627 | sed -n ' | 
|  | 21628 | p | 
|  | 21629 | /[$]LINENO/= | 
|  | 21630 | ' <$as_myself | | 
|  | 21631 | sed ' | 
|  | 21632 | s/[$]LINENO.*/&-/ | 
|  | 21633 | t lineno | 
|  | 21634 | b | 
|  | 21635 | :lineno | 
|  | 21636 | N | 
|  | 21637 | :loop | 
|  | 21638 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
|  | 21639 | t loop | 
|  | 21640 | s/-\n.*// | 
|  | 21641 | ' >$as_me.lineno && | 
|  | 21642 | chmod +x "$as_me.lineno" || | 
|  | 21643 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
|  | 21644 | { (exit 1); exit 1; }; } | 
|  | 21645 |  | 
|  | 21646 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 21647 | # (the dirname of $[0] is not the place where we might find the | 
|  | 21648 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 21649 | . "./$as_me.lineno" | 
|  | 21650 | # Exit status is that of the last command. | 
|  | 21651 | exit | 
|  | 21652 | } | 
|  | 21653 |  | 
|  | 21654 |  | 
|  | 21655 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 21656 | as_dirname=dirname | 
|  | 21657 | else | 
|  | 21658 | as_dirname=false | 
|  | 21659 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21660 |  | 
|  | 21661 | ECHO_C= ECHO_N= ECHO_T= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21662 | case `echo -n x` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21663 | -n*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21664 | case `echo 'x\c'` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21665 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21666 | *)   ECHO_C='\c';; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21667 | esac;; | 
|  | 21668 | *) | 
|  | 21669 | ECHO_N='-n';; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21670 | esac | 
|  | 21671 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21672 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 21673 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 21674 | as_expr=expr | 
|  | 21675 | else | 
|  | 21676 | as_expr=false | 
|  | 21677 | fi | 
|  | 21678 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21679 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21680 | if test -d conf$$.dir; then | 
|  | 21681 | rm -f conf$$.dir/conf$$.file | 
|  | 21682 | else | 
|  | 21683 | rm -f conf$$.dir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21684 | mkdir conf$$.dir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21685 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21686 | echo >conf$$.file | 
|  | 21687 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 21688 | as_ln_s='ln -s' | 
|  | 21689 | # ... but there are two gotchas: | 
|  | 21690 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 21691 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 21692 | # In both cases, we have to default to `cp -p'. | 
|  | 21693 | 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] | 21694 | as_ln_s='cp -p' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21695 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 21696 | as_ln_s=ln | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21697 | else | 
|  | 21698 | as_ln_s='cp -p' | 
|  | 21699 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21700 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 21701 | rmdir conf$$.dir 2>/dev/null | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21702 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21703 | if mkdir -p . 2>/dev/null; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21704 | as_mkdir_p=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21705 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21706 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21707 | as_mkdir_p=false | 
|  | 21708 | fi | 
|  | 21709 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21710 | # Find out whether ``test -x'' works.  Don't use a zero-byte file, as | 
|  | 21711 | # systems may use methods other than mode bits to determine executability. | 
|  | 21712 | cat >conf$$.file <<_ASEOF | 
|  | 21713 | #! /bin/sh | 
|  | 21714 | exit 0 | 
|  | 21715 | _ASEOF | 
|  | 21716 | chmod +x conf$$.file | 
|  | 21717 | if test -x conf$$.file >/dev/null 2>&1; then | 
|  | 21718 | as_executable_p="test -x" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21719 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21720 | as_executable_p=: | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21721 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21722 | rm -f conf$$.file | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21723 |  | 
|  | 21724 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21725 | 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] | 21726 |  | 
|  | 21727 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21728 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21729 |  | 
|  | 21730 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21731 | exec 6>&1 | 
|  | 21732 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21733 | # 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] | 21734 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | # values after options handling. | 
|  | 21736 | ac_log=" | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 21737 | This file was extended by LLVM $as_me 3.2svn, which was | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21738 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21739 |  | 
|  | 21740 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 21741 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 21742 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 21743 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 21744 | $ $0 $@ | 
|  | 21745 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21746 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 21747 | " | 
|  | 21748 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21749 | _ACEOF | 
|  | 21750 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21751 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21752 | # Files that config.status was made for. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21753 | config_files="$ac_config_files" | 
|  | 21754 | config_headers="$ac_config_headers" | 
|  | 21755 | config_commands="$ac_config_commands" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21756 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21757 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21758 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21759 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21760 | ac_cs_usage="\ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21761 | \`$as_me' instantiates files from templates according to the | 
|  | 21762 | current configuration. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21763 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21764 | Usage: $0 [OPTIONS] [FILE]... | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21765 |  | 
|  | 21766 | -h, --help       print this help, then exit | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21767 | -V, --version    print version number, then exit | 
|  | 21768 | -q, --quiet      do not print progress messages | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21769 | -d, --debug      don't remove temporary files | 
|  | 21770 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21771 | --file=FILE[:TEMPLATE] | 
|  | 21772 | instantiate the configuration file FILE | 
|  | 21773 | --header=FILE[:TEMPLATE] | 
|  | 21774 | instantiate the configuration header FILE | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21775 |  | 
|  | 21776 | Configuration files: | 
|  | 21777 | $config_files | 
|  | 21778 |  | 
|  | 21779 | Configuration headers: | 
|  | 21780 | $config_headers | 
|  | 21781 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21782 | Configuration commands: | 
|  | 21783 | $config_commands | 
|  | 21784 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21785 | Report bugs to <bug-autoconf@gnu.org>." | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21786 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21787 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21788 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21789 | ac_cs_version="\\ | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 21790 | LLVM config.status 3.2svn | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21791 | configured by $0, generated by GNU Autoconf 2.60, | 
|  | 21792 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21793 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21794 | Copyright (C) 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21795 | This config.status script is free software; the Free Software Foundation | 
|  | 21796 | gives unlimited permission to copy, distribute and modify it." | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21797 |  | 
|  | 21798 | ac_pwd='$ac_pwd' | 
|  | 21799 | srcdir='$srcdir' | 
|  | 21800 | INSTALL='$INSTALL' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21801 | _ACEOF | 
|  | 21802 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21803 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 21804 | # If no file are specified by the user, then we need to provide default | 
|  | 21805 | # 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] | 21806 | ac_need_defaults=: | 
|  | 21807 | while test $# != 0 | 
|  | 21808 | do | 
|  | 21809 | case $1 in | 
|  | 21810 | --*=*) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21811 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 21812 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21813 | ac_shift=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21814 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21815 | *) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21816 | ac_option=$1 | 
|  | 21817 | ac_optarg=$2 | 
|  | 21818 | ac_shift=shift | 
|  | 21819 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21820 | esac | 
|  | 21821 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21822 | case $ac_option in | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21823 | # Handling of the options. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21824 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 21825 | ac_cs_recheck=: ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21826 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21827 | echo "$ac_cs_version"; exit ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21828 | --debug | --debu | --deb | --de | --d | -d ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21829 | debug=: ;; | 
|  | 21830 | --file | --fil | --fi | --f ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21831 | $ac_shift | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21832 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21833 | ac_need_defaults=false;; | 
|  | 21834 | --header | --heade | --head | --hea ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21835 | $ac_shift | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21836 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21837 | ac_need_defaults=false;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21838 | --he | --h) | 
|  | 21839 | # Conflict between --help and --header | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21840 | { echo "$as_me: error: ambiguous option: $1 | 
|  | 21841 | Try \`$0 --help' for more information." >&2 | 
|  | 21842 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21843 | --help | --hel | -h ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21844 | echo "$ac_cs_usage"; exit ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21845 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 21846 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 21847 | ac_cs_silent=: ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21848 |  | 
|  | 21849 | # This is an error. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21850 | -*) { echo "$as_me: error: unrecognized option: $1 | 
|  | 21851 | Try \`$0 --help' for more information." >&2 | 
|  | 21852 | { (exit 1); exit 1; }; } ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21853 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21854 | *) ac_config_targets="$ac_config_targets $1" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21855 | ac_need_defaults=false ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21856 |  | 
|  | 21857 | esac | 
|  | 21858 | shift | 
|  | 21859 | done | 
|  | 21860 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21861 | ac_configure_extra_args= | 
|  | 21862 |  | 
|  | 21863 | if $ac_cs_silent; then | 
|  | 21864 | exec 6>/dev/null | 
|  | 21865 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 21866 | fi | 
|  | 21867 |  | 
|  | 21868 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21869 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21870 | if \$ac_cs_recheck; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21871 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
|  | 21872 | CONFIG_SHELL=$SHELL | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21873 | export CONFIG_SHELL | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21874 | 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] | 21875 | fi | 
|  | 21876 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21877 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21878 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21879 | exec 5>>config.log | 
|  | 21880 | { | 
|  | 21881 | echo | 
|  | 21882 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 21883 | ## Running $as_me. ## | 
|  | 21884 | _ASBOX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21885 | echo "$ac_log" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21886 | } >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21887 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21888 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21889 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21890 | # | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21891 | # INIT-COMMANDS | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21892 | # | 
| Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21893 | llvm_src="${srcdir}" | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21894 |  | 
|  | 21895 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21896 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21897 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21898 |  | 
|  | 21899 | # Handling of arguments. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21900 | for ac_config_target in $ac_config_targets | 
|  | 21901 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21902 | case $ac_config_target in | 
|  | 21903 | "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] | 21904 | "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] | 21905 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; | 
|  | 21906 | "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] | 21907 | "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] | 21908 | "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] | 21909 | "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] | 21910 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21911 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21912 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
| Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21913 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; | 
|  | 21914 | "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21915 | "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] | 21916 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; | 
|  | 21917 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
|  | 21918 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
|  | 21919 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
|  | 21920 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21921 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21922 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
|  | 21923 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21924 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21925 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
|  | 21926 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
|  | 21927 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21928 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; | 
|  | 21929 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21930 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21931 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
|  | 21932 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
|  | 21933 | { (exit 1); exit 1; }; };; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21934 | esac | 
|  | 21935 | done | 
|  | 21936 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21937 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21938 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 21939 | # then the envvar interface is used.  Set only those that are not. | 
|  | 21940 | # We use the long form for the default assignment because of an extremely | 
|  | 21941 | # bizarre bug on SunOS 4.1.3. | 
|  | 21942 | if $ac_need_defaults; then | 
|  | 21943 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 21944 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21945 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21946 | fi | 
|  | 21947 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21948 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21949 | # 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] | 21950 | # creating and moving files from /tmp can sometimes cause problems. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21951 | # Hook for its removal unless debugging. | 
|  | 21952 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 21953 | # after its creation but before its name has been assigned to `$tmp'. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21954 | $debug || | 
|  | 21955 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21956 | tmp= | 
|  | 21957 | trap 'exit_status=$? | 
|  | 21958 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
|  | 21959 | ' 0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21960 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21961 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21962 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21963 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21964 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21965 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21966 | test -n "$tmp" && test -d "$tmp" | 
|  | 21967 | }  || | 
|  | 21968 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21969 | tmp=./conf$$-$RANDOM | 
|  | 21970 | (umask 077 && mkdir "$tmp") | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21971 | } || | 
|  | 21972 | { | 
|  | 21973 | echo "$me: cannot create a temporary directory in ." >&2 | 
|  | 21974 | { (exit 1); exit 1; } | 
|  | 21975 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21976 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21977 | # | 
|  | 21978 | # Set up the sed scripts for CONFIG_FILES section. | 
|  | 21979 | # | 
|  | 21980 |  | 
|  | 21981 | # No need to generate the scripts if there are no CONFIG_FILES. | 
|  | 21982 | # This happens for instance when ./config.status config.h | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21983 | if test -n "$CONFIG_FILES"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21984 |  | 
|  | 21985 | _ACEOF | 
|  | 21986 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21987 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21988 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21989 | ac_delim='%!_!# ' | 
|  | 21990 | for ac_last_try in false false false false false :; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21991 | cat >conf$$subs.sed <<_ACEOF | 
|  | 21992 | SHELL!$SHELL$ac_delim | 
|  | 21993 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | 
|  | 21994 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | 
|  | 21995 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | 
|  | 21996 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | 
|  | 21997 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | 
|  | 21998 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | 
|  | 21999 | exec_prefix!$exec_prefix$ac_delim | 
|  | 22000 | prefix!$prefix$ac_delim | 
|  | 22001 | program_transform_name!$program_transform_name$ac_delim | 
|  | 22002 | bindir!$bindir$ac_delim | 
|  | 22003 | sbindir!$sbindir$ac_delim | 
|  | 22004 | libexecdir!$libexecdir$ac_delim | 
|  | 22005 | datarootdir!$datarootdir$ac_delim | 
|  | 22006 | datadir!$datadir$ac_delim | 
|  | 22007 | sysconfdir!$sysconfdir$ac_delim | 
|  | 22008 | sharedstatedir!$sharedstatedir$ac_delim | 
|  | 22009 | localstatedir!$localstatedir$ac_delim | 
|  | 22010 | includedir!$includedir$ac_delim | 
|  | 22011 | oldincludedir!$oldincludedir$ac_delim | 
|  | 22012 | docdir!$docdir$ac_delim | 
|  | 22013 | infodir!$infodir$ac_delim | 
|  | 22014 | htmldir!$htmldir$ac_delim | 
|  | 22015 | dvidir!$dvidir$ac_delim | 
|  | 22016 | pdfdir!$pdfdir$ac_delim | 
|  | 22017 | psdir!$psdir$ac_delim | 
|  | 22018 | libdir!$libdir$ac_delim | 
|  | 22019 | localedir!$localedir$ac_delim | 
|  | 22020 | mandir!$mandir$ac_delim | 
|  | 22021 | DEFS!$DEFS$ac_delim | 
|  | 22022 | ECHO_C!$ECHO_C$ac_delim | 
|  | 22023 | ECHO_N!$ECHO_N$ac_delim | 
|  | 22024 | ECHO_T!$ECHO_T$ac_delim | 
|  | 22025 | LIBS!$LIBS$ac_delim | 
|  | 22026 | build_alias!$build_alias$ac_delim | 
|  | 22027 | host_alias!$host_alias$ac_delim | 
|  | 22028 | target_alias!$target_alias$ac_delim | 
|  | 22029 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22030 | CC!$CC$ac_delim | 
|  | 22031 | CFLAGS!$CFLAGS$ac_delim | 
|  | 22032 | LDFLAGS!$LDFLAGS$ac_delim | 
|  | 22033 | CPPFLAGS!$CPPFLAGS$ac_delim | 
|  | 22034 | ac_ct_CC!$ac_ct_CC$ac_delim | 
|  | 22035 | EXEEXT!$EXEEXT$ac_delim | 
|  | 22036 | OBJEXT!$OBJEXT$ac_delim | 
|  | 22037 | CXX!$CXX$ac_delim | 
|  | 22038 | CXXFLAGS!$CXXFLAGS$ac_delim | 
|  | 22039 | ac_ct_CXX!$ac_ct_CXX$ac_delim | 
|  | 22040 | CPP!$CPP$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22041 | subdirs!$subdirs$ac_delim | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 22042 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim | 
|  | 22043 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22044 | build!$build$ac_delim | 
|  | 22045 | build_cpu!$build_cpu$ac_delim | 
|  | 22046 | build_vendor!$build_vendor$ac_delim | 
|  | 22047 | build_os!$build_os$ac_delim | 
|  | 22048 | host!$host$ac_delim | 
|  | 22049 | host_cpu!$host_cpu$ac_delim | 
|  | 22050 | host_vendor!$host_vendor$ac_delim | 
|  | 22051 | host_os!$host_os$ac_delim | 
|  | 22052 | target!$target$ac_delim | 
|  | 22053 | target_cpu!$target_cpu$ac_delim | 
|  | 22054 | target_vendor!$target_vendor$ac_delim | 
|  | 22055 | target_os!$target_os$ac_delim | 
|  | 22056 | OS!$OS$ac_delim | 
|  | 22057 | HOST_OS!$HOST_OS$ac_delim | 
|  | 22058 | TARGET_OS!$TARGET_OS$ac_delim | 
|  | 22059 | LINKALL!$LINKALL$ac_delim | 
|  | 22060 | NOLINKALL!$NOLINKALL$ac_delim | 
|  | 22061 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim | 
|  | 22062 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim | 
|  | 22063 | ARCH!$ARCH$ac_delim | 
| Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame^] | 22064 | HOST_ARCH!$HOST_ARCH$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22065 | ENDIAN!$ENDIAN$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22066 | GREP!$GREP$ac_delim | 
|  | 22067 | EGREP!$EGREP$ac_delim | 
|  | 22068 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim | 
|  | 22069 | BUILD_CC!$BUILD_CC$ac_delim | 
|  | 22070 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim | 
|  | 22071 | BUILD_CXX!$BUILD_CXX$ac_delim | 
|  | 22072 | CVSBUILD!$CVSBUILD$ac_delim | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22073 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22074 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim | 
|  | 22075 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim | 
|  | 22076 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim | 
|  | 22077 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim | 
|  | 22078 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim | 
|  | 22079 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim | 
|  | 22080 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim | 
|  | 22081 | JIT!$JIT$ac_delim | 
|  | 22082 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 22083 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22084 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 22085 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 22086 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22087 | ENABLE_PIC!$ENABLE_PIC$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22088 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22089 | _ACEOF | 
| 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 | 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] | 22092 | break | 
|  | 22093 | elif $ac_last_try; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22094 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
|  | 22095 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
|  | 22096 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22097 | else | 
|  | 22098 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22099 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22100 | done | 
|  | 22101 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22102 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
|  | 22103 | if test -n "$ac_eof"; then | 
|  | 22104 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
|  | 22105 | ac_eof=`expr $ac_eof + 1` | 
|  | 22106 | fi | 
|  | 22107 |  | 
|  | 22108 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22109 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | 
|  | 22110 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22111 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22112 | sed ' | 
|  | 22113 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
|  | 22114 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
|  | 22115 | :n | 
|  | 22116 | t n | 
|  | 22117 | s/'"$ac_delim"'$/,g/; t | 
|  | 22118 | s/$/\\/; p | 
|  | 22119 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
|  | 22120 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
|  | 22121 | rm -f conf$$subs.sed | 
|  | 22122 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22123 | CEOF$ac_eof | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22124 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22125 |  | 
|  | 22126 |  | 
|  | 22127 | ac_delim='%!_!# ' | 
|  | 22128 | for ac_last_try in false false false false false :; do | 
|  | 22129 | cat >conf$$subs.sed <<_ACEOF | 
| Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame^] | 22130 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22131 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22132 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim | 
|  | 22133 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim | 
|  | 22134 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 22135 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 22136 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22137 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim | 
| Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22138 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 22139 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 22140 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim | 
| Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22141 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 22142 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22143 | NM!$NM$ac_delim | 
|  | 22144 | ifGNUmake!$ifGNUmake$ac_delim | 
|  | 22145 | LN_S!$LN_S$ac_delim | 
|  | 22146 | CMP!$CMP$ac_delim | 
|  | 22147 | CP!$CP$ac_delim | 
|  | 22148 | DATE!$DATE$ac_delim | 
|  | 22149 | FIND!$FIND$ac_delim | 
|  | 22150 | MKDIR!$MKDIR$ac_delim | 
|  | 22151 | MV!$MV$ac_delim | 
|  | 22152 | RANLIB!$RANLIB$ac_delim | 
|  | 22153 | AR!$AR$ac_delim | 
|  | 22154 | RM!$RM$ac_delim | 
|  | 22155 | SED!$SED$ac_delim | 
|  | 22156 | TAR!$TAR$ac_delim | 
|  | 22157 | BINPWD!$BINPWD$ac_delim | 
|  | 22158 | GRAPHVIZ!$GRAPHVIZ$ac_delim | 
|  | 22159 | DOT!$DOT$ac_delim | 
|  | 22160 | FDP!$FDP$ac_delim | 
|  | 22161 | NEATO!$NEATO$ac_delim | 
|  | 22162 | TWOPI!$TWOPI$ac_delim | 
|  | 22163 | CIRCO!$CIRCO$ac_delim | 
|  | 22164 | GV!$GV$ac_delim | 
|  | 22165 | DOTTY!$DOTTY$ac_delim | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 22166 | XDOT_PY!$XDOT_PY$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22167 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | 
|  | 22168 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | 
|  | 22169 | INSTALL_DATA!$INSTALL_DATA$ac_delim | 
|  | 22170 | BZIP2!$BZIP2$ac_delim | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 22171 | CAT!$CAT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22172 | DOXYGEN!$DOXYGEN$ac_delim | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22173 | GROFF!$GROFF$ac_delim | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 22174 | GZIPBIN!$GZIPBIN$ac_delim | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22175 | PDFROFF!$PDFROFF$ac_delim | 
|  | 22176 | RUNTEST!$RUNTEST$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22177 | TCLSH!$TCLSH$ac_delim | 
|  | 22178 | ZIP!$ZIP$ac_delim | 
|  | 22179 | OCAMLC!$OCAMLC$ac_delim | 
|  | 22180 | OCAMLOPT!$OCAMLOPT$ac_delim | 
|  | 22181 | OCAMLDEP!$OCAMLDEP$ac_delim | 
|  | 22182 | OCAMLDOC!$OCAMLDOC$ac_delim | 
| Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22183 | GAS!$GAS$ac_delim | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 22184 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22185 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim | 
|  | 22186 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim | 
|  | 22187 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim | 
|  | 22188 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim | 
|  | 22189 | LIBADD_DL!$LIBADD_DL$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22190 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim | 
|  | 22191 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 22192 | COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22193 | USE_UDIS86!$USE_UDIS86$ac_delim | 
|  | 22194 | USE_OPROFILE!$USE_OPROFILE$ac_delim | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 22195 | USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim | 
|  | 22196 | INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim | 
|  | 22197 | INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22198 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim | 
|  | 22199 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim | 
|  | 22200 | MMAP_FILE!$MMAP_FILE$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22201 | SHLIBEXT!$SHLIBEXT$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22202 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22203 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim | 
|  | 22204 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim | 
|  | 22205 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim | 
|  | 22206 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim | 
|  | 22207 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim | 
|  | 22208 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim | 
|  | 22209 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim | 
|  | 22210 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim | 
|  | 22211 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim | 
|  | 22212 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim | 
|  | 22213 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim | 
|  | 22214 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim | 
| Eric Christopher | 155137b | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22215 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim | 
|  | 22216 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim | 
|  | 22217 | RPATH!$RPATH$ac_delim | 
|  | 22218 | RDYNAMIC!$RDYNAMIC$ac_delim | 
|  | 22219 | LIBOBJS!$LIBOBJS$ac_delim | 
|  | 22220 | LTLIBOBJS!$LTLIBOBJS$ac_delim | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22221 | _ACEOF | 
|  | 22222 |  | 
| Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame^] | 22223 | 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] | 22224 | break | 
|  | 22225 | elif $ac_last_try; then | 
|  | 22226 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
|  | 22227 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
|  | 22228 | { (exit 1); exit 1; }; } | 
|  | 22229 | else | 
|  | 22230 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 22231 | fi | 
|  | 22232 | done | 
|  | 22233 |  | 
|  | 22234 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
|  | 22235 | if test -n "$ac_eof"; then | 
|  | 22236 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
|  | 22237 | ac_eof=`expr $ac_eof + 1` | 
|  | 22238 | fi | 
|  | 22239 |  | 
|  | 22240 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22241 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | 
| Tobias Grosser | 61cb245 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22242 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | 
|  | 22243 | _ACEOF | 
|  | 22244 | sed ' | 
|  | 22245 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
|  | 22246 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
|  | 22247 | :n | 
|  | 22248 | t n | 
|  | 22249 | s/'"$ac_delim"'$/,g/; t | 
|  | 22250 | s/$/\\/; p | 
|  | 22251 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
|  | 22252 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
|  | 22253 | rm -f conf$$subs.sed | 
|  | 22254 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22255 | :end | 
|  | 22256 | s/|#_!!_#|//g | 
|  | 22257 | CEOF$ac_eof | 
|  | 22258 | _ACEOF | 
|  | 22259 |  | 
|  | 22260 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22261 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 22262 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 22263 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 22264 | # (actually we leave an empty line to preserve line numbers). | 
|  | 22265 | if test "x$srcdir" = x.; then | 
|  | 22266 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
|  | 22267 | s/:*\$(srcdir):*/:/ | 
|  | 22268 | s/:*\${srcdir}:*/:/ | 
|  | 22269 | s/:*@srcdir@:*/:/ | 
|  | 22270 | s/^\([^=]*=[	 ]*\):*/\1/ | 
|  | 22271 | s/:*$// | 
|  | 22272 | s/^[^=]*=[	 ]*$// | 
|  | 22273 | }' | 
|  | 22274 | fi | 
|  | 22275 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22276 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22277 | fi # test -n "$CONFIG_FILES" | 
|  | 22278 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22279 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22280 | 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] | 22281 | do | 
|  | 22282 | case $ac_tag in | 
|  | 22283 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 22284 | esac | 
|  | 22285 | case $ac_mode$ac_tag in | 
|  | 22286 | :[FHL]*:*);; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22287 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | 
|  | 22288 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | 
|  | 22289 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22290 | :[FH]-) ac_tag=-:-;; | 
|  | 22291 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 22292 | esac | 
|  | 22293 | ac_save_IFS=$IFS | 
|  | 22294 | IFS=: | 
|  | 22295 | set x $ac_tag | 
|  | 22296 | IFS=$ac_save_IFS | 
|  | 22297 | shift | 
|  | 22298 | ac_file=$1 | 
|  | 22299 | shift | 
|  | 22300 |  | 
|  | 22301 | case $ac_mode in | 
|  | 22302 | :L) ac_source=$1;; | 
|  | 22303 | :[FH]) | 
|  | 22304 | ac_file_inputs= | 
|  | 22305 | for ac_f | 
|  | 22306 | do | 
|  | 22307 | case $ac_f in | 
|  | 22308 | -) ac_f="$tmp/stdin";; | 
|  | 22309 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 22310 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 22311 | # because $ac_f cannot contain `:'. | 
|  | 22312 | test -f "$ac_f" || | 
|  | 22313 | case $ac_f in | 
|  | 22314 | [\\/$]*) false;; | 
|  | 22315 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 22316 | esac || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22317 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | 
|  | 22318 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | 
|  | 22319 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22320 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22321 | ac_file_inputs="$ac_file_inputs $ac_f" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22322 | done | 
|  | 22323 |  | 
|  | 22324 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 22325 | # use $as_me), people would be surprised to read: | 
|  | 22326 | #    /* config.h.  Generated by config.status.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22327 | configure_input="Generated from "`IFS=: | 
|  | 22328 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22329 | if test x"$ac_file" != x-; then | 
|  | 22330 | configure_input="$ac_file.  $configure_input" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22331 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 22332 | echo "$as_me: creating $ac_file" >&6;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22333 | fi | 
|  | 22334 |  | 
|  | 22335 | case $ac_tag in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22336 | *:-:* | *:-) cat >"$tmp/stdin";; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22337 | esac | 
|  | 22338 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22339 | esac | 
|  | 22340 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22341 | ac_dir=`$as_dirname -- "$ac_file" || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22342 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22343 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 22344 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22345 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22346 | echo X"$ac_file" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22348 | s//\1/ | 
|  | 22349 | q | 
|  | 22350 | } | 
|  | 22351 | /^X\(\/\/\)[^/].*/{ | 
|  | 22352 | s//\1/ | 
|  | 22353 | q | 
|  | 22354 | } | 
|  | 22355 | /^X\(\/\/\)$/{ | 
|  | 22356 | s//\1/ | 
|  | 22357 | q | 
|  | 22358 | } | 
|  | 22359 | /^X\(\/\).*/{ | 
|  | 22360 | s//\1/ | 
|  | 22361 | q | 
|  | 22362 | } | 
|  | 22363 | s/.*/./; q'` | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22364 | { as_dir="$ac_dir" | 
|  | 22365 | case $as_dir in #( | 
|  | 22366 | -*) as_dir=./$as_dir;; | 
|  | 22367 | esac | 
|  | 22368 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
|  | 22369 | as_dirs= | 
|  | 22370 | while :; do | 
|  | 22371 | case $as_dir in #( | 
|  | 22372 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
|  | 22373 | *) as_qdir=$as_dir;; | 
|  | 22374 | esac | 
|  | 22375 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 22376 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 22377 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22378 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22379 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22380 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 22381 | echo X"$as_dir" | | 
|  | 22382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22383 | s//\1/ | 
|  | 22384 | q | 
|  | 22385 | } | 
|  | 22386 | /^X\(\/\/\)[^/].*/{ | 
|  | 22387 | s//\1/ | 
|  | 22388 | q | 
|  | 22389 | } | 
|  | 22390 | /^X\(\/\/\)$/{ | 
|  | 22391 | s//\1/ | 
|  | 22392 | q | 
|  | 22393 | } | 
|  | 22394 | /^X\(\/\).*/{ | 
|  | 22395 | s//\1/ | 
|  | 22396 | q | 
|  | 22397 | } | 
|  | 22398 | s/.*/./; q'` | 
|  | 22399 | test -d "$as_dir" && break | 
|  | 22400 | done | 
|  | 22401 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 22402 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
|  | 22403 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
|  | 22404 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22405 | ac_builddir=. | 
|  | 22406 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22407 | case "$ac_dir" in | 
|  | 22408 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22409 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22410 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22411 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22412 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22413 | case $ac_top_builddir_sub in | 
|  | 22414 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22415 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 22416 | esac ;; | 
|  | 22417 | esac | 
|  | 22418 | ac_abs_top_builddir=$ac_pwd | 
|  | 22419 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 22420 | # for backward compatibility: | 
|  | 22421 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22422 |  | 
|  | 22423 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22424 | .)  # We are building in place. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22425 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22426 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 22427 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 22428 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22429 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22430 | ac_top_srcdir=$srcdir | 
|  | 22431 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 22432 | *) # Relative name. | 
|  | 22433 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 22434 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 22435 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22436 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22437 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22438 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22439 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22440 | case $ac_mode in | 
|  | 22441 | :F) | 
|  | 22442 | # | 
|  | 22443 | # CONFIG_FILE | 
|  | 22444 | # | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22445 |  | 
|  | 22446 | case $INSTALL in | 
|  | 22447 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22448 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22449 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22450 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22451 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22452 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22453 | # If the template does not know about datarootdir, expand it. | 
|  | 22454 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 22455 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22456 |  | 
|  | 22457 | case `sed -n '/datarootdir/ { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22458 | p | 
|  | 22459 | q | 
|  | 22460 | } | 
|  | 22461 | /@datadir@/p | 
|  | 22462 | /@docdir@/p | 
|  | 22463 | /@infodir@/p | 
|  | 22464 | /@localedir@/p | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22465 | /@mandir@/p | 
|  | 22466 | ' $ac_file_inputs` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22467 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 22468 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22469 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 22470 | 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] | 22471 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22472 | cat >>$CONFIG_STATUS <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22473 | ac_datarootdir_hack=' | 
|  | 22474 | s&@datadir@&$datadir&g | 
|  | 22475 | s&@docdir@&$docdir&g | 
|  | 22476 | s&@infodir@&$infodir&g | 
|  | 22477 | s&@localedir@&$localedir&g | 
|  | 22478 | s&@mandir@&$mandir&g | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22479 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22480 | esac | 
|  | 22481 | _ACEOF | 
|  | 22482 |  | 
|  | 22483 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 22484 | # Shell code in configure.ac might set extrasub. | 
|  | 22485 | # FIXME: do we really want to maintain this feature? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22486 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22487 | sed "$ac_vpsub | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22488 | $extrasub | 
|  | 22489 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22490 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22491 | :t | 
|  | 22492 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22493 | s&@configure_input@&$configure_input&;t t | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22494 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
|  | 22495 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 22496 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 22497 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 22498 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 22499 | s&@builddir@&$ac_builddir&;t t | 
|  | 22500 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 22501 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 22502 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 22503 | $ac_datarootdir_hack | 
| Eric Christopher | 155137b | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22504 | " $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] | 22505 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
|  | 22507 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 22508 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22509 | { 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] | 22510 | which seems to be undefined.  Please make sure it is defined." >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22511 | 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] | 22512 | which seems to be undefined.  Please make sure it is defined." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22513 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22514 | rm -f "$tmp/stdin" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22515 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22516 | -) cat "$tmp/out"; rm -f "$tmp/out";; | 
|  | 22517 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | 
|  | 22518 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22519 | ;; | 
|  | 22520 | :H) | 
|  | 22521 | # | 
|  | 22522 | # CONFIG_HEADER | 
|  | 22523 | # | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22524 | _ACEOF | 
|  | 22525 |  | 
|  | 22526 | # Transform confdefs.h into a sed script `conftest.defines', that | 
|  | 22527 | # substitutes the proper values into config.h.in to produce config.h. | 
|  | 22528 | rm -f conftest.defines conftest.tail | 
|  | 22529 | # First, append a space to every undef/define line, to ease matching. | 
|  | 22530 | echo 's/$/ /' >conftest.defines | 
|  | 22531 | # Then, protect against being on the right side of a sed subst, or in | 
|  | 22532 | # an unquoted here document, in config.status.  If some macros were | 
|  | 22533 | # called several times there might be several #defines for the same | 
|  | 22534 | # symbol, which is useless.  But do not sort them, since the last | 
|  | 22535 | # AC_DEFINE must be honored. | 
|  | 22536 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 22537 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | 
|  | 22538 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | 
|  | 22539 | # PARAMS is the parameter list in the macro definition--in most cases, it's | 
|  | 22540 | # just an empty string. | 
|  | 22541 | ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*' | 
|  | 22542 | ac_dB='\\)[	 (].*,\\1define\\2' | 
|  | 22543 | ac_dC=' ' | 
|  | 22544 | ac_dD=' ,' | 
|  | 22545 |  | 
|  | 22546 | uniq confdefs.h | | 
|  | 22547 | sed -n ' | 
|  | 22548 | t rset | 
|  | 22549 | :rset | 
|  | 22550 | s/^[	 ]*#[	 ]*define[	 ][	 ]*// | 
|  | 22551 | t ok | 
|  | 22552 | d | 
|  | 22553 | :ok | 
|  | 22554 | s/[\\&,]/\\&/g | 
|  | 22555 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | 
|  | 22556 | s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | 
|  | 22557 | ' >>conftest.defines | 
|  | 22558 |  | 
|  | 22559 | # Remove the space that was appended to ease matching. | 
|  | 22560 | # Then replace #undef with comments.  This is necessary, for | 
|  | 22561 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 22562 | # on some systems where configure will not decide to define it. | 
|  | 22563 | # (The regexp can be short, since the line contains either #define or #undef.) | 
|  | 22564 | echo 's/ $// | 
|  | 22565 | s,^[	 #]*u.*,/* & */,' >>conftest.defines | 
|  | 22566 |  | 
|  | 22567 | # Break up conftest.defines: | 
|  | 22568 | ac_max_sed_lines=50 | 
|  | 22569 |  | 
|  | 22570 | # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1" | 
|  | 22571 | # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2" | 
|  | 22572 | # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1" | 
|  | 22573 | # et cetera. | 
|  | 22574 | ac_in='$ac_file_inputs' | 
|  | 22575 | ac_out='"$tmp/out1"' | 
|  | 22576 | ac_nxt='"$tmp/out2"' | 
|  | 22577 |  | 
|  | 22578 | while : | 
|  | 22579 | do | 
|  | 22580 | # Write a here document: | 
|  | 22581 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22582 | # First, check the format of the line: | 
|  | 22583 | cat >"\$tmp/defines.sed" <<\\CEOF | 
|  | 22584 | /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def | 
|  | 22585 | /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def | 
|  | 22586 | b | 
|  | 22587 | :def | 
|  | 22588 | _ACEOF | 
|  | 22589 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | 
|  | 22590 | echo 'CEOF | 
|  | 22591 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | 
|  | 22592 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | 
|  | 22593 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | 
|  | 22594 | grep . conftest.tail >/dev/null || break | 
|  | 22595 | rm -f conftest.defines | 
|  | 22596 | mv conftest.tail conftest.defines | 
|  | 22597 | done | 
|  | 22598 | rm -f conftest.defines conftest.tail | 
|  | 22599 |  | 
|  | 22600 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | 
|  | 22601 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22602 | if test x"$ac_file" != x-; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22603 | echo "/* $configure_input  */" >"$tmp/config.h" | 
|  | 22604 | cat "$ac_result" >>"$tmp/config.h" | 
|  | 22605 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | 
|  | 22606 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
|  | 22607 | echo "$as_me: $ac_file is unchanged" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22608 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22609 | rm -f $ac_file | 
|  | 22610 | mv "$tmp/config.h" $ac_file | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22611 | fi | 
|  | 22612 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22613 | echo "/* $configure_input  */" | 
|  | 22614 | cat "$ac_result" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22615 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22616 | rm -f "$tmp/out12" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22617 | ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22618 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22619 | :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | 
|  | 22620 | echo "$as_me: executing $ac_file commands" >&6;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22621 | ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22622 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22623 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22624 |  | 
|  | 22625 | case $ac_file$ac_mode in | 
|  | 22626 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22627 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22628 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22629 | ${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] | 22630 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22631 | ${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] | 22632 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22633 | ${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] | 22634 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22635 | ${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] | 22636 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22637 | ${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] | 22638 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22639 | ${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] | 22640 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22641 | ${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] | 22642 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22643 | ${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] | 22644 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22645 | ${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] | 22646 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22647 | ${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] | 22648 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22649 | ${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] | 22650 | "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] | 22651 | ${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] | 22652 |  | 
|  | 22653 | esac | 
|  | 22654 | done # for ac_tag | 
|  | 22655 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22656 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22657 | { (exit 0); exit 0; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22658 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22659 | chmod +x $CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22660 | ac_clean_files=$ac_clean_files_save | 
|  | 22661 |  | 
|  | 22662 |  | 
|  | 22663 | # configure is writing to config.log, and then calls config.status. | 
|  | 22664 | # config.status does its own redirection, appending to config.log. | 
|  | 22665 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 22666 | # by configure, so config.status won't be able to write to it; its | 
|  | 22667 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 22668 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 22669 | # appended to by config.status.  When coming back to configure, we | 
|  | 22670 | # need to make the FD available again. | 
|  | 22671 | if test "$no_create" != yes; then | 
|  | 22672 | ac_cs_success=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22673 | ac_config_status_args= | 
|  | 22674 | test "$silent" = yes && | 
|  | 22675 | ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22676 | exec 5>/dev/null | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22677 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22678 | exec 5>>config.log | 
|  | 22679 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 22680 | # would make configure fail if this is the last instruction. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22681 | $ac_cs_success || { (exit 1); exit 1; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22682 | fi | 
|  | 22683 |  | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22684 | # | 
|  | 22685 | # CONFIG_SUBDIRS section. | 
|  | 22686 | # | 
|  | 22687 | if test "$no_recursion" != yes; then | 
|  | 22688 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22689 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22690 | ac_sub_configure_args= | 
|  | 22691 | ac_prev= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22692 | eval "set x $ac_configure_args" | 
|  | 22693 | shift | 
|  | 22694 | for ac_arg | 
|  | 22695 | do | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22696 | if test -n "$ac_prev"; then | 
|  | 22697 | ac_prev= | 
|  | 22698 | continue | 
|  | 22699 | fi | 
|  | 22700 | case $ac_arg in | 
|  | 22701 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 22702 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 22703 | ac_prev=cache_file ;; | 
|  | 22704 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 22705 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
|  | 22706 | | --c=*) | 
|  | 22707 | ;; | 
|  | 22708 | --config-cache | -C) | 
|  | 22709 | ;; | 
|  | 22710 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 22711 | ac_prev=srcdir ;; | 
|  | 22712 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 22713 | ;; | 
|  | 22714 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 22715 | ac_prev=prefix ;; | 
|  | 22716 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 22717 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22718 | *) | 
|  | 22719 | case $ac_arg in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22720 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22721 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22722 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22723 | esac | 
|  | 22724 | done | 
|  | 22725 |  | 
|  | 22726 | # Always prepend --prefix to ensure using the same prefix | 
|  | 22727 | # in subdir configurations. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22728 | ac_arg="--prefix=$prefix" | 
|  | 22729 | case $ac_arg in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22730 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22731 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22732 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22733 |  | 
|  | 22734 | ac_popdir=`pwd` | 
|  | 22735 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
|  | 22736 |  | 
|  | 22737 | # Do not complain, so a configure script can configure whichever | 
|  | 22738 | # parts of a large source tree are present. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22739 | test -d "$srcdir/$ac_dir" || continue | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22740 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22741 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22742 | echo "$as_me:$LINENO: $ac_msg" >&5 | 
|  | 22743 | echo "$ac_msg" >&6 | 
|  | 22744 | { as_dir="$ac_dir" | 
|  | 22745 | case $as_dir in #( | 
|  | 22746 | -*) as_dir=./$as_dir;; | 
|  | 22747 | esac | 
|  | 22748 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
|  | 22749 | as_dirs= | 
|  | 22750 | while :; do | 
|  | 22751 | case $as_dir in #( | 
|  | 22752 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
|  | 22753 | *) as_qdir=$as_dir;; | 
|  | 22754 | esac | 
|  | 22755 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 22756 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 22757 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22758 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22759 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22760 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 22761 | echo X"$as_dir" | | 
|  | 22762 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22763 | s//\1/ | 
|  | 22764 | q | 
|  | 22765 | } | 
|  | 22766 | /^X\(\/\/\)[^/].*/{ | 
|  | 22767 | s//\1/ | 
|  | 22768 | q | 
|  | 22769 | } | 
|  | 22770 | /^X\(\/\/\)$/{ | 
|  | 22771 | s//\1/ | 
|  | 22772 | q | 
|  | 22773 | } | 
|  | 22774 | /^X\(\/\).*/{ | 
|  | 22775 | s//\1/ | 
|  | 22776 | q | 
|  | 22777 | } | 
|  | 22778 | s/.*/./; q'` | 
|  | 22779 | test -d "$as_dir" && break | 
|  | 22780 | done | 
|  | 22781 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 22782 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
|  | 22783 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
|  | 22784 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22785 | ac_builddir=. | 
|  | 22786 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22787 | case "$ac_dir" in | 
|  | 22788 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22789 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22790 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22791 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22792 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22793 | case $ac_top_builddir_sub in | 
|  | 22794 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22795 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 22796 | esac ;; | 
|  | 22797 | esac | 
|  | 22798 | ac_abs_top_builddir=$ac_pwd | 
|  | 22799 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 22800 | # for backward compatibility: | 
|  | 22801 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22802 |  | 
|  | 22803 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22804 | .)  # We are building in place. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22805 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22806 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 22807 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 22808 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22809 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22810 | ac_top_srcdir=$srcdir | 
|  | 22811 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 22812 | *) # Relative name. | 
|  | 22813 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 22814 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 22815 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22816 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22817 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22818 |  | 
|  | 22819 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22820 | cd "$ac_dir" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22821 |  | 
|  | 22822 | # Check for guested configure; otherwise get Cygnus style configure. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22823 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 22824 | ac_sub_configure=$ac_srcdir/configure.gnu | 
|  | 22825 | elif test -f "$ac_srcdir/configure"; then | 
|  | 22826 | ac_sub_configure=$ac_srcdir/configure | 
|  | 22827 | elif test -f "$ac_srcdir/configure.in"; then | 
|  | 22828 | # This should be Cygnus configure. | 
|  | 22829 | ac_sub_configure=$ac_aux_dir/configure | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22830 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22831 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
|  | 22832 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22833 | ac_sub_configure= | 
|  | 22834 | fi | 
|  | 22835 |  | 
|  | 22836 | # The recursion is here. | 
|  | 22837 | if test -n "$ac_sub_configure"; then | 
|  | 22838 | # Make the cache file name correct relative to the subdirectory. | 
|  | 22839 | case $cache_file in | 
|  | 22840 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22841 | *) # Relative name. | 
|  | 22842 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22843 | esac | 
|  | 22844 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22845 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
|  | 22846 | 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] | 22847 | # The eval makes quoting arguments work. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22848 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | 
|  | 22849 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22850 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
|  | 22851 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
|  | 22852 | { (exit 1); exit 1; }; } | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22853 | fi | 
|  | 22854 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22855 | cd "$ac_popdir" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22856 | done | 
|  | 22857 | fi | 
|  | 22858 |  |