John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.65 for llvm 2.7svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
| 11 | # |
| 12 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15 | # |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 16 | # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 17 | ## -------------------- ## |
| 18 | ## M4sh Initialization. ## |
| 19 | ## -------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 21 | # Be more Bourne compatible |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24 | emulate sh |
| 25 | NULLCMD=: |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 26 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | # is contrary to our usage. Disable this feature. |
| 28 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29 | setopt NO_GLOB_SUBST |
| 30 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 31 | case `(set -o) 2>/dev/null` in #( |
| 32 | *posix*) : |
| 33 | set -o posix ;; #( |
| 34 | *) : |
| 35 | ;; |
| 36 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 37 | fi |
| 38 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 40 | as_nl=' |
| 41 | ' |
| 42 | export as_nl |
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 47 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 48 | # but without wasting forks for bash or zsh. |
| 49 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 50 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 | as_echo='print -r --' |
| 52 | as_echo_n='print -rn --' |
| 53 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 54 | as_echo='printf %s\n' |
| 55 | as_echo_n='printf %s' |
| 56 | else |
| 57 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 58 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 59 | as_echo_n='/usr/ucb/echo -n' |
| 60 | else |
| 61 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 62 | as_echo_n_body='eval |
| 63 | arg=$1; |
| 64 | case $arg in #( |
| 65 | *"$as_nl"*) |
| 66 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 67 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 68 | esac; |
| 69 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 70 | ' |
| 71 | export as_echo_n_body |
| 72 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 73 | fi |
| 74 | export as_echo_body |
| 75 | as_echo='sh -c $as_echo_body as_echo' |
| 76 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 77 | |
| 78 | # The user is always right. |
| 79 | if test "${PATH_SEPARATOR+set}" != set; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 80 | PATH_SEPARATOR=: |
| 81 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 82 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 83 | PATH_SEPARATOR=';' |
| 84 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 85 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 86 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 87 | |
| 88 | # IFS |
| 89 | # We need space, tab and new line, in precisely that order. Quoting is |
| 90 | # there to prevent editors from complaining about space-tab. |
| 91 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 92 | # splitting by setting IFS to empty value.) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 93 | IFS=" "" $as_nl" |
| 94 | |
| 95 | # Find who we are. Look in the path if we contain no directory separator. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 96 | case $0 in #(( |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | *[\\/]* ) as_myself=$0 ;; |
| 98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 99 | for as_dir in $PATH |
| 100 | do |
| 101 | IFS=$as_save_IFS |
| 102 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 104 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 105 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 107 | ;; |
| 108 | esac |
| 109 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 110 | # in which case we are not to be found in the path. |
| 111 | if test "x$as_myself" = x; then |
| 112 | as_myself=$0 |
| 113 | fi |
| 114 | if test ! -f "$as_myself"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 116 | exit 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 117 | fi |
| 118 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 119 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 121 | # suppresses any "Segmentation fault" message there. '((' could |
| 122 | # trigger a bug in pdksh 5.2.14. |
| 123 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 124 | do eval test x\${$as_var+set} = xset \ |
| 125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 126 | done |
| 127 | PS1='$ ' |
| 128 | PS2='> ' |
| 129 | PS4='+ ' |
| 130 | |
| 131 | # NLS nuisances. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 136 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 137 | # CDPATH. |
| 138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 139 | |
| 140 | if test "x$CONFIG_SHELL" = x; then |
| 141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 142 | emulate sh |
| 143 | NULLCMD=: |
| 144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 145 | # is contrary to our usage. Disable this feature. |
| 146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 147 | setopt NO_GLOB_SUBST |
| 148 | else |
| 149 | case \`(set -o) 2>/dev/null\` in #( |
| 150 | *posix*) : |
| 151 | set -o posix ;; #( |
| 152 | *) : |
| 153 | ;; |
| 154 | esac |
| 155 | fi |
| 156 | " |
| 157 | as_required="as_fn_return () { (exit \$1); } |
| 158 | as_fn_success () { as_fn_return 0; } |
| 159 | as_fn_failure () { as_fn_return 1; } |
| 160 | as_fn_ret_success () { return 0; } |
| 161 | as_fn_ret_failure () { return 1; } |
| 162 | |
| 163 | exitcode=0 |
| 164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 169 | |
| 170 | else |
| 171 | exitcode=1; echo positional parameters were not saved. |
| 172 | fi |
| 173 | test x\$exitcode = x0 || exit 1" |
| 174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 178 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 179 | if (eval "$as_required") 2>/dev/null; then : |
| 180 | as_have_required=yes |
| 181 | else |
| 182 | as_have_required=no |
| 183 | fi |
| 184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 185 | |
| 186 | else |
| 187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 188 | as_found=false |
| 189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 190 | do |
| 191 | IFS=$as_save_IFS |
| 192 | test -z "$as_dir" && as_dir=. |
| 193 | as_found=: |
| 194 | case $as_dir in #( |
| 195 | /*) |
| 196 | for as_base in sh bash ksh sh5; do |
| 197 | # Try only shells that exist, to save several forks. |
| 198 | as_shell=$as_dir/$as_base |
| 199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 203 | break 2 |
| 204 | fi |
| 205 | fi |
| 206 | done;; |
| 207 | esac |
| 208 | as_found=false |
| 209 | done |
| 210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 212 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 213 | fi; } |
| 214 | IFS=$as_save_IFS |
| 215 | |
| 216 | |
| 217 | if test "x$CONFIG_SHELL" != x; then : |
| 218 | # We cannot yet assume a decent shell, so we have to provide a |
| 219 | # neutralization value for shells without unset; and this also |
| 220 | # works around shells that cannot unset nonexistent variables. |
| 221 | BASH_ENV=/dev/null |
| 222 | ENV=/dev/null |
| 223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 224 | export CONFIG_SHELL |
| 225 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 226 | fi |
| 227 | |
| 228 | if test x$as_have_required = xno; then : |
| 229 | $as_echo "$0: This script requires a shell more modern than all" |
| 230 | $as_echo "$0: the shells that I found on your system." |
| 231 | if test x${ZSH_VERSION+set} = xset ; then |
| 232 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 233 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 234 | else |
| 235 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 236 | $0: llvmbugs@cs.uiuc.edu about your system, including any |
| 237 | $0: error possibly output before this message. Then install |
| 238 | $0: a modern shell, or manually run the script under such a |
| 239 | $0: shell if you do have one." |
| 240 | fi |
| 241 | exit 1 |
| 242 | fi |
| 243 | fi |
| 244 | fi |
| 245 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 246 | export SHELL |
| 247 | # Unset more variables known to interfere with behavior of common tools. |
| 248 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 249 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 250 | |
| 251 | ## --------------------- ## |
| 252 | ## M4sh Shell Functions. ## |
| 253 | ## --------------------- ## |
| 254 | # as_fn_unset VAR |
| 255 | # --------------- |
| 256 | # Portably unset VAR. |
| 257 | as_fn_unset () |
| 258 | { |
| 259 | { eval $1=; unset $1;} |
| 260 | } |
| 261 | as_unset=as_fn_unset |
| 262 | |
| 263 | # as_fn_set_status STATUS |
| 264 | # ----------------------- |
| 265 | # Set $? to STATUS, without forking. |
| 266 | as_fn_set_status () |
| 267 | { |
| 268 | return $1 |
| 269 | } # as_fn_set_status |
| 270 | |
| 271 | # as_fn_exit STATUS |
| 272 | # ----------------- |
| 273 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 274 | as_fn_exit () |
| 275 | { |
| 276 | set +e |
| 277 | as_fn_set_status $1 |
| 278 | exit $1 |
| 279 | } # as_fn_exit |
| 280 | |
| 281 | # as_fn_mkdir_p |
| 282 | # ------------- |
| 283 | # Create "$as_dir" as a directory, including parents if necessary. |
| 284 | as_fn_mkdir_p () |
| 285 | { |
| 286 | |
| 287 | case $as_dir in #( |
| 288 | -*) as_dir=./$as_dir;; |
| 289 | esac |
| 290 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 291 | as_dirs= |
| 292 | while :; do |
| 293 | case $as_dir in #( |
| 294 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 295 | *) as_qdir=$as_dir;; |
| 296 | esac |
| 297 | as_dirs="'$as_qdir' $as_dirs" |
| 298 | as_dir=`$as_dirname -- "$as_dir" || |
| 299 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 300 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 301 | X"$as_dir" : 'X\(//\)$' \| \ |
| 302 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 303 | $as_echo X"$as_dir" | |
| 304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 305 | s//\1/ |
| 306 | q |
| 307 | } |
| 308 | /^X\(\/\/\)[^/].*/{ |
| 309 | s//\1/ |
| 310 | q |
| 311 | } |
| 312 | /^X\(\/\/\)$/{ |
| 313 | s//\1/ |
| 314 | q |
| 315 | } |
| 316 | /^X\(\/\).*/{ |
| 317 | s//\1/ |
| 318 | q |
| 319 | } |
| 320 | s/.*/./; q'` |
| 321 | test -d "$as_dir" && break |
| 322 | done |
| 323 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 324 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 325 | |
| 326 | |
| 327 | } # as_fn_mkdir_p |
| 328 | # as_fn_append VAR VALUE |
| 329 | # ---------------------- |
| 330 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 331 | # advantage of any shell optimizations that allow amortized linear growth over |
| 332 | # repeated appends, instead of the typical quadratic growth present in naive |
| 333 | # implementations. |
| 334 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 335 | eval 'as_fn_append () |
| 336 | { |
| 337 | eval $1+=\$2 |
| 338 | }' |
| 339 | else |
| 340 | as_fn_append () |
| 341 | { |
| 342 | eval $1=\$$1\$2 |
| 343 | } |
| 344 | fi # as_fn_append |
| 345 | |
| 346 | # as_fn_arith ARG... |
| 347 | # ------------------ |
| 348 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 349 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 350 | # must be portable across $(()) and expr. |
| 351 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 352 | eval 'as_fn_arith () |
| 353 | { |
| 354 | as_val=$(( $* )) |
| 355 | }' |
| 356 | else |
| 357 | as_fn_arith () |
| 358 | { |
| 359 | as_val=`expr "$@" || test $? -eq 1` |
| 360 | } |
| 361 | fi # as_fn_arith |
| 362 | |
| 363 | |
| 364 | # as_fn_error ERROR [LINENO LOG_FD] |
| 365 | # --------------------------------- |
| 366 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 367 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 368 | # script with status $?, using 1 if that was 0. |
| 369 | as_fn_error () |
| 370 | { |
| 371 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 372 | if test "$3"; then |
| 373 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 374 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 375 | fi |
| 376 | $as_echo "$as_me: error: $1" >&2 |
| 377 | as_fn_exit $as_status |
| 378 | } # as_fn_error |
| 379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 380 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 381 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 382 | as_expr=expr |
| 383 | else |
| 384 | as_expr=false |
| 385 | fi |
| 386 | |
| 387 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 388 | as_basename=basename |
| 389 | else |
| 390 | as_basename=false |
| 391 | fi |
| 392 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 393 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 394 | as_dirname=dirname |
| 395 | else |
| 396 | as_dirname=false |
| 397 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 399 | as_me=`$as_basename -- "$0" || |
| 400 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 401 | X"$0" : 'X\(//\)$' \| \ |
| 402 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 403 | $as_echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 404 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 405 | s//\1/ |
| 406 | q |
| 407 | } |
| 408 | /^X\/\(\/\/\)$/{ |
| 409 | s//\1/ |
| 410 | q |
| 411 | } |
| 412 | /^X\/\(\/\).*/{ |
| 413 | s//\1/ |
| 414 | q |
| 415 | } |
| 416 | s/.*/./; q'` |
| 417 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 418 | # Avoid depending upon Character Ranges. |
| 419 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 420 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 421 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 422 | as_cr_digits='0123456789' |
| 423 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 424 | |
| 425 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 426 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 427 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 428 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 429 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 430 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 431 | sed -n ' |
| 432 | p |
| 433 | /[$]LINENO/= |
| 434 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 435 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | s/[$]LINENO.*/&-/ |
| 437 | t lineno |
| 438 | b |
| 439 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | :loop |
| 442 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 443 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 444 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | chmod +x "$as_me.lineno" || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 447 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | |
| 449 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 450 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | # original and so on. Autoconf is especially sensitive to this). |
| 452 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 453 | # Exit status is that of the last command. |
| 454 | exit |
| 455 | } |
| 456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | ECHO_C= ECHO_N= ECHO_T= |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 458 | case `echo -n x` in #((((( |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 459 | -n*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 460 | case `echo 'xy\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 461 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 462 | xy) ECHO_C='\c';; |
| 463 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 464 | ECHO_T=' ';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 465 | esac;; |
| 466 | *) |
| 467 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 468 | esac |
| 469 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 470 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 471 | if test -d conf$$.dir; then |
| 472 | rm -f conf$$.dir/conf$$.file |
| 473 | else |
| 474 | rm -f conf$$.dir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 475 | mkdir conf$$.dir 2>/dev/null |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 477 | if (echo >conf$$.file) 2>/dev/null; then |
| 478 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 479 | as_ln_s='ln -s' |
| 480 | # ... but there are two gotchas: |
| 481 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 482 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 483 | # In both cases, we have to default to `cp -p'. |
| 484 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 485 | as_ln_s='cp -p' |
| 486 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 487 | as_ln_s=ln |
| 488 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 489 | as_ln_s='cp -p' |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 490 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 491 | else |
| 492 | as_ln_s='cp -p' |
| 493 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 495 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 496 | |
| 497 | if mkdir -p . 2>/dev/null; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 498 | as_mkdir_p='mkdir -p "$as_dir"' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 499 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 500 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 501 | as_mkdir_p=false |
| 502 | fi |
| 503 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 504 | if test -x / >/dev/null 2>&1; then |
| 505 | as_test_x='test -x' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 506 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 507 | if ls -dL / >/dev/null 2>&1; then |
| 508 | as_ls_L_option=L |
| 509 | else |
| 510 | as_ls_L_option= |
| 511 | fi |
| 512 | as_test_x=' |
| 513 | eval sh -c '\'' |
| 514 | if test -d "$1"; then |
| 515 | test -d "$1/."; |
| 516 | else |
| 517 | case $1 in #( |
| 518 | -*)set "./$1";; |
| 519 | esac; |
| 520 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 521 | ???[sx]*):;;*)false;;esac;fi |
| 522 | '\'' sh |
| 523 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 524 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 525 | as_executable_p=$as_test_x |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 526 | |
| 527 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 528 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 529 | |
| 530 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 531 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 534 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 535 | exec 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 536 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 537 | # Name of the host. |
| 538 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 539 | # so uname gets run too. |
| 540 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 541 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 542 | # |
| 543 | # Initializations. |
| 544 | # |
| 545 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 546 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 547 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 548 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 549 | cross_compiling=no |
| 550 | subdirs= |
| 551 | MFLAGS= |
| 552 | MAKEFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 553 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 554 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 555 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 556 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 557 | PACKAGE_VERSION='2.7svn' |
| 558 | PACKAGE_STRING='llvm 2.7svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 559 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 560 | PACKAGE_URL='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 562 | ac_unique_file="lib/VMCore/Module.cpp" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 563 | enable_option_checking=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 564 | # Factoring default headers for most tests. |
| 565 | ac_includes_default="\ |
| 566 | #include <stdio.h> |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 567 | #ifdef HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 568 | # include <sys/types.h> |
| 569 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 570 | #ifdef HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 571 | # include <sys/stat.h> |
| 572 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 573 | #ifdef STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 574 | # include <stdlib.h> |
| 575 | # include <stddef.h> |
| 576 | #else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 577 | # ifdef HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 578 | # include <stdlib.h> |
| 579 | # endif |
| 580 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 581 | #ifdef HAVE_STRING_H |
| 582 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | # include <memory.h> |
| 584 | # endif |
| 585 | # include <string.h> |
| 586 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 587 | #ifdef HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | # include <strings.h> |
| 589 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 590 | #ifdef HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 591 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 592 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 593 | #ifdef HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 594 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 595 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 596 | #ifdef HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 597 | # include <unistd.h> |
| 598 | #endif" |
| 599 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 600 | ac_header_list= |
| 601 | ac_subst_vars='LTLIBOBJS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 602 | LIBOBJS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 603 | RDYNAMIC |
| 604 | RPATH |
| 605 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 606 | OCAML_LIBDIR |
| 607 | ALL_BINDINGS |
| 608 | BINDINGS_TO_BUILD |
| 609 | LLVM_CONFIGTIME |
| 610 | LLVM_MANDIR |
| 611 | LLVM_INFODIR |
| 612 | LLVM_INCLUDEDIR |
| 613 | LLVM_ETCDIR |
| 614 | LLVM_DOCSDIR |
| 615 | LLVM_DATADIR |
| 616 | LLVM_LIBDIR |
| 617 | LLVM_BINDIR |
| 618 | LLVM_PREFIX |
| 619 | SHLIBEXT |
| 620 | LLVMGCC_LANGS |
| 621 | LLVMGCC_MAJVERS |
| 622 | LLVMGCC_VERSION |
| 623 | LLVMGCCLIBEXEC |
| 624 | LLVMGCCDIR |
| 625 | LLVMCC1PLUS |
| 626 | LLVMCC1 |
| 627 | MMAP_FILE |
| 628 | HUGE_VAL_SANITY |
| 629 | HAVE_PTHREAD |
| 630 | USE_OPROFILE |
| 631 | USE_UDIS86 |
| 632 | NO_MISSING_FIELD_INITIALIZERS |
| 633 | NO_VARIADIC_MACROS |
| 634 | LLVMGXX |
| 635 | LLVMGCC |
| 636 | LLVMGXXCOMMAND |
| 637 | LLVMGCCCOMMAND |
| 638 | LIBADD_DL |
| 639 | CONVENIENCE_LTDL_FALSE |
| 640 | CONVENIENCE_LTDL_TRUE |
| 641 | INSTALL_LTDL_FALSE |
| 642 | INSTALL_LTDL_TRUE |
| 643 | GAS |
| 644 | OCAMLDOC |
| 645 | OCAMLDEP |
| 646 | OCAMLOPT |
| 647 | OCAMLC |
| 648 | ZIP |
| 649 | TCLSH |
| 650 | RUNTEST |
| 651 | POD2MAN |
| 652 | POD2HTML |
| 653 | GZIP |
| 654 | GROFF |
| 655 | DOXYGEN |
| 656 | BZIP2 |
| 657 | INSTALL_DATA |
| 658 | INSTALL_SCRIPT |
| 659 | INSTALL_PROGRAM |
| 660 | HAVE_PERL |
| 661 | PERL |
| 662 | DOTTY |
| 663 | GV |
| 664 | CIRCO |
| 665 | TWOPI |
| 666 | NEATO |
| 667 | FDP |
| 668 | DOT |
| 669 | GRAPHVIZ |
| 670 | BINPWD |
| 671 | TAR |
| 672 | SED |
| 673 | RM |
| 674 | AR |
| 675 | RANLIB |
| 676 | MV |
| 677 | MKDIR |
| 678 | FIND |
| 679 | DATE |
| 680 | CP |
| 681 | CMP |
| 682 | LN_S |
| 683 | ifGNUmake |
| 684 | NM |
| 685 | ac_ct_CXX |
| 686 | CXXFLAGS |
| 687 | CXX |
| 688 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 689 | ENABLE_LLVMC_DYNAMIC |
| 690 | BINUTILS_INCDIR |
| 691 | EXTRA_OPTIONS |
| 692 | OPTIMIZE_OPTION |
| 693 | ENABLE_CBE_PRINTF_A |
| 694 | LLVM_ENUM_DISASSEMBLERS |
| 695 | LLVM_ENUM_ASM_PARSERS |
| 696 | LLVM_ENUM_ASM_PRINTERS |
| 697 | LLVM_ENUM_TARGETS |
| 698 | TARGETS_TO_BUILD |
| 699 | ENABLE_PIC |
| 700 | ENABLE_THREADS |
| 701 | ENABLE_DOXYGEN |
| 702 | TARGET_HAS_JIT |
| 703 | JIT |
| 704 | DEBUG_SYMBOLS |
| 705 | DEBUG_RUNTIME |
| 706 | EXPENSIVE_CHECKS |
| 707 | ENABLE_EXPENSIVE_CHECKS |
| 708 | DISABLE_ASSERTIONS |
| 709 | ENABLE_PROFILING |
| 710 | ENABLE_OPTIMIZED |
| 711 | CVSBUILD |
| 712 | BUILD_CXX |
| 713 | BUILD_EXEEXT |
| 714 | BUILD_CC |
| 715 | LLVM_CROSS_COMPILING |
| 716 | EGREP |
| 717 | GREP |
| 718 | CPP |
| 719 | OBJEXT |
| 720 | EXEEXT |
| 721 | ac_ct_CC |
| 722 | CPPFLAGS |
| 723 | LDFLAGS |
| 724 | CFLAGS |
| 725 | CC |
| 726 | ENDIAN |
| 727 | ARCH |
| 728 | LLVM_ON_WIN32 |
| 729 | LLVM_ON_UNIX |
| 730 | NOLINKALL |
| 731 | LINKALL |
| 732 | TARGET_OS |
| 733 | HOST_OS |
| 734 | OS |
| 735 | target_os |
| 736 | target_vendor |
| 737 | target_cpu |
| 738 | target |
| 739 | host_os |
| 740 | host_vendor |
| 741 | host_cpu |
| 742 | host |
| 743 | build_os |
| 744 | build_vendor |
| 745 | build_cpu |
| 746 | build |
| 747 | subdirs |
| 748 | LLVM_COPYRIGHT |
| 749 | target_alias |
| 750 | host_alias |
| 751 | build_alias |
| 752 | LIBS |
| 753 | ECHO_T |
| 754 | ECHO_N |
| 755 | ECHO_C |
| 756 | DEFS |
| 757 | mandir |
| 758 | localedir |
| 759 | libdir |
| 760 | psdir |
| 761 | pdfdir |
| 762 | dvidir |
| 763 | htmldir |
| 764 | infodir |
| 765 | docdir |
| 766 | oldincludedir |
| 767 | includedir |
| 768 | localstatedir |
| 769 | sharedstatedir |
| 770 | sysconfdir |
| 771 | datadir |
| 772 | datarootdir |
| 773 | libexecdir |
| 774 | sbindir |
| 775 | bindir |
| 776 | program_transform_name |
| 777 | prefix |
| 778 | exec_prefix |
| 779 | PACKAGE_URL |
| 780 | PACKAGE_BUGREPORT |
| 781 | PACKAGE_STRING |
| 782 | PACKAGE_VERSION |
| 783 | PACKAGE_TARNAME |
| 784 | PACKAGE_NAME |
| 785 | PATH_SEPARATOR |
| 786 | SHELL' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 787 | ac_subst_files='' |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 788 | ac_user_opts=' |
| 789 | enable_option_checking |
| 790 | enable_optimized |
| 791 | enable_profiling |
| 792 | enable_assertions |
| 793 | enable_expensive_checks |
| 794 | enable_debug_runtime |
| 795 | enable_debug_symbols |
| 796 | enable_jit |
| 797 | enable_doxygen |
| 798 | enable_threads |
| 799 | enable_pic |
| 800 | enable_targets |
| 801 | enable_cbe_printf_a |
| 802 | with_llvmgccdir |
| 803 | with_llvmgcc |
| 804 | with_llvmgxx |
| 805 | with_optimize_option |
| 806 | with_extra_options |
| 807 | enable_bindings |
| 808 | with_ocaml_libdir |
| 809 | with_c_include_dirs |
| 810 | with_cxx_include_root |
| 811 | with_cxx_include_arch |
| 812 | with_cxx_include_32bit_dir |
| 813 | with_cxx_include_64bit_dir |
| 814 | with_binutils_include |
| 815 | enable_libffi |
| 816 | enable_llvmc_dynamic |
| 817 | enable_llvmc_dynamic_plugins |
| 818 | with_tclinclude |
| 819 | enable_ltdl_install |
| 820 | with_udis86 |
| 821 | with_oprofile |
| 822 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 823 | ac_precious_vars='build_alias |
| 824 | host_alias |
| 825 | target_alias |
| 826 | CC |
| 827 | CFLAGS |
| 828 | LDFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 829 | LIBS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 830 | CPPFLAGS |
| 831 | CPP |
| 832 | CXX |
| 833 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 834 | CCC' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 835 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 837 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 838 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 839 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 840 | projects/llvm-reopt |
| 841 | projects/llvm-gcc |
| 842 | projects/llvm-java |
| 843 | projects/llvm-tv |
| 844 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 845 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 847 | |
| 848 | # Initialize some variables set by options. |
| 849 | ac_init_help= |
| 850 | ac_init_version=false |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 851 | ac_unrecognized_opts= |
| 852 | ac_unrecognized_sep= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 853 | # The variables have the same names as the options, with |
| 854 | # dashes changed to underlines. |
| 855 | cache_file=/dev/null |
| 856 | exec_prefix=NONE |
| 857 | no_create= |
| 858 | no_recursion= |
| 859 | prefix=NONE |
| 860 | program_prefix=NONE |
| 861 | program_suffix=NONE |
| 862 | program_transform_name=s,x,x, |
| 863 | silent= |
| 864 | site= |
| 865 | srcdir= |
| 866 | verbose= |
| 867 | x_includes=NONE |
| 868 | x_libraries=NONE |
| 869 | |
| 870 | # Installation directory options. |
| 871 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 872 | # and all the variables that are supposed to be based on exec_prefix |
| 873 | # by default will actually change. |
| 874 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 875 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 876 | bindir='${exec_prefix}/bin' |
| 877 | sbindir='${exec_prefix}/sbin' |
| 878 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | datarootdir='${prefix}/share' |
| 880 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 881 | sysconfdir='${prefix}/etc' |
| 882 | sharedstatedir='${prefix}/com' |
| 883 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 884 | includedir='${prefix}/include' |
| 885 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 886 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 887 | infodir='${datarootdir}/info' |
| 888 | htmldir='${docdir}' |
| 889 | dvidir='${docdir}' |
| 890 | pdfdir='${docdir}' |
| 891 | psdir='${docdir}' |
| 892 | libdir='${exec_prefix}/lib' |
| 893 | localedir='${datarootdir}/locale' |
| 894 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 895 | |
| 896 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 897 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 898 | for ac_option |
| 899 | do |
| 900 | # If the previous option needs an argument, assign it. |
| 901 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 902 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 903 | ac_prev= |
| 904 | continue |
| 905 | fi |
| 906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | case $ac_option in |
| 908 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 909 | *) ac_optarg=yes ;; |
| 910 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 911 | |
| 912 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | case $ac_dashdash$ac_option in |
| 915 | --) |
| 916 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 917 | |
| 918 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 919 | ac_prev=bindir ;; |
| 920 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 921 | bindir=$ac_optarg ;; |
| 922 | |
| 923 | -build | --build | --buil | --bui | --bu) |
| 924 | ac_prev=build_alias ;; |
| 925 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 926 | build_alias=$ac_optarg ;; |
| 927 | |
| 928 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 929 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 930 | ac_prev=cache_file ;; |
| 931 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 932 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 933 | cache_file=$ac_optarg ;; |
| 934 | |
| 935 | --config-cache | -C) |
| 936 | cache_file=config.cache ;; |
| 937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 938 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 939 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 940 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 941 | datadir=$ac_optarg ;; |
| 942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 943 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 944 | | --dataroo | --dataro | --datar) |
| 945 | ac_prev=datarootdir ;; |
| 946 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 947 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 948 | datarootdir=$ac_optarg ;; |
| 949 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 950 | -disable-* | --disable-*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 951 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 952 | # Reject names that are not valid shell variable names. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 954 | as_fn_error "invalid feature name: $ac_useropt" |
| 955 | ac_useropt_orig=$ac_useropt |
| 956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 957 | case $ac_user_opts in |
| 958 | *" |
| 959 | "enable_$ac_useropt" |
| 960 | "*) ;; |
| 961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 962 | ac_unrecognized_sep=', ';; |
| 963 | esac |
| 964 | eval enable_$ac_useropt=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 965 | |
| 966 | -docdir | --docdir | --docdi | --doc | --do) |
| 967 | ac_prev=docdir ;; |
| 968 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 969 | docdir=$ac_optarg ;; |
| 970 | |
| 971 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 972 | ac_prev=dvidir ;; |
| 973 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 974 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 975 | |
| 976 | -enable-* | --enable-*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 977 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | # Reject names that are not valid shell variable names. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 980 | as_fn_error "invalid feature name: $ac_useropt" |
| 981 | ac_useropt_orig=$ac_useropt |
| 982 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 983 | case $ac_user_opts in |
| 984 | *" |
| 985 | "enable_$ac_useropt" |
| 986 | "*) ;; |
| 987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 988 | ac_unrecognized_sep=', ';; |
| 989 | esac |
| 990 | eval enable_$ac_useropt=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 991 | |
| 992 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 993 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 994 | | --exec | --exe | --ex) |
| 995 | ac_prev=exec_prefix ;; |
| 996 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 997 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 998 | | --exec=* | --exe=* | --ex=*) |
| 999 | exec_prefix=$ac_optarg ;; |
| 1000 | |
| 1001 | -gas | --gas | --ga | --g) |
| 1002 | # Obsolete; use --with-gas. |
| 1003 | with_gas=yes ;; |
| 1004 | |
| 1005 | -help | --help | --hel | --he | -h) |
| 1006 | ac_init_help=long ;; |
| 1007 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1008 | ac_init_help=recursive ;; |
| 1009 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1010 | ac_init_help=short ;; |
| 1011 | |
| 1012 | -host | --host | --hos | --ho) |
| 1013 | ac_prev=host_alias ;; |
| 1014 | -host=* | --host=* | --hos=* | --ho=*) |
| 1015 | host_alias=$ac_optarg ;; |
| 1016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1017 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1018 | ac_prev=htmldir ;; |
| 1019 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1020 | | --ht=*) |
| 1021 | htmldir=$ac_optarg ;; |
| 1022 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1023 | -includedir | --includedir | --includedi | --included | --include \ |
| 1024 | | --includ | --inclu | --incl | --inc) |
| 1025 | ac_prev=includedir ;; |
| 1026 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1027 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1028 | includedir=$ac_optarg ;; |
| 1029 | |
| 1030 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1031 | ac_prev=infodir ;; |
| 1032 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1033 | infodir=$ac_optarg ;; |
| 1034 | |
| 1035 | -libdir | --libdir | --libdi | --libd) |
| 1036 | ac_prev=libdir ;; |
| 1037 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1038 | libdir=$ac_optarg ;; |
| 1039 | |
| 1040 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1041 | | --libexe | --libex | --libe) |
| 1042 | ac_prev=libexecdir ;; |
| 1043 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1044 | | --libexe=* | --libex=* | --libe=*) |
| 1045 | libexecdir=$ac_optarg ;; |
| 1046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1047 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1048 | ac_prev=localedir ;; |
| 1049 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1050 | localedir=$ac_optarg ;; |
| 1051 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1053 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1054 | ac_prev=localstatedir ;; |
| 1055 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1056 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1057 | localstatedir=$ac_optarg ;; |
| 1058 | |
| 1059 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1060 | ac_prev=mandir ;; |
| 1061 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1062 | mandir=$ac_optarg ;; |
| 1063 | |
| 1064 | -nfp | --nfp | --nf) |
| 1065 | # Obsolete; use --without-fp. |
| 1066 | with_fp=no ;; |
| 1067 | |
| 1068 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1069 | | --no-cr | --no-c | -n) |
| 1070 | no_create=yes ;; |
| 1071 | |
| 1072 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1073 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1074 | no_recursion=yes ;; |
| 1075 | |
| 1076 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1077 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1078 | | --oldin | --oldi | --old | --ol | --o) |
| 1079 | ac_prev=oldincludedir ;; |
| 1080 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1081 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1082 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1083 | oldincludedir=$ac_optarg ;; |
| 1084 | |
| 1085 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1086 | ac_prev=prefix ;; |
| 1087 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1088 | prefix=$ac_optarg ;; |
| 1089 | |
| 1090 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1091 | | --program-pre | --program-pr | --program-p) |
| 1092 | ac_prev=program_prefix ;; |
| 1093 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1094 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1095 | program_prefix=$ac_optarg ;; |
| 1096 | |
| 1097 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1098 | | --program-suf | --program-su | --program-s) |
| 1099 | ac_prev=program_suffix ;; |
| 1100 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1101 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1102 | program_suffix=$ac_optarg ;; |
| 1103 | |
| 1104 | -program-transform-name | --program-transform-name \ |
| 1105 | | --program-transform-nam | --program-transform-na \ |
| 1106 | | --program-transform-n | --program-transform- \ |
| 1107 | | --program-transform | --program-transfor \ |
| 1108 | | --program-transfo | --program-transf \ |
| 1109 | | --program-trans | --program-tran \ |
| 1110 | | --progr-tra | --program-tr | --program-t) |
| 1111 | ac_prev=program_transform_name ;; |
| 1112 | -program-transform-name=* | --program-transform-name=* \ |
| 1113 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1114 | | --program-transform-n=* | --program-transform-=* \ |
| 1115 | | --program-transform=* | --program-transfor=* \ |
| 1116 | | --program-transfo=* | --program-transf=* \ |
| 1117 | | --program-trans=* | --program-tran=* \ |
| 1118 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1119 | program_transform_name=$ac_optarg ;; |
| 1120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1121 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1122 | ac_prev=pdfdir ;; |
| 1123 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1124 | pdfdir=$ac_optarg ;; |
| 1125 | |
| 1126 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1127 | ac_prev=psdir ;; |
| 1128 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1129 | psdir=$ac_optarg ;; |
| 1130 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1132 | | -silent | --silent | --silen | --sile | --sil) |
| 1133 | silent=yes ;; |
| 1134 | |
| 1135 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1136 | ac_prev=sbindir ;; |
| 1137 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1138 | | --sbi=* | --sb=*) |
| 1139 | sbindir=$ac_optarg ;; |
| 1140 | |
| 1141 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1142 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1143 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1144 | | --sha | --sh) |
| 1145 | ac_prev=sharedstatedir ;; |
| 1146 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1147 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1148 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1149 | | --sha=* | --sh=*) |
| 1150 | sharedstatedir=$ac_optarg ;; |
| 1151 | |
| 1152 | -site | --site | --sit) |
| 1153 | ac_prev=site ;; |
| 1154 | -site=* | --site=* | --sit=*) |
| 1155 | site=$ac_optarg ;; |
| 1156 | |
| 1157 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1158 | ac_prev=srcdir ;; |
| 1159 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1160 | srcdir=$ac_optarg ;; |
| 1161 | |
| 1162 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1163 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1164 | ac_prev=sysconfdir ;; |
| 1165 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1166 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1167 | sysconfdir=$ac_optarg ;; |
| 1168 | |
| 1169 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1170 | ac_prev=target_alias ;; |
| 1171 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1172 | target_alias=$ac_optarg ;; |
| 1173 | |
| 1174 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1175 | verbose=yes ;; |
| 1176 | |
| 1177 | -version | --version | --versio | --versi | --vers | -V) |
| 1178 | ac_init_version=: ;; |
| 1179 | |
| 1180 | -with-* | --with-*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1182 | # Reject names that are not valid shell variable names. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1184 | as_fn_error "invalid package name: $ac_useropt" |
| 1185 | ac_useropt_orig=$ac_useropt |
| 1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1187 | case $ac_user_opts in |
| 1188 | *" |
| 1189 | "with_$ac_useropt" |
| 1190 | "*) ;; |
| 1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1192 | ac_unrecognized_sep=', ';; |
| 1193 | esac |
| 1194 | eval with_$ac_useropt=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1195 | |
| 1196 | -without-* | --without-*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1198 | # Reject names that are not valid shell variable names. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1200 | as_fn_error "invalid package name: $ac_useropt" |
| 1201 | ac_useropt_orig=$ac_useropt |
| 1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1203 | case $ac_user_opts in |
| 1204 | *" |
| 1205 | "with_$ac_useropt" |
| 1206 | "*) ;; |
| 1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1208 | ac_unrecognized_sep=', ';; |
| 1209 | esac |
| 1210 | eval with_$ac_useropt=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | |
| 1212 | --x) |
| 1213 | # Obsolete; use --with-x. |
| 1214 | with_x=yes ;; |
| 1215 | |
| 1216 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1217 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1218 | ac_prev=x_includes ;; |
| 1219 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1220 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1221 | x_includes=$ac_optarg ;; |
| 1222 | |
| 1223 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1224 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1225 | ac_prev=x_libraries ;; |
| 1226 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1227 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1228 | x_libraries=$ac_optarg ;; |
| 1229 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1230 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1231 | Try \`$0 --help' for more information." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1232 | ;; |
| 1233 | |
| 1234 | *=*) |
| 1235 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1236 | # Reject names that are not valid shell variable names. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1237 | case $ac_envvar in #( |
| 1238 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1239 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1240 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1241 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1242 | export $ac_envvar ;; |
| 1243 | |
| 1244 | *) |
| 1245 | # FIXME: should be removed in autoconf 3.0. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1246 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1248 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1250 | ;; |
| 1251 | |
| 1252 | esac |
| 1253 | done |
| 1254 | |
| 1255 | if test -n "$ac_prev"; then |
| 1256 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1257 | as_fn_error "missing argument to $ac_option" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1258 | fi |
| 1259 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1260 | if test -n "$ac_unrecognized_opts"; then |
| 1261 | case $enable_option_checking in |
| 1262 | no) ;; |
| 1263 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1264 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1265 | esac |
| 1266 | fi |
| 1267 | |
| 1268 | # Check all directory arguments for consistency. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1269 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1270 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1271 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1272 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1273 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1274 | eval ac_val=\$$ac_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1275 | # Remove trailing slashes. |
| 1276 | case $ac_val in |
| 1277 | */ ) |
| 1278 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1279 | eval $ac_var=\$ac_val;; |
| 1280 | esac |
| 1281 | # Be sure to have absolute directory names. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1283 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1284 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1285 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1286 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1287 | done |
| 1288 | |
| 1289 | # There might be people who depend on the old broken behavior: `$host' |
| 1290 | # used to hold the argument of --host etc. |
| 1291 | # FIXME: To remove some day. |
| 1292 | build=$build_alias |
| 1293 | host=$host_alias |
| 1294 | target=$target_alias |
| 1295 | |
| 1296 | # FIXME: To remove some day. |
| 1297 | if test "x$host_alias" != x; then |
| 1298 | if test "x$build_alias" = x; then |
| 1299 | cross_compiling=maybe |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1300 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1301 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1302 | elif test "x$build_alias" != "x$host_alias"; then |
| 1303 | cross_compiling=yes |
| 1304 | fi |
| 1305 | fi |
| 1306 | |
| 1307 | ac_tool_prefix= |
| 1308 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1309 | |
| 1310 | test "$silent" = yes && exec 6>/dev/null |
| 1311 | |
| 1312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1313 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1314 | ac_ls_di=`ls -di .` && |
| 1315 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1316 | as_fn_error "working directory cannot be determined" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1318 | as_fn_error "pwd does not report name of working directory" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1319 | |
| 1320 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1321 | # Find the source files, if location was not specified. |
| 1322 | if test -z "$srcdir"; then |
| 1323 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1324 | # Try the directory containing this script, then the parent directory. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1325 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1328 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1330 | $as_echo X"$as_myself" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\/\)[^/].*/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | /^X\(\/\/\)$/{ |
| 1340 | s//\1/ |
| 1341 | q |
| 1342 | } |
| 1343 | /^X\(\/\).*/{ |
| 1344 | s//\1/ |
| 1345 | q |
| 1346 | } |
| 1347 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1348 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1350 | srcdir=.. |
| 1351 | fi |
| 1352 | else |
| 1353 | ac_srcdir_defaulted=no |
| 1354 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1357 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1358 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1359 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1360 | ac_abs_confdir=`( |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1361 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1362 | pwd)` |
| 1363 | # When building in place, set srcdir=. |
| 1364 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1365 | srcdir=. |
| 1366 | fi |
| 1367 | # Remove unnecessary trailing slashes from srcdir. |
| 1368 | # Double slashes in file names in object file debugging info |
| 1369 | # mess up M-x gdb in Emacs. |
| 1370 | case $srcdir in |
| 1371 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1372 | esac |
| 1373 | for ac_var in $ac_precious_vars; do |
| 1374 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1375 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1376 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1377 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1378 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1379 | |
| 1380 | # |
| 1381 | # Report the --help message. |
| 1382 | # |
| 1383 | if test "$ac_init_help" = "long"; then |
| 1384 | # Omit some internal or obsolete options to make the list less imposing. |
| 1385 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1386 | cat <<_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1387 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | |
| 1389 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1390 | |
| 1391 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1392 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1393 | |
| 1394 | Defaults for the options are specified in brackets. |
| 1395 | |
| 1396 | Configuration: |
| 1397 | -h, --help display this help and exit |
| 1398 | --help=short display options specific to this package |
| 1399 | --help=recursive display the short help of all the included packages |
| 1400 | -V, --version display version information and exit |
| 1401 | -q, --quiet, --silent do not print \`checking...' messages |
| 1402 | --cache-file=FILE cache test results in FILE [disabled] |
| 1403 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1404 | -n, --no-create do not create output files |
| 1405 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1407 | Installation directories: |
| 1408 | --prefix=PREFIX install architecture-independent files in PREFIX |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1409 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1410 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1411 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1412 | |
| 1413 | By default, \`make install' will install all the files in |
| 1414 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1415 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1416 | for instance \`--prefix=\$HOME'. |
| 1417 | |
| 1418 | For better control, use the options below. |
| 1419 | |
| 1420 | Fine tuning of the installation directories: |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1421 | --bindir=DIR user executables [EPREFIX/bin] |
| 1422 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1423 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1424 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1425 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1426 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1427 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1428 | --includedir=DIR C header files [PREFIX/include] |
| 1429 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1430 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1431 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1432 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1433 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1434 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1435 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1436 | --htmldir=DIR html documentation [DOCDIR] |
| 1437 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1438 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1439 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1440 | _ACEOF |
| 1441 | |
| 1442 | cat <<\_ACEOF |
| 1443 | |
| 1444 | System types: |
| 1445 | --build=BUILD configure for building on BUILD [guessed] |
| 1446 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1447 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1448 | _ACEOF |
| 1449 | fi |
| 1450 | |
| 1451 | if test -n "$ac_init_help"; then |
| 1452 | case $ac_init_help in |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1453 | short | recursive ) echo "Configuration of llvm 2.7svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1454 | esac |
| 1455 | cat <<\_ACEOF |
| 1456 | |
| 1457 | Optional Features: |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1458 | --disable-option-checking ignore unrecognized --enable/--with options |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1461 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1462 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1463 | --enable-assertions Compile with assertion checks enabled (default is |
| 1464 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1465 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1466 | Compile with expensive debug checks enabled (default |
| 1467 | is NO) |
| 1468 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1469 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1470 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1471 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1472 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1473 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1474 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1475 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1476 | is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1477 | --enable-targets Build specific host targets: all or |
| 1478 | target1,target2,... Valid targets are: host, x86, |
| 1479 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1480 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1481 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1482 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1483 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1484 | --enable-bindings Build specific language bindings: |
| 1485 | all,auto,none,{binding-name} (default=auto) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1486 | --enable-libffi Check for the presence of libffi (default is YES) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1487 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1488 | Win32) |
| 1489 | --enable-llvmc-dynamic-plugins |
| 1490 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1491 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1492 | |
| 1493 | Optional Packages: |
| 1494 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1495 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1496 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1497 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1498 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1499 | searches PATH) |
| 1500 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1501 | searches PATH) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1502 | --with-optimize-option Select the compiler options to use for optimized |
| 1503 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1504 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1505 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1506 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1507 | --with-c-include-dirs Colon separated list of directories clang will |
| 1508 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1509 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1510 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1511 | --with-cxx-include-32bit-dir |
| 1512 | 32 bit multilib dir. |
| 1513 | --with-cxx-include-64bit-dir |
| 1514 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1515 | --with-binutils-include Specify path to binutils/include/ containing |
| 1516 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1517 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1518 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1519 | --with-oprofile=<prefix> |
| 1520 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | |
| 1522 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1523 | CC C compiler command |
| 1524 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1526 | nonstandard directory <lib dir> |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1527 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1528 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1529 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1531 | CXX C++ compiler command |
| 1532 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | |
| 1534 | Use these variables to override the choices made by `configure' or to help |
| 1535 | it to find libraries and programs with nonstandard names/locations. |
| 1536 | |
| 1537 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1538 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1539 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | fi |
| 1541 | |
| 1542 | if test "$ac_init_help" = "recursive"; then |
| 1543 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1545 | test -d "$ac_dir" || |
| 1546 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1547 | continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1548 | ac_builddir=. |
| 1549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1550 | case "$ac_dir" in |
| 1551 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1552 | *) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1553 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1554 | # A ".." for each directory in $ac_dir_suffix. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1555 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1556 | case $ac_top_builddir_sub in |
| 1557 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1558 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1559 | esac ;; |
| 1560 | esac |
| 1561 | ac_abs_top_builddir=$ac_pwd |
| 1562 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1563 | # for backward compatibility: |
| 1564 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1565 | |
| 1566 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1567 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1568 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1569 | ac_top_srcdir=$ac_top_builddir_sub |
| 1570 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1571 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1572 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1573 | ac_top_srcdir=$srcdir |
| 1574 | ac_abs_top_srcdir=$srcdir ;; |
| 1575 | *) # Relative name. |
| 1576 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1577 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1578 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1580 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1582 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1583 | # Check for guested configure. |
| 1584 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1585 | echo && |
| 1586 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1587 | elif test -f "$ac_srcdir/configure"; then |
| 1588 | echo && |
| 1589 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1590 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1591 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1592 | fi || ac_status=$? |
| 1593 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1594 | done |
| 1595 | fi |
| 1596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1597 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | if $ac_init_version; then |
| 1599 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1600 | llvm configure 2.7svn |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1601 | generated by GNU Autoconf 2.65 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1602 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1603 | Copyright (C) 2009 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1604 | This configure script is free software; the Free Software Foundation |
| 1605 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1606 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1607 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1609 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 1611 | |
| 1612 | ## ------------------------ ## |
| 1613 | ## Autoconf initialization. ## |
| 1614 | ## ------------------------ ## |
| 1615 | |
| 1616 | # ac_fn_c_try_compile LINENO |
| 1617 | # -------------------------- |
| 1618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1619 | ac_fn_c_try_compile () |
| 1620 | { |
| 1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1622 | rm -f conftest.$ac_objext |
| 1623 | if { { ac_try="$ac_compile" |
| 1624 | case "(($ac_try" in |
| 1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1626 | *) ac_try_echo=$ac_try;; |
| 1627 | esac |
| 1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1629 | $as_echo "$ac_try_echo"; } >&5 |
| 1630 | (eval "$ac_compile") 2>conftest.err |
| 1631 | ac_status=$? |
| 1632 | if test -s conftest.err; then |
| 1633 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1634 | cat conftest.er1 >&5 |
| 1635 | mv -f conftest.er1 conftest.err |
| 1636 | fi |
| 1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1638 | test $ac_status = 0; } && { |
| 1639 | test -z "$ac_c_werror_flag" || |
| 1640 | test ! -s conftest.err |
| 1641 | } && test -s conftest.$ac_objext; then : |
| 1642 | ac_retval=0 |
| 1643 | else |
| 1644 | $as_echo "$as_me: failed program was:" >&5 |
| 1645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1646 | |
| 1647 | ac_retval=1 |
| 1648 | fi |
| 1649 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1650 | as_fn_set_status $ac_retval |
| 1651 | |
| 1652 | } # ac_fn_c_try_compile |
| 1653 | |
| 1654 | # ac_fn_c_try_run LINENO |
| 1655 | # ---------------------- |
| 1656 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1657 | # that executables *can* be run. |
| 1658 | ac_fn_c_try_run () |
| 1659 | { |
| 1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1661 | if { { ac_try="$ac_link" |
| 1662 | case "(($ac_try" in |
| 1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1664 | *) ac_try_echo=$ac_try;; |
| 1665 | esac |
| 1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1667 | $as_echo "$ac_try_echo"; } >&5 |
| 1668 | (eval "$ac_link") 2>&5 |
| 1669 | ac_status=$? |
| 1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1671 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1672 | { { case "(($ac_try" in |
| 1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1674 | *) ac_try_echo=$ac_try;; |
| 1675 | esac |
| 1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1677 | $as_echo "$ac_try_echo"; } >&5 |
| 1678 | (eval "$ac_try") 2>&5 |
| 1679 | ac_status=$? |
| 1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1681 | test $ac_status = 0; }; }; then : |
| 1682 | ac_retval=0 |
| 1683 | else |
| 1684 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1685 | $as_echo "$as_me: failed program was:" >&5 |
| 1686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1687 | |
| 1688 | ac_retval=$ac_status |
| 1689 | fi |
| 1690 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1691 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1692 | as_fn_set_status $ac_retval |
| 1693 | |
| 1694 | } # ac_fn_c_try_run |
| 1695 | |
| 1696 | # ac_fn_c_try_cpp LINENO |
| 1697 | # ---------------------- |
| 1698 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1699 | ac_fn_c_try_cpp () |
| 1700 | { |
| 1701 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1702 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1703 | case "(($ac_try" in |
| 1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1705 | *) ac_try_echo=$ac_try;; |
| 1706 | esac |
| 1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1708 | $as_echo "$ac_try_echo"; } >&5 |
| 1709 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1710 | ac_status=$? |
| 1711 | if test -s conftest.err; then |
| 1712 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1713 | cat conftest.er1 >&5 |
| 1714 | mv -f conftest.er1 conftest.err |
| 1715 | fi |
| 1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1717 | test $ac_status = 0; } >/dev/null && { |
| 1718 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1719 | test ! -s conftest.err |
| 1720 | }; then : |
| 1721 | ac_retval=0 |
| 1722 | else |
| 1723 | $as_echo "$as_me: failed program was:" >&5 |
| 1724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1725 | |
| 1726 | ac_retval=1 |
| 1727 | fi |
| 1728 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1729 | as_fn_set_status $ac_retval |
| 1730 | |
| 1731 | } # ac_fn_c_try_cpp |
| 1732 | |
| 1733 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1734 | # ------------------------------------------------------- |
| 1735 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1736 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1737 | ac_fn_c_check_header_compile () |
| 1738 | { |
| 1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1741 | $as_echo_n "checking for $2... " >&6; } |
| 1742 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1743 | $as_echo_n "(cached) " >&6 |
| 1744 | else |
| 1745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1746 | /* end confdefs.h. */ |
| 1747 | $4 |
| 1748 | #include <$2> |
| 1749 | _ACEOF |
| 1750 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1751 | eval "$3=yes" |
| 1752 | else |
| 1753 | eval "$3=no" |
| 1754 | fi |
| 1755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1756 | fi |
| 1757 | eval ac_res=\$$3 |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1759 | $as_echo "$ac_res" >&6; } |
| 1760 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1761 | |
| 1762 | } # ac_fn_c_check_header_compile |
| 1763 | |
| 1764 | # ac_fn_cxx_try_compile LINENO |
| 1765 | # ---------------------------- |
| 1766 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1767 | ac_fn_cxx_try_compile () |
| 1768 | { |
| 1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1770 | rm -f conftest.$ac_objext |
| 1771 | if { { ac_try="$ac_compile" |
| 1772 | case "(($ac_try" in |
| 1773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1774 | *) ac_try_echo=$ac_try;; |
| 1775 | esac |
| 1776 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1777 | $as_echo "$ac_try_echo"; } >&5 |
| 1778 | (eval "$ac_compile") 2>conftest.err |
| 1779 | ac_status=$? |
| 1780 | if test -s conftest.err; then |
| 1781 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1782 | cat conftest.er1 >&5 |
| 1783 | mv -f conftest.er1 conftest.err |
| 1784 | fi |
| 1785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1786 | test $ac_status = 0; } && { |
| 1787 | test -z "$ac_cxx_werror_flag" || |
| 1788 | test ! -s conftest.err |
| 1789 | } && test -s conftest.$ac_objext; then : |
| 1790 | ac_retval=0 |
| 1791 | else |
| 1792 | $as_echo "$as_me: failed program was:" >&5 |
| 1793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1794 | |
| 1795 | ac_retval=1 |
| 1796 | fi |
| 1797 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1798 | as_fn_set_status $ac_retval |
| 1799 | |
| 1800 | } # ac_fn_cxx_try_compile |
| 1801 | |
| 1802 | # ac_fn_c_try_link LINENO |
| 1803 | # ----------------------- |
| 1804 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1805 | ac_fn_c_try_link () |
| 1806 | { |
| 1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1809 | if { { ac_try="$ac_link" |
| 1810 | case "(($ac_try" in |
| 1811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1812 | *) ac_try_echo=$ac_try;; |
| 1813 | esac |
| 1814 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1815 | $as_echo "$ac_try_echo"; } >&5 |
| 1816 | (eval "$ac_link") 2>conftest.err |
| 1817 | ac_status=$? |
| 1818 | if test -s conftest.err; then |
| 1819 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1820 | cat conftest.er1 >&5 |
| 1821 | mv -f conftest.er1 conftest.err |
| 1822 | fi |
| 1823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1824 | test $ac_status = 0; } && { |
| 1825 | test -z "$ac_c_werror_flag" || |
| 1826 | test ! -s conftest.err |
| 1827 | } && test -s conftest$ac_exeext && { |
| 1828 | test "$cross_compiling" = yes || |
| 1829 | $as_test_x conftest$ac_exeext |
| 1830 | }; then : |
| 1831 | ac_retval=0 |
| 1832 | else |
| 1833 | $as_echo "$as_me: failed program was:" >&5 |
| 1834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1835 | |
| 1836 | ac_retval=1 |
| 1837 | fi |
| 1838 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1839 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1840 | # interfere with the next link command; also delete a directory that is |
| 1841 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1842 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1843 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1844 | as_fn_set_status $ac_retval |
| 1845 | |
| 1846 | } # ac_fn_c_try_link |
| 1847 | |
| 1848 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1849 | # ------------------------------------------------------- |
| 1850 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1851 | # the include files in INCLUDES and setting the cache variable VAR |
| 1852 | # accordingly. |
| 1853 | ac_fn_c_check_header_mongrel () |
| 1854 | { |
| 1855 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1856 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1858 | $as_echo_n "checking for $2... " >&6; } |
| 1859 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1860 | $as_echo_n "(cached) " >&6 |
| 1861 | fi |
| 1862 | eval ac_res=\$$3 |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1864 | $as_echo "$ac_res" >&6; } |
| 1865 | else |
| 1866 | # Is the header compilable? |
| 1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1868 | $as_echo_n "checking $2 usability... " >&6; } |
| 1869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1870 | /* end confdefs.h. */ |
| 1871 | $4 |
| 1872 | #include <$2> |
| 1873 | _ACEOF |
| 1874 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1875 | ac_header_compiler=yes |
| 1876 | else |
| 1877 | ac_header_compiler=no |
| 1878 | fi |
| 1879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1881 | $as_echo "$ac_header_compiler" >&6; } |
| 1882 | |
| 1883 | # Is the header present? |
| 1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1885 | $as_echo_n "checking $2 presence... " >&6; } |
| 1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1887 | /* end confdefs.h. */ |
| 1888 | #include <$2> |
| 1889 | _ACEOF |
| 1890 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1891 | ac_header_preproc=yes |
| 1892 | else |
| 1893 | ac_header_preproc=no |
| 1894 | fi |
| 1895 | rm -f conftest.err conftest.$ac_ext |
| 1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1897 | $as_echo "$ac_header_preproc" >&6; } |
| 1898 | |
| 1899 | # So? What about this header? |
| 1900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1901 | yes:no: ) |
| 1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1903 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1905 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1906 | ;; |
| 1907 | no:yes:* ) |
| 1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1909 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1911 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1913 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1915 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1917 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1918 | ( cat <<\_ASBOX |
| 1919 | ## ----------------------------------- ## |
| 1920 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 1921 | ## ----------------------------------- ## |
| 1922 | _ASBOX |
| 1923 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1924 | ;; |
| 1925 | esac |
| 1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1927 | $as_echo_n "checking for $2... " >&6; } |
| 1928 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1929 | $as_echo_n "(cached) " >&6 |
| 1930 | else |
| 1931 | eval "$3=\$ac_header_compiler" |
| 1932 | fi |
| 1933 | eval ac_res=\$$3 |
| 1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1935 | $as_echo "$ac_res" >&6; } |
| 1936 | fi |
| 1937 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1938 | |
| 1939 | } # ac_fn_c_check_header_mongrel |
| 1940 | |
| 1941 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1942 | # ---------------------------------- |
| 1943 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1944 | ac_fn_c_check_func () |
| 1945 | { |
| 1946 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1948 | $as_echo_n "checking for $2... " >&6; } |
| 1949 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1950 | $as_echo_n "(cached) " >&6 |
| 1951 | else |
| 1952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1953 | /* end confdefs.h. */ |
| 1954 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1955 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1956 | #define $2 innocuous_$2 |
| 1957 | |
| 1958 | /* System header to define __stub macros and hopefully few prototypes, |
| 1959 | which can conflict with char $2 (); below. |
| 1960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1961 | <limits.h> exists even on freestanding compilers. */ |
| 1962 | |
| 1963 | #ifdef __STDC__ |
| 1964 | # include <limits.h> |
| 1965 | #else |
| 1966 | # include <assert.h> |
| 1967 | #endif |
| 1968 | |
| 1969 | #undef $2 |
| 1970 | |
| 1971 | /* Override any GCC internal prototype to avoid an error. |
| 1972 | Use char because int might match the return type of a GCC |
| 1973 | builtin and then its argument prototype would still apply. */ |
| 1974 | #ifdef __cplusplus |
| 1975 | extern "C" |
| 1976 | #endif |
| 1977 | char $2 (); |
| 1978 | /* The GNU C library defines this for functions which it implements |
| 1979 | to always fail with ENOSYS. Some functions are actually named |
| 1980 | something starting with __ and the normal name is an alias. */ |
| 1981 | #if defined __stub_$2 || defined __stub___$2 |
| 1982 | choke me |
| 1983 | #endif |
| 1984 | |
| 1985 | int |
| 1986 | main () |
| 1987 | { |
| 1988 | return $2 (); |
| 1989 | ; |
| 1990 | return 0; |
| 1991 | } |
| 1992 | _ACEOF |
| 1993 | if ac_fn_c_try_link "$LINENO"; then : |
| 1994 | eval "$3=yes" |
| 1995 | else |
| 1996 | eval "$3=no" |
| 1997 | fi |
| 1998 | rm -f core conftest.err conftest.$ac_objext \ |
| 1999 | conftest$ac_exeext conftest.$ac_ext |
| 2000 | fi |
| 2001 | eval ac_res=\$$3 |
| 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2003 | $as_echo "$ac_res" >&6; } |
| 2004 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2005 | |
| 2006 | } # ac_fn_c_check_func |
| 2007 | |
| 2008 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2009 | # ------------------------------------------- |
| 2010 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2011 | # variable VAR accordingly. |
| 2012 | ac_fn_c_check_type () |
| 2013 | { |
| 2014 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2016 | $as_echo_n "checking for $2... " >&6; } |
| 2017 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2018 | $as_echo_n "(cached) " >&6 |
| 2019 | else |
| 2020 | eval "$3=no" |
| 2021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2022 | /* end confdefs.h. */ |
| 2023 | $4 |
| 2024 | int |
| 2025 | main () |
| 2026 | { |
| 2027 | if (sizeof ($2)) |
| 2028 | return 0; |
| 2029 | ; |
| 2030 | return 0; |
| 2031 | } |
| 2032 | _ACEOF |
| 2033 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2035 | /* end confdefs.h. */ |
| 2036 | $4 |
| 2037 | int |
| 2038 | main () |
| 2039 | { |
| 2040 | if (sizeof (($2))) |
| 2041 | return 0; |
| 2042 | ; |
| 2043 | return 0; |
| 2044 | } |
| 2045 | _ACEOF |
| 2046 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2047 | |
| 2048 | else |
| 2049 | eval "$3=yes" |
| 2050 | fi |
| 2051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2052 | fi |
| 2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2054 | fi |
| 2055 | eval ac_res=\$$3 |
| 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2057 | $as_echo "$ac_res" >&6; } |
| 2058 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2059 | |
| 2060 | } # ac_fn_c_check_type |
| 2061 | |
| 2062 | # ac_fn_cxx_try_run LINENO |
| 2063 | # ------------------------ |
| 2064 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2065 | # that executables *can* be run. |
| 2066 | ac_fn_cxx_try_run () |
| 2067 | { |
| 2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2069 | if { { ac_try="$ac_link" |
| 2070 | case "(($ac_try" in |
| 2071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2072 | *) ac_try_echo=$ac_try;; |
| 2073 | esac |
| 2074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2075 | $as_echo "$ac_try_echo"; } >&5 |
| 2076 | (eval "$ac_link") 2>&5 |
| 2077 | ac_status=$? |
| 2078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2079 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2080 | { { case "(($ac_try" in |
| 2081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2082 | *) ac_try_echo=$ac_try;; |
| 2083 | esac |
| 2084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2085 | $as_echo "$ac_try_echo"; } >&5 |
| 2086 | (eval "$ac_try") 2>&5 |
| 2087 | ac_status=$? |
| 2088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2089 | test $ac_status = 0; }; }; then : |
| 2090 | ac_retval=0 |
| 2091 | else |
| 2092 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2093 | $as_echo "$as_me: failed program was:" >&5 |
| 2094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2095 | |
| 2096 | ac_retval=$ac_status |
| 2097 | fi |
| 2098 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2099 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2100 | as_fn_set_status $ac_retval |
| 2101 | |
| 2102 | } # ac_fn_cxx_try_run |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2103 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2104 | This file contains any messages produced by compilers while |
| 2105 | running configure, to aid debugging if configure makes a mistake. |
| 2106 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 2107 | It was created by llvm $as_me 2.7svn, which was |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2108 | generated by GNU Autoconf 2.65. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | |
| 2110 | $ $0 $@ |
| 2111 | |
| 2112 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2113 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2114 | { |
| 2115 | cat <<_ASUNAME |
| 2116 | ## --------- ## |
| 2117 | ## Platform. ## |
| 2118 | ## --------- ## |
| 2119 | |
| 2120 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2121 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2122 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2123 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2124 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2125 | |
| 2126 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2127 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2128 | |
| 2129 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2130 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2131 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2132 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2133 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2134 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2135 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2136 | |
| 2137 | _ASUNAME |
| 2138 | |
| 2139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2140 | for as_dir in $PATH |
| 2141 | do |
| 2142 | IFS=$as_save_IFS |
| 2143 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2144 | $as_echo "PATH: $as_dir" |
| 2145 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2147 | |
| 2148 | } >&5 |
| 2149 | |
| 2150 | cat >&5 <<_ACEOF |
| 2151 | |
| 2152 | |
| 2153 | ## ----------- ## |
| 2154 | ## Core tests. ## |
| 2155 | ## ----------- ## |
| 2156 | |
| 2157 | _ACEOF |
| 2158 | |
| 2159 | |
| 2160 | # Keep a trace of the command line. |
| 2161 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2163 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2164 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2165 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2166 | ac_configure_args0= |
| 2167 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2168 | ac_must_keep_next=false |
| 2169 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2171 | for ac_arg |
| 2172 | do |
| 2173 | case $ac_arg in |
| 2174 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2175 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2176 | | -silent | --silent | --silen | --sile | --sil) |
| 2177 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | *\'*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2179 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2180 | esac |
| 2181 | case $ac_pass in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2182 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2183 | 2) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2184 | as_fn_append ac_configure_args1 " '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2185 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2186 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2187 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2188 | case $ac_arg in |
| 2189 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2190 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2191 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2192 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2193 | case "$ac_configure_args0 " in |
| 2194 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2195 | esac |
| 2196 | ;; |
| 2197 | -* ) ac_must_keep_next=true ;; |
| 2198 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2199 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2200 | as_fn_append ac_configure_args " '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2201 | ;; |
| 2202 | esac |
| 2203 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2204 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2205 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2206 | { ac_configure_args1=; unset ac_configure_args1;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2207 | |
| 2208 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2209 | # config.log. We remove comments because anyway the quotes in there |
| 2210 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2211 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2212 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | trap 'exit_status=$? |
| 2214 | # Save into config.log some information that might help in debugging. |
| 2215 | { |
| 2216 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2217 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2218 | cat <<\_ASBOX |
| 2219 | ## ---------------- ## |
| 2220 | ## Cache variables. ## |
| 2221 | ## ---------------- ## |
| 2222 | _ASBOX |
| 2223 | echo |
| 2224 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2225 | ( |
| 2226 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2227 | eval ac_val=\$$ac_var |
| 2228 | case $ac_val in #( |
| 2229 | *${as_nl}*) |
| 2230 | case $ac_var in #( |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2231 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2232 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2233 | esac |
| 2234 | case $ac_var in #( |
| 2235 | _ | IFS | as_nl) ;; #( |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2236 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2237 | *) { eval $ac_var=; unset $ac_var;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2238 | esac ;; |
| 2239 | esac |
| 2240 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2241 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2242 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2243 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2244 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2245 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2246 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2247 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2250 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2251 | esac | |
| 2252 | sort |
| 2253 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2254 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2255 | |
| 2256 | cat <<\_ASBOX |
| 2257 | ## ----------------- ## |
| 2258 | ## Output variables. ## |
| 2259 | ## ----------------- ## |
| 2260 | _ASBOX |
| 2261 | echo |
| 2262 | for ac_var in $ac_subst_vars |
| 2263 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | eval ac_val=\$$ac_var |
| 2265 | case $ac_val in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2266 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2267 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2268 | $as_echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2269 | done | sort |
| 2270 | echo |
| 2271 | |
| 2272 | if test -n "$ac_subst_files"; then |
| 2273 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | ## ------------------- ## |
| 2275 | ## File substitutions. ## |
| 2276 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2277 | _ASBOX |
| 2278 | echo |
| 2279 | for ac_var in $ac_subst_files |
| 2280 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2281 | eval ac_val=\$$ac_var |
| 2282 | case $ac_val in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2283 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2284 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2285 | $as_echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2286 | done | sort |
| 2287 | echo |
| 2288 | fi |
| 2289 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2290 | if test -s confdefs.h; then |
| 2291 | cat <<\_ASBOX |
| 2292 | ## ----------- ## |
| 2293 | ## confdefs.h. ## |
| 2294 | ## ----------- ## |
| 2295 | _ASBOX |
| 2296 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2297 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 | echo |
| 2299 | fi |
| 2300 | test "$ac_signal" != 0 && |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2301 | $as_echo "$as_me: caught signal $ac_signal" |
| 2302 | $as_echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2304 | rm -f core *.core core.conftest.* && |
| 2305 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2306 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2307 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2308 | for ac_signal in 1 2 13 15; do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2309 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2310 | done |
| 2311 | ac_signal=0 |
| 2312 | |
| 2313 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2314 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2315 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2316 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2317 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2318 | # Predefined preprocessor variables. |
| 2319 | |
| 2320 | cat >>confdefs.h <<_ACEOF |
| 2321 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2322 | _ACEOF |
| 2323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2324 | cat >>confdefs.h <<_ACEOF |
| 2325 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2326 | _ACEOF |
| 2327 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2328 | cat >>confdefs.h <<_ACEOF |
| 2329 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2330 | _ACEOF |
| 2331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2332 | cat >>confdefs.h <<_ACEOF |
| 2333 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2334 | _ACEOF |
| 2335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2336 | cat >>confdefs.h <<_ACEOF |
| 2337 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2338 | _ACEOF |
| 2339 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2340 | cat >>confdefs.h <<_ACEOF |
| 2341 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2342 | _ACEOF |
| 2343 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2344 | |
| 2345 | # Let the site file select an alternate cache file if it wants to. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2346 | # Prefer an explicitly selected file to automatically selected ones. |
| 2347 | ac_site_file1=NONE |
| 2348 | ac_site_file2=NONE |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2349 | if test -n "$CONFIG_SITE"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2350 | ac_site_file1=$CONFIG_SITE |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2351 | elif test "x$prefix" != xNONE; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2352 | ac_site_file1=$prefix/share/config.site |
| 2353 | ac_site_file2=$prefix/etc/config.site |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2354 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2355 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2356 | ac_site_file2=$ac_default_prefix/etc/config.site |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2357 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2358 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2359 | do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2360 | test "x$ac_site_file" = xNONE && continue |
| 2361 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2363 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2364 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2365 | . "$ac_site_file" |
| 2366 | fi |
| 2367 | done |
| 2368 | |
| 2369 | if test -r "$cache_file"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2370 | # Some versions of bash will fail to source /dev/null (special files |
| 2371 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2372 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2374 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2375 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2376 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2377 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2378 | esac |
| 2379 | fi |
| 2380 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2382 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2383 | >$cache_file |
| 2384 | fi |
| 2385 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2386 | as_fn_append ac_header_list " stdlib.h" |
| 2387 | as_fn_append ac_header_list " unistd.h" |
| 2388 | as_fn_append ac_header_list " sys/param.h" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2389 | # Check that the precious variables saved in the cache have kept the same |
| 2390 | # value. |
| 2391 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2392 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2393 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2394 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2395 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2396 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2397 | case $ac_old_set,$ac_new_set in |
| 2398 | set,) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2400 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2401 | ac_cache_corrupted=: ;; |
| 2402 | ,set) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2404 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2405 | ac_cache_corrupted=: ;; |
| 2406 | ,);; |
| 2407 | *) |
| 2408 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2409 | # differences in whitespace do not lead to failure. |
| 2410 | ac_old_val_w=`echo x $ac_old_val` |
| 2411 | ac_new_val_w=`echo x $ac_new_val` |
| 2412 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2414 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2415 | ac_cache_corrupted=: |
| 2416 | else |
| 2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2418 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2419 | eval $ac_var=\$ac_old_val |
| 2420 | fi |
| 2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2422 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2424 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2425 | fi;; |
| 2426 | esac |
| 2427 | # Pass precious variables to config.status. |
| 2428 | if test "$ac_new_set" = set; then |
| 2429 | case $ac_new_val in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2430 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2431 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2432 | esac |
| 2433 | case " $ac_configure_args " in |
| 2434 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2435 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2436 | esac |
| 2437 | fi |
| 2438 | done |
| 2439 | if $ac_cache_corrupted; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2443 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2444 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2445 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2446 | ## -------------------- ## |
| 2447 | ## Main body of script. ## |
| 2448 | ## -------------------- ## |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2449 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2450 | ac_ext=c |
| 2451 | ac_cpp='$CPP $CPPFLAGS' |
| 2452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2455 | |
| 2456 | |
| 2457 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 2458 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2459 | |
| 2460 | |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
| 2465 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2466 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2467 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2468 | for ac_t in install-sh install.sh shtool; do |
| 2469 | if test -f "$ac_dir/$ac_t"; then |
| 2470 | ac_aux_dir=$ac_dir |
| 2471 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2472 | break 2 |
| 2473 | fi |
| 2474 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2475 | done |
| 2476 | if test -z "$ac_aux_dir"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2477 | as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2479 | |
| 2480 | # These three variables are undocumented and unsupported, |
| 2481 | # and are intended to be withdrawn in a future Autoconf release. |
| 2482 | # They can cause serious problems if a builder's source tree is in a directory |
| 2483 | # whose full name contains unusual characters. |
| 2484 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2485 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2486 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2487 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2488 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2489 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2490 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2491 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2492 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2493 | as_fn_error "Already configured in ${srcdir}" "$LINENO" 5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2494 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2495 | fi |
| 2496 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2497 | for i in `ls ${srcdir}/projects` |
| 2498 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2499 | if test -d ${srcdir}/projects/${i} ; then |
| 2500 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2501 | CVS) ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2502 | sample) |
| 2503 | |
| 2504 | subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2505 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2506 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2507 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2508 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2509 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2510 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2511 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2512 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2513 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2514 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2515 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2516 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2517 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2518 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2519 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2520 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2521 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2522 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2523 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2524 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2525 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2526 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2527 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2528 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2529 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2530 | *) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2532 | $as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 2533 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2534 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2535 | fi |
| 2536 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2537 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2538 | |
| 2539 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2540 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2541 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2542 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2544 | $as_echo_n "checking build system type... " >&6; } |
| 2545 | if test "${ac_cv_build+set}" = set; then : |
| 2546 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2547 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2548 | ac_build_alias=$build_alias |
| 2549 | test "x$ac_build_alias" = x && |
| 2550 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2551 | test "x$ac_build_alias" = x && |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2552 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2553 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2554 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2555 | |
| 2556 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2558 | $as_echo "$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2559 | case $ac_cv_build in |
| 2560 | *-*-*) ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2561 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2562 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2563 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2564 | ac_save_IFS=$IFS; IFS='-' |
| 2565 | set x $ac_cv_build |
| 2566 | shift |
| 2567 | build_cpu=$1 |
| 2568 | build_vendor=$2 |
| 2569 | shift; shift |
| 2570 | # Remember, the first character of IFS is used to create $*, |
| 2571 | # except with old shells: |
| 2572 | build_os=$* |
| 2573 | IFS=$ac_save_IFS |
| 2574 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2575 | |
| 2576 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2578 | $as_echo_n "checking host system type... " >&6; } |
| 2579 | if test "${ac_cv_host+set}" = set; then : |
| 2580 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2581 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2582 | if test "x$host_alias" = x; then |
| 2583 | ac_cv_host=$ac_cv_build |
| 2584 | else |
| 2585 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2586 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2587 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | |
| 2589 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2591 | $as_echo "$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | case $ac_cv_host in |
| 2593 | *-*-*) ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2594 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2596 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2597 | ac_save_IFS=$IFS; IFS='-' |
| 2598 | set x $ac_cv_host |
| 2599 | shift |
| 2600 | host_cpu=$1 |
| 2601 | host_vendor=$2 |
| 2602 | shift; shift |
| 2603 | # Remember, the first character of IFS is used to create $*, |
| 2604 | # except with old shells: |
| 2605 | host_os=$* |
| 2606 | IFS=$ac_save_IFS |
| 2607 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2608 | |
| 2609 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2611 | $as_echo_n "checking target system type... " >&6; } |
| 2612 | if test "${ac_cv_target+set}" = set; then : |
| 2613 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2615 | if test "x$target_alias" = x; then |
| 2616 | ac_cv_target=$ac_cv_host |
| 2617 | else |
| 2618 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2619 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2620 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | |
| 2622 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2624 | $as_echo "$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | case $ac_cv_target in |
| 2626 | *-*-*) ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2627 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2628 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | ac_save_IFS=$IFS; IFS='-' |
| 2631 | set x $ac_cv_target |
| 2632 | shift |
| 2633 | target_cpu=$1 |
| 2634 | target_vendor=$2 |
| 2635 | shift; shift |
| 2636 | # Remember, the first character of IFS is used to create $*, |
| 2637 | # except with old shells: |
| 2638 | target_os=$* |
| 2639 | IFS=$ac_save_IFS |
| 2640 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2641 | |
| 2642 | |
| 2643 | # The aliases save the names the user supplied, while $host etc. |
| 2644 | # will get canonicalized. |
| 2645 | test -n "$target_alias" && |
| 2646 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2647 | NONENONEs,x,x, && |
| 2648 | program_prefix=${target_alias}- |
| 2649 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5 |
| 2651 | $as_echo_n "checking type of operating system we're going to host on... " >&6; } |
| 2652 | if test "${llvm_cv_os_type+set}" = set; then : |
| 2653 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2654 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2655 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2656 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2657 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2658 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2659 | llvm_cv_os_type="AIX" |
| 2660 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2661 | *-*-irix*) |
| 2662 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2663 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2664 | llvm_cv_os_type="IRIX" |
| 2665 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2666 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2667 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2668 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2669 | llvm_cv_os_type="Cygwin" |
| 2670 | llvm_cv_platform_type="Unix" ;; |
| 2671 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2672 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2673 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2674 | llvm_cv_os_type="Darwin" |
| 2675 | llvm_cv_platform_type="Unix" ;; |
| 2676 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2677 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2678 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2679 | llvm_cv_os_type="FreeBSD" |
| 2680 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2681 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2683 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2684 | llvm_cv_os_type="OpenBSD" |
| 2685 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2686 | *-*-netbsd*) |
| 2687 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2688 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2689 | llvm_cv_os_type="NetBSD" |
| 2690 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2691 | *-*-dragonfly*) |
| 2692 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2693 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2694 | llvm_cv_os_type="DragonFly" |
| 2695 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2696 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2697 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2698 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2699 | llvm_cv_os_type="HP-UX" |
| 2700 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2701 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2702 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2703 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2704 | llvm_cv_os_type="Interix" |
| 2705 | llvm_cv_platform_type="Unix" ;; |
| 2706 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2707 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2708 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2709 | llvm_cv_os_type="Linux" |
| 2710 | llvm_cv_platform_type="Unix" ;; |
| 2711 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2712 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2713 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2714 | llvm_cv_os_type="SunOS" |
| 2715 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2716 | *-*-auroraux*) |
| 2717 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2718 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2719 | llvm_cv_os_type="AuroraUX" |
| 2720 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2721 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2722 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2723 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2724 | llvm_cv_os_type="Win32" |
| 2725 | llvm_cv_platform_type="Win32" ;; |
| 2726 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2727 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2728 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2729 | llvm_cv_os_type="MingW" |
| 2730 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2731 | *-*-haiku*) |
| 2732 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2733 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2734 | llvm_cv_os_type="Haiku" |
| 2735 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2736 | *-unknown-eabi*) |
| 2737 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2738 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2739 | llvm_cv_os_type="Freestanding" |
| 2740 | llvm_cv_platform_type="Unix" ;; |
| 2741 | *-unknown-elf*) |
| 2742 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2743 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2744 | llvm_cv_os_type="Freestanding" |
| 2745 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2746 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2747 | llvm_cv_link_all_option="" |
| 2748 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2749 | llvm_cv_os_type="Unknown" |
| 2750 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2751 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2752 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5 |
| 2754 | $as_echo "$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2755 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5 |
| 2757 | $as_echo_n "checking type of operating system we're going to target... " >&6; } |
| 2758 | if test "${llvm_cv_target_os_type+set}" = set; then : |
| 2759 | $as_echo_n "(cached) " >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2760 | else |
| 2761 | case $target in |
| 2762 | *-*-aix*) |
| 2763 | llvm_cv_target_os_type="AIX" ;; |
| 2764 | *-*-irix*) |
| 2765 | llvm_cv_target_os_type="IRIX" ;; |
| 2766 | *-*-cygwin*) |
| 2767 | llvm_cv_target_os_type="Cygwin" ;; |
| 2768 | *-*-darwin*) |
| 2769 | llvm_cv_target_os_type="Darwin" ;; |
| 2770 | *-*-freebsd*) |
| 2771 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2772 | *-*-openbsd*) |
| 2773 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2774 | *-*-netbsd*) |
| 2775 | llvm_cv_target_os_type="NetBSD" ;; |
| 2776 | *-*-dragonfly*) |
| 2777 | llvm_cv_target_os_type="DragonFly" ;; |
| 2778 | *-*-hpux*) |
| 2779 | llvm_cv_target_os_type="HP-UX" ;; |
| 2780 | *-*-interix*) |
| 2781 | llvm_cv_target_os_type="Interix" ;; |
| 2782 | *-*-linux*) |
| 2783 | llvm_cv_target_os_type="Linux" ;; |
| 2784 | *-*-solaris*) |
| 2785 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2786 | *-*-auroraux*) |
| 2787 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2788 | *-*-win32*) |
| 2789 | llvm_cv_target_os_type="Win32" ;; |
| 2790 | *-*-mingw*) |
| 2791 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2792 | *-*-haiku*) |
| 2793 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2794 | *-unknown-eabi*) |
| 2795 | llvm_cv_target_os_type="Freestanding" ;; |
| 2796 | *) |
| 2797 | llvm_cv_target_os_type="Unknown" ;; |
| 2798 | esac |
| 2799 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5 |
| 2801 | $as_echo "$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2802 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2803 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2804 | as_fn_error "Operating system is unknown, configure can't continue" "$LINENO" 5 |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2805 | fi |
| 2806 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2807 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2808 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2809 | HOST_OS=$llvm_cv_os_type |
| 2810 | |
| 2811 | TARGET_OS=$llvm_cv_target_os_type |
| 2812 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2814 | LINKALL=$llvm_cv_link_all_option |
| 2815 | |
| 2816 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2817 | |
| 2818 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2819 | case $llvm_cv_platform_type in |
| 2820 | Unix) |
| 2821 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2822 | $as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2823 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2824 | LLVM_ON_UNIX=1 |
| 2825 | |
| 2826 | LLVM_ON_WIN32=0 |
| 2827 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2828 | ;; |
| 2829 | Win32) |
| 2830 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2831 | $as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2832 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2833 | LLVM_ON_UNIX=0 |
| 2834 | |
| 2835 | LLVM_ON_WIN32=1 |
| 2836 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2837 | ;; |
| 2838 | esac |
| 2839 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5 |
| 2841 | $as_echo_n "checking target architecture... " >&6; } |
| 2842 | if test "${llvm_cv_target_arch+set}" = set; then : |
| 2843 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2844 | else |
| 2845 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2846 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2847 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2848 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2849 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2850 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2851 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2852 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2853 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2854 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2855 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2856 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2857 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2858 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2859 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2860 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5 |
| 2862 | $as_echo "$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2863 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2864 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2866 | $as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2867 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2868 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2869 | # Determine the LLVM native architecture for the target |
| 2870 | case "$llvm_cv_target_arch" in |
| 2871 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2872 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2873 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2874 | esac |
| 2875 | |
| 2876 | ARCH=$llvm_cv_target_arch |
| 2877 | |
| 2878 | |
| 2879 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2880 | ac_cpp='$CPP $CPPFLAGS' |
| 2881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2884 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2885 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2886 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2888 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2889 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2890 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2891 | else |
| 2892 | if test -n "$CC"; then |
| 2893 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2894 | else |
| 2895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2896 | for as_dir in $PATH |
| 2897 | do |
| 2898 | IFS=$as_save_IFS |
| 2899 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2902 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2904 | break 2 |
| 2905 | fi |
| 2906 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2907 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2908 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2909 | |
| 2910 | fi |
| 2911 | fi |
| 2912 | CC=$ac_cv_prog_CC |
| 2913 | if test -n "$CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2915 | $as_echo "$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2916 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2918 | $as_echo "no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2919 | fi |
| 2920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2921 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2922 | fi |
| 2923 | if test -z "$ac_cv_prog_CC"; then |
| 2924 | ac_ct_CC=$CC |
| 2925 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2926 | set dummy gcc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2928 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2929 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2930 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2931 | else |
| 2932 | if test -n "$ac_ct_CC"; then |
| 2933 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2934 | else |
| 2935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2936 | for as_dir in $PATH |
| 2937 | do |
| 2938 | IFS=$as_save_IFS |
| 2939 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2942 | ac_cv_prog_ac_ct_CC="gcc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2944 | break 2 |
| 2945 | fi |
| 2946 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2947 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2948 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2949 | |
| 2950 | fi |
| 2951 | fi |
| 2952 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2953 | if test -n "$ac_ct_CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2955 | $as_echo "$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2956 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2958 | $as_echo "no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2959 | fi |
| 2960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2961 | if test "x$ac_ct_CC" = x; then |
| 2962 | CC="" |
| 2963 | else |
| 2964 | case $cross_compiling:$ac_tool_warned in |
| 2965 | yes:) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2967 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2968 | ac_tool_warned=yes ;; |
| 2969 | esac |
| 2970 | CC=$ac_ct_CC |
| 2971 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2972 | else |
| 2973 | CC="$ac_cv_prog_CC" |
| 2974 | fi |
| 2975 | |
| 2976 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2977 | if test -n "$ac_tool_prefix"; then |
| 2978 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2979 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2981 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2982 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2983 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2984 | else |
| 2985 | if test -n "$CC"; then |
| 2986 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2987 | else |
| 2988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2989 | for as_dir in $PATH |
| 2990 | do |
| 2991 | IFS=$as_save_IFS |
| 2992 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2995 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 2996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2997 | break 2 |
| 2998 | fi |
| 2999 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3000 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3001 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3002 | |
| 3003 | fi |
| 3004 | fi |
| 3005 | CC=$ac_cv_prog_CC |
| 3006 | if test -n "$CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3008 | $as_echo "$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3009 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3011 | $as_echo "no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3012 | fi |
| 3013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3014 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3015 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3016 | fi |
| 3017 | if test -z "$CC"; then |
| 3018 | # Extract the first word of "cc", so it can be a program name with args. |
| 3019 | set dummy cc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3021 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3022 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3023 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3024 | else |
| 3025 | if test -n "$CC"; then |
| 3026 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3027 | else |
| 3028 | ac_prog_rejected=no |
| 3029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3030 | for as_dir in $PATH |
| 3031 | do |
| 3032 | IFS=$as_save_IFS |
| 3033 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3036 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3037 | ac_prog_rejected=yes |
| 3038 | continue |
| 3039 | fi |
| 3040 | ac_cv_prog_CC="cc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3042 | break 2 |
| 3043 | fi |
| 3044 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3045 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3046 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3047 | |
| 3048 | if test $ac_prog_rejected = yes; then |
| 3049 | # We found a bogon in the path, so make sure we never use it. |
| 3050 | set dummy $ac_cv_prog_CC |
| 3051 | shift |
| 3052 | if test $# != 0; then |
| 3053 | # We chose a different compiler from the bogus one. |
| 3054 | # However, it has the same basename, so the bogon will be chosen |
| 3055 | # first if we set CC to just the basename; use the full file name. |
| 3056 | shift |
| 3057 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3058 | fi |
| 3059 | fi |
| 3060 | fi |
| 3061 | fi |
| 3062 | CC=$ac_cv_prog_CC |
| 3063 | if test -n "$CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3065 | $as_echo "$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3066 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3068 | $as_echo "no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3069 | fi |
| 3070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3071 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3072 | fi |
| 3073 | if test -z "$CC"; then |
| 3074 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3075 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3076 | do |
| 3077 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3078 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3080 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3081 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3082 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3083 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3084 | if test -n "$CC"; then |
| 3085 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3086 | else |
| 3087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3088 | for as_dir in $PATH |
| 3089 | do |
| 3090 | IFS=$as_save_IFS |
| 3091 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3092 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3094 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3096 | break 2 |
| 3097 | fi |
| 3098 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3099 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3100 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3101 | |
| 3102 | fi |
| 3103 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3104 | CC=$ac_cv_prog_CC |
| 3105 | if test -n "$CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3107 | $as_echo "$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3108 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3110 | $as_echo "no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3111 | fi |
| 3112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3113 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3114 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3115 | done |
| 3116 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3117 | if test -z "$CC"; then |
| 3118 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3119 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3120 | do |
| 3121 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3122 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3124 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3125 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3126 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3127 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3128 | if test -n "$ac_ct_CC"; then |
| 3129 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3130 | else |
| 3131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3132 | for as_dir in $PATH |
| 3133 | do |
| 3134 | IFS=$as_save_IFS |
| 3135 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3136 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3138 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3140 | break 2 |
| 3141 | fi |
| 3142 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3143 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3144 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3145 | |
| 3146 | fi |
| 3147 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3148 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3149 | if test -n "$ac_ct_CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3151 | $as_echo "$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3152 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3154 | $as_echo "no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3155 | fi |
| 3156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3157 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3158 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3159 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3161 | if test "x$ac_ct_CC" = x; then |
| 3162 | CC="" |
| 3163 | else |
| 3164 | case $cross_compiling:$ac_tool_warned in |
| 3165 | yes:) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3167 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3168 | ac_tool_warned=yes ;; |
| 3169 | esac |
| 3170 | CC=$ac_ct_CC |
| 3171 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3172 | fi |
| 3173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3174 | fi |
| 3175 | |
| 3176 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3177 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3178 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3179 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3180 | See \`config.log' for more details." "$LINENO" 5; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3181 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3182 | # Provide some information about the compiler. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3183 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3184 | set X $ac_compile |
| 3185 | ac_compiler=$2 |
| 3186 | for ac_option in --version -v -V -qversion; do |
| 3187 | { { ac_try="$ac_compiler $ac_option >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3188 | case "(($ac_try" in |
| 3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3190 | *) ac_try_echo=$ac_try;; |
| 3191 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3192 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3193 | $as_echo "$ac_try_echo"; } >&5 |
| 3194 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3195 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3196 | if test -s conftest.err; then |
| 3197 | sed '10a\ |
| 3198 | ... rest of stderr output deleted ... |
| 3199 | 10q' conftest.err >conftest.er1 |
| 3200 | cat conftest.er1 >&5 |
| 3201 | fi |
| 3202 | rm -f conftest.er1 conftest.err |
| 3203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3204 | test $ac_status = 0; } |
| 3205 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3206 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3208 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3209 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3210 | int |
| 3211 | main () |
| 3212 | { |
| 3213 | |
| 3214 | ; |
| 3215 | return 0; |
| 3216 | } |
| 3217 | _ACEOF |
| 3218 | ac_clean_files_save=$ac_clean_files |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3219 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3220 | # Try to create an executable without -o first, disregard a.out. |
| 3221 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3222 | # of exeext. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3224 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3225 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3226 | |
| 3227 | # The possible output files: |
| 3228 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3230 | ac_rmfiles= |
| 3231 | for ac_file in $ac_files |
| 3232 | do |
| 3233 | case $ac_file in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3234 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3235 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3236 | esac |
| 3237 | done |
| 3238 | rm -f $ac_rmfiles |
| 3239 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3240 | if { { ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3241 | case "(($ac_try" in |
| 3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3243 | *) ac_try_echo=$ac_try;; |
| 3244 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3245 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3246 | $as_echo "$ac_try_echo"; } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3247 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3248 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3250 | test $ac_status = 0; }; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3251 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3252 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3253 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3254 | # so that the user can short-circuit this test for compilers unknown to |
| 3255 | # Autoconf. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3256 | for ac_file in $ac_files '' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3257 | do |
| 3258 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3259 | case $ac_file in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3260 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3261 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3262 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3263 | # We found the default executable, but exeext='' is most |
| 3264 | # certainly right. |
| 3265 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3266 | *.* ) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3267 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3268 | then :; else |
| 3269 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3270 | fi |
| 3271 | # We set ac_cv_exeext here because the later test for it is not |
| 3272 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3273 | # argument, so we may need to know it at that point already. |
| 3274 | # Even if this section looks crufty: it has the advantage of |
| 3275 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3276 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3277 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3278 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3279 | esac |
| 3280 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3281 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3282 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3283 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3284 | ac_file='' |
| 3285 | fi |
| 3286 | if test -z "$ac_file"; then : |
| 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3288 | $as_echo "no" >&6; } |
| 3289 | $as_echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3291 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3293 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3294 | { as_fn_set_status 77 |
| 3295 | as_fn_error "C compiler cannot create executables |
| 3296 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 3297 | else |
| 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3299 | $as_echo "yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3300 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3302 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3304 | $as_echo "$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3305 | ac_exeext=$ac_cv_exeext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3306 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3307 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3308 | ac_clean_files=$ac_clean_files_save |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3310 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3311 | if { { ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3312 | case "(($ac_try" in |
| 3313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3314 | *) ac_try_echo=$ac_try;; |
| 3315 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3317 | $as_echo "$ac_try_echo"; } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3318 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3319 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3321 | test $ac_status = 0; }; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3322 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3323 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3324 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3325 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3326 | for ac_file in conftest.exe conftest conftest.*; do |
| 3327 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3328 | case $ac_file in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3329 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3330 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3331 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3332 | * ) break;; |
| 3333 | esac |
| 3334 | done |
| 3335 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3336 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3338 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3339 | See \`config.log' for more details." "$LINENO" 5; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3340 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3341 | rm -f conftest conftest$ac_cv_exeext |
| 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3343 | $as_echo "$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3344 | |
| 3345 | rm -f conftest.$ac_ext |
| 3346 | EXEEXT=$ac_cv_exeext |
| 3347 | ac_exeext=$EXEEXT |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3349 | /* end confdefs.h. */ |
| 3350 | #include <stdio.h> |
| 3351 | int |
| 3352 | main () |
| 3353 | { |
| 3354 | FILE *f = fopen ("conftest.out", "w"); |
| 3355 | return ferror (f) || fclose (f) != 0; |
| 3356 | |
| 3357 | ; |
| 3358 | return 0; |
| 3359 | } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3360 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3361 | ac_clean_files="$ac_clean_files conftest.out" |
| 3362 | # Check that the compiler produces executables we can run. If not, either |
| 3363 | # the compiler is broken, or we cross compile. |
| 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3365 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3366 | if test "$cross_compiling" != yes; then |
| 3367 | { { ac_try="$ac_link" |
| 3368 | case "(($ac_try" in |
| 3369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3370 | *) ac_try_echo=$ac_try;; |
| 3371 | esac |
| 3372 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3373 | $as_echo "$ac_try_echo"; } >&5 |
| 3374 | (eval "$ac_link") 2>&5 |
| 3375 | ac_status=$? |
| 3376 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3377 | test $ac_status = 0; } |
| 3378 | if { ac_try='./conftest$ac_cv_exeext' |
| 3379 | { { case "(($ac_try" in |
| 3380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3381 | *) ac_try_echo=$ac_try;; |
| 3382 | esac |
| 3383 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3384 | $as_echo "$ac_try_echo"; } >&5 |
| 3385 | (eval "$ac_try") 2>&5 |
| 3386 | ac_status=$? |
| 3387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3388 | test $ac_status = 0; }; }; then |
| 3389 | cross_compiling=no |
| 3390 | else |
| 3391 | if test "$cross_compiling" = maybe; then |
| 3392 | cross_compiling=yes |
| 3393 | else |
| 3394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3395 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3396 | as_fn_error "cannot run C compiled programs. |
| 3397 | If you meant to cross compile, use \`--host'. |
| 3398 | See \`config.log' for more details." "$LINENO" 5; } |
| 3399 | fi |
| 3400 | fi |
| 3401 | fi |
| 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3403 | $as_echo "$cross_compiling" >&6; } |
| 3404 | |
| 3405 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3406 | ac_clean_files=$ac_clean_files_save |
| 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3408 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3409 | if test "${ac_cv_objext+set}" = set; then : |
| 3410 | $as_echo_n "(cached) " >&6 |
| 3411 | else |
| 3412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3413 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3414 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3415 | int |
| 3416 | main () |
| 3417 | { |
| 3418 | |
| 3419 | ; |
| 3420 | return 0; |
| 3421 | } |
| 3422 | _ACEOF |
| 3423 | rm -f conftest.o conftest.obj |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3424 | if { { ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3425 | case "(($ac_try" in |
| 3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3427 | *) ac_try_echo=$ac_try;; |
| 3428 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3429 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3430 | $as_echo "$ac_try_echo"; } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3431 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3432 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3434 | test $ac_status = 0; }; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3435 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3436 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3437 | case $ac_file in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3438 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3439 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3440 | break;; |
| 3441 | esac |
| 3442 | done |
| 3443 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3444 | $as_echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3446 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3447 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3448 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3449 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3450 | See \`config.log' for more details." "$LINENO" 5; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3451 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3452 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3453 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3455 | $as_echo "$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3456 | OBJEXT=$ac_cv_objext |
| 3457 | ac_objext=$OBJEXT |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3459 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3460 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3461 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3462 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3464 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3465 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3466 | int |
| 3467 | main () |
| 3468 | { |
| 3469 | #ifndef __GNUC__ |
| 3470 | choke me |
| 3471 | #endif |
| 3472 | |
| 3473 | ; |
| 3474 | return 0; |
| 3475 | } |
| 3476 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3477 | if ac_fn_c_try_compile "$LINENO"; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3478 | ac_compiler_gnu=yes |
| 3479 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3480 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3481 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3483 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3484 | |
| 3485 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3487 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3488 | if test $ac_compiler_gnu = yes; then |
| 3489 | GCC=yes |
| 3490 | else |
| 3491 | GCC= |
| 3492 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3493 | ac_test_CFLAGS=${CFLAGS+set} |
| 3494 | ac_save_CFLAGS=$CFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3496 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3497 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3498 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3499 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3500 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3501 | ac_c_werror_flag=yes |
| 3502 | ac_cv_prog_cc_g=no |
| 3503 | CFLAGS="-g" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3505 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3506 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3507 | int |
| 3508 | main () |
| 3509 | { |
| 3510 | |
| 3511 | ; |
| 3512 | return 0; |
| 3513 | } |
| 3514 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3515 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3516 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3517 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3518 | CFLAGS="" |
| 3519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3520 | /* end confdefs.h. */ |
| 3521 | |
| 3522 | int |
| 3523 | main () |
| 3524 | { |
| 3525 | |
| 3526 | ; |
| 3527 | return 0; |
| 3528 | } |
| 3529 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3530 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3531 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3532 | else |
| 3533 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3534 | CFLAGS="-g" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3536 | /* end confdefs.h. */ |
| 3537 | |
| 3538 | int |
| 3539 | main () |
| 3540 | { |
| 3541 | |
| 3542 | ; |
| 3543 | return 0; |
| 3544 | } |
| 3545 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3546 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3547 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3548 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3550 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3552 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3554 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3555 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3557 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3558 | if test "$ac_test_CFLAGS" = set; then |
| 3559 | CFLAGS=$ac_save_CFLAGS |
| 3560 | elif test $ac_cv_prog_cc_g = yes; then |
| 3561 | if test "$GCC" = yes; then |
| 3562 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3563 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3564 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3565 | fi |
| 3566 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3567 | if test "$GCC" = yes; then |
| 3568 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3569 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3570 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3571 | fi |
| 3572 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3574 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3575 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3576 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3577 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3578 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3579 | ac_save_CC=$CC |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3581 | /* end confdefs.h. */ |
| 3582 | #include <stdarg.h> |
| 3583 | #include <stdio.h> |
| 3584 | #include <sys/types.h> |
| 3585 | #include <sys/stat.h> |
| 3586 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3587 | struct buf { int x; }; |
| 3588 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3589 | static char *e (p, i) |
| 3590 | char **p; |
| 3591 | int i; |
| 3592 | { |
| 3593 | return p[i]; |
| 3594 | } |
| 3595 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3596 | { |
| 3597 | char *s; |
| 3598 | va_list v; |
| 3599 | va_start (v,p); |
| 3600 | s = g (p, va_arg (v,int)); |
| 3601 | va_end (v); |
| 3602 | return s; |
| 3603 | } |
| 3604 | |
| 3605 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3606 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3607 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3608 | as 'x'. The following induces an error, until -std is added to get |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3609 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3610 | array size at least. It's necessary to write '\x00'==0 to get something |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3611 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3612 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3614 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3615 | inside strings and character constants. */ |
| 3616 | #define FOO(x) 'x' |
| 3617 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3618 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3619 | int test (int i, double x); |
| 3620 | struct s1 {int (*f) (int a);}; |
| 3621 | struct s2 {int (*f) (double a);}; |
| 3622 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3623 | int argc; |
| 3624 | char **argv; |
| 3625 | int |
| 3626 | main () |
| 3627 | { |
| 3628 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3629 | ; |
| 3630 | return 0; |
| 3631 | } |
| 3632 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3633 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3634 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3635 | do |
| 3636 | CC="$ac_save_CC $ac_arg" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3637 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3638 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3639 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3640 | rm -f core conftest.err conftest.$ac_objext |
| 3641 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3642 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3643 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3644 | CC=$ac_save_CC |
| 3645 | |
| 3646 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3647 | # AC_CACHE_VAL |
| 3648 | case "x$ac_cv_prog_cc_c89" in |
| 3649 | x) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3651 | $as_echo "none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3652 | xno) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3654 | $as_echo "unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3655 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3656 | CC="$CC $ac_cv_prog_cc_c89" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3658 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3659 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3660 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3661 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3662 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3663 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3664 | ac_ext=c |
| 3665 | ac_cpp='$CPP $CPPFLAGS' |
| 3666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3669 | |
| 3670 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3671 | ac_ext=c |
| 3672 | ac_cpp='$CPP $CPPFLAGS' |
| 3673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3677 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3678 | # On Suns, sometimes $CPP names a directory. |
| 3679 | if test -n "$CPP" && test -d "$CPP"; then |
| 3680 | CPP= |
| 3681 | fi |
| 3682 | if test -z "$CPP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3683 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3684 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3685 | else |
| 3686 | # Double quotes because CPP needs to be expanded |
| 3687 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3688 | do |
| 3689 | ac_preproc_ok=false |
| 3690 | for ac_c_preproc_warn_flag in '' yes |
| 3691 | do |
| 3692 | # Use a header file that comes with gcc, so configuring glibc |
| 3693 | # with a fresh cross-compiler works. |
| 3694 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3695 | # <limits.h> exists even on freestanding compilers. |
| 3696 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3697 | # not just through cpp. "Syntax error" is here to catch this case. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3699 | /* end confdefs.h. */ |
| 3700 | #ifdef __STDC__ |
| 3701 | # include <limits.h> |
| 3702 | #else |
| 3703 | # include <assert.h> |
| 3704 | #endif |
| 3705 | Syntax error |
| 3706 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3707 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3708 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3709 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3710 | # Broken: fails on valid input. |
| 3711 | continue |
| 3712 | fi |
| 3713 | rm -f conftest.err conftest.$ac_ext |
| 3714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3715 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3716 | # can be detected and how. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3718 | /* end confdefs.h. */ |
| 3719 | #include <ac_nonexistent.h> |
| 3720 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3721 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3722 | # Broken: success on invalid input. |
| 3723 | continue |
| 3724 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3725 | # Passes both tests. |
| 3726 | ac_preproc_ok=: |
| 3727 | break |
| 3728 | fi |
| 3729 | rm -f conftest.err conftest.$ac_ext |
| 3730 | |
| 3731 | done |
| 3732 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3733 | rm -f conftest.err conftest.$ac_ext |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3734 | if $ac_preproc_ok; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3735 | break |
| 3736 | fi |
| 3737 | |
| 3738 | done |
| 3739 | ac_cv_prog_CPP=$CPP |
| 3740 | |
| 3741 | fi |
| 3742 | CPP=$ac_cv_prog_CPP |
| 3743 | else |
| 3744 | ac_cv_prog_CPP=$CPP |
| 3745 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3747 | $as_echo "$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3748 | ac_preproc_ok=false |
| 3749 | for ac_c_preproc_warn_flag in '' yes |
| 3750 | do |
| 3751 | # Use a header file that comes with gcc, so configuring glibc |
| 3752 | # with a fresh cross-compiler works. |
| 3753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3754 | # <limits.h> exists even on freestanding compilers. |
| 3755 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3756 | # not just through cpp. "Syntax error" is here to catch this case. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3758 | /* end confdefs.h. */ |
| 3759 | #ifdef __STDC__ |
| 3760 | # include <limits.h> |
| 3761 | #else |
| 3762 | # include <assert.h> |
| 3763 | #endif |
| 3764 | Syntax error |
| 3765 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3766 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3767 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3768 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3769 | # Broken: fails on valid input. |
| 3770 | continue |
| 3771 | fi |
| 3772 | rm -f conftest.err conftest.$ac_ext |
| 3773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3774 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3775 | # can be detected and how. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3777 | /* end confdefs.h. */ |
| 3778 | #include <ac_nonexistent.h> |
| 3779 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3780 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3781 | # Broken: success on invalid input. |
| 3782 | continue |
| 3783 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3784 | # Passes both tests. |
| 3785 | ac_preproc_ok=: |
| 3786 | break |
| 3787 | fi |
| 3788 | rm -f conftest.err conftest.$ac_ext |
| 3789 | |
| 3790 | done |
| 3791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3792 | rm -f conftest.err conftest.$ac_ext |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3793 | if $ac_preproc_ok; then : |
| 3794 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3795 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3798 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 3799 | See \`config.log' for more details." "$LINENO" 5; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3800 | fi |
| 3801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3802 | ac_ext=c |
| 3803 | ac_cpp='$CPP $CPPFLAGS' |
| 3804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3807 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3808 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3810 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3811 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 3812 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3813 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3814 | if test -z "$GREP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3815 | ac_path_GREP_found=false |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3816 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3818 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3819 | do |
| 3820 | IFS=$as_save_IFS |
| 3821 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3822 | for ac_prog in grep ggrep; do |
| 3823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3824 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3825 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3826 | # Check for GNU ac_path_GREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3827 | # Check for GNU $ac_path_GREP |
| 3828 | case `"$ac_path_GREP" --version 2>&1` in |
| 3829 | *GNU*) |
| 3830 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3831 | *) |
| 3832 | ac_count=0 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3833 | $as_echo_n 0123456789 >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3834 | while : |
| 3835 | do |
| 3836 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3837 | mv "conftest.tmp" "conftest.in" |
| 3838 | cp "conftest.in" "conftest.nl" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3839 | $as_echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3841 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3842 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3843 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3844 | # Best one so far, save it but keep looking for a better one |
| 3845 | ac_cv_path_GREP="$ac_path_GREP" |
| 3846 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3847 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3848 | # 10*(2^10) chars as input seems more than enough |
| 3849 | test $ac_count -gt 10 && break |
| 3850 | done |
| 3851 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3852 | esac |
| 3853 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3854 | $ac_path_GREP_found && break 3 |
| 3855 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3856 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3858 | IFS=$as_save_IFS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3859 | if test -z "$ac_cv_path_GREP"; then |
| 3860 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3861 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3862 | else |
| 3863 | ac_cv_path_GREP=$GREP |
| 3864 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3866 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3868 | $as_echo "$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3869 | GREP="$ac_cv_path_GREP" |
| 3870 | |
| 3871 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3873 | $as_echo_n "checking for egrep... " >&6; } |
| 3874 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 3875 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3876 | else |
| 3877 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3878 | then ac_cv_path_EGREP="$GREP -E" |
| 3879 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3880 | if test -z "$EGREP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3881 | ac_path_EGREP_found=false |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3882 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3884 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3885 | do |
| 3886 | IFS=$as_save_IFS |
| 3887 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3888 | for ac_prog in egrep; do |
| 3889 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3890 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3891 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3892 | # Check for GNU ac_path_EGREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3893 | # Check for GNU $ac_path_EGREP |
| 3894 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3895 | *GNU*) |
| 3896 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3897 | *) |
| 3898 | ac_count=0 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3899 | $as_echo_n 0123456789 >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3900 | while : |
| 3901 | do |
| 3902 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3903 | mv "conftest.tmp" "conftest.in" |
| 3904 | cp "conftest.in" "conftest.nl" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3905 | $as_echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3906 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3907 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3908 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3909 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3910 | # Best one so far, save it but keep looking for a better one |
| 3911 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3912 | ac_path_EGREP_max=$ac_count |
| 3913 | fi |
| 3914 | # 10*(2^10) chars as input seems more than enough |
| 3915 | test $ac_count -gt 10 && break |
| 3916 | done |
| 3917 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3918 | esac |
| 3919 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3920 | $ac_path_EGREP_found && break 3 |
| 3921 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3922 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3923 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3924 | IFS=$as_save_IFS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3925 | if test -z "$ac_cv_path_EGREP"; then |
| 3926 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3928 | else |
| 3929 | ac_cv_path_EGREP=$EGREP |
| 3930 | fi |
| 3931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3932 | fi |
| 3933 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3935 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3936 | EGREP="$ac_cv_path_EGREP" |
| 3937 | |
| 3938 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3940 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3941 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 3942 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3943 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3945 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3946 | #include <stdlib.h> |
| 3947 | #include <stdarg.h> |
| 3948 | #include <string.h> |
| 3949 | #include <float.h> |
| 3950 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3951 | int |
| 3952 | main () |
| 3953 | { |
| 3954 | |
| 3955 | ; |
| 3956 | return 0; |
| 3957 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3958 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3959 | if ac_fn_c_try_compile "$LINENO"; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3960 | ac_cv_header_stdc=yes |
| 3961 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3962 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3965 | |
| 3966 | if test $ac_cv_header_stdc = yes; then |
| 3967 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3969 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3970 | #include <string.h> |
| 3971 | |
| 3972 | _ACEOF |
| 3973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3974 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3976 | else |
| 3977 | ac_cv_header_stdc=no |
| 3978 | fi |
| 3979 | rm -f conftest* |
| 3980 | |
| 3981 | fi |
| 3982 | |
| 3983 | if test $ac_cv_header_stdc = yes; then |
| 3984 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3986 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3987 | #include <stdlib.h> |
| 3988 | |
| 3989 | _ACEOF |
| 3990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 3991 | $EGREP "free" >/dev/null 2>&1; then : |
| 3992 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3993 | else |
| 3994 | ac_cv_header_stdc=no |
| 3995 | fi |
| 3996 | rm -f conftest* |
| 3997 | |
| 3998 | fi |
| 3999 | |
| 4000 | if test $ac_cv_header_stdc = yes; then |
| 4001 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4002 | if test "$cross_compiling" = yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4003 | : |
| 4004 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4006 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4007 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4008 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4009 | #if ((' ' & 0x0FF) == 0x020) |
| 4010 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4011 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4012 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4013 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4014 | (('a' <= (c) && (c) <= 'i') \ |
| 4015 | || ('j' <= (c) && (c) <= 'r') \ |
| 4016 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4017 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4018 | #endif |
| 4019 | |
| 4020 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4021 | int |
| 4022 | main () |
| 4023 | { |
| 4024 | int i; |
| 4025 | for (i = 0; i < 256; i++) |
| 4026 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4027 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4028 | return 2; |
| 4029 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4030 | } |
| 4031 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4032 | if ac_fn_c_try_run "$LINENO"; then : |
| 4033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4034 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4035 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4036 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4038 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4039 | fi |
| 4040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4041 | fi |
| 4042 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4044 | $as_echo "$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4045 | if test $ac_cv_header_stdc = yes; then |
| 4046 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4047 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4048 | |
| 4049 | fi |
| 4050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4051 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4052 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4053 | inttypes.h stdint.h unistd.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4054 | do : |
| 4055 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4056 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4057 | " |
| 4058 | eval as_val=\$$as_ac_Header |
| 4059 | if test "x$as_val" = x""yes; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4060 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4061 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4062 | _ACEOF |
| 4063 | |
| 4064 | fi |
| 4065 | |
| 4066 | done |
| 4067 | |
| 4068 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4070 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4071 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 4072 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4073 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4074 | ac_cv_c_bigendian=unknown |
| 4075 | # See if we're dealing with a universal compiler. |
| 4076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4077 | /* end confdefs.h. */ |
| 4078 | #ifndef __APPLE_CC__ |
| 4079 | not a universal capable compiler |
| 4080 | #endif |
| 4081 | typedef int dummy; |
| 4082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4083 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4084 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4085 | |
| 4086 | # Check for potential -arch flags. It is not universal unless |
| 4087 | # there are at least two -arch flags with different values. |
| 4088 | ac_arch= |
| 4089 | ac_prev= |
| 4090 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4091 | if test -n "$ac_prev"; then |
| 4092 | case $ac_word in |
| 4093 | i?86 | x86_64 | ppc | ppc64) |
| 4094 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4095 | ac_arch=$ac_word |
| 4096 | else |
| 4097 | ac_cv_c_bigendian=universal |
| 4098 | break |
| 4099 | fi |
| 4100 | ;; |
| 4101 | esac |
| 4102 | ac_prev= |
| 4103 | elif test "x$ac_word" = "x-arch"; then |
| 4104 | ac_prev=arch |
| 4105 | fi |
| 4106 | done |
| 4107 | fi |
| 4108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4109 | if test $ac_cv_c_bigendian = unknown; then |
| 4110 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4112 | /* end confdefs.h. */ |
| 4113 | #include <sys/types.h> |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4114 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4115 | |
| 4116 | int |
| 4117 | main () |
| 4118 | { |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4119 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4120 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4121 | && LITTLE_ENDIAN) |
| 4122 | bogus endian macros |
| 4123 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4124 | |
| 4125 | ; |
| 4126 | return 0; |
| 4127 | } |
| 4128 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4129 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4130 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4132 | /* end confdefs.h. */ |
| 4133 | #include <sys/types.h> |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4134 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4135 | |
| 4136 | int |
| 4137 | main () |
| 4138 | { |
| 4139 | #if BYTE_ORDER != BIG_ENDIAN |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4140 | not big endian |
| 4141 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4142 | |
| 4143 | ; |
| 4144 | return 0; |
| 4145 | } |
| 4146 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4147 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4148 | ac_cv_c_bigendian=yes |
| 4149 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4150 | ac_cv_c_bigendian=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4151 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4153 | fi |
| 4154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4155 | fi |
| 4156 | if test $ac_cv_c_bigendian = unknown; then |
| 4157 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4159 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4160 | #include <limits.h> |
| 4161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4162 | int |
| 4163 | main () |
| 4164 | { |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4165 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4166 | bogus endian macros |
| 4167 | #endif |
| 4168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4169 | ; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4173 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4174 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4176 | /* end confdefs.h. */ |
| 4177 | #include <limits.h> |
| 4178 | |
| 4179 | int |
| 4180 | main () |
| 4181 | { |
| 4182 | #ifndef _BIG_ENDIAN |
| 4183 | not big endian |
| 4184 | #endif |
| 4185 | |
| 4186 | ; |
| 4187 | return 0; |
| 4188 | } |
| 4189 | _ACEOF |
| 4190 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4191 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4192 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4193 | ac_cv_c_bigendian=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4194 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4196 | fi |
| 4197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4198 | fi |
| 4199 | if test $ac_cv_c_bigendian = unknown; then |
| 4200 | # Compile a test program. |
| 4201 | if test "$cross_compiling" = yes; then : |
| 4202 | # Try to guess by grepping values from an object file. |
| 4203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4204 | /* end confdefs.h. */ |
| 4205 | short int ascii_mm[] = |
| 4206 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4207 | short int ascii_ii[] = |
| 4208 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4209 | int use_ascii (int i) { |
| 4210 | return ascii_mm[i] + ascii_ii[i]; |
| 4211 | } |
| 4212 | short int ebcdic_ii[] = |
| 4213 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4214 | short int ebcdic_mm[] = |
| 4215 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4216 | int use_ebcdic (int i) { |
| 4217 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4218 | } |
| 4219 | extern int foo; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4220 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4221 | int |
| 4222 | main () |
| 4223 | { |
| 4224 | return use_ascii (foo) == use_ebcdic (foo); |
| 4225 | ; |
| 4226 | return 0; |
| 4227 | } |
| 4228 | _ACEOF |
| 4229 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4230 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4231 | ac_cv_c_bigendian=yes |
| 4232 | fi |
| 4233 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4234 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4235 | ac_cv_c_bigendian=no |
| 4236 | else |
| 4237 | # finding both strings is unlikely to happen, but who knows? |
| 4238 | ac_cv_c_bigendian=unknown |
| 4239 | fi |
| 4240 | fi |
| 4241 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4243 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4245 | /* end confdefs.h. */ |
| 4246 | $ac_includes_default |
| 4247 | int |
| 4248 | main () |
| 4249 | { |
| 4250 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4251 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4252 | union |
| 4253 | { |
| 4254 | long int l; |
| 4255 | char c[sizeof (long int)]; |
| 4256 | } u; |
| 4257 | u.l = 1; |
| 4258 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4259 | |
| 4260 | ; |
| 4261 | return 0; |
| 4262 | } |
| 4263 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4264 | if ac_fn_c_try_run "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4265 | ac_cv_c_bigendian=no |
| 4266 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4267 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4268 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4269 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4270 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | fi |
| 4272 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4273 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4274 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4276 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4277 | case $ac_cv_c_bigendian in #( |
| 4278 | yes) |
| 4279 | ENDIAN=big |
| 4280 | ;; #( |
| 4281 | no) |
| 4282 | ENDIAN=little |
| 4283 | ;; #( |
| 4284 | universal) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4285 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4286 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 4287 | |
| 4288 | ;; #( |
| 4289 | *) |
| 4290 | as_fn_error "unknown endianness |
| 4291 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4292 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4293 | |
| 4294 | |
| 4295 | if test "$cross_compiling" = yes; then |
| 4296 | LLVM_CROSS_COMPILING=1 |
| 4297 | |
| 4298 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5 |
| 4300 | $as_echo_n "checking for executable suffix on build platform... " >&6; } |
| 4301 | if test "${ac_cv_build_exeext+set}" = set; then : |
| 4302 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4303 | else |
| 4304 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4305 | ac_cv_build_exeext=.exe |
| 4306 | else |
| 4307 | ac_build_prefix=${build_alias}- |
| 4308 | |
| 4309 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4310 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4312 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4313 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
| 4314 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4315 | else |
| 4316 | if test -n "$BUILD_CC"; then |
| 4317 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4318 | else |
| 4319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4320 | for as_dir in $PATH |
| 4321 | do |
| 4322 | IFS=$as_save_IFS |
| 4323 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4324 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4326 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4328 | break 2 |
| 4329 | fi |
| 4330 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4331 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4332 | IFS=$as_save_IFS |
| 4333 | |
| 4334 | fi |
| 4335 | fi |
| 4336 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4337 | if test -n "$BUILD_CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
| 4339 | $as_echo "$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4340 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4342 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4343 | fi |
| 4344 | |
| 4345 | |
| 4346 | if test -z "$BUILD_CC"; then |
| 4347 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4348 | set dummy gcc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4350 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4351 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
| 4352 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4353 | else |
| 4354 | if test -n "$BUILD_CC"; then |
| 4355 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4356 | else |
| 4357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4358 | for as_dir in $PATH |
| 4359 | do |
| 4360 | IFS=$as_save_IFS |
| 4361 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4364 | ac_cv_prog_BUILD_CC="gcc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4366 | break 2 |
| 4367 | fi |
| 4368 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4369 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4370 | IFS=$as_save_IFS |
| 4371 | |
| 4372 | fi |
| 4373 | fi |
| 4374 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4375 | if test -n "$BUILD_CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
| 4377 | $as_echo "$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4378 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4380 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4381 | fi |
| 4382 | |
| 4383 | |
| 4384 | if test -z "$BUILD_CC"; then |
| 4385 | # Extract the first word of "cc", so it can be a program name with args. |
| 4386 | set dummy cc; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4388 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4389 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
| 4390 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4391 | else |
| 4392 | if test -n "$BUILD_CC"; then |
| 4393 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4394 | else |
| 4395 | ac_prog_rejected=no |
| 4396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4397 | for as_dir in $PATH |
| 4398 | do |
| 4399 | IFS=$as_save_IFS |
| 4400 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4401 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4403 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4404 | ac_prog_rejected=yes |
| 4405 | continue |
| 4406 | fi |
| 4407 | ac_cv_prog_BUILD_CC="cc" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4409 | break 2 |
| 4410 | fi |
| 4411 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4412 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4413 | IFS=$as_save_IFS |
| 4414 | |
| 4415 | if test $ac_prog_rejected = yes; then |
| 4416 | # We found a bogon in the path, so make sure we never use it. |
| 4417 | set dummy $ac_cv_prog_BUILD_CC |
| 4418 | shift |
| 4419 | if test $# != 0; then |
| 4420 | # We chose a different compiler from the bogus one. |
| 4421 | # However, it has the same basename, so the bogon will be chosen |
| 4422 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4423 | shift |
| 4424 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4425 | fi |
| 4426 | fi |
| 4427 | fi |
| 4428 | fi |
| 4429 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4430 | if test -n "$BUILD_CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
| 4432 | $as_echo "$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4433 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4435 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4436 | fi |
| 4437 | |
| 4438 | |
| 4439 | fi |
| 4440 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4441 | test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4442 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4443 | rm -f conftest* |
| 4444 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4445 | ac_cv_build_exeext= |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4446 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4447 | (eval $ac_build_link) 2>&5 |
| 4448 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4450 | test $ac_status = 0; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4451 | for file in conftest.*; do |
| 4452 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4453 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4454 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4455 | esac |
| 4456 | done |
| 4457 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4458 | as_fn_error "installation or configuration problem: compiler cannot create executables." "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4459 | fi |
| 4460 | rm -f conftest* |
| 4461 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4462 | fi |
| 4463 | fi |
| 4464 | |
| 4465 | BUILD_EXEEXT="" |
| 4466 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5 |
| 4468 | $as_echo "${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4469 | ac_build_exeext=$BUILD_EXEEXT |
| 4470 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4471 | ac_build_prefix=${build_alias}- |
| 4472 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4473 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4475 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4476 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then : |
| 4477 | $as_echo_n "(cached) " >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4478 | else |
| 4479 | if test -n "$BUILD_CXX"; then |
| 4480 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4481 | else |
| 4482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4483 | for as_dir in $PATH |
| 4484 | do |
| 4485 | IFS=$as_save_IFS |
| 4486 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4487 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4489 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4491 | break 2 |
| 4492 | fi |
| 4493 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4494 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4495 | IFS=$as_save_IFS |
| 4496 | |
| 4497 | fi |
| 4498 | fi |
| 4499 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4500 | if test -n "$BUILD_CXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 |
| 4502 | $as_echo "$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4503 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4505 | $as_echo "no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4506 | fi |
| 4507 | |
| 4508 | |
| 4509 | if test -z "$BUILD_CXX"; then |
| 4510 | # Extract the first word of "g++", so it can be a program name with args. |
| 4511 | set dummy g++; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4513 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4514 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then : |
| 4515 | $as_echo_n "(cached) " >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4516 | else |
| 4517 | if test -n "$BUILD_CXX"; then |
| 4518 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4519 | else |
| 4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4521 | for as_dir in $PATH |
| 4522 | do |
| 4523 | IFS=$as_save_IFS |
| 4524 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4527 | ac_cv_prog_BUILD_CXX="g++" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4529 | break 2 |
| 4530 | fi |
| 4531 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4532 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4533 | IFS=$as_save_IFS |
| 4534 | |
| 4535 | fi |
| 4536 | fi |
| 4537 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4538 | if test -n "$BUILD_CXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 |
| 4540 | $as_echo "$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4541 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4543 | $as_echo "no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4544 | fi |
| 4545 | |
| 4546 | |
| 4547 | if test -z "$BUILD_CXX"; then |
| 4548 | # Extract the first word of "c++", so it can be a program name with args. |
| 4549 | set dummy c++; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4551 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4552 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then : |
| 4553 | $as_echo_n "(cached) " >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4554 | else |
| 4555 | if test -n "$BUILD_CXX"; then |
| 4556 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4557 | else |
| 4558 | ac_prog_rejected=no |
| 4559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4560 | for as_dir in $PATH |
| 4561 | do |
| 4562 | IFS=$as_save_IFS |
| 4563 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4566 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4567 | ac_prog_rejected=yes |
| 4568 | continue |
| 4569 | fi |
| 4570 | ac_cv_prog_BUILD_CXX="c++" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4572 | break 2 |
| 4573 | fi |
| 4574 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4575 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4576 | IFS=$as_save_IFS |
| 4577 | |
| 4578 | if test $ac_prog_rejected = yes; then |
| 4579 | # We found a bogon in the path, so make sure we never use it. |
| 4580 | set dummy $ac_cv_prog_BUILD_CXX |
| 4581 | shift |
| 4582 | if test $# != 0; then |
| 4583 | # We chose a different compiler from the bogus one. |
| 4584 | # However, it has the same basename, so the bogon will be chosen |
| 4585 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4586 | shift |
| 4587 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4588 | fi |
| 4589 | fi |
| 4590 | fi |
| 4591 | fi |
| 4592 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4593 | if test -n "$BUILD_CXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 |
| 4595 | $as_echo "$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4596 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4598 | $as_echo "no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | |
| 4601 | |
| 4602 | fi |
| 4603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4604 | else |
| 4605 | LLVM_CROSS_COMPILING=0 |
| 4606 | |
| 4607 | fi |
| 4608 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4609 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4610 | cvsbuild="yes" |
| 4611 | optimize="no" |
| 4612 | CVSBUILD=CVSBUILD=1 |
| 4613 | |
| 4614 | else |
| 4615 | cvsbuild="no" |
| 4616 | optimize="yes" |
| 4617 | fi |
| 4618 | |
| 4619 | |
| 4620 | # Check whether --enable-optimized was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4621 | if test "${enable_optimized+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4622 | enableval=$enable_optimized; |
| 4623 | else |
| 4624 | enableval=$optimize |
| 4625 | fi |
| 4626 | |
| 4627 | if test ${enableval} = "no" ; then |
| 4628 | ENABLE_OPTIMIZED= |
| 4629 | |
| 4630 | else |
| 4631 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4632 | |
| 4633 | fi |
| 4634 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4635 | # Check whether --enable-profiling was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4636 | if test "${enable_profiling+set}" = set; then : |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4637 | enableval=$enable_profiling; |
| 4638 | else |
| 4639 | enableval="no" |
| 4640 | fi |
| 4641 | |
| 4642 | if test ${enableval} = "no" ; then |
| 4643 | ENABLE_PROFILING= |
| 4644 | |
| 4645 | else |
| 4646 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4647 | |
| 4648 | fi |
| 4649 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4650 | # Check whether --enable-assertions was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4651 | if test "${enable_assertions+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4652 | enableval=$enable_assertions; |
| 4653 | else |
| 4654 | enableval="yes" |
| 4655 | fi |
| 4656 | |
| 4657 | if test ${enableval} = "yes" ; then |
| 4658 | DISABLE_ASSERTIONS= |
| 4659 | |
| 4660 | else |
| 4661 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4662 | |
| 4663 | fi |
| 4664 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4665 | # Check whether --enable-expensive-checks was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4666 | if test "${enable_expensive_checks+set}" = set; then : |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4667 | enableval=$enable_expensive_checks; |
| 4668 | else |
| 4669 | enableval="no" |
| 4670 | fi |
| 4671 | |
| 4672 | if test ${enableval} = "yes" ; then |
| 4673 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4674 | |
| 4675 | EXPENSIVE_CHECKS=yes |
| 4676 | |
| 4677 | else |
| 4678 | ENABLE_EXPENSIVE_CHECKS= |
| 4679 | |
| 4680 | EXPENSIVE_CHECKS=no |
| 4681 | |
| 4682 | fi |
| 4683 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4684 | # Check whether --enable-debug-runtime was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4685 | if test "${enable_debug_runtime+set}" = set; then : |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4686 | enableval=$enable_debug_runtime; |
| 4687 | else |
| 4688 | enableval=no |
| 4689 | fi |
| 4690 | |
| 4691 | if test ${enableval} = "no" ; then |
| 4692 | DEBUG_RUNTIME= |
| 4693 | |
| 4694 | else |
| 4695 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4696 | |
| 4697 | fi |
| 4698 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4699 | # Check whether --enable-debug-symbols was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4700 | if test "${enable_debug_symbols+set}" = set; then : |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4701 | enableval=$enable_debug_symbols; |
| 4702 | else |
| 4703 | enableval=no |
| 4704 | fi |
| 4705 | |
| 4706 | if test ${enableval} = "no" ; then |
| 4707 | DEBUG_SYMBOLS= |
| 4708 | |
| 4709 | else |
| 4710 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4711 | |
| 4712 | fi |
| 4713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4714 | # Check whether --enable-jit was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4715 | if test "${enable_jit+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4716 | enableval=$enable_jit; |
| 4717 | else |
| 4718 | enableval=default |
| 4719 | fi |
| 4720 | |
| 4721 | if test ${enableval} = "no" |
| 4722 | then |
| 4723 | JIT= |
| 4724 | |
| 4725 | else |
| 4726 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4727 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4729 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4730 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4731 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4732 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4733 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4734 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4735 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4736 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4737 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4738 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4739 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4740 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4741 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4742 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4743 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4744 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4745 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4746 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4747 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4748 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4749 | Blackfin) TARGET_HAS_JIT=0 |
| 4750 | ;; |
| 4751 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4752 | ;; |
| 4753 | esac |
| 4754 | fi |
| 4755 | |
| 4756 | # Check whether --enable-doxygen was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4757 | if test "${enable_doxygen+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4758 | enableval=$enable_doxygen; |
| 4759 | else |
| 4760 | enableval=default |
| 4761 | fi |
| 4762 | |
| 4763 | case "$enableval" in |
| 4764 | yes) ENABLE_DOXYGEN=1 |
| 4765 | ;; |
| 4766 | no) ENABLE_DOXYGEN=0 |
| 4767 | ;; |
| 4768 | default) ENABLE_DOXYGEN=0 |
| 4769 | ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4770 | *) as_fn_error "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4771 | esac |
| 4772 | |
| 4773 | # Check whether --enable-threads was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4774 | if test "${enable_threads+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4775 | enableval=$enable_threads; |
| 4776 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4777 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4778 | fi |
| 4779 | |
| 4780 | case "$enableval" in |
| 4781 | yes) ENABLE_THREADS=1 |
| 4782 | ;; |
| 4783 | no) ENABLE_THREADS=0 |
| 4784 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4785 | default) ENABLE_THREADS=1 |
| 4786 | ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4787 | *) as_fn_error "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4788 | esac |
| 4789 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4790 | cat >>confdefs.h <<_ACEOF |
| 4791 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4792 | _ACEOF |
| 4793 | |
| 4794 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4795 | # Check whether --enable-pic was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4796 | if test "${enable_pic+set}" = set; then : |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4797 | enableval=$enable_pic; |
| 4798 | else |
| 4799 | enableval=default |
| 4800 | fi |
| 4801 | |
| 4802 | case "$enableval" in |
| 4803 | yes) ENABLE_PIC=1 |
| 4804 | ;; |
| 4805 | no) ENABLE_PIC=0 |
| 4806 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4807 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4808 | ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4809 | *) as_fn_error "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4810 | esac |
| 4811 | |
| 4812 | cat >>confdefs.h <<_ACEOF |
| 4813 | #define ENABLE_PIC $ENABLE_PIC |
| 4814 | _ACEOF |
| 4815 | |
| 4816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4817 | TARGETS_TO_BUILD="" |
| 4818 | # Check whether --enable-targets was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4819 | if test "${enable_targets+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4820 | enableval=$enable_targets; |
| 4821 | else |
| 4822 | enableval=all |
| 4823 | fi |
| 4824 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4825 | if test "$enableval" = host-only ; then |
| 4826 | enableval=host |
| 4827 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4828 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 4829 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4830 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4831 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4832 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4833 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4834 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4835 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4836 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4837 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4838 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4839 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4840 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4841 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4842 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4843 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4844 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4845 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4846 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4847 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4848 | host) case "$llvm_cv_target_arch" in |
| 4849 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4850 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4851 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4852 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4853 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4854 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4855 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4856 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4857 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4858 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4859 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4860 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4861 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4862 | *) as_fn_error "Can not set target to build" "$LINENO" 5 ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4863 | esac ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4864 | *) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4865 | esac |
| 4866 | done |
| 4867 | ;; |
| 4868 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4869 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4870 | |
| 4871 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4872 | # Determine whether we are building LLVM support for the native architecture. |
| 4873 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4874 | for a_target in $TARGETS_TO_BUILD; do |
| 4875 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4876 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4877 | |
| 4878 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4879 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4880 | _ACEOF |
| 4881 | |
| 4882 | fi |
| 4883 | done |
| 4884 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4885 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4886 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4887 | LLVM_ENUM_TARGETS="" |
| 4888 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4889 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4890 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4891 | for target_to_build in $TARGETS_TO_BUILD; do |
| 4892 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 4893 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 4894 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 4895 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4896 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 4897 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 4898 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4899 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 4900 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 4901 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4902 | done |
| 4903 | |
| 4904 | |
| 4905 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4906 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4907 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4908 | # Check whether --enable-cbe-printf-a was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4909 | if test "${enable_cbe_printf_a+set}" = set; then : |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4910 | enableval=$enable_cbe_printf_a; |
| 4911 | else |
| 4912 | enableval=default |
| 4913 | fi |
| 4914 | |
| 4915 | case "$enableval" in |
| 4916 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4917 | ;; |
| 4918 | no) ENABLE_CBE_PRINTF_A=0 |
| 4919 | ;; |
| 4920 | default) ENABLE_CBE_PRINTF_A=1 |
| 4921 | ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4922 | *) as_fn_error "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4923 | esac |
| 4924 | |
| 4925 | cat >>confdefs.h <<_ACEOF |
| 4926 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4927 | _ACEOF |
| 4928 | |
| 4929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4930 | |
| 4931 | # Check whether --with-llvmgccdir was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4932 | if test "${with_llvmgccdir+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4933 | withval=$with_llvmgccdir; |
| 4934 | else |
| 4935 | withval=default |
| 4936 | fi |
| 4937 | |
| 4938 | case "$withval" in |
| 4939 | default) WITH_LLVMGCCDIR=default ;; |
| 4940 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4941 | *) as_fn_error "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4942 | esac |
| 4943 | |
| 4944 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4945 | # Check whether --with-llvmgcc was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4946 | if test "${with_llvmgcc+set}" = set; then : |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4947 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4948 | WITH_LLVMGCCDIR="" |
| 4949 | fi |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | # Check whether --with-llvmgxx was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4954 | if test "${with_llvmgxx+set}" = set; then : |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4955 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4956 | WITH_LLVMGCCDIR="" |
| 4957 | fi |
| 4958 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 4959 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 4960 | if test -n "$LLVMGCC"; then |
| 4961 | LLVMGCCCOMMAND="$LLVMGCC" |
| 4962 | fi |
| 4963 | |
| 4964 | if test -n "$LLVMGXX"; then |
| 4965 | LLVMGXXCOMMAND="$LLVMGXX" |
| 4966 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4967 | |
| 4968 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4969 | as_fn_error "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4970 | fi |
| 4971 | |
| 4972 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4973 | as_fn_error "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4974 | fi |
| 4975 | |
| 4976 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 4977 | # Check whether --with-optimize-option was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4978 | if test "${with_optimize_option+set}" = set; then : |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 4979 | withval=$with_optimize_option; |
| 4980 | else |
| 4981 | withval=default |
| 4982 | fi |
| 4983 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5 |
| 4985 | $as_echo_n "checking optimization flags... " >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 4986 | case "$withval" in |
| 4987 | default) |
| 4988 | case "$llvm_cv_os_type" in |
| 4989 | MingW) optimize_option=-O3 ;; |
| 4990 | *) optimize_option=-O2 ;; |
| 4991 | esac ;; |
| 4992 | *) optimize_option="$withval" ;; |
| 4993 | esac |
| 4994 | OPTIMIZE_OPTION=$optimize_option |
| 4995 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5 |
| 4997 | $as_echo "$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 4998 | |
| 4999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5000 | # Check whether --with-extra-options was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5001 | if test "${with_extra_options+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5002 | withval=$with_extra_options; |
| 5003 | else |
| 5004 | withval=default |
| 5005 | fi |
| 5006 | |
| 5007 | case "$withval" in |
| 5008 | default) EXTRA_OPTIONS= ;; |
| 5009 | *) EXTRA_OPTIONS=$withval ;; |
| 5010 | esac |
| 5011 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5012 | |
| 5013 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5014 | # Check whether --enable-bindings was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5015 | if test "${enable_bindings+set}" = set; then : |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5016 | enableval=$enable_bindings; |
| 5017 | else |
| 5018 | enableval=default |
| 5019 | fi |
| 5020 | |
| 5021 | BINDINGS_TO_BUILD="" |
| 5022 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5023 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5024 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5025 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5026 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5027 | case "$a_binding" in |
| 5028 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5029 | *) as_fn_error "Unrecognized binding $a_binding" "$LINENO" 5 ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5030 | esac |
| 5031 | done |
| 5032 | ;; |
| 5033 | esac |
| 5034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5035 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5036 | # Check whether --with-ocaml-libdir was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5037 | if test "${with_ocaml_libdir+set}" = set; then : |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5038 | withval=$with_ocaml_libdir; |
| 5039 | else |
| 5040 | withval=auto |
| 5041 | fi |
| 5042 | |
| 5043 | case "$withval" in |
| 5044 | auto) with_ocaml_libdir="$withval" ;; |
| 5045 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5046 | *) as_fn_error "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5047 | esac |
| 5048 | |
| 5049 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5050 | # Check whether --with-c-include-dirs was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5051 | if test "${with_c_include_dirs+set}" = set; then : |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5052 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5053 | else |
| 5054 | withval="" |
| 5055 | fi |
| 5056 | |
| 5057 | |
| 5058 | cat >>confdefs.h <<_ACEOF |
| 5059 | #define C_INCLUDE_DIRS "$withval" |
| 5060 | _ACEOF |
| 5061 | |
| 5062 | |
| 5063 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5064 | # Check whether --with-cxx-include-root was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5065 | if test "${with_cxx_include_root+set}" = set; then : |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5066 | withval=$with_cxx_include_root; |
| 5067 | else |
| 5068 | withval="" |
| 5069 | fi |
| 5070 | |
| 5071 | |
| 5072 | cat >>confdefs.h <<_ACEOF |
| 5073 | #define CXX_INCLUDE_ROOT "$withval" |
| 5074 | _ACEOF |
| 5075 | |
| 5076 | |
| 5077 | |
| 5078 | # Check whether --with-cxx-include-arch was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5079 | if test "${with_cxx_include_arch+set}" = set; then : |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5080 | withval=$with_cxx_include_arch; |
| 5081 | else |
| 5082 | withval="" |
| 5083 | fi |
| 5084 | |
| 5085 | |
| 5086 | cat >>confdefs.h <<_ACEOF |
| 5087 | #define CXX_INCLUDE_ARCH "$withval" |
| 5088 | _ACEOF |
| 5089 | |
| 5090 | |
| 5091 | |
| 5092 | # Check whether --with-cxx-include-32bit-dir was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5093 | if test "${with_cxx_include_32bit_dir+set}" = set; then : |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5094 | withval=$with_cxx_include_32bit_dir; |
| 5095 | else |
| 5096 | withval="" |
| 5097 | fi |
| 5098 | |
| 5099 | |
| 5100 | cat >>confdefs.h <<_ACEOF |
| 5101 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5102 | _ACEOF |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | # Check whether --with-cxx-include-64bit-dir was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5107 | if test "${with_cxx_include_64bit_dir+set}" = set; then : |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5108 | withval=$with_cxx_include_64bit_dir; |
| 5109 | else |
| 5110 | withval="" |
| 5111 | fi |
| 5112 | |
| 5113 | |
| 5114 | cat >>confdefs.h <<_ACEOF |
| 5115 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5116 | _ACEOF |
| 5117 | |
| 5118 | |
| 5119 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5120 | # Check whether --with-binutils-include was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5121 | if test "${with_binutils_include+set}" = set; then : |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5122 | withval=$with_binutils_include; |
| 5123 | else |
| 5124 | withval=default |
| 5125 | fi |
| 5126 | |
| 5127 | case "$withval" in |
| 5128 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5129 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5130 | *) as_fn_error "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5131 | esac |
| 5132 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5133 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5134 | |
| 5135 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5136 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5137 | as_fn_error "Invalid path to directory containing plugin-api.h." "$LINENO" 5; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5138 | fi |
| 5139 | fi |
| 5140 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5141 | # Check whether --enable-libffi was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5142 | if test "${enable_libffi+set}" = set; then : |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5143 | enableval=$enable_libffi; |
| 5144 | else |
| 5145 | enableval=yes |
| 5146 | fi |
| 5147 | |
| 5148 | case "$enableval" in |
| 5149 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5150 | no) llvm_cv_enable_libffi="no" ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5151 | *) as_fn_error "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;; |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5152 | esac |
| 5153 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5154 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5155 | llvmc_dynamic="yes" |
| 5156 | else |
| 5157 | llvmc_dynamic="no" |
| 5158 | fi |
| 5159 | |
| 5160 | # Check whether --enable-llvmc-dynamic was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5161 | if test "${enable_llvmc_dynamic+set}" = set; then : |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5162 | enableval=$enable_llvmc_dynamic; |
| 5163 | else |
| 5164 | enableval=$llvmc_dynamic |
| 5165 | fi |
| 5166 | |
| 5167 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5168 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5169 | |
| 5170 | else |
| 5171 | ENABLE_LLVMC_DYNAMIC= |
| 5172 | |
| 5173 | fi |
| 5174 | |
| 5175 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5176 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then : |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5177 | enableval=$enable_llvmc_dynamic_plugins; |
| 5178 | else |
| 5179 | enableval=yes |
| 5180 | fi |
| 5181 | |
| 5182 | if test ${enableval} = "yes" ; then |
| 5183 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5184 | |
| 5185 | else |
| 5186 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5187 | |
| 5188 | fi |
| 5189 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5191 | ac_ext=c |
| 5192 | ac_cpp='$CPP $CPPFLAGS' |
| 5193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5197 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5198 | # On Suns, sometimes $CPP names a directory. |
| 5199 | if test -n "$CPP" && test -d "$CPP"; then |
| 5200 | CPP= |
| 5201 | fi |
| 5202 | if test -z "$CPP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5203 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 5204 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5205 | else |
| 5206 | # Double quotes because CPP needs to be expanded |
| 5207 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5208 | do |
| 5209 | ac_preproc_ok=false |
| 5210 | for ac_c_preproc_warn_flag in '' yes |
| 5211 | do |
| 5212 | # Use a header file that comes with gcc, so configuring glibc |
| 5213 | # with a fresh cross-compiler works. |
| 5214 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5215 | # <limits.h> exists even on freestanding compilers. |
| 5216 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5217 | # not just through cpp. "Syntax error" is here to catch this case. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5219 | /* end confdefs.h. */ |
| 5220 | #ifdef __STDC__ |
| 5221 | # include <limits.h> |
| 5222 | #else |
| 5223 | # include <assert.h> |
| 5224 | #endif |
| 5225 | Syntax error |
| 5226 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5227 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5228 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5229 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5230 | # Broken: fails on valid input. |
| 5231 | continue |
| 5232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5233 | rm -f conftest.err conftest.$ac_ext |
| 5234 | |
| 5235 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5236 | # can be detected and how. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5238 | /* end confdefs.h. */ |
| 5239 | #include <ac_nonexistent.h> |
| 5240 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5241 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5242 | # Broken: success on invalid input. |
| 5243 | continue |
| 5244 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5245 | # Passes both tests. |
| 5246 | ac_preproc_ok=: |
| 5247 | break |
| 5248 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5249 | rm -f conftest.err conftest.$ac_ext |
| 5250 | |
| 5251 | done |
| 5252 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5253 | rm -f conftest.err conftest.$ac_ext |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5254 | if $ac_preproc_ok; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5255 | break |
| 5256 | fi |
| 5257 | |
| 5258 | done |
| 5259 | ac_cv_prog_CPP=$CPP |
| 5260 | |
| 5261 | fi |
| 5262 | CPP=$ac_cv_prog_CPP |
| 5263 | else |
| 5264 | ac_cv_prog_CPP=$CPP |
| 5265 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5267 | $as_echo "$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5268 | ac_preproc_ok=false |
| 5269 | for ac_c_preproc_warn_flag in '' yes |
| 5270 | do |
| 5271 | # Use a header file that comes with gcc, so configuring glibc |
| 5272 | # with a fresh cross-compiler works. |
| 5273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5274 | # <limits.h> exists even on freestanding compilers. |
| 5275 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5276 | # not just through cpp. "Syntax error" is here to catch this case. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5278 | /* end confdefs.h. */ |
| 5279 | #ifdef __STDC__ |
| 5280 | # include <limits.h> |
| 5281 | #else |
| 5282 | # include <assert.h> |
| 5283 | #endif |
| 5284 | Syntax error |
| 5285 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5286 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5287 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5288 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5289 | # Broken: fails on valid input. |
| 5290 | continue |
| 5291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5292 | rm -f conftest.err conftest.$ac_ext |
| 5293 | |
| 5294 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5295 | # can be detected and how. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5297 | /* end confdefs.h. */ |
| 5298 | #include <ac_nonexistent.h> |
| 5299 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5300 | if ac_fn_c_try_cpp "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5301 | # Broken: success on invalid input. |
| 5302 | continue |
| 5303 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5304 | # Passes both tests. |
| 5305 | ac_preproc_ok=: |
| 5306 | break |
| 5307 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5308 | rm -f conftest.err conftest.$ac_ext |
| 5309 | |
| 5310 | done |
| 5311 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5312 | rm -f conftest.err conftest.$ac_ext |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5313 | if $ac_preproc_ok; then : |
| 5314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5315 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5316 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5317 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5318 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5319 | See \`config.log' for more details." "$LINENO" 5; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5320 | fi |
| 5321 | |
| 5322 | ac_ext=c |
| 5323 | ac_cpp='$CPP $CPPFLAGS' |
| 5324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5327 | |
| 5328 | ac_ext=c |
| 5329 | ac_cpp='$CPP $CPPFLAGS' |
| 5330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5333 | if test -n "$ac_tool_prefix"; then |
| 5334 | for ac_prog in gcc |
| 5335 | do |
| 5336 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5337 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5339 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5340 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 5341 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5342 | else |
| 5343 | if test -n "$CC"; then |
| 5344 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5345 | else |
| 5346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5347 | for as_dir in $PATH |
| 5348 | do |
| 5349 | IFS=$as_save_IFS |
| 5350 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5353 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5355 | break 2 |
| 5356 | fi |
| 5357 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5358 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5359 | IFS=$as_save_IFS |
| 5360 | |
| 5361 | fi |
| 5362 | fi |
| 5363 | CC=$ac_cv_prog_CC |
| 5364 | if test -n "$CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5366 | $as_echo "$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5367 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5369 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5370 | fi |
| 5371 | |
| 5372 | |
| 5373 | test -n "$CC" && break |
| 5374 | done |
| 5375 | fi |
| 5376 | if test -z "$CC"; then |
| 5377 | ac_ct_CC=$CC |
| 5378 | for ac_prog in gcc |
| 5379 | do |
| 5380 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5381 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5383 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5384 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 5385 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5386 | else |
| 5387 | if test -n "$ac_ct_CC"; then |
| 5388 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5389 | else |
| 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5391 | for as_dir in $PATH |
| 5392 | do |
| 5393 | IFS=$as_save_IFS |
| 5394 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5397 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5399 | break 2 |
| 5400 | fi |
| 5401 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5402 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5403 | IFS=$as_save_IFS |
| 5404 | |
| 5405 | fi |
| 5406 | fi |
| 5407 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5408 | if test -n "$ac_ct_CC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5410 | $as_echo "$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5411 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5413 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5414 | fi |
| 5415 | |
| 5416 | |
| 5417 | test -n "$ac_ct_CC" && break |
| 5418 | done |
| 5419 | |
| 5420 | if test "x$ac_ct_CC" = x; then |
| 5421 | CC="" |
| 5422 | else |
| 5423 | case $cross_compiling:$ac_tool_warned in |
| 5424 | yes:) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5426 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5427 | ac_tool_warned=yes ;; |
| 5428 | esac |
| 5429 | CC=$ac_ct_CC |
| 5430 | fi |
| 5431 | fi |
| 5432 | |
| 5433 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5434 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5435 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5436 | as_fn_error "no acceptable C compiler found in \$PATH |
| 5437 | See \`config.log' for more details." "$LINENO" 5; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5438 | |
| 5439 | # Provide some information about the compiler. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5440 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5441 | set X $ac_compile |
| 5442 | ac_compiler=$2 |
| 5443 | for ac_option in --version -v -V -qversion; do |
| 5444 | { { ac_try="$ac_compiler $ac_option >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5445 | case "(($ac_try" in |
| 5446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5447 | *) ac_try_echo=$ac_try;; |
| 5448 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5450 | $as_echo "$ac_try_echo"; } >&5 |
| 5451 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5452 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5453 | if test -s conftest.err; then |
| 5454 | sed '10a\ |
| 5455 | ... rest of stderr output deleted ... |
| 5456 | 10q' conftest.err >conftest.er1 |
| 5457 | cat conftest.er1 >&5 |
| 5458 | fi |
| 5459 | rm -f conftest.er1 conftest.err |
| 5460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5461 | test $ac_status = 0; } |
| 5462 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5463 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5465 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5466 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 5467 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5468 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5470 | /* end confdefs.h. */ |
| 5471 | |
| 5472 | int |
| 5473 | main () |
| 5474 | { |
| 5475 | #ifndef __GNUC__ |
| 5476 | choke me |
| 5477 | #endif |
| 5478 | |
| 5479 | ; |
| 5480 | return 0; |
| 5481 | } |
| 5482 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5483 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5484 | ac_compiler_gnu=yes |
| 5485 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5486 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5487 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5489 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5490 | |
| 5491 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5493 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5494 | if test $ac_compiler_gnu = yes; then |
| 5495 | GCC=yes |
| 5496 | else |
| 5497 | GCC= |
| 5498 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5499 | ac_test_CFLAGS=${CFLAGS+set} |
| 5500 | ac_save_CFLAGS=$CFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5502 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5503 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 5504 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5505 | else |
| 5506 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5507 | ac_c_werror_flag=yes |
| 5508 | ac_cv_prog_cc_g=no |
| 5509 | CFLAGS="-g" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5511 | /* end confdefs.h. */ |
| 5512 | |
| 5513 | int |
| 5514 | main () |
| 5515 | { |
| 5516 | |
| 5517 | ; |
| 5518 | return 0; |
| 5519 | } |
| 5520 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5521 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5522 | ac_cv_prog_cc_g=yes |
| 5523 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5524 | CFLAGS="" |
| 5525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5526 | /* end confdefs.h. */ |
| 5527 | |
| 5528 | int |
| 5529 | main () |
| 5530 | { |
| 5531 | |
| 5532 | ; |
| 5533 | return 0; |
| 5534 | } |
| 5535 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5536 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5537 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5538 | else |
| 5539 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5540 | CFLAGS="-g" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5542 | /* end confdefs.h. */ |
| 5543 | |
| 5544 | int |
| 5545 | main () |
| 5546 | { |
| 5547 | |
| 5548 | ; |
| 5549 | return 0; |
| 5550 | } |
| 5551 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5552 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5553 | ac_cv_prog_cc_g=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5556 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5560 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5561 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5563 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5564 | if test "$ac_test_CFLAGS" = set; then |
| 5565 | CFLAGS=$ac_save_CFLAGS |
| 5566 | elif test $ac_cv_prog_cc_g = yes; then |
| 5567 | if test "$GCC" = yes; then |
| 5568 | CFLAGS="-g -O2" |
| 5569 | else |
| 5570 | CFLAGS="-g" |
| 5571 | fi |
| 5572 | else |
| 5573 | if test "$GCC" = yes; then |
| 5574 | CFLAGS="-O2" |
| 5575 | else |
| 5576 | CFLAGS= |
| 5577 | fi |
| 5578 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5580 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5581 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 5582 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5583 | else |
| 5584 | ac_cv_prog_cc_c89=no |
| 5585 | ac_save_CC=$CC |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5587 | /* end confdefs.h. */ |
| 5588 | #include <stdarg.h> |
| 5589 | #include <stdio.h> |
| 5590 | #include <sys/types.h> |
| 5591 | #include <sys/stat.h> |
| 5592 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5593 | struct buf { int x; }; |
| 5594 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5595 | static char *e (p, i) |
| 5596 | char **p; |
| 5597 | int i; |
| 5598 | { |
| 5599 | return p[i]; |
| 5600 | } |
| 5601 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5602 | { |
| 5603 | char *s; |
| 5604 | va_list v; |
| 5605 | va_start (v,p); |
| 5606 | s = g (p, va_arg (v,int)); |
| 5607 | va_end (v); |
| 5608 | return s; |
| 5609 | } |
| 5610 | |
| 5611 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5612 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5613 | These don't provoke an error unfortunately, instead are silently treated |
| 5614 | as 'x'. The following induces an error, until -std is added to get |
| 5615 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5616 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5617 | that's true only with -std. */ |
| 5618 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5619 | |
| 5620 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5621 | inside strings and character constants. */ |
| 5622 | #define FOO(x) 'x' |
| 5623 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5624 | |
| 5625 | int test (int i, double x); |
| 5626 | struct s1 {int (*f) (int a);}; |
| 5627 | struct s2 {int (*f) (double a);}; |
| 5628 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5629 | int argc; |
| 5630 | char **argv; |
| 5631 | int |
| 5632 | main () |
| 5633 | { |
| 5634 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5635 | ; |
| 5636 | return 0; |
| 5637 | } |
| 5638 | _ACEOF |
| 5639 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5640 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5641 | do |
| 5642 | CC="$ac_save_CC $ac_arg" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5643 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5644 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5645 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5646 | rm -f core conftest.err conftest.$ac_objext |
| 5647 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5648 | done |
| 5649 | rm -f conftest.$ac_ext |
| 5650 | CC=$ac_save_CC |
| 5651 | |
| 5652 | fi |
| 5653 | # AC_CACHE_VAL |
| 5654 | case "x$ac_cv_prog_cc_c89" in |
| 5655 | x) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5657 | $as_echo "none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5658 | xno) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5660 | $as_echo "unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5661 | *) |
| 5662 | CC="$CC $ac_cv_prog_cc_c89" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5664 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5665 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5666 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5667 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5669 | |
| 5670 | ac_ext=c |
| 5671 | ac_cpp='$CPP $CPPFLAGS' |
| 5672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5675 | |
| 5676 | ac_ext=cpp |
| 5677 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5681 | if test -z "$CXX"; then |
| 5682 | if test -n "$CCC"; then |
| 5683 | CXX=$CCC |
| 5684 | else |
| 5685 | if test -n "$ac_tool_prefix"; then |
| 5686 | for ac_prog in g++ |
| 5687 | do |
| 5688 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5689 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5691 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5692 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 5693 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5694 | else |
| 5695 | if test -n "$CXX"; then |
| 5696 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5697 | else |
| 5698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5699 | for as_dir in $PATH |
| 5700 | do |
| 5701 | IFS=$as_save_IFS |
| 5702 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5705 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5707 | break 2 |
| 5708 | fi |
| 5709 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5710 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5711 | IFS=$as_save_IFS |
| 5712 | |
| 5713 | fi |
| 5714 | fi |
| 5715 | CXX=$ac_cv_prog_CXX |
| 5716 | if test -n "$CXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5718 | $as_echo "$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5719 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5721 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5722 | fi |
| 5723 | |
| 5724 | |
| 5725 | test -n "$CXX" && break |
| 5726 | done |
| 5727 | fi |
| 5728 | if test -z "$CXX"; then |
| 5729 | ac_ct_CXX=$CXX |
| 5730 | for ac_prog in g++ |
| 5731 | do |
| 5732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5733 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5735 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5736 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 5737 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5738 | else |
| 5739 | if test -n "$ac_ct_CXX"; then |
| 5740 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5741 | else |
| 5742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5743 | for as_dir in $PATH |
| 5744 | do |
| 5745 | IFS=$as_save_IFS |
| 5746 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5747 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5749 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5751 | break 2 |
| 5752 | fi |
| 5753 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5754 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5755 | IFS=$as_save_IFS |
| 5756 | |
| 5757 | fi |
| 5758 | fi |
| 5759 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5760 | if test -n "$ac_ct_CXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5762 | $as_echo "$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5763 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5765 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5766 | fi |
| 5767 | |
| 5768 | |
| 5769 | test -n "$ac_ct_CXX" && break |
| 5770 | done |
| 5771 | |
| 5772 | if test "x$ac_ct_CXX" = x; then |
| 5773 | CXX="g++" |
| 5774 | else |
| 5775 | case $cross_compiling:$ac_tool_warned in |
| 5776 | yes:) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5778 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5779 | ac_tool_warned=yes ;; |
| 5780 | esac |
| 5781 | CXX=$ac_ct_CXX |
| 5782 | fi |
| 5783 | fi |
| 5784 | |
| 5785 | fi |
| 5786 | fi |
| 5787 | # Provide some information about the compiler. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5788 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5789 | set X $ac_compile |
| 5790 | ac_compiler=$2 |
| 5791 | for ac_option in --version -v -V -qversion; do |
| 5792 | { { ac_try="$ac_compiler $ac_option >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5793 | case "(($ac_try" in |
| 5794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5795 | *) ac_try_echo=$ac_try;; |
| 5796 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5798 | $as_echo "$ac_try_echo"; } >&5 |
| 5799 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5800 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5801 | if test -s conftest.err; then |
| 5802 | sed '10a\ |
| 5803 | ... rest of stderr output deleted ... |
| 5804 | 10q' conftest.err >conftest.er1 |
| 5805 | cat conftest.er1 >&5 |
| 5806 | fi |
| 5807 | rm -f conftest.er1 conftest.err |
| 5808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5809 | test $ac_status = 0; } |
| 5810 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5811 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 5813 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 5814 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 5815 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5816 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5818 | /* end confdefs.h. */ |
| 5819 | |
| 5820 | int |
| 5821 | main () |
| 5822 | { |
| 5823 | #ifndef __GNUC__ |
| 5824 | choke me |
| 5825 | #endif |
| 5826 | |
| 5827 | ; |
| 5828 | return 0; |
| 5829 | } |
| 5830 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5831 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5832 | ac_compiler_gnu=yes |
| 5833 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5834 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5837 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5838 | |
| 5839 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5841 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5842 | if test $ac_compiler_gnu = yes; then |
| 5843 | GXX=yes |
| 5844 | else |
| 5845 | GXX= |
| 5846 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5847 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5848 | ac_save_CXXFLAGS=$CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5850 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 5851 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 5852 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5853 | else |
| 5854 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5855 | ac_cxx_werror_flag=yes |
| 5856 | ac_cv_prog_cxx_g=no |
| 5857 | CXXFLAGS="-g" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5859 | /* end confdefs.h. */ |
| 5860 | |
| 5861 | int |
| 5862 | main () |
| 5863 | { |
| 5864 | |
| 5865 | ; |
| 5866 | return 0; |
| 5867 | } |
| 5868 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5869 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5870 | ac_cv_prog_cxx_g=yes |
| 5871 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5872 | CXXFLAGS="" |
| 5873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5874 | /* end confdefs.h. */ |
| 5875 | |
| 5876 | int |
| 5877 | main () |
| 5878 | { |
| 5879 | |
| 5880 | ; |
| 5881 | return 0; |
| 5882 | } |
| 5883 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5884 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5885 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5886 | else |
| 5887 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5888 | CXXFLAGS="-g" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5890 | /* end confdefs.h. */ |
| 5891 | |
| 5892 | int |
| 5893 | main () |
| 5894 | { |
| 5895 | |
| 5896 | ; |
| 5897 | return 0; |
| 5898 | } |
| 5899 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5900 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5901 | ac_cv_prog_cxx_g=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5902 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5904 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5908 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5909 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5911 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5912 | if test "$ac_test_CXXFLAGS" = set; then |
| 5913 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5914 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5915 | if test "$GXX" = yes; then |
| 5916 | CXXFLAGS="-g -O2" |
| 5917 | else |
| 5918 | CXXFLAGS="-g" |
| 5919 | fi |
| 5920 | else |
| 5921 | if test "$GXX" = yes; then |
| 5922 | CXXFLAGS="-O2" |
| 5923 | else |
| 5924 | CXXFLAGS= |
| 5925 | fi |
| 5926 | fi |
| 5927 | ac_ext=c |
| 5928 | ac_cpp='$CPP $CPPFLAGS' |
| 5929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5933 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 |
| 5935 | $as_echo_n "checking for BSD-compatible nm... " >&6; } |
| 5936 | if test "${lt_cv_path_NM+set}" = set; then : |
| 5937 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5938 | else |
| 5939 | if test -n "$NM"; then |
| 5940 | # Let the user override the test. |
| 5941 | lt_cv_path_NM="$NM" |
| 5942 | else |
| 5943 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5944 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5945 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5946 | fi |
| 5947 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5948 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5949 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5950 | IFS="$lt_save_ifs" |
| 5951 | test -z "$ac_dir" && ac_dir=. |
| 5952 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5953 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5954 | # Check to see if the nm accepts a BSD-compat flag. |
| 5955 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5956 | # nm: unknown option "B" ignored |
| 5957 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5958 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5959 | */dev/null* | *'Invalid file or object type'*) |
| 5960 | lt_cv_path_NM="$tmp_nm -B" |
| 5961 | break |
| 5962 | ;; |
| 5963 | *) |
| 5964 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5965 | */dev/null*) |
| 5966 | lt_cv_path_NM="$tmp_nm -p" |
| 5967 | break |
| 5968 | ;; |
| 5969 | *) |
| 5970 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5971 | continue # so that we can try to find one that supports BSD flags |
| 5972 | ;; |
| 5973 | esac |
| 5974 | ;; |
| 5975 | esac |
| 5976 | fi |
| 5977 | done |
| 5978 | IFS="$lt_save_ifs" |
| 5979 | done |
| 5980 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5981 | fi |
| 5982 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5984 | $as_echo "$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5985 | NM="$lt_cv_path_NM" |
| 5986 | |
| 5987 | |
| 5988 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
| 5990 | $as_echo_n "checking for GNU make... " >&6; } |
| 5991 | if test "${llvm_cv_gnu_make_command+set}" = set; then : |
| 5992 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5993 | else |
| 5994 | llvm_cv_gnu_make_command='' |
| 5995 | for a in "$MAKE" make gmake gnumake ; do |
| 5996 | if test -z "$a" ; then continue ; fi ; |
| 5997 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5998 | then |
| 5999 | llvm_cv_gnu_make_command=$a ; |
| 6000 | break; |
| 6001 | fi |
| 6002 | done |
| 6003 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5 |
| 6005 | $as_echo "$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6006 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6007 | ifGNUmake='' ; |
| 6008 | else |
| 6009 | ifGNUmake='#' ; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
| 6011 | $as_echo "\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6012 | fi |
| 6013 | |
| 6014 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6016 | $as_echo_n "checking whether ln -s works... " >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6017 | LN_S=$as_ln_s |
| 6018 | if test "$LN_S" = "ln -s"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6020 | $as_echo "yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6021 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6023 | $as_echo "no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6024 | fi |
| 6025 | |
| 6026 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6027 | set dummy cmp; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6029 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6030 | if test "${ac_cv_path_CMP+set}" = set; then : |
| 6031 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6032 | else |
| 6033 | case $CMP in |
| 6034 | [\\/]* | ?:[\\/]*) |
| 6035 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6036 | ;; |
| 6037 | *) |
| 6038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6039 | for as_dir in $PATH |
| 6040 | do |
| 6041 | IFS=$as_save_IFS |
| 6042 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6043 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6045 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6047 | break 2 |
| 6048 | fi |
| 6049 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6050 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6051 | IFS=$as_save_IFS |
| 6052 | |
| 6053 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6054 | ;; |
| 6055 | esac |
| 6056 | fi |
| 6057 | CMP=$ac_cv_path_CMP |
| 6058 | if test -n "$CMP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 |
| 6060 | $as_echo "$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6061 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6063 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6064 | fi |
| 6065 | |
| 6066 | |
| 6067 | # Extract the first word of "cp", so it can be a program name with args. |
| 6068 | set dummy cp; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6071 | if test "${ac_cv_path_CP+set}" = set; then : |
| 6072 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6073 | else |
| 6074 | case $CP in |
| 6075 | [\\/]* | ?:[\\/]*) |
| 6076 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6077 | ;; |
| 6078 | *) |
| 6079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6080 | for as_dir in $PATH |
| 6081 | do |
| 6082 | IFS=$as_save_IFS |
| 6083 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6086 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6088 | break 2 |
| 6089 | fi |
| 6090 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6091 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6092 | IFS=$as_save_IFS |
| 6093 | |
| 6094 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6095 | ;; |
| 6096 | esac |
| 6097 | fi |
| 6098 | CP=$ac_cv_path_CP |
| 6099 | if test -n "$CP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
| 6101 | $as_echo "$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6102 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6104 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6105 | fi |
| 6106 | |
| 6107 | |
| 6108 | # Extract the first word of "date", so it can be a program name with args. |
| 6109 | set dummy date; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6111 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6112 | if test "${ac_cv_path_DATE+set}" = set; then : |
| 6113 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6114 | else |
| 6115 | case $DATE in |
| 6116 | [\\/]* | ?:[\\/]*) |
| 6117 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6118 | ;; |
| 6119 | *) |
| 6120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6121 | for as_dir in $PATH |
| 6122 | do |
| 6123 | IFS=$as_save_IFS |
| 6124 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6127 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6129 | break 2 |
| 6130 | fi |
| 6131 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6132 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6133 | IFS=$as_save_IFS |
| 6134 | |
| 6135 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6136 | ;; |
| 6137 | esac |
| 6138 | fi |
| 6139 | DATE=$ac_cv_path_DATE |
| 6140 | if test -n "$DATE"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 |
| 6142 | $as_echo "$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6143 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6145 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6146 | fi |
| 6147 | |
| 6148 | |
| 6149 | # Extract the first word of "find", so it can be a program name with args. |
| 6150 | set dummy find; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6152 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6153 | if test "${ac_cv_path_FIND+set}" = set; then : |
| 6154 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6155 | else |
| 6156 | case $FIND in |
| 6157 | [\\/]* | ?:[\\/]*) |
| 6158 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6159 | ;; |
| 6160 | *) |
| 6161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6162 | for as_dir in $PATH |
| 6163 | do |
| 6164 | IFS=$as_save_IFS |
| 6165 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6166 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6168 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6170 | break 2 |
| 6171 | fi |
| 6172 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6173 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6174 | IFS=$as_save_IFS |
| 6175 | |
| 6176 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6177 | ;; |
| 6178 | esac |
| 6179 | fi |
| 6180 | FIND=$ac_cv_path_FIND |
| 6181 | if test -n "$FIND"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 |
| 6183 | $as_echo "$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6184 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6186 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6187 | fi |
| 6188 | |
| 6189 | |
| 6190 | # Extract the first word of "grep", so it can be a program name with args. |
| 6191 | set dummy grep; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6193 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6194 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 6195 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6196 | else |
| 6197 | case $GREP in |
| 6198 | [\\/]* | ?:[\\/]*) |
| 6199 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6200 | ;; |
| 6201 | *) |
| 6202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6203 | for as_dir in $PATH |
| 6204 | do |
| 6205 | IFS=$as_save_IFS |
| 6206 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6209 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6211 | break 2 |
| 6212 | fi |
| 6213 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6214 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6215 | IFS=$as_save_IFS |
| 6216 | |
| 6217 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6218 | ;; |
| 6219 | esac |
| 6220 | fi |
| 6221 | GREP=$ac_cv_path_GREP |
| 6222 | if test -n "$GREP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 |
| 6224 | $as_echo "$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6225 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6227 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6228 | fi |
| 6229 | |
| 6230 | |
| 6231 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6232 | set dummy mkdir; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6234 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6235 | if test "${ac_cv_path_MKDIR+set}" = set; then : |
| 6236 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6237 | else |
| 6238 | case $MKDIR in |
| 6239 | [\\/]* | ?:[\\/]*) |
| 6240 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6241 | ;; |
| 6242 | *) |
| 6243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6244 | for as_dir in $PATH |
| 6245 | do |
| 6246 | IFS=$as_save_IFS |
| 6247 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6248 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6250 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6252 | break 2 |
| 6253 | fi |
| 6254 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6255 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6256 | IFS=$as_save_IFS |
| 6257 | |
| 6258 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6259 | ;; |
| 6260 | esac |
| 6261 | fi |
| 6262 | MKDIR=$ac_cv_path_MKDIR |
| 6263 | if test -n "$MKDIR"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 |
| 6265 | $as_echo "$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6266 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6268 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6269 | fi |
| 6270 | |
| 6271 | |
| 6272 | # Extract the first word of "mv", so it can be a program name with args. |
| 6273 | set dummy mv; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6275 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6276 | if test "${ac_cv_path_MV+set}" = set; then : |
| 6277 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6278 | else |
| 6279 | case $MV in |
| 6280 | [\\/]* | ?:[\\/]*) |
| 6281 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6282 | ;; |
| 6283 | *) |
| 6284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6285 | for as_dir in $PATH |
| 6286 | do |
| 6287 | IFS=$as_save_IFS |
| 6288 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6289 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6291 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6293 | break 2 |
| 6294 | fi |
| 6295 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6296 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6297 | IFS=$as_save_IFS |
| 6298 | |
| 6299 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6300 | ;; |
| 6301 | esac |
| 6302 | fi |
| 6303 | MV=$ac_cv_path_MV |
| 6304 | if test -n "$MV"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
| 6306 | $as_echo "$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6307 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6309 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6310 | fi |
| 6311 | |
| 6312 | |
| 6313 | if test -n "$ac_tool_prefix"; then |
| 6314 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6315 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6317 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6318 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 6319 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6320 | else |
| 6321 | if test -n "$RANLIB"; then |
| 6322 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6323 | else |
| 6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6325 | for as_dir in $PATH |
| 6326 | do |
| 6327 | IFS=$as_save_IFS |
| 6328 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6331 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6333 | break 2 |
| 6334 | fi |
| 6335 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6336 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6337 | IFS=$as_save_IFS |
| 6338 | |
| 6339 | fi |
| 6340 | fi |
| 6341 | RANLIB=$ac_cv_prog_RANLIB |
| 6342 | if test -n "$RANLIB"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6344 | $as_echo "$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6345 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6347 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6348 | fi |
| 6349 | |
| 6350 | |
| 6351 | fi |
| 6352 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6353 | ac_ct_RANLIB=$RANLIB |
| 6354 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6355 | set dummy ranlib; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6357 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6358 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6359 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6360 | else |
| 6361 | if test -n "$ac_ct_RANLIB"; then |
| 6362 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6363 | else |
| 6364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6365 | for as_dir in $PATH |
| 6366 | do |
| 6367 | IFS=$as_save_IFS |
| 6368 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6371 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6373 | break 2 |
| 6374 | fi |
| 6375 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6376 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6377 | IFS=$as_save_IFS |
| 6378 | |
| 6379 | fi |
| 6380 | fi |
| 6381 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6382 | if test -n "$ac_ct_RANLIB"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6384 | $as_echo "$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6385 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6387 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6388 | fi |
| 6389 | |
| 6390 | if test "x$ac_ct_RANLIB" = x; then |
| 6391 | RANLIB=":" |
| 6392 | else |
| 6393 | case $cross_compiling:$ac_tool_warned in |
| 6394 | yes:) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6396 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6397 | ac_tool_warned=yes ;; |
| 6398 | esac |
| 6399 | RANLIB=$ac_ct_RANLIB |
| 6400 | fi |
| 6401 | else |
| 6402 | RANLIB="$ac_cv_prog_RANLIB" |
| 6403 | fi |
| 6404 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6405 | if test -n "$ac_tool_prefix"; then |
| 6406 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6407 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6409 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6410 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 6411 | $as_echo_n "(cached) " >&6 |
| 6412 | else |
| 6413 | if test -n "$AR"; then |
| 6414 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6415 | else |
| 6416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6417 | for as_dir in $PATH |
| 6418 | do |
| 6419 | IFS=$as_save_IFS |
| 6420 | test -z "$as_dir" && as_dir=. |
| 6421 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6423 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6425 | break 2 |
| 6426 | fi |
| 6427 | done |
| 6428 | done |
| 6429 | IFS=$as_save_IFS |
| 6430 | |
| 6431 | fi |
| 6432 | fi |
| 6433 | AR=$ac_cv_prog_AR |
| 6434 | if test -n "$AR"; then |
| 6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6436 | $as_echo "$AR" >&6; } |
| 6437 | else |
| 6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6439 | $as_echo "no" >&6; } |
| 6440 | fi |
| 6441 | |
| 6442 | |
| 6443 | fi |
| 6444 | if test -z "$ac_cv_prog_AR"; then |
| 6445 | ac_ct_AR=$AR |
| 6446 | # Extract the first word of "ar", so it can be a program name with args. |
| 6447 | set dummy ar; ac_word=$2 |
| 6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6449 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6450 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 6451 | $as_echo_n "(cached) " >&6 |
| 6452 | else |
| 6453 | if test -n "$ac_ct_AR"; then |
| 6454 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6455 | else |
| 6456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6457 | for as_dir in $PATH |
| 6458 | do |
| 6459 | IFS=$as_save_IFS |
| 6460 | test -z "$as_dir" && as_dir=. |
| 6461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6463 | ac_cv_prog_ac_ct_AR="ar" |
| 6464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6465 | break 2 |
| 6466 | fi |
| 6467 | done |
| 6468 | done |
| 6469 | IFS=$as_save_IFS |
| 6470 | |
| 6471 | fi |
| 6472 | fi |
| 6473 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6474 | if test -n "$ac_ct_AR"; then |
| 6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6476 | $as_echo "$ac_ct_AR" >&6; } |
| 6477 | else |
| 6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6479 | $as_echo "no" >&6; } |
| 6480 | fi |
| 6481 | |
| 6482 | if test "x$ac_ct_AR" = x; then |
| 6483 | AR="false" |
| 6484 | else |
| 6485 | case $cross_compiling:$ac_tool_warned in |
| 6486 | yes:) |
| 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6488 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6489 | ac_tool_warned=yes ;; |
| 6490 | esac |
| 6491 | AR=$ac_ct_AR |
| 6492 | fi |
| 6493 | else |
| 6494 | AR="$ac_cv_prog_AR" |
| 6495 | fi |
| 6496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6497 | # Extract the first word of "rm", so it can be a program name with args. |
| 6498 | set dummy rm; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6500 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6501 | if test "${ac_cv_path_RM+set}" = set; then : |
| 6502 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6503 | else |
| 6504 | case $RM in |
| 6505 | [\\/]* | ?:[\\/]*) |
| 6506 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6507 | ;; |
| 6508 | *) |
| 6509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6510 | for as_dir in $PATH |
| 6511 | do |
| 6512 | IFS=$as_save_IFS |
| 6513 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6514 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6516 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6518 | break 2 |
| 6519 | fi |
| 6520 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6521 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6522 | IFS=$as_save_IFS |
| 6523 | |
| 6524 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6525 | ;; |
| 6526 | esac |
| 6527 | fi |
| 6528 | RM=$ac_cv_path_RM |
| 6529 | if test -n "$RM"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
| 6531 | $as_echo "$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6532 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6534 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6535 | fi |
| 6536 | |
| 6537 | |
| 6538 | # Extract the first word of "sed", so it can be a program name with args. |
| 6539 | set dummy sed; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6541 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6542 | if test "${ac_cv_path_SED+set}" = set; then : |
| 6543 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6544 | else |
| 6545 | case $SED in |
| 6546 | [\\/]* | ?:[\\/]*) |
| 6547 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6548 | ;; |
| 6549 | *) |
| 6550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6551 | for as_dir in $PATH |
| 6552 | do |
| 6553 | IFS=$as_save_IFS |
| 6554 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6557 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6559 | break 2 |
| 6560 | fi |
| 6561 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6562 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6563 | IFS=$as_save_IFS |
| 6564 | |
| 6565 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6566 | ;; |
| 6567 | esac |
| 6568 | fi |
| 6569 | SED=$ac_cv_path_SED |
| 6570 | if test -n "$SED"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
| 6572 | $as_echo "$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6573 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6575 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6576 | fi |
| 6577 | |
| 6578 | |
| 6579 | # Extract the first word of "tar", so it can be a program name with args. |
| 6580 | set dummy tar; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6582 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6583 | if test "${ac_cv_path_TAR+set}" = set; then : |
| 6584 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6585 | else |
| 6586 | case $TAR in |
| 6587 | [\\/]* | ?:[\\/]*) |
| 6588 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6589 | ;; |
| 6590 | *) |
| 6591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6592 | for as_dir in $PATH |
| 6593 | do |
| 6594 | IFS=$as_save_IFS |
| 6595 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6598 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6600 | break 2 |
| 6601 | fi |
| 6602 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6603 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6604 | IFS=$as_save_IFS |
| 6605 | |
| 6606 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6607 | ;; |
| 6608 | esac |
| 6609 | fi |
| 6610 | TAR=$ac_cv_path_TAR |
| 6611 | if test -n "$TAR"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| 6613 | $as_echo "$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6614 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6616 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6617 | fi |
| 6618 | |
| 6619 | |
| 6620 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6621 | set dummy pwd; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6623 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6624 | if test "${ac_cv_path_BINPWD+set}" = set; then : |
| 6625 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6626 | else |
| 6627 | case $BINPWD in |
| 6628 | [\\/]* | ?:[\\/]*) |
| 6629 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6630 | ;; |
| 6631 | *) |
| 6632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6633 | for as_dir in $PATH |
| 6634 | do |
| 6635 | IFS=$as_save_IFS |
| 6636 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6639 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6641 | break 2 |
| 6642 | fi |
| 6643 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6644 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6645 | IFS=$as_save_IFS |
| 6646 | |
| 6647 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6648 | ;; |
| 6649 | esac |
| 6650 | fi |
| 6651 | BINPWD=$ac_cv_path_BINPWD |
| 6652 | if test -n "$BINPWD"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5 |
| 6654 | $as_echo "$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6655 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6657 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6658 | fi |
| 6659 | |
| 6660 | |
| 6661 | |
| 6662 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6663 | set dummy Graphviz; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6665 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6666 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then : |
| 6667 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6668 | else |
| 6669 | case $GRAPHVIZ in |
| 6670 | [\\/]* | ?:[\\/]*) |
| 6671 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6672 | ;; |
| 6673 | *) |
| 6674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6675 | for as_dir in $PATH |
| 6676 | do |
| 6677 | IFS=$as_save_IFS |
| 6678 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6679 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6681 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6683 | break 2 |
| 6684 | fi |
| 6685 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6686 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6687 | IFS=$as_save_IFS |
| 6688 | |
| 6689 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6690 | ;; |
| 6691 | esac |
| 6692 | fi |
| 6693 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6694 | if test -n "$GRAPHVIZ"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5 |
| 6696 | $as_echo "$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6697 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6699 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6700 | fi |
| 6701 | |
| 6702 | |
| 6703 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6704 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6705 | $as_echo "#define HAVE_GRAPHVIZ 1" >>confdefs.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6706 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6707 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6708 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6709 | fi |
| 6710 | |
| 6711 | cat >>confdefs.h <<_ACEOF |
| 6712 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6713 | _ACEOF |
| 6714 | |
| 6715 | fi |
| 6716 | # Extract the first word of "dot", so it can be a program name with args. |
| 6717 | set dummy dot; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6719 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6720 | if test "${ac_cv_path_DOT+set}" = set; then : |
| 6721 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6722 | else |
| 6723 | case $DOT in |
| 6724 | [\\/]* | ?:[\\/]*) |
| 6725 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6726 | ;; |
| 6727 | *) |
| 6728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6729 | for as_dir in $PATH |
| 6730 | do |
| 6731 | IFS=$as_save_IFS |
| 6732 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6735 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6737 | break 2 |
| 6738 | fi |
| 6739 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6740 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6741 | IFS=$as_save_IFS |
| 6742 | |
| 6743 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6744 | ;; |
| 6745 | esac |
| 6746 | fi |
| 6747 | DOT=$ac_cv_path_DOT |
| 6748 | if test -n "$DOT"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 |
| 6750 | $as_echo "$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6751 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6753 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6754 | fi |
| 6755 | |
| 6756 | |
| 6757 | if test "$DOT" != "echo dot" ; then |
| 6758 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6759 | $as_echo "#define HAVE_DOT 1" >>confdefs.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6760 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6761 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6762 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6763 | fi |
| 6764 | |
| 6765 | cat >>confdefs.h <<_ACEOF |
| 6766 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6767 | _ACEOF |
| 6768 | |
| 6769 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6770 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6771 | set dummy fdp; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6773 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6774 | if test "${ac_cv_path_FDP+set}" = set; then : |
| 6775 | $as_echo_n "(cached) " >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6776 | else |
| 6777 | case $FDP in |
| 6778 | [\\/]* | ?:[\\/]*) |
| 6779 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6780 | ;; |
| 6781 | *) |
| 6782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6783 | for as_dir in $PATH |
| 6784 | do |
| 6785 | IFS=$as_save_IFS |
| 6786 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6787 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6789 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6791 | break 2 |
| 6792 | fi |
| 6793 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6794 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6795 | IFS=$as_save_IFS |
| 6796 | |
| 6797 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6798 | ;; |
| 6799 | esac |
| 6800 | fi |
| 6801 | FDP=$ac_cv_path_FDP |
| 6802 | if test -n "$FDP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FDP" >&5 |
| 6804 | $as_echo "$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6805 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6807 | $as_echo "no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6808 | fi |
| 6809 | |
| 6810 | |
| 6811 | if test "$FDP" != "echo fdp" ; then |
| 6812 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6813 | $as_echo "#define HAVE_FDP 1" >>confdefs.h |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6814 | |
| 6815 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6816 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6817 | fi |
| 6818 | |
| 6819 | cat >>confdefs.h <<_ACEOF |
| 6820 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6821 | _ACEOF |
| 6822 | |
| 6823 | fi |
| 6824 | # Extract the first word of "neato", so it can be a program name with args. |
| 6825 | set dummy neato; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6827 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6828 | if test "${ac_cv_path_NEATO+set}" = set; then : |
| 6829 | $as_echo_n "(cached) " >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6830 | else |
| 6831 | case $NEATO in |
| 6832 | [\\/]* | ?:[\\/]*) |
| 6833 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6834 | ;; |
| 6835 | *) |
| 6836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6837 | for as_dir in $PATH |
| 6838 | do |
| 6839 | IFS=$as_save_IFS |
| 6840 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6841 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6843 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6845 | break 2 |
| 6846 | fi |
| 6847 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6848 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6849 | IFS=$as_save_IFS |
| 6850 | |
| 6851 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6852 | ;; |
| 6853 | esac |
| 6854 | fi |
| 6855 | NEATO=$ac_cv_path_NEATO |
| 6856 | if test -n "$NEATO"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEATO" >&5 |
| 6858 | $as_echo "$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6859 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6861 | $as_echo "no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6862 | fi |
| 6863 | |
| 6864 | |
| 6865 | if test "$NEATO" != "echo neato" ; then |
| 6866 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6867 | $as_echo "#define HAVE_NEATO 1" >>confdefs.h |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6868 | |
| 6869 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6870 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6871 | fi |
| 6872 | |
| 6873 | cat >>confdefs.h <<_ACEOF |
| 6874 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6875 | _ACEOF |
| 6876 | |
| 6877 | fi |
| 6878 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6879 | set dummy twopi; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6881 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6882 | if test "${ac_cv_path_TWOPI+set}" = set; then : |
| 6883 | $as_echo_n "(cached) " >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6884 | else |
| 6885 | case $TWOPI in |
| 6886 | [\\/]* | ?:[\\/]*) |
| 6887 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6888 | ;; |
| 6889 | *) |
| 6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6891 | for as_dir in $PATH |
| 6892 | do |
| 6893 | IFS=$as_save_IFS |
| 6894 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6895 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6897 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6899 | break 2 |
| 6900 | fi |
| 6901 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6902 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6903 | IFS=$as_save_IFS |
| 6904 | |
| 6905 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6906 | ;; |
| 6907 | esac |
| 6908 | fi |
| 6909 | TWOPI=$ac_cv_path_TWOPI |
| 6910 | if test -n "$TWOPI"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOPI" >&5 |
| 6912 | $as_echo "$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6913 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6915 | $as_echo "no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6916 | fi |
| 6917 | |
| 6918 | |
| 6919 | if test "$TWOPI" != "echo twopi" ; then |
| 6920 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6921 | $as_echo "#define HAVE_TWOPI 1" >>confdefs.h |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6922 | |
| 6923 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6924 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6925 | fi |
| 6926 | |
| 6927 | cat >>confdefs.h <<_ACEOF |
| 6928 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6929 | _ACEOF |
| 6930 | |
| 6931 | fi |
| 6932 | # Extract the first word of "circo", so it can be a program name with args. |
| 6933 | set dummy circo; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6935 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6936 | if test "${ac_cv_path_CIRCO+set}" = set; then : |
| 6937 | $as_echo_n "(cached) " >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6938 | else |
| 6939 | case $CIRCO in |
| 6940 | [\\/]* | ?:[\\/]*) |
| 6941 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6942 | ;; |
| 6943 | *) |
| 6944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6945 | for as_dir in $PATH |
| 6946 | do |
| 6947 | IFS=$as_save_IFS |
| 6948 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6951 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6953 | break 2 |
| 6954 | fi |
| 6955 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6956 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6957 | IFS=$as_save_IFS |
| 6958 | |
| 6959 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6960 | ;; |
| 6961 | esac |
| 6962 | fi |
| 6963 | CIRCO=$ac_cv_path_CIRCO |
| 6964 | if test -n "$CIRCO"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CIRCO" >&5 |
| 6966 | $as_echo "$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6967 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6969 | $as_echo "no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6970 | fi |
| 6971 | |
| 6972 | |
| 6973 | if test "$CIRCO" != "echo circo" ; then |
| 6974 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6975 | $as_echo "#define HAVE_CIRCO 1" >>confdefs.h |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6976 | |
| 6977 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6978 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6979 | fi |
| 6980 | |
| 6981 | cat >>confdefs.h <<_ACEOF |
| 6982 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6983 | _ACEOF |
| 6984 | |
| 6985 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6986 | for ac_prog in gv gsview32 |
| 6987 | do |
| 6988 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6989 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6991 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6992 | if test "${ac_cv_path_GV+set}" = set; then : |
| 6993 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6994 | else |
| 6995 | case $GV in |
| 6996 | [\\/]* | ?:[\\/]*) |
| 6997 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6998 | ;; |
| 6999 | *) |
| 7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7001 | for as_dir in $PATH |
| 7002 | do |
| 7003 | IFS=$as_save_IFS |
| 7004 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7005 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7009 | break 2 |
| 7010 | fi |
| 7011 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7012 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7013 | IFS=$as_save_IFS |
| 7014 | |
| 7015 | ;; |
| 7016 | esac |
| 7017 | fi |
| 7018 | GV=$ac_cv_path_GV |
| 7019 | if test -n "$GV"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5 |
| 7021 | $as_echo "$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7022 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7024 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7025 | fi |
| 7026 | |
| 7027 | |
| 7028 | test -n "$GV" && break |
| 7029 | done |
| 7030 | test -n "$GV" || GV="echo gv" |
| 7031 | |
| 7032 | if test "$GV" != "echo gv" ; then |
| 7033 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7034 | $as_echo "#define HAVE_GV 1" >>confdefs.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7035 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7036 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7037 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7038 | fi |
| 7039 | |
| 7040 | cat >>confdefs.h <<_ACEOF |
| 7041 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7042 | _ACEOF |
| 7043 | |
| 7044 | fi |
| 7045 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7046 | set dummy dotty; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7048 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7049 | if test "${ac_cv_path_DOTTY+set}" = set; then : |
| 7050 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7051 | else |
| 7052 | case $DOTTY in |
| 7053 | [\\/]* | ?:[\\/]*) |
| 7054 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7055 | ;; |
| 7056 | *) |
| 7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7058 | for as_dir in $PATH |
| 7059 | do |
| 7060 | IFS=$as_save_IFS |
| 7061 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7064 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7066 | break 2 |
| 7067 | fi |
| 7068 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7069 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7070 | IFS=$as_save_IFS |
| 7071 | |
| 7072 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7073 | ;; |
| 7074 | esac |
| 7075 | fi |
| 7076 | DOTTY=$ac_cv_path_DOTTY |
| 7077 | if test -n "$DOTTY"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTY" >&5 |
| 7079 | $as_echo "$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7080 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7082 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7083 | fi |
| 7084 | |
| 7085 | |
| 7086 | if test "$DOTTY" != "echo dotty" ; then |
| 7087 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7088 | $as_echo "#define HAVE_DOTTY 1" >>confdefs.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7089 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7090 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7091 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7092 | fi |
| 7093 | |
| 7094 | cat >>confdefs.h <<_ACEOF |
| 7095 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7096 | _ACEOF |
| 7097 | |
| 7098 | fi |
| 7099 | |
| 7100 | |
| 7101 | # Extract the first word of "perl", so it can be a program name with args. |
| 7102 | set dummy perl; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7104 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7105 | if test "${ac_cv_path_PERL+set}" = set; then : |
| 7106 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7107 | else |
| 7108 | case $PERL in |
| 7109 | [\\/]* | ?:[\\/]*) |
| 7110 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7111 | ;; |
| 7112 | *) |
| 7113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7114 | for as_dir in $PATH |
| 7115 | do |
| 7116 | IFS=$as_save_IFS |
| 7117 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7120 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7122 | break 2 |
| 7123 | fi |
| 7124 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7125 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7126 | IFS=$as_save_IFS |
| 7127 | |
| 7128 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7129 | ;; |
| 7130 | esac |
| 7131 | fi |
| 7132 | PERL=$ac_cv_path_PERL |
| 7133 | if test -n "$PERL"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| 7135 | $as_echo "$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7136 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7138 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7139 | fi |
| 7140 | |
| 7141 | |
| 7142 | if test "$PERL" != "none"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl 5.006 or newer" >&5 |
| 7144 | $as_echo_n "checking for Perl 5.006 or newer... " >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7145 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7147 | $as_echo "yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7148 | else |
| 7149 | PERL=none |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 7151 | $as_echo "not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7152 | fi |
| 7153 | fi |
| 7154 | |
| 7155 | |
| 7156 | if test x"$PERL" = xnone; then |
| 7157 | HAVE_PERL=0 |
| 7158 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7159 | as_fn_error "perl is required but was not found, please install it" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7160 | else |
| 7161 | HAVE_PERL=1 |
| 7162 | |
| 7163 | fi |
| 7164 | |
| 7165 | # Find a good install program. We prefer a C program (faster), |
| 7166 | # so one script is as good as another. But avoid the broken or |
| 7167 | # incompatible versions: |
| 7168 | # SysV /etc/install, /usr/sbin/install |
| 7169 | # SunOS /usr/etc/install |
| 7170 | # IRIX /sbin/install |
| 7171 | # AIX /bin/install |
| 7172 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7173 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7174 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7175 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7176 | # OS/2's system install, which has a completely different semantic |
| 7177 | # ./install, which can be erroneously created by make from ./install.sh. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7178 | # Reject install programs that cannot install multiple files. |
| 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 7180 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7181 | if test -z "$INSTALL"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7182 | if test "${ac_cv_path_install+set}" = set; then : |
| 7183 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7184 | else |
| 7185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7186 | for as_dir in $PATH |
| 7187 | do |
| 7188 | IFS=$as_save_IFS |
| 7189 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7190 | # Account for people who put trailing slashes in PATH elements. |
| 7191 | case $as_dir/ in #(( |
| 7192 | ./ | .// | /[cC]/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7193 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7194 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7195 | /usr/ucb/* ) ;; |
| 7196 | *) |
| 7197 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7198 | # Don't use installbsd from OSF since it installs stuff as root |
| 7199 | # by default. |
| 7200 | for ac_prog in ginstall scoinst install; do |
| 7201 | for ac_exec_ext in '' $ac_executable_extensions; do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7202 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7203 | if test $ac_prog = install && |
| 7204 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7205 | # AIX install. It has an incompatible calling convention. |
| 7206 | : |
| 7207 | elif test $ac_prog = install && |
| 7208 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7209 | # program-specific install script used by HP pwplus--don't use. |
| 7210 | : |
| 7211 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7212 | rm -rf conftest.one conftest.two conftest.dir |
| 7213 | echo one > conftest.one |
| 7214 | echo two > conftest.two |
| 7215 | mkdir conftest.dir |
| 7216 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 7217 | test -s conftest.one && test -s conftest.two && |
| 7218 | test -s conftest.dir/conftest.one && |
| 7219 | test -s conftest.dir/conftest.two |
| 7220 | then |
| 7221 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7222 | break 3 |
| 7223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | fi |
| 7225 | fi |
| 7226 | done |
| 7227 | done |
| 7228 | ;; |
| 7229 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7230 | |
| 7231 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7232 | IFS=$as_save_IFS |
| 7233 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7234 | rm -rf conftest.one conftest.two conftest.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7235 | |
| 7236 | fi |
| 7237 | if test "${ac_cv_path_install+set}" = set; then |
| 7238 | INSTALL=$ac_cv_path_install |
| 7239 | else |
| 7240 | # As a last resort, use the slow shell script. Don't cache a |
| 7241 | # value for INSTALL within a source directory, because that will |
| 7242 | # break other packages using the cache if that directory is |
| 7243 | # removed, or if the value is a relative name. |
| 7244 | INSTALL=$ac_install_sh |
| 7245 | fi |
| 7246 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 7248 | $as_echo "$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7249 | |
| 7250 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7251 | # It thinks the first close brace ends the variable substitution. |
| 7252 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7253 | |
| 7254 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7255 | |
| 7256 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7257 | |
| 7258 | |
| 7259 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7260 | set dummy bzip2; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7262 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7263 | if test "${ac_cv_path_BZIP2+set}" = set; then : |
| 7264 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7265 | else |
| 7266 | case $BZIP2 in |
| 7267 | [\\/]* | ?:[\\/]*) |
| 7268 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7269 | ;; |
| 7270 | *) |
| 7271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7272 | for as_dir in $PATH |
| 7273 | do |
| 7274 | IFS=$as_save_IFS |
| 7275 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7278 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7280 | break 2 |
| 7281 | fi |
| 7282 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7283 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7284 | IFS=$as_save_IFS |
| 7285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7286 | ;; |
| 7287 | esac |
| 7288 | fi |
| 7289 | BZIP2=$ac_cv_path_BZIP2 |
| 7290 | if test -n "$BZIP2"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5 |
| 7292 | $as_echo "$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7293 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7295 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7300 | set dummy doxygen; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7302 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7303 | if test "${ac_cv_path_DOXYGEN+set}" = set; then : |
| 7304 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7305 | else |
| 7306 | case $DOXYGEN in |
| 7307 | [\\/]* | ?:[\\/]*) |
| 7308 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7309 | ;; |
| 7310 | *) |
| 7311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7312 | for as_dir in $PATH |
| 7313 | do |
| 7314 | IFS=$as_save_IFS |
| 7315 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7318 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7320 | break 2 |
| 7321 | fi |
| 7322 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7323 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7324 | IFS=$as_save_IFS |
| 7325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7326 | ;; |
| 7327 | esac |
| 7328 | fi |
| 7329 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7330 | if test -n "$DOXYGEN"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
| 7332 | $as_echo "$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7333 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7335 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7336 | fi |
| 7337 | |
| 7338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7339 | # Extract the first word of "groff", so it can be a program name with args. |
| 7340 | set dummy groff; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7342 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7343 | if test "${ac_cv_path_GROFF+set}" = set; then : |
| 7344 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7345 | else |
| 7346 | case $GROFF in |
| 7347 | [\\/]* | ?:[\\/]*) |
| 7348 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7349 | ;; |
| 7350 | *) |
| 7351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7352 | for as_dir in $PATH |
| 7353 | do |
| 7354 | IFS=$as_save_IFS |
| 7355 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7358 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7360 | break 2 |
| 7361 | fi |
| 7362 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7363 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7364 | IFS=$as_save_IFS |
| 7365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7366 | ;; |
| 7367 | esac |
| 7368 | fi |
| 7369 | GROFF=$ac_cv_path_GROFF |
| 7370 | if test -n "$GROFF"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 |
| 7372 | $as_echo "$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7373 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7375 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7376 | fi |
| 7377 | |
| 7378 | |
| 7379 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7380 | set dummy gzip; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7382 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7383 | if test "${ac_cv_path_GZIP+set}" = set; then : |
| 7384 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7385 | else |
| 7386 | case $GZIP in |
| 7387 | [\\/]* | ?:[\\/]*) |
| 7388 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7389 | ;; |
| 7390 | *) |
| 7391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7392 | for as_dir in $PATH |
| 7393 | do |
| 7394 | IFS=$as_save_IFS |
| 7395 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7398 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7400 | break 2 |
| 7401 | fi |
| 7402 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7403 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | IFS=$as_save_IFS |
| 7405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7406 | ;; |
| 7407 | esac |
| 7408 | fi |
| 7409 | GZIP=$ac_cv_path_GZIP |
| 7410 | if test -n "$GZIP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 |
| 7412 | $as_echo "$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7413 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7415 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7416 | fi |
| 7417 | |
| 7418 | |
| 7419 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7420 | set dummy pod2html; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7422 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7423 | if test "${ac_cv_path_POD2HTML+set}" = set; then : |
| 7424 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7425 | else |
| 7426 | case $POD2HTML in |
| 7427 | [\\/]* | ?:[\\/]*) |
| 7428 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7429 | ;; |
| 7430 | *) |
| 7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7432 | for as_dir in $PATH |
| 7433 | do |
| 7434 | IFS=$as_save_IFS |
| 7435 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7438 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7440 | break 2 |
| 7441 | fi |
| 7442 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7443 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7444 | IFS=$as_save_IFS |
| 7445 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7446 | ;; |
| 7447 | esac |
| 7448 | fi |
| 7449 | POD2HTML=$ac_cv_path_POD2HTML |
| 7450 | if test -n "$POD2HTML"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 |
| 7452 | $as_echo "$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7453 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7455 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7456 | fi |
| 7457 | |
| 7458 | |
| 7459 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7460 | set dummy pod2man; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7462 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7463 | if test "${ac_cv_path_POD2MAN+set}" = set; then : |
| 7464 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7465 | else |
| 7466 | case $POD2MAN in |
| 7467 | [\\/]* | ?:[\\/]*) |
| 7468 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7469 | ;; |
| 7470 | *) |
| 7471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7472 | for as_dir in $PATH |
| 7473 | do |
| 7474 | IFS=$as_save_IFS |
| 7475 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7478 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7480 | break 2 |
| 7481 | fi |
| 7482 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7483 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7484 | IFS=$as_save_IFS |
| 7485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7486 | ;; |
| 7487 | esac |
| 7488 | fi |
| 7489 | POD2MAN=$ac_cv_path_POD2MAN |
| 7490 | if test -n "$POD2MAN"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 |
| 7492 | $as_echo "$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7493 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7495 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7496 | fi |
| 7497 | |
| 7498 | |
| 7499 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7500 | set dummy runtest; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7502 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7503 | if test "${ac_cv_path_RUNTEST+set}" = set; then : |
| 7504 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | else |
| 7506 | case $RUNTEST in |
| 7507 | [\\/]* | ?:[\\/]*) |
| 7508 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7509 | ;; |
| 7510 | *) |
| 7511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7512 | for as_dir in $PATH |
| 7513 | do |
| 7514 | IFS=$as_save_IFS |
| 7515 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7518 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7520 | break 2 |
| 7521 | fi |
| 7522 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7523 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7524 | IFS=$as_save_IFS |
| 7525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7526 | ;; |
| 7527 | esac |
| 7528 | fi |
| 7529 | RUNTEST=$ac_cv_path_RUNTEST |
| 7530 | if test -n "$RUNTEST"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
| 7532 | $as_echo "$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7533 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7535 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7536 | fi |
| 7537 | |
| 7538 | |
| 7539 | |
| 7540 | no_itcl=true |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the tclsh program in tclinclude directory" >&5 |
| 7542 | $as_echo_n "checking for the tclsh program in tclinclude directory... " >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7543 | |
| 7544 | # Check whether --with-tclinclude was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7545 | if test "${with_tclinclude+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7546 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7547 | else |
| 7548 | with_tclinclude='' |
| 7549 | fi |
| 7550 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7551 | if test "${ac_cv_path_tclsh+set}" = set; then : |
| 7552 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7553 | else |
| 7554 | |
| 7555 | if test x"${with_tclinclude}" != x ; then |
| 7556 | if test -f ${with_tclinclude}/tclsh ; then |
| 7557 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7558 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7559 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7560 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7561 | as_fn_error "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7562 | fi |
| 7563 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7564 | fi |
| 7565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7566 | |
| 7567 | if test x"${ac_cv_path_tclsh}" = x ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 7569 | $as_echo "none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7570 | 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 |
| 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 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7575 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7576 | if test "${ac_cv_path_TCLSH+set}" = set; then : |
| 7577 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7578 | else |
| 7579 | case $TCLSH in |
| 7580 | [\\/]* | ?:[\\/]*) |
| 7581 | ac_cv_path_TCLSH="$TCLSH" # 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=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7591 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7593 | break 2 |
| 7594 | fi |
| 7595 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7596 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7597 | IFS=$as_save_IFS |
| 7598 | |
| 7599 | ;; |
| 7600 | esac |
| 7601 | fi |
| 7602 | TCLSH=$ac_cv_path_TCLSH |
| 7603 | if test -n "$TCLSH"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5 |
| 7605 | $as_echo "$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7606 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7608 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7609 | fi |
| 7610 | |
| 7611 | |
| 7612 | test -n "$TCLSH" && break |
| 7613 | done |
| 7614 | |
| 7615 | if test x"${TCLSH}" = x ; then |
| 7616 | ac_cv_path_tclsh=''; |
| 7617 | else |
| 7618 | ac_cv_path_tclsh="${TCLSH}"; |
| 7619 | fi |
| 7620 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_tclsh}" >&5 |
| 7622 | $as_echo "${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7623 | TCLSH="${ac_cv_path_tclsh}" |
| 7624 | |
| 7625 | fi |
| 7626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7627 | # Extract the first word of "zip", so it can be a program name with args. |
| 7628 | set dummy zip; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7630 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7631 | if test "${ac_cv_path_ZIP+set}" = set; then : |
| 7632 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7633 | else |
| 7634 | case $ZIP in |
| 7635 | [\\/]* | ?:[\\/]*) |
| 7636 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7637 | ;; |
| 7638 | *) |
| 7639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7640 | for as_dir in $PATH |
| 7641 | do |
| 7642 | IFS=$as_save_IFS |
| 7643 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7646 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7648 | break 2 |
| 7649 | fi |
| 7650 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7651 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7652 | IFS=$as_save_IFS |
| 7653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7654 | ;; |
| 7655 | esac |
| 7656 | fi |
| 7657 | ZIP=$ac_cv_path_ZIP |
| 7658 | if test -n "$ZIP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
| 7660 | $as_echo "$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7661 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7663 | $as_echo "no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7664 | fi |
| 7665 | |
| 7666 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7667 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7668 | do |
| 7669 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7670 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7672 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7673 | if test "${ac_cv_path_OCAMLC+set}" = set; then : |
| 7674 | $as_echo_n "(cached) " >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7675 | else |
| 7676 | case $OCAMLC in |
| 7677 | [\\/]* | ?:[\\/]*) |
| 7678 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7679 | ;; |
| 7680 | *) |
| 7681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7682 | for as_dir in $PATH |
| 7683 | do |
| 7684 | IFS=$as_save_IFS |
| 7685 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7688 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7690 | break 2 |
| 7691 | fi |
| 7692 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7693 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7694 | IFS=$as_save_IFS |
| 7695 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7696 | ;; |
| 7697 | esac |
| 7698 | fi |
| 7699 | OCAMLC=$ac_cv_path_OCAMLC |
| 7700 | if test -n "$OCAMLC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5 |
| 7702 | $as_echo "$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7703 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7705 | $as_echo "no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7706 | fi |
| 7707 | |
| 7708 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7709 | test -n "$OCAMLC" && break |
| 7710 | done |
| 7711 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7712 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7713 | do |
| 7714 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7715 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7717 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7718 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then : |
| 7719 | $as_echo_n "(cached) " >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7720 | else |
| 7721 | case $OCAMLOPT in |
| 7722 | [\\/]* | ?:[\\/]*) |
| 7723 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7724 | ;; |
| 7725 | *) |
| 7726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7727 | for as_dir in $PATH |
| 7728 | do |
| 7729 | IFS=$as_save_IFS |
| 7730 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7733 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7735 | break 2 |
| 7736 | fi |
| 7737 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7738 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7739 | IFS=$as_save_IFS |
| 7740 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7741 | ;; |
| 7742 | esac |
| 7743 | fi |
| 7744 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7745 | if test -n "$OCAMLOPT"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5 |
| 7747 | $as_echo "$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7748 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7750 | $as_echo "no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7751 | fi |
| 7752 | |
| 7753 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7754 | test -n "$OCAMLOPT" && break |
| 7755 | done |
| 7756 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7757 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7758 | do |
| 7759 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7760 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7762 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7763 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then : |
| 7764 | $as_echo_n "(cached) " >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7765 | else |
| 7766 | case $OCAMLDEP in |
| 7767 | [\\/]* | ?:[\\/]*) |
| 7768 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7769 | ;; |
| 7770 | *) |
| 7771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7772 | for as_dir in $PATH |
| 7773 | do |
| 7774 | IFS=$as_save_IFS |
| 7775 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7776 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7778 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7780 | break 2 |
| 7781 | fi |
| 7782 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7783 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7784 | IFS=$as_save_IFS |
| 7785 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7786 | ;; |
| 7787 | esac |
| 7788 | fi |
| 7789 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7790 | if test -n "$OCAMLDEP"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5 |
| 7792 | $as_echo "$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7793 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7795 | $as_echo "no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7796 | fi |
| 7797 | |
| 7798 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7799 | test -n "$OCAMLDEP" && break |
| 7800 | done |
| 7801 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7802 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7803 | do |
| 7804 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7805 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7807 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7808 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then : |
| 7809 | $as_echo_n "(cached) " >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7810 | else |
| 7811 | case $OCAMLDOC in |
| 7812 | [\\/]* | ?:[\\/]*) |
| 7813 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7814 | ;; |
| 7815 | *) |
| 7816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7817 | for as_dir in $PATH |
| 7818 | do |
| 7819 | IFS=$as_save_IFS |
| 7820 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7823 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7825 | break 2 |
| 7826 | fi |
| 7827 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7828 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7829 | IFS=$as_save_IFS |
| 7830 | |
| 7831 | ;; |
| 7832 | esac |
| 7833 | fi |
| 7834 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7835 | if test -n "$OCAMLDOC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5 |
| 7837 | $as_echo "$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7838 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7840 | $as_echo "no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7841 | fi |
| 7842 | |
| 7843 | |
| 7844 | test -n "$OCAMLDOC" && break |
| 7845 | done |
| 7846 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7847 | for ac_prog in gas as |
| 7848 | do |
| 7849 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7850 | set dummy $ac_prog; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7852 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7853 | if test "${ac_cv_path_GAS+set}" = set; then : |
| 7854 | $as_echo_n "(cached) " >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7855 | else |
| 7856 | case $GAS in |
| 7857 | [\\/]* | ?:[\\/]*) |
| 7858 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7859 | ;; |
| 7860 | *) |
| 7861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7862 | for as_dir in $PATH |
| 7863 | do |
| 7864 | IFS=$as_save_IFS |
| 7865 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7868 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7870 | break 2 |
| 7871 | fi |
| 7872 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7873 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7874 | IFS=$as_save_IFS |
| 7875 | |
| 7876 | ;; |
| 7877 | esac |
| 7878 | fi |
| 7879 | GAS=$ac_cv_path_GAS |
| 7880 | if test -n "$GAS"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5 |
| 7882 | $as_echo "$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7883 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7885 | $as_echo "no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7886 | fi |
| 7887 | |
| 7888 | |
| 7889 | test -n "$GAS" && break |
| 7890 | done |
| 7891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7892 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5 |
| 7894 | $as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; } |
| 7895 | if test "${llvm_cv_link_use_r+set}" = set; then : |
| 7896 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7897 | else |
| 7898 | ac_ext=c |
| 7899 | ac_cpp='$CPP $CPPFLAGS' |
| 7900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7903 | |
| 7904 | oldcflags="$CFLAGS" |
| 7905 | CFLAGS="$CFLAGS -Wl,-R." |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7907 | /* end confdefs.h. */ |
| 7908 | |
| 7909 | int |
| 7910 | main () |
| 7911 | { |
| 7912 | int main() { return 0; } |
| 7913 | ; |
| 7914 | return 0; |
| 7915 | } |
| 7916 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7917 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7918 | llvm_cv_link_use_r=yes |
| 7919 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7920 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7921 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7922 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7923 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7924 | CFLAGS="$oldcflags" |
| 7925 | ac_ext=c |
| 7926 | ac_cpp='$CPP $CPPFLAGS' |
| 7927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7930 | |
| 7931 | |
| 7932 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_r" >&5 |
| 7934 | $as_echo "$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7935 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7936 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7937 | $as_echo "#define HAVE_LINK_R 1" >>confdefs.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7938 | |
| 7939 | fi |
| 7940 | |
| 7941 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7943 | $as_echo_n "checking for compiler -Wl,-export-dynamic option... " >&6; } |
| 7944 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then : |
| 7945 | $as_echo_n "(cached) " >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7946 | else |
| 7947 | ac_ext=c |
| 7948 | ac_cpp='$CPP $CPPFLAGS' |
| 7949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7952 | |
| 7953 | oldcflags="$CFLAGS" |
| 7954 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7956 | /* end confdefs.h. */ |
| 7957 | |
| 7958 | int |
| 7959 | main () |
| 7960 | { |
| 7961 | int main() { return 0; } |
| 7962 | ; |
| 7963 | return 0; |
| 7964 | } |
| 7965 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7966 | if ac_fn_c_try_link "$LINENO"; then : |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7967 | llvm_cv_link_use_export_dynamic=yes |
| 7968 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7969 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7970 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7971 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7972 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7973 | CFLAGS="$oldcflags" |
| 7974 | ac_ext=c |
| 7975 | ac_cpp='$CPP $CPPFLAGS' |
| 7976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7979 | |
| 7980 | |
| 7981 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7983 | $as_echo "$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7984 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7985 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7986 | $as_echo "#define HAVE_LINK_EXPORT_DYNAMIC 1" >>confdefs.h |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7987 | |
| 7988 | fi |
| 7989 | |
| 7990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7991 | |
| 7992 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 7994 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 7995 | if test "${ac_cv_c_const+set}" = set; then : |
| 7996 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7997 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 7998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7999 | /* end confdefs.h. */ |
| 8000 | |
| 8001 | int |
| 8002 | main () |
| 8003 | { |
| 8004 | /* FIXME: Include the comments suggested by Paul. */ |
| 8005 | #ifndef __cplusplus |
| 8006 | /* Ultrix mips cc rejects this. */ |
| 8007 | typedef int charset[2]; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8008 | const charset cs; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8009 | /* SunOS 4.1.1 cc rejects this. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8010 | char const *const *pcpcc; |
| 8011 | char **ppc; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8012 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8013 | struct point {int x, y;}; |
| 8014 | static struct point const zero = {0,0}; |
| 8015 | /* AIX XL C 1.02.0.0 rejects this. |
| 8016 | It does not let you subtract one const X* pointer from another in |
| 8017 | an arm of an if-expression whose if-part is not a constant |
| 8018 | expression */ |
| 8019 | const char *g = "string"; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8020 | pcpcc = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8021 | /* HPUX 7.0 cc rejects these. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8022 | ++pcpcc; |
| 8023 | ppc = (char**) pcpcc; |
| 8024 | pcpcc = (char const *const *) ppc; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8025 | { /* SCO 3.2v4 cc rejects this. */ |
| 8026 | char *t; |
| 8027 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8028 | |
| 8029 | *t++ = 0; |
| 8030 | if (s) return 0; |
| 8031 | } |
| 8032 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8033 | int x[] = {25, 17}; |
| 8034 | const int *foo = &x[0]; |
| 8035 | ++foo; |
| 8036 | } |
| 8037 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8038 | typedef const int *iptr; |
| 8039 | iptr p = 0; |
| 8040 | ++p; |
| 8041 | } |
| 8042 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8043 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8044 | struct s { int j; const int *ap[3]; }; |
| 8045 | struct s *b; b->j = 5; |
| 8046 | } |
| 8047 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8048 | const int foo = 10; |
| 8049 | if (!foo) return 0; |
| 8050 | } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8051 | return !cs[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8052 | #endif |
| 8053 | |
| 8054 | ; |
| 8055 | return 0; |
| 8056 | } |
| 8057 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8058 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8059 | ac_cv_c_const=yes |
| 8060 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8061 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8062 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8064 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 8066 | $as_echo "$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8067 | if test $ac_cv_c_const = no; then |
| 8068 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8069 | $as_echo "#define const /**/" >>confdefs.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8070 | |
| 8071 | fi |
| 8072 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8073 | ac_header_dirent=no |
| 8074 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8075 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 8077 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 8078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 8079 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8080 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8082 | /* end confdefs.h. */ |
| 8083 | #include <sys/types.h> |
| 8084 | #include <$ac_hdr> |
| 8085 | |
| 8086 | int |
| 8087 | main () |
| 8088 | { |
| 8089 | if ((DIR *) 0) |
| 8090 | return 0; |
| 8091 | ; |
| 8092 | return 0; |
| 8093 | } |
| 8094 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8095 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8096 | eval "$as_ac_Header=yes" |
| 8097 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8098 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8101 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8102 | eval ac_res=\$$as_ac_Header |
| 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 8104 | $as_echo "$ac_res" >&6; } |
| 8105 | eval as_val=\$$as_ac_Header |
| 8106 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8107 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8108 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8109 | _ACEOF |
| 8110 | |
| 8111 | ac_header_dirent=$ac_hdr; break |
| 8112 | fi |
| 8113 | |
| 8114 | done |
| 8115 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8116 | if test $ac_header_dirent = dirent.h; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 8118 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 8119 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 8120 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8121 | else |
| 8122 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8124 | /* end confdefs.h. */ |
| 8125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8126 | /* Override any GCC internal prototype to avoid an error. |
| 8127 | Use char because int might match the return type of a GCC |
| 8128 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8129 | #ifdef __cplusplus |
| 8130 | extern "C" |
| 8131 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8132 | char opendir (); |
| 8133 | int |
| 8134 | main () |
| 8135 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8136 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8137 | ; |
| 8138 | return 0; |
| 8139 | } |
| 8140 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8141 | for ac_lib in '' dir; do |
| 8142 | if test -z "$ac_lib"; then |
| 8143 | ac_res="none required" |
| 8144 | else |
| 8145 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8146 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8147 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8148 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8149 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8150 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8151 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8152 | conftest$ac_exeext |
| 8153 | if test "${ac_cv_search_opendir+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8154 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8155 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8156 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8157 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 8158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8159 | else |
| 8160 | ac_cv_search_opendir=no |
| 8161 | fi |
| 8162 | rm conftest.$ac_ext |
| 8163 | LIBS=$ac_func_search_save_LIBS |
| 8164 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 8166 | $as_echo "$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8167 | ac_res=$ac_cv_search_opendir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8168 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8169 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8171 | fi |
| 8172 | |
| 8173 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 8175 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 8176 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 8177 | $as_echo_n "(cached) " >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8178 | else |
| 8179 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8181 | /* end confdefs.h. */ |
| 8182 | |
| 8183 | /* Override any GCC internal prototype to avoid an error. |
| 8184 | Use char because int might match the return type of a GCC |
| 8185 | builtin and then its argument prototype would still apply. */ |
| 8186 | #ifdef __cplusplus |
| 8187 | extern "C" |
| 8188 | #endif |
| 8189 | char opendir (); |
| 8190 | int |
| 8191 | main () |
| 8192 | { |
| 8193 | return opendir (); |
| 8194 | ; |
| 8195 | return 0; |
| 8196 | } |
| 8197 | _ACEOF |
| 8198 | for ac_lib in '' x; do |
| 8199 | if test -z "$ac_lib"; then |
| 8200 | ac_res="none required" |
| 8201 | else |
| 8202 | ac_res=-l$ac_lib |
| 8203 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8204 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8205 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8206 | ac_cv_search_opendir=$ac_res |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8207 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8208 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8209 | conftest$ac_exeext |
| 8210 | if test "${ac_cv_search_opendir+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | break |
| 8212 | fi |
| 8213 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8214 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 8215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8216 | else |
| 8217 | ac_cv_search_opendir=no |
| 8218 | fi |
| 8219 | rm conftest.$ac_ext |
| 8220 | LIBS=$ac_func_search_save_LIBS |
| 8221 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 8223 | $as_echo "$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8224 | ac_res=$ac_cv_search_opendir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8225 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8226 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8227 | |
| 8228 | fi |
| 8229 | |
| 8230 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8231 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8232 | for ac_header in dlfcn.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8233 | do : |
| 8234 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 8235 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8236 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8237 | #define HAVE_DLFCN_H 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8238 | _ACEOF |
| 8239 | |
| 8240 | fi |
| 8241 | |
| 8242 | done |
| 8243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8244 | # Check whether --enable-ltdl-install was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8245 | if test "${enable_ltdl_install+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8246 | enableval=$enable_ltdl_install; |
| 8247 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8248 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8249 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8250 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8251 | INSTALL_LTDL_TRUE= |
| 8252 | INSTALL_LTDL_FALSE='#' |
| 8253 | else |
| 8254 | INSTALL_LTDL_TRUE='#' |
| 8255 | INSTALL_LTDL_FALSE= |
| 8256 | fi |
| 8257 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8258 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8259 | CONVENIENCE_LTDL_TRUE= |
| 8260 | CONVENIENCE_LTDL_FALSE='#' |
| 8261 | else |
| 8262 | CONVENIENCE_LTDL_TRUE='#' |
| 8263 | CONVENIENCE_LTDL_FALSE= |
| 8264 | fi |
| 8265 | |
| 8266 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 8268 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8269 | library_names_spec= |
| 8270 | libname_spec='lib$name' |
| 8271 | soname_spec= |
| 8272 | shrext_cmds=".so" |
| 8273 | postinstall_cmds= |
| 8274 | postuninstall_cmds= |
| 8275 | finish_cmds= |
| 8276 | finish_eval= |
| 8277 | shlibpath_var= |
| 8278 | shlibpath_overrides_runpath=unknown |
| 8279 | version_type=none |
| 8280 | dynamic_linker="$host_os ld.so" |
| 8281 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8282 | if test "$GCC" = yes; then |
| 8283 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8284 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8285 | # if the path contains ";" then we assume it to be the separator |
| 8286 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8287 | # assumed that no part of a normal pathname contains ";" but that should |
| 8288 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8289 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8290 | else |
| 8291 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8292 | fi |
| 8293 | else |
| 8294 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8295 | fi |
| 8296 | need_lib_prefix=unknown |
| 8297 | hardcode_into_libs=no |
| 8298 | |
| 8299 | # when you set need_version to no, make sure it does not cause -set_version |
| 8300 | # flags to be left without arguments |
| 8301 | need_version=unknown |
| 8302 | |
| 8303 | case $host_os in |
| 8304 | aix3*) |
| 8305 | version_type=linux |
| 8306 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8307 | shlibpath_var=LIBPATH |
| 8308 | |
| 8309 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8310 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8311 | ;; |
| 8312 | |
| 8313 | aix4* | aix5*) |
| 8314 | version_type=linux |
| 8315 | need_lib_prefix=no |
| 8316 | need_version=no |
| 8317 | hardcode_into_libs=yes |
| 8318 | if test "$host_cpu" = ia64; then |
| 8319 | # AIX 5 supports IA64 |
| 8320 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8321 | shlibpath_var=LD_LIBRARY_PATH |
| 8322 | else |
| 8323 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8324 | # for dependence libraries. The import file would start with |
| 8325 | # the line `#! .'. This would cause the generated library to |
| 8326 | # depend on `.', always an invalid library. This was fixed in |
| 8327 | # development snapshots of GCC prior to 3.0. |
| 8328 | case $host_os in |
| 8329 | aix4 | aix4.[01] | aix4.[01].*) |
| 8330 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8331 | echo ' yes ' |
| 8332 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8333 | : |
| 8334 | else |
| 8335 | can_build_shared=no |
| 8336 | fi |
| 8337 | ;; |
| 8338 | esac |
| 8339 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8340 | # soname into executable. Probably we can add versioning support to |
| 8341 | # collect2, so additional links can be useful in future. |
| 8342 | if test "$aix_use_runtimelinking" = yes; then |
| 8343 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8344 | # instead of lib<name>.a to let people know that these are not |
| 8345 | # typical AIX shared libraries. |
| 8346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8347 | else |
| 8348 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8349 | # and later when we are not doing run time linking. |
| 8350 | library_names_spec='${libname}${release}.a $libname.a' |
| 8351 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8352 | fi |
| 8353 | shlibpath_var=LIBPATH |
| 8354 | fi |
| 8355 | ;; |
| 8356 | |
| 8357 | amigaos*) |
| 8358 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8359 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8360 | 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' |
| 8361 | ;; |
| 8362 | |
| 8363 | beos*) |
| 8364 | library_names_spec='${libname}${shared_ext}' |
| 8365 | dynamic_linker="$host_os ld.so" |
| 8366 | shlibpath_var=LIBRARY_PATH |
| 8367 | ;; |
| 8368 | |
| 8369 | bsdi[45]*) |
| 8370 | version_type=linux |
| 8371 | need_version=no |
| 8372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8374 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8375 | shlibpath_var=LD_LIBRARY_PATH |
| 8376 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8377 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8378 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8379 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8380 | # libtool to hard-code these into programs |
| 8381 | ;; |
| 8382 | |
| 8383 | cygwin* | mingw* | pw32*) |
| 8384 | version_type=windows |
| 8385 | shrext_cmds=".dll" |
| 8386 | need_version=no |
| 8387 | need_lib_prefix=no |
| 8388 | |
| 8389 | case $GCC,$host_os in |
| 8390 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8391 | library_names_spec='$libname.dll.a' |
| 8392 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8393 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8394 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8395 | dldir=$destdir/`dirname \$dlpath`~ |
| 8396 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8397 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8398 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8399 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8400 | dlpath=$dir/\$dldll~ |
| 8401 | $rm \$dlpath' |
| 8402 | shlibpath_overrides_runpath=yes |
| 8403 | |
| 8404 | case $host_os in |
| 8405 | cygwin*) |
| 8406 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8407 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8408 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8409 | ;; |
| 8410 | mingw*) |
| 8411 | # MinGW DLLs use traditional 'lib' prefix |
| 8412 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8413 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8414 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8415 | # It is most probably a Windows format PATH printed by |
| 8416 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8417 | # path with ; separators, and with drive letters. We can handle the |
| 8418 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8419 | # especially as we might pass files found there to a mingw objdump, |
| 8420 | # which wouldn't understand a cygwinified path. Ahh. |
| 8421 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8422 | else |
| 8423 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8424 | fi |
| 8425 | ;; |
| 8426 | pw32*) |
| 8427 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8428 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8429 | ;; |
| 8430 | esac |
| 8431 | ;; |
| 8432 | |
| 8433 | *) |
| 8434 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8435 | ;; |
| 8436 | esac |
| 8437 | dynamic_linker='Win32 ld.exe' |
| 8438 | # FIXME: first we should search . and the directory the executable is in |
| 8439 | shlibpath_var=PATH |
| 8440 | ;; |
| 8441 | |
| 8442 | darwin* | rhapsody*) |
| 8443 | dynamic_linker="$host_os dyld" |
| 8444 | version_type=darwin |
| 8445 | need_lib_prefix=no |
| 8446 | need_version=no |
| 8447 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8448 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8449 | shlibpath_overrides_runpath=yes |
| 8450 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8451 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8452 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8453 | if test "$GCC" = yes; then |
| 8454 | 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"` |
| 8455 | else |
| 8456 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8457 | fi |
| 8458 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8459 | ;; |
| 8460 | |
| 8461 | dgux*) |
| 8462 | version_type=linux |
| 8463 | need_lib_prefix=no |
| 8464 | need_version=no |
| 8465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8466 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8467 | shlibpath_var=LD_LIBRARY_PATH |
| 8468 | ;; |
| 8469 | |
| 8470 | freebsd1*) |
| 8471 | dynamic_linker=no |
| 8472 | ;; |
| 8473 | |
| 8474 | kfreebsd*-gnu) |
| 8475 | version_type=linux |
| 8476 | need_lib_prefix=no |
| 8477 | need_version=no |
| 8478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8479 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8480 | shlibpath_var=LD_LIBRARY_PATH |
| 8481 | shlibpath_overrides_runpath=no |
| 8482 | hardcode_into_libs=yes |
| 8483 | dynamic_linker='GNU ld.so' |
| 8484 | ;; |
| 8485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8486 | freebsd* | dragonfly*) |
| 8487 | # DragonFly does not have aout. When/if they implement a new |
| 8488 | # versioning mechanism, adjust this. |
| 8489 | if test -x /usr/bin/objformat; then |
| 8490 | objformat=`/usr/bin/objformat` |
| 8491 | else |
| 8492 | case $host_os in |
| 8493 | freebsd[123]*) objformat=aout ;; |
| 8494 | *) objformat=elf ;; |
| 8495 | esac |
| 8496 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8497 | version_type=freebsd-$objformat |
| 8498 | case $version_type in |
| 8499 | freebsd-elf*) |
| 8500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8501 | need_version=no |
| 8502 | need_lib_prefix=no |
| 8503 | ;; |
| 8504 | freebsd-*) |
| 8505 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8506 | need_version=yes |
| 8507 | ;; |
| 8508 | esac |
| 8509 | shlibpath_var=LD_LIBRARY_PATH |
| 8510 | case $host_os in |
| 8511 | freebsd2*) |
| 8512 | shlibpath_overrides_runpath=yes |
| 8513 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8514 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8515 | shlibpath_overrides_runpath=yes |
| 8516 | hardcode_into_libs=yes |
| 8517 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8518 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8519 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8520 | shlibpath_overrides_runpath=no |
| 8521 | hardcode_into_libs=yes |
| 8522 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8523 | freebsd*) # from 4.6 on |
| 8524 | shlibpath_overrides_runpath=yes |
| 8525 | hardcode_into_libs=yes |
| 8526 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8527 | esac |
| 8528 | ;; |
| 8529 | |
| 8530 | gnu*) |
| 8531 | version_type=linux |
| 8532 | need_lib_prefix=no |
| 8533 | need_version=no |
| 8534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8535 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8536 | shlibpath_var=LD_LIBRARY_PATH |
| 8537 | hardcode_into_libs=yes |
| 8538 | ;; |
| 8539 | |
| 8540 | hpux9* | hpux10* | hpux11*) |
| 8541 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8542 | # link against other versions. |
| 8543 | version_type=sunos |
| 8544 | need_lib_prefix=no |
| 8545 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8546 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8547 | ia64*) |
| 8548 | shrext_cmds='.so' |
| 8549 | hardcode_into_libs=yes |
| 8550 | dynamic_linker="$host_os dld.so" |
| 8551 | shlibpath_var=LD_LIBRARY_PATH |
| 8552 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8554 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8555 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8556 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8557 | else |
| 8558 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8559 | fi |
| 8560 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8561 | ;; |
| 8562 | hppa*64*) |
| 8563 | shrext_cmds='.sl' |
| 8564 | hardcode_into_libs=yes |
| 8565 | dynamic_linker="$host_os dld.sl" |
| 8566 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8567 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8569 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8570 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8571 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8572 | ;; |
| 8573 | *) |
| 8574 | shrext_cmds='.sl' |
| 8575 | dynamic_linker="$host_os dld.sl" |
| 8576 | shlibpath_var=SHLIB_PATH |
| 8577 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8579 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8580 | ;; |
| 8581 | esac |
| 8582 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8583 | postinstall_cmds='chmod 555 $lib' |
| 8584 | ;; |
| 8585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8586 | interix3*) |
| 8587 | version_type=linux |
| 8588 | need_lib_prefix=no |
| 8589 | need_version=no |
| 8590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8591 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8592 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8593 | shlibpath_var=LD_LIBRARY_PATH |
| 8594 | shlibpath_overrides_runpath=no |
| 8595 | hardcode_into_libs=yes |
| 8596 | ;; |
| 8597 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8598 | irix5* | irix6* | nonstopux*) |
| 8599 | case $host_os in |
| 8600 | nonstopux*) version_type=nonstopux ;; |
| 8601 | *) |
| 8602 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8603 | version_type=linux |
| 8604 | else |
| 8605 | version_type=irix |
| 8606 | fi ;; |
| 8607 | esac |
| 8608 | need_lib_prefix=no |
| 8609 | need_version=no |
| 8610 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8612 | case $host_os in |
| 8613 | irix5* | nonstopux*) |
| 8614 | libsuff= shlibsuff= |
| 8615 | ;; |
| 8616 | *) |
| 8617 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8618 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8619 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8620 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8621 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8622 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8623 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8624 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8625 | esac |
| 8626 | ;; |
| 8627 | esac |
| 8628 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8629 | shlibpath_overrides_runpath=no |
| 8630 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8631 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8632 | hardcode_into_libs=yes |
| 8633 | ;; |
| 8634 | |
| 8635 | # No shared lib support for Linux oldld, aout, or coff. |
| 8636 | linux*oldld* | linux*aout* | linux*coff*) |
| 8637 | dynamic_linker=no |
| 8638 | ;; |
| 8639 | |
| 8640 | # This must be Linux ELF. |
| 8641 | linux*) |
| 8642 | version_type=linux |
| 8643 | need_lib_prefix=no |
| 8644 | need_version=no |
| 8645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8646 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8647 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8648 | shlibpath_var=LD_LIBRARY_PATH |
| 8649 | shlibpath_overrides_runpath=no |
| 8650 | # This implies no fast_install, which is unacceptable. |
| 8651 | # Some rework will be needed to allow for fast_install |
| 8652 | # before this can be enabled. |
| 8653 | hardcode_into_libs=yes |
| 8654 | |
| 8655 | # Append ld.so.conf contents to the search path |
| 8656 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8657 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8658 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8659 | fi |
| 8660 | |
| 8661 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8662 | # powerpc, because MkLinux only supported shared libraries with the |
| 8663 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8664 | # most powerpc-linux boxes support dynamic linking these days and |
| 8665 | # people can always --disable-shared, the test was removed, and we |
| 8666 | # assume the GNU/Linux dynamic linker is in use. |
| 8667 | dynamic_linker='GNU/Linux ld.so' |
| 8668 | ;; |
| 8669 | |
| 8670 | knetbsd*-gnu) |
| 8671 | version_type=linux |
| 8672 | need_lib_prefix=no |
| 8673 | need_version=no |
| 8674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8675 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8676 | shlibpath_var=LD_LIBRARY_PATH |
| 8677 | shlibpath_overrides_runpath=no |
| 8678 | hardcode_into_libs=yes |
| 8679 | dynamic_linker='GNU ld.so' |
| 8680 | ;; |
| 8681 | |
| 8682 | netbsd*) |
| 8683 | version_type=sunos |
| 8684 | need_lib_prefix=no |
| 8685 | need_version=no |
| 8686 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8688 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8689 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8690 | else |
| 8691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8692 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8693 | dynamic_linker='NetBSD ld.elf_so' |
| 8694 | fi |
| 8695 | shlibpath_var=LD_LIBRARY_PATH |
| 8696 | shlibpath_overrides_runpath=yes |
| 8697 | hardcode_into_libs=yes |
| 8698 | ;; |
| 8699 | |
| 8700 | newsos6) |
| 8701 | version_type=linux |
| 8702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8703 | shlibpath_var=LD_LIBRARY_PATH |
| 8704 | shlibpath_overrides_runpath=yes |
| 8705 | ;; |
| 8706 | |
| 8707 | nto-qnx*) |
| 8708 | version_type=linux |
| 8709 | need_lib_prefix=no |
| 8710 | need_version=no |
| 8711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8712 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8713 | shlibpath_var=LD_LIBRARY_PATH |
| 8714 | shlibpath_overrides_runpath=yes |
| 8715 | ;; |
| 8716 | |
| 8717 | openbsd*) |
| 8718 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8719 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8720 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8721 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8722 | case $host_os in |
| 8723 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8724 | *) need_version=no ;; |
| 8725 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8727 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8728 | shlibpath_var=LD_LIBRARY_PATH |
| 8729 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8730 | case $host_os in |
| 8731 | openbsd2.[89] | openbsd2.[89].*) |
| 8732 | shlibpath_overrides_runpath=no |
| 8733 | ;; |
| 8734 | *) |
| 8735 | shlibpath_overrides_runpath=yes |
| 8736 | ;; |
| 8737 | esac |
| 8738 | else |
| 8739 | shlibpath_overrides_runpath=yes |
| 8740 | fi |
| 8741 | ;; |
| 8742 | |
| 8743 | os2*) |
| 8744 | libname_spec='$name' |
| 8745 | shrext_cmds=".dll" |
| 8746 | need_lib_prefix=no |
| 8747 | library_names_spec='$libname${shared_ext} $libname.a' |
| 8748 | dynamic_linker='OS/2 ld.exe' |
| 8749 | shlibpath_var=LIBPATH |
| 8750 | ;; |
| 8751 | |
| 8752 | osf3* | osf4* | osf5*) |
| 8753 | version_type=osf |
| 8754 | need_lib_prefix=no |
| 8755 | need_version=no |
| 8756 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8758 | shlibpath_var=LD_LIBRARY_PATH |
| 8759 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8760 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8761 | ;; |
| 8762 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8763 | solaris*) |
| 8764 | version_type=linux |
| 8765 | need_lib_prefix=no |
| 8766 | need_version=no |
| 8767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8769 | shlibpath_var=LD_LIBRARY_PATH |
| 8770 | shlibpath_overrides_runpath=yes |
| 8771 | hardcode_into_libs=yes |
| 8772 | # ldd complains unless libraries are executable |
| 8773 | postinstall_cmds='chmod +x $lib' |
| 8774 | ;; |
| 8775 | |
| 8776 | sunos4*) |
| 8777 | version_type=sunos |
| 8778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8779 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8780 | shlibpath_var=LD_LIBRARY_PATH |
| 8781 | shlibpath_overrides_runpath=yes |
| 8782 | if test "$with_gnu_ld" = yes; then |
| 8783 | need_lib_prefix=no |
| 8784 | fi |
| 8785 | need_version=yes |
| 8786 | ;; |
| 8787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8788 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8789 | version_type=linux |
| 8790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8791 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8792 | shlibpath_var=LD_LIBRARY_PATH |
| 8793 | case $host_vendor in |
| 8794 | sni) |
| 8795 | shlibpath_overrides_runpath=no |
| 8796 | need_lib_prefix=no |
| 8797 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8798 | runpath_var=LD_RUN_PATH |
| 8799 | ;; |
| 8800 | siemens) |
| 8801 | need_lib_prefix=no |
| 8802 | ;; |
| 8803 | motorola) |
| 8804 | need_lib_prefix=no |
| 8805 | need_version=no |
| 8806 | shlibpath_overrides_runpath=no |
| 8807 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8808 | ;; |
| 8809 | esac |
| 8810 | ;; |
| 8811 | |
| 8812 | sysv4*MP*) |
| 8813 | if test -d /usr/nec ;then |
| 8814 | version_type=linux |
| 8815 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8816 | soname_spec='$libname${shared_ext}.$major' |
| 8817 | shlibpath_var=LD_LIBRARY_PATH |
| 8818 | fi |
| 8819 | ;; |
| 8820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8821 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8822 | version_type=freebsd-elf |
| 8823 | need_lib_prefix=no |
| 8824 | need_version=no |
| 8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8827 | shlibpath_var=LD_LIBRARY_PATH |
| 8828 | hardcode_into_libs=yes |
| 8829 | if test "$with_gnu_ld" = yes; then |
| 8830 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 8831 | shlibpath_overrides_runpath=no |
| 8832 | else |
| 8833 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 8834 | shlibpath_overrides_runpath=yes |
| 8835 | case $host_os in |
| 8836 | sco3.2v5*) |
| 8837 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 8838 | ;; |
| 8839 | esac |
| 8840 | fi |
| 8841 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 8842 | ;; |
| 8843 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8844 | uts4*) |
| 8845 | version_type=linux |
| 8846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8848 | shlibpath_var=LD_LIBRARY_PATH |
| 8849 | ;; |
| 8850 | |
| 8851 | *) |
| 8852 | dynamic_linker=no |
| 8853 | ;; |
| 8854 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 8856 | $as_echo "$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8857 | test "$dynamic_linker" = no && can_build_shared=no |
| 8858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8859 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8860 | if test "$GCC" = yes; then |
| 8861 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8862 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8864 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5 |
| 8866 | $as_echo_n "checking which extension is used for loadable modules... " >&6; } |
| 8867 | if test "${libltdl_cv_shlibext+set}" = set; then : |
| 8868 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8869 | else |
| 8870 | |
| 8871 | module=yes |
| 8872 | eval libltdl_cv_shlibext=$shrext_cmds |
| 8873 | |
| 8874 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
| 8876 | $as_echo "$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8877 | if test -n "$libltdl_cv_shlibext"; then |
| 8878 | |
| 8879 | cat >>confdefs.h <<_ACEOF |
| 8880 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 8881 | _ACEOF |
| 8882 | |
| 8883 | fi |
| 8884 | |
| 8885 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5 |
| 8887 | $as_echo_n "checking which variable specifies run-time library path... " >&6; } |
| 8888 | if test "${libltdl_cv_shlibpath_var+set}" = set; then : |
| 8889 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8890 | else |
| 8891 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 8892 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5 |
| 8894 | $as_echo "$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8895 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 8896 | |
| 8897 | cat >>confdefs.h <<_ACEOF |
| 8898 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 8899 | _ACEOF |
| 8900 | |
| 8901 | fi |
| 8902 | |
| 8903 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
| 8905 | $as_echo_n "checking for the default library search path... " >&6; } |
| 8906 | if test "${libltdl_cv_sys_search_path+set}" = set; then : |
| 8907 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8908 | else |
| 8909 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 8910 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5 |
| 8912 | $as_echo "$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8913 | if test -n "$libltdl_cv_sys_search_path"; then |
| 8914 | sys_search_path= |
| 8915 | for dir in $libltdl_cv_sys_search_path; do |
| 8916 | if test -z "$sys_search_path"; then |
| 8917 | sys_search_path="$dir" |
| 8918 | else |
| 8919 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 8920 | fi |
| 8921 | done |
| 8922 | |
| 8923 | cat >>confdefs.h <<_ACEOF |
| 8924 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 8925 | _ACEOF |
| 8926 | |
| 8927 | fi |
| 8928 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8930 | $as_echo_n "checking for objdir... " >&6; } |
| 8931 | if test "${libltdl_cv_objdir+set}" = set; then : |
| 8932 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8933 | else |
| 8934 | libltdl_cv_objdir="$objdir" |
| 8935 | if test -n "$objdir"; then |
| 8936 | : |
| 8937 | else |
| 8938 | rm -f .libs 2>/dev/null |
| 8939 | mkdir .libs 2>/dev/null |
| 8940 | if test -d .libs; then |
| 8941 | libltdl_cv_objdir=.libs |
| 8942 | else |
| 8943 | # MS-DOS does not allow filenames that begin with a dot. |
| 8944 | libltdl_cv_objdir=_libs |
| 8945 | fi |
| 8946 | rmdir .libs 2>/dev/null |
| 8947 | fi |
| 8948 | |
| 8949 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5 |
| 8951 | $as_echo "$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8952 | |
| 8953 | cat >>confdefs.h <<_ACEOF |
| 8954 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 8955 | _ACEOF |
| 8956 | |
| 8957 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8958 | |
| 8959 | |
| 8960 | |
| 8961 | |
| 8962 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8964 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 8965 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 8966 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8967 | else |
| 8968 | |
| 8969 | # These are sane defaults that work on at least a few old systems. |
| 8970 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8971 | |
| 8972 | # Character class describing NM global symbol codes. |
| 8973 | symcode='[BCDEGRST]' |
| 8974 | |
| 8975 | # Regexp to match symbols that can be accessed directly from C. |
| 8976 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8977 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8978 | # Transform an extracted symbol line into a proper C declaration |
| 8979 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 8980 | |
| 8981 | # Transform an extracted symbol line into symbol name and symbol address |
| 8982 | 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'" |
| 8983 | |
| 8984 | # Define system-specific variables. |
| 8985 | case $host_os in |
| 8986 | aix*) |
| 8987 | symcode='[BCDT]' |
| 8988 | ;; |
| 8989 | cygwin* | mingw* | pw32*) |
| 8990 | symcode='[ABCDGISTW]' |
| 8991 | ;; |
| 8992 | hpux*) # Its linker distinguishes data from code symbols |
| 8993 | if test "$host_cpu" = ia64; then |
| 8994 | symcode='[ABCDEGRST]' |
| 8995 | fi |
| 8996 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8997 | 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'" |
| 8998 | ;; |
| 8999 | linux*) |
| 9000 | if test "$host_cpu" = ia64; then |
| 9001 | symcode='[ABCDGIRSTW]' |
| 9002 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9003 | 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'" |
| 9004 | fi |
| 9005 | ;; |
| 9006 | irix* | nonstopux*) |
| 9007 | symcode='[BCDEGRST]' |
| 9008 | ;; |
| 9009 | osf*) |
| 9010 | symcode='[BCDEGQRST]' |
| 9011 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9012 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9013 | symcode='[BDRT]' |
| 9014 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9015 | sco3.2v5*) |
| 9016 | symcode='[DT]' |
| 9017 | ;; |
| 9018 | sysv4.2uw2*) |
| 9019 | symcode='[DT]' |
| 9020 | ;; |
| 9021 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9022 | symcode='[ABDT]' |
| 9023 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9024 | sysv4) |
| 9025 | symcode='[DFNSTU]' |
| 9026 | ;; |
| 9027 | esac |
| 9028 | |
| 9029 | # Handle CRLF in mingw tool chain |
| 9030 | opt_cr= |
| 9031 | case $build_os in |
| 9032 | mingw*) |
| 9033 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9034 | ;; |
| 9035 | esac |
| 9036 | |
| 9037 | # If we're using GNU nm, then use its standard symbol codes. |
| 9038 | case `$NM -V 2>&1` in |
| 9039 | *GNU* | *'with BFD'*) |
| 9040 | symcode='[ABCDGIRSTW]' ;; |
| 9041 | esac |
| 9042 | |
| 9043 | # Try without a prefix undercore, then with it. |
| 9044 | for ac_symprfx in "" "_"; do |
| 9045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9046 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9047 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9048 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9049 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9050 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9051 | |
| 9052 | # Check to see that the pipe works correctly. |
| 9053 | pipe_works=no |
| 9054 | |
| 9055 | rm -f conftest* |
| 9056 | cat > conftest.$ac_ext <<EOF |
| 9057 | #ifdef __cplusplus |
| 9058 | extern "C" { |
| 9059 | #endif |
| 9060 | char nm_test_var; |
| 9061 | void nm_test_func(){} |
| 9062 | #ifdef __cplusplus |
| 9063 | } |
| 9064 | #endif |
| 9065 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9066 | EOF |
| 9067 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9068 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9069 | (eval $ac_compile) 2>&5 |
| 9070 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9071 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9072 | test $ac_status = 0; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9073 | # Now try to grab the symbols. |
| 9074 | nlist=conftest.nm |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9075 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9076 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9077 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9079 | test $ac_status = 0; } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9080 | # Try sorting and uniquifying the output. |
| 9081 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9082 | mv -f "$nlist"T "$nlist" |
| 9083 | else |
| 9084 | rm -f "$nlist"T |
| 9085 | fi |
| 9086 | |
| 9087 | # Make sure that we snagged all the symbols we need. |
| 9088 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9089 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9090 | cat <<EOF > conftest.$ac_ext |
| 9091 | #ifdef __cplusplus |
| 9092 | extern "C" { |
| 9093 | #endif |
| 9094 | |
| 9095 | EOF |
| 9096 | # Now generate the symbol file. |
| 9097 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9098 | |
| 9099 | cat <<EOF >> conftest.$ac_ext |
| 9100 | #if defined (__STDC__) && __STDC__ |
| 9101 | # define lt_ptr_t void * |
| 9102 | #else |
| 9103 | # define lt_ptr_t char * |
| 9104 | # define const |
| 9105 | #endif |
| 9106 | |
| 9107 | /* The mapping between symbol names and symbols. */ |
| 9108 | const struct { |
| 9109 | const char *name; |
| 9110 | lt_ptr_t address; |
| 9111 | } |
| 9112 | lt_preloaded_symbols[] = |
| 9113 | { |
| 9114 | EOF |
| 9115 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9116 | cat <<\EOF >> conftest.$ac_ext |
| 9117 | {0, (lt_ptr_t) 0} |
| 9118 | }; |
| 9119 | |
| 9120 | #ifdef __cplusplus |
| 9121 | } |
| 9122 | #endif |
| 9123 | EOF |
| 9124 | # Now try linking the two files. |
| 9125 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9126 | lt_save_LIBS="$LIBS" |
| 9127 | lt_save_CFLAGS="$CFLAGS" |
| 9128 | LIBS="conftstm.$ac_objext" |
| 9129 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9130 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9131 | (eval $ac_link) 2>&5 |
| 9132 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9134 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9135 | pipe_works=yes |
| 9136 | fi |
| 9137 | LIBS="$lt_save_LIBS" |
| 9138 | CFLAGS="$lt_save_CFLAGS" |
| 9139 | else |
| 9140 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9141 | fi |
| 9142 | else |
| 9143 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9144 | fi |
| 9145 | else |
| 9146 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9147 | fi |
| 9148 | else |
| 9149 | echo "$progname: failed program was:" >&5 |
| 9150 | cat conftest.$ac_ext >&5 |
| 9151 | fi |
| 9152 | rm -f conftest* conftst* |
| 9153 | |
| 9154 | # Do not use the global_symbol_pipe unless it works. |
| 9155 | if test "$pipe_works" = yes; then |
| 9156 | break |
| 9157 | else |
| 9158 | lt_cv_sys_global_symbol_pipe= |
| 9159 | fi |
| 9160 | done |
| 9161 | |
| 9162 | fi |
| 9163 | |
| 9164 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9165 | lt_cv_sys_global_symbol_to_cdecl= |
| 9166 | fi |
| 9167 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 9169 | $as_echo "failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9170 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 9172 | $as_echo "ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9173 | fi |
| 9174 | |
| 9175 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9177 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| 9178 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then : |
| 9179 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9180 | else |
| 9181 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9182 | libltdl_cv_preloaded_symbols=yes |
| 9183 | else |
| 9184 | libltdl_cv_preloaded_symbols=no |
| 9185 | fi |
| 9186 | |
| 9187 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9189 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9190 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9191 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9192 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9193 | |
| 9194 | fi |
| 9195 | |
| 9196 | LIBADD_DL= |
| 9197 | |
| 9198 | ac_ext=c |
| 9199 | ac_cpp='$CPP $CPPFLAGS' |
| 9200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9203 | |
| 9204 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9205 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 9206 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9207 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9208 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9209 | |
| 9210 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 9212 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 9213 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 9214 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9215 | else |
| 9216 | ac_check_lib_save_LIBS=$LIBS |
| 9217 | LIBS="-ldld $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9219 | /* end confdefs.h. */ |
| 9220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9221 | /* Override any GCC internal prototype to avoid an error. |
| 9222 | Use char because int might match the return type of a GCC |
| 9223 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9224 | #ifdef __cplusplus |
| 9225 | extern "C" |
| 9226 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9227 | char shl_load (); |
| 9228 | int |
| 9229 | main () |
| 9230 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9231 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9232 | ; |
| 9233 | return 0; |
| 9234 | } |
| 9235 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9236 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9237 | ac_cv_lib_dld_shl_load=yes |
| 9238 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9239 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9240 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9241 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9242 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9243 | LIBS=$ac_check_lib_save_LIBS |
| 9244 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9246 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 9247 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9249 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9250 | |
| 9251 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9252 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 9254 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 9255 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 9256 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9257 | else |
| 9258 | ac_check_lib_save_LIBS=$LIBS |
| 9259 | LIBS="-ldl $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9261 | /* end confdefs.h. */ |
| 9262 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9263 | /* Override any GCC internal prototype to avoid an error. |
| 9264 | Use char because int might match the return type of a GCC |
| 9265 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9266 | #ifdef __cplusplus |
| 9267 | extern "C" |
| 9268 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9269 | char dlopen (); |
| 9270 | int |
| 9271 | main () |
| 9272 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9273 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9274 | ; |
| 9275 | return 0; |
| 9276 | } |
| 9277 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9278 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9279 | ac_cv_lib_dl_dlopen=yes |
| 9280 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9281 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9282 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9283 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9284 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9285 | LIBS=$ac_check_lib_save_LIBS |
| 9286 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9288 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 9289 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9290 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9291 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9292 | |
| 9293 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9294 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9296 | /* end confdefs.h. */ |
| 9297 | #if HAVE_DLFCN_H |
| 9298 | # include <dlfcn.h> |
| 9299 | #endif |
| 9300 | |
| 9301 | int |
| 9302 | main () |
| 9303 | { |
| 9304 | dlopen(0, 0); |
| 9305 | ; |
| 9306 | return 0; |
| 9307 | } |
| 9308 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9309 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9310 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9311 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9312 | libltdl_cv_func_dlopen="yes" |
| 9313 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 9315 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 9316 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 9317 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9318 | else |
| 9319 | ac_check_lib_save_LIBS=$LIBS |
| 9320 | LIBS="-lsvld $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9322 | /* end confdefs.h. */ |
| 9323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9324 | /* Override any GCC internal prototype to avoid an error. |
| 9325 | Use char because int might match the return type of a GCC |
| 9326 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9327 | #ifdef __cplusplus |
| 9328 | extern "C" |
| 9329 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9330 | char dlopen (); |
| 9331 | int |
| 9332 | main () |
| 9333 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9334 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9335 | ; |
| 9336 | return 0; |
| 9337 | } |
| 9338 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9339 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9340 | ac_cv_lib_svld_dlopen=yes |
| 9341 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9342 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9343 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9344 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9345 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9346 | LIBS=$ac_check_lib_save_LIBS |
| 9347 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9349 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 9350 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9351 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9352 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9353 | |
| 9354 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9355 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 9357 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 9358 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 9359 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9360 | else |
| 9361 | ac_check_lib_save_LIBS=$LIBS |
| 9362 | LIBS="-ldld $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9364 | /* end confdefs.h. */ |
| 9365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9366 | /* Override any GCC internal prototype to avoid an error. |
| 9367 | Use char because int might match the return type of a GCC |
| 9368 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9369 | #ifdef __cplusplus |
| 9370 | extern "C" |
| 9371 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9372 | char dld_link (); |
| 9373 | int |
| 9374 | main () |
| 9375 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9376 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9377 | ; |
| 9378 | return 0; |
| 9379 | } |
| 9380 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9381 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9382 | ac_cv_lib_dld_dld_link=yes |
| 9383 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9384 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9385 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9386 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9387 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9388 | LIBS=$ac_check_lib_save_LIBS |
| 9389 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9391 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 9392 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9393 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9394 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9395 | |
| 9396 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9397 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9398 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
| 9399 | if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9400 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9401 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9402 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9403 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9404 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9405 | |
| 9406 | fi |
| 9407 | |
| 9408 | |
| 9409 | fi |
| 9410 | |
| 9411 | |
| 9412 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9413 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9414 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9415 | |
| 9416 | fi |
| 9417 | |
| 9418 | |
| 9419 | fi |
| 9420 | |
| 9421 | |
| 9422 | fi |
| 9423 | |
| 9424 | |
| 9425 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 9426 | then |
| 9427 | lt_save_LIBS="$LIBS" |
| 9428 | LIBS="$LIBS $LIBADD_DL" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9429 | for ac_func in dlerror |
| 9430 | do : |
| 9431 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| 9432 | if test "x$ac_cv_func_dlerror" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9433 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9434 | #define HAVE_DLERROR 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9435 | _ACEOF |
| 9436 | |
| 9437 | fi |
| 9438 | done |
| 9439 | |
| 9440 | LIBS="$lt_save_LIBS" |
| 9441 | fi |
| 9442 | ac_ext=c |
| 9443 | ac_cpp='$CPP $CPPFLAGS' |
| 9444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9447 | |
| 9448 | |
| 9449 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
| 9451 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| 9452 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then : |
| 9453 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9454 | else |
| 9455 | ac_cv_sys_symbol_underscore=no |
| 9456 | cat > conftest.$ac_ext <<EOF |
| 9457 | void nm_test_func(){} |
| 9458 | int main(){nm_test_func;return 0;} |
| 9459 | EOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9460 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9461 | (eval $ac_compile) 2>&5 |
| 9462 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9464 | test $ac_status = 0; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9465 | # Now try to grab the symbols. |
| 9466 | ac_nlist=conftest.nm |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9467 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9468 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 9469 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9471 | test $ac_status = 0; } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9472 | # See whether the symbols have a leading underscore. |
| 9473 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 9474 | ac_cv_sys_symbol_underscore=yes |
| 9475 | else |
| 9476 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 9477 | : |
| 9478 | else |
| 9479 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 9480 | fi |
| 9481 | fi |
| 9482 | else |
| 9483 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9484 | fi |
| 9485 | else |
| 9486 | echo "configure: failed program was:" >&5 |
| 9487 | cat conftest.c >&5 |
| 9488 | fi |
| 9489 | rm -rf conftest* |
| 9490 | |
| 9491 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5 |
| 9493 | $as_echo "$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9494 | |
| 9495 | |
| 9496 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 9497 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 9498 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 9500 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| 9501 | if test "${libltdl_cv_need_uscore+set}" = set; then : |
| 9502 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9503 | else |
| 9504 | libltdl_cv_need_uscore=unknown |
| 9505 | save_LIBS="$LIBS" |
| 9506 | LIBS="$LIBS $LIBADD_DL" |
| 9507 | if test "$cross_compiling" = yes; then : |
| 9508 | libltdl_cv_need_uscore=cross |
| 9509 | else |
| 9510 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9511 | lt_status=$lt_dlunknown |
| 9512 | cat > conftest.$ac_ext <<EOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9513 | #line 9513 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9514 | #include "confdefs.h" |
| 9515 | |
| 9516 | #if HAVE_DLFCN_H |
| 9517 | #include <dlfcn.h> |
| 9518 | #endif |
| 9519 | |
| 9520 | #include <stdio.h> |
| 9521 | |
| 9522 | #ifdef RTLD_GLOBAL |
| 9523 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9524 | #else |
| 9525 | # ifdef DL_GLOBAL |
| 9526 | # define LT_DLGLOBAL DL_GLOBAL |
| 9527 | # else |
| 9528 | # define LT_DLGLOBAL 0 |
| 9529 | # endif |
| 9530 | #endif |
| 9531 | |
| 9532 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9533 | find out it does not work in some platform. */ |
| 9534 | #ifndef LT_DLLAZY_OR_NOW |
| 9535 | # ifdef RTLD_LAZY |
| 9536 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9537 | # else |
| 9538 | # ifdef DL_LAZY |
| 9539 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9540 | # else |
| 9541 | # ifdef RTLD_NOW |
| 9542 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9543 | # else |
| 9544 | # ifdef DL_NOW |
| 9545 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9546 | # else |
| 9547 | # define LT_DLLAZY_OR_NOW 0 |
| 9548 | # endif |
| 9549 | # endif |
| 9550 | # endif |
| 9551 | # endif |
| 9552 | #endif |
| 9553 | |
| 9554 | #ifdef __cplusplus |
| 9555 | extern "C" void exit (int); |
| 9556 | #endif |
| 9557 | |
| 9558 | void fnord() { int i=42;} |
| 9559 | int main () |
| 9560 | { |
| 9561 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9562 | int status = $lt_dlunknown; |
| 9563 | |
| 9564 | if (self) |
| 9565 | { |
| 9566 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9567 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9568 | /* dlclose (self); */ |
| 9569 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9570 | else |
| 9571 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9572 | |
| 9573 | exit (status); |
| 9574 | } |
| 9575 | EOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9576 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9577 | (eval $ac_link) 2>&5 |
| 9578 | ac_status=$? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9580 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9581 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9582 | lt_status=$? |
| 9583 | case x$lt_status in |
| 9584 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 9585 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9586 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9587 | esac |
| 9588 | else : |
| 9589 | # compilation failed |
| 9590 | |
| 9591 | fi |
| 9592 | fi |
| 9593 | rm -fr conftest* |
| 9594 | |
| 9595 | LIBS="$save_LIBS" |
| 9596 | |
| 9597 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| 9599 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9600 | fi |
| 9601 | fi |
| 9602 | |
| 9603 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 9604 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9605 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9606 | |
| 9607 | fi |
| 9608 | |
| 9609 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
| 9611 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| 9612 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then : |
| 9613 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9614 | else |
| 9615 | # PORTME does your system automatically load deplibs for dlopen? |
| 9616 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 9617 | # For now, we just catch OSes we know something about -- in the |
| 9618 | # future, we'll try test this programmatically. |
| 9619 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 9620 | case "$host_os" in |
| 9621 | aix3*|aix4.1.*|aix4.2.*) |
| 9622 | # Unknown whether this is true for these versions of AIX, but |
| 9623 | # we want this `case' here to explicitly catch those versions. |
| 9624 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 9625 | ;; |
| 9626 | aix[45]*) |
| 9627 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9628 | ;; |
| 9629 | darwin*) |
| 9630 | # Assuming the user has installed a libdl from somewhere, this is true |
| 9631 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 9632 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9633 | ;; |
| 9634 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 9635 | # GNU and its variants, using gnu ld.so (Glibc) |
| 9636 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9637 | ;; |
| 9638 | hpux10*|hpux11*) |
| 9639 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9640 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9641 | interix*) |
| 9642 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9643 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9644 | irix[12345]*|irix6.[01]*) |
| 9645 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 9646 | # know how it worked for any of those versions. |
| 9647 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 9648 | ;; |
| 9649 | irix*) |
| 9650 | # The case above catches anything before 6.2, and it's known that |
| 9651 | # at 6.2 and later dlopen does load deplibs. |
| 9652 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9653 | ;; |
| 9654 | netbsd*) |
| 9655 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9656 | ;; |
| 9657 | openbsd*) |
| 9658 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9659 | ;; |
| 9660 | osf[1234]*) |
| 9661 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 9662 | # it did *not* use an RPATH in a shared library to find objects the |
| 9663 | # library depends on, so we explictly say `no'. |
| 9664 | libltdl_cv_sys_dlopen_deplibs=no |
| 9665 | ;; |
| 9666 | osf5.0|osf5.0a|osf5.1) |
| 9667 | # dlopen *does* load deplibs and with the right loader patch applied |
| 9668 | # it even uses RPATH in a shared library to search for shared objects |
| 9669 | # that the library depends on, but there's no easy way to know if that |
| 9670 | # patch is installed. Since this is the case, all we can really |
| 9671 | # say is unknown -- it depends on the patch being installed. If |
| 9672 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 9673 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 9674 | ;; |
| 9675 | osf*) |
| 9676 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 9677 | # the comments above for what we know about them. |
| 9678 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 9679 | # is used to find them so we can finally say `yes'. |
| 9680 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9681 | ;; |
| 9682 | solaris*) |
| 9683 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9684 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9685 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9686 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9687 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9688 | esac |
| 9689 | |
| 9690 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 9692 | $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9693 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 9694 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9695 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9696 | |
| 9697 | fi |
| 9698 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9699 | for ac_header in argz.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9700 | do : |
| 9701 | ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default" |
| 9702 | if test "x$ac_cv_header_argz_h" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9703 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9704 | #define HAVE_ARGZ_H 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9705 | _ACEOF |
| 9706 | |
| 9707 | fi |
| 9708 | |
| 9709 | done |
| 9710 | |
| 9711 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9712 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9713 | # include <argz.h> |
| 9714 | #endif |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9715 | " |
| 9716 | if test "x$ac_cv_type_error_t" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9717 | |
| 9718 | cat >>confdefs.h <<_ACEOF |
| 9719 | #define HAVE_ERROR_T 1 |
| 9720 | _ACEOF |
| 9721 | |
| 9722 | |
| 9723 | else |
| 9724 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9725 | $as_echo "#define error_t int" >>confdefs.h |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9726 | |
| 9727 | fi |
| 9728 | |
| 9729 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9730 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9731 | do : |
| 9732 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9733 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9734 | eval as_val=\$$as_ac_var |
| 9735 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9736 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9737 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9738 | _ACEOF |
| 9739 | |
| 9740 | fi |
| 9741 | done |
| 9742 | |
| 9743 | |
| 9744 | |
| 9745 | |
| 9746 | |
| 9747 | |
| 9748 | |
| 9749 | |
| 9750 | |
| 9751 | |
| 9752 | |
| 9753 | |
| 9754 | |
| 9755 | |
| 9756 | |
| 9757 | |
| 9758 | |
| 9759 | |
| 9760 | |
| 9761 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9762 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 9763 | stdio.h unistd.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9764 | do : |
| 9765 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9766 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9767 | eval as_val=\$$as_ac_Header |
| 9768 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9769 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9770 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9771 | _ACEOF |
| 9772 | |
| 9773 | fi |
| 9774 | |
| 9775 | done |
| 9776 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9777 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9778 | do : |
| 9779 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9780 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9781 | eval as_val=\$$as_ac_Header |
| 9782 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9783 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9784 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9785 | _ACEOF |
| 9786 | |
| 9787 | fi |
| 9788 | |
| 9789 | done |
| 9790 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9791 | for ac_header in string.h strings.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9792 | do : |
| 9793 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9794 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9795 | eval as_val=\$$as_ac_Header |
| 9796 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9797 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9798 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9799 | _ACEOF |
| 9800 | break |
| 9801 | fi |
| 9802 | |
| 9803 | done |
| 9804 | |
| 9805 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9806 | for ac_func in strchr index |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9807 | do : |
| 9808 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9809 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9810 | eval as_val=\$$as_ac_var |
| 9811 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9812 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9813 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9814 | _ACEOF |
| 9815 | break |
| 9816 | fi |
| 9817 | done |
| 9818 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9819 | for ac_func in strrchr rindex |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9820 | do : |
| 9821 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9822 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9823 | eval as_val=\$$as_ac_var |
| 9824 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9825 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9826 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9827 | _ACEOF |
| 9828 | break |
| 9829 | fi |
| 9830 | done |
| 9831 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9832 | for ac_func in memcpy bcopy |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9833 | do : |
| 9834 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9835 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9836 | eval as_val=\$$as_ac_var |
| 9837 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9838 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9839 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9840 | _ACEOF |
| 9841 | break |
| 9842 | fi |
| 9843 | done |
| 9844 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9845 | for ac_func in memmove strcmp |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9846 | do : |
| 9847 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9848 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9849 | eval as_val=\$$as_ac_var |
| 9850 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9851 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9852 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9853 | _ACEOF |
| 9854 | |
| 9855 | fi |
| 9856 | done |
| 9857 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9858 | for ac_func in closedir opendir readdir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9859 | do : |
| 9860 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9861 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9862 | eval as_val=\$$as_ac_var |
| 9863 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9864 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9865 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9866 | _ACEOF |
| 9867 | |
| 9868 | fi |
| 9869 | done |
| 9870 | |
| 9871 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 9872 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 9873 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 9874 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 9875 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9876 | LLVMGCCCOMMAND="$LLVMGCC" |
| 9877 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9878 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 9879 | |
| 9880 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 9881 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 9882 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 9883 | set dummy $LLVMGCC; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9885 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9886 | if test "${ac_cv_path_LLVMGCC+set}" = set; then : |
| 9887 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9888 | else |
| 9889 | case $LLVMGCC in |
| 9890 | [\\/]* | ?:[\\/]*) |
| 9891 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 9892 | ;; |
| 9893 | *) |
| 9894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9895 | for as_dir in $PATH |
| 9896 | do |
| 9897 | IFS=$as_save_IFS |
| 9898 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9899 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9901 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9903 | break 2 |
| 9904 | fi |
| 9905 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9906 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9907 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9908 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9909 | ;; |
| 9910 | esac |
| 9911 | fi |
| 9912 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9913 | if test -n "$LLVMGCC"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGCC" >&5 |
| 9915 | $as_echo "$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9916 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9918 | $as_echo "no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9919 | fi |
| 9920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9921 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 9922 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 9923 | set dummy $LLVMGXX; ac_word=$2 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9925 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9926 | if test "${ac_cv_path_LLVMGXX+set}" = set; then : |
| 9927 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9928 | else |
| 9929 | case $LLVMGXX in |
| 9930 | [\\/]* | ?:[\\/]*) |
| 9931 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 9932 | ;; |
| 9933 | *) |
| 9934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9935 | for as_dir in $PATH |
| 9936 | do |
| 9937 | IFS=$as_save_IFS |
| 9938 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9941 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9943 | break 2 |
| 9944 | fi |
| 9945 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9946 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9947 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9948 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9949 | ;; |
| 9950 | esac |
| 9951 | fi |
| 9952 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9953 | if test -n "$LLVMGXX"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGXX" >&5 |
| 9955 | $as_echo "$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9956 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9958 | $as_echo "no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9959 | fi |
| 9960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9961 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9962 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 9963 | if test -z "$LLVMGCC"; then |
| 9964 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9965 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 9966 | fi |
| 9967 | if test -z "$LLVMGXX"; then |
| 9968 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9969 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 9970 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9971 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9972 | LLVMGCC=$LLVMGCC |
| 9973 | |
| 9974 | LLVMGXX=$LLVMGXX |
| 9975 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9976 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 9977 | |
| 9978 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 9979 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 9980 | fi |
| 9981 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 9982 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5 |
| 9984 | $as_echo_n "checking tool compatibility... " >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 9985 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 9986 | ICC=no |
| 9987 | IXX=no |
| 9988 | case $CC in |
| 9989 | icc*|icpc*) |
| 9990 | ICC=yes |
| 9991 | IXX=yes |
| 9992 | ;; |
| 9993 | *) |
| 9994 | ;; |
| 9995 | esac |
| 9996 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 9997 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 9998 | then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 9999 | as_fn_error "gcc|icc required but not found" "$LINENO" 5 |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 10000 | fi |
| 10001 | |
| 10002 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 10003 | then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10004 | as_fn_error "g++|icc required but not found" "$LINENO" 5 |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 10005 | fi |
| 10006 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 10007 | if test "$GCC" = "yes" |
| 10008 | then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10010 | /* end confdefs.h. */ |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 10011 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 10012 | #error Unsupported GCC version |
| 10013 | #endif |
| 10014 | |
| 10015 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10016 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10017 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 10018 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10019 | as_fn_error "gcc 3.x required, but you have a lower version" "$LINENO" 5 |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 10020 | fi |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 10021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10022 | fi |
| 10023 | |
| 10024 | if test -z "$llvm_cv_gnu_make_command" |
| 10025 | then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10026 | as_fn_error "GNU Make required but not found" "$LINENO" 5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10027 | fi |
| 10028 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 10030 | $as_echo "ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10031 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5 |
| 10033 | $as_echo_n "checking optional compiler flags... " >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 10034 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 10035 | |
| 10036 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 10037 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 10039 | $as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 10040 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 10041 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
| 10043 | $as_echo_n "checking for sin in -lm... " >&6; } |
| 10044 | if test "${ac_cv_lib_m_sin+set}" = set; then : |
| 10045 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10046 | else |
| 10047 | ac_check_lib_save_LIBS=$LIBS |
| 10048 | LIBS="-lm $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10050 | /* end confdefs.h. */ |
| 10051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10052 | /* Override any GCC internal prototype to avoid an error. |
| 10053 | Use char because int might match the return type of a GCC |
| 10054 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10055 | #ifdef __cplusplus |
| 10056 | extern "C" |
| 10057 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10058 | char sin (); |
| 10059 | int |
| 10060 | main () |
| 10061 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10062 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10063 | ; |
| 10064 | return 0; |
| 10065 | } |
| 10066 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10067 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10068 | ac_cv_lib_m_sin=yes |
| 10069 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10070 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10071 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10072 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10073 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10074 | LIBS=$ac_check_lib_save_LIBS |
| 10075 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
| 10077 | $as_echo "$ac_cv_lib_m_sin" >&6; } |
| 10078 | if test "x$ac_cv_lib_m_sin" = x""yes; then : |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 10079 | cat >>confdefs.h <<_ACEOF |
| 10080 | #define HAVE_LIBM 1 |
| 10081 | _ACEOF |
| 10082 | |
| 10083 | LIBS="-lm $LIBS" |
| 10084 | |
| 10085 | fi |
| 10086 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 10087 | if test "$llvm_cv_os_type" = "MingW" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -limagehlp" >&5 |
| 10089 | $as_echo_n "checking for main in -limagehlp... " >&6; } |
| 10090 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then : |
| 10091 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10092 | else |
| 10093 | ac_check_lib_save_LIBS=$LIBS |
| 10094 | LIBS="-limagehlp $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10096 | /* end confdefs.h. */ |
| 10097 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 10098 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10099 | int |
| 10100 | main () |
| 10101 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10102 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10103 | ; |
| 10104 | return 0; |
| 10105 | } |
| 10106 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10107 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 10108 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10109 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10110 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10111 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10112 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10113 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10114 | LIBS=$ac_check_lib_save_LIBS |
| 10115 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagehlp_main" >&5 |
| 10117 | $as_echo "$ac_cv_lib_imagehlp_main" >&6; } |
| 10118 | if test "x$ac_cv_lib_imagehlp_main" = x""yes; then : |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10119 | cat >>confdefs.h <<_ACEOF |
| 10120 | #define HAVE_LIBIMAGEHLP 1 |
| 10121 | _ACEOF |
| 10122 | |
| 10123 | LIBS="-limagehlp $LIBS" |
| 10124 | |
| 10125 | fi |
| 10126 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5 |
| 10128 | $as_echo_n "checking for main in -lpsapi... " >&6; } |
| 10129 | if test "${ac_cv_lib_psapi_main+set}" = set; then : |
| 10130 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10131 | else |
| 10132 | ac_check_lib_save_LIBS=$LIBS |
| 10133 | LIBS="-lpsapi $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10135 | /* end confdefs.h. */ |
| 10136 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 10137 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10138 | int |
| 10139 | main () |
| 10140 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10141 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10142 | ; |
| 10143 | return 0; |
| 10144 | } |
| 10145 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10146 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 10147 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10148 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10149 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10150 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10151 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10152 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10153 | LIBS=$ac_check_lib_save_LIBS |
| 10154 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5 |
| 10156 | $as_echo "$ac_cv_lib_psapi_main" >&6; } |
| 10157 | if test "x$ac_cv_lib_psapi_main" = x""yes; then : |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 10158 | cat >>confdefs.h <<_ACEOF |
| 10159 | #define HAVE_LIBPSAPI 1 |
| 10160 | _ACEOF |
| 10161 | |
| 10162 | LIBS="-lpsapi $LIBS" |
| 10163 | |
| 10164 | fi |
| 10165 | |
| 10166 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10167 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 10169 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| 10170 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 10171 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10172 | else |
| 10173 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10175 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10177 | /* Override any GCC internal prototype to avoid an error. |
| 10178 | Use char because int might match the return type of a GCC |
| 10179 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10180 | #ifdef __cplusplus |
| 10181 | extern "C" |
| 10182 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10183 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10184 | int |
| 10185 | main () |
| 10186 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10187 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10188 | ; |
| 10189 | return 0; |
| 10190 | } |
| 10191 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10192 | for ac_lib in '' dl; do |
| 10193 | if test -z "$ac_lib"; then |
| 10194 | ac_res="none required" |
| 10195 | else |
| 10196 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10198 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10199 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10200 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10201 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10202 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10203 | conftest$ac_exeext |
| 10204 | if test "${ac_cv_search_dlopen+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10205 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10206 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10207 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10208 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 10209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10210 | else |
| 10211 | ac_cv_search_dlopen=no |
| 10212 | fi |
| 10213 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10214 | LIBS=$ac_func_search_save_LIBS |
| 10215 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 10217 | $as_echo "$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10218 | ac_res=$ac_cv_search_dlopen |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10219 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10220 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 10221 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10222 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10223 | |
| 10224 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 10226 | $as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10227 | fi |
| 10228 | |
| 10229 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 10230 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 |
| 10232 | $as_echo_n "checking for library containing ffi_call... " >&6; } |
| 10233 | if test "${ac_cv_search_ffi_call+set}" = set; then : |
| 10234 | $as_echo_n "(cached) " >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10235 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10236 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10238 | /* end confdefs.h. */ |
| 10239 | |
| 10240 | /* Override any GCC internal prototype to avoid an error. |
| 10241 | Use char because int might match the return type of a GCC |
| 10242 | builtin and then its argument prototype would still apply. */ |
| 10243 | #ifdef __cplusplus |
| 10244 | extern "C" |
| 10245 | #endif |
| 10246 | char ffi_call (); |
| 10247 | int |
| 10248 | main () |
| 10249 | { |
| 10250 | return ffi_call (); |
| 10251 | ; |
| 10252 | return 0; |
| 10253 | } |
| 10254 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10255 | for ac_lib in '' ffi; do |
| 10256 | if test -z "$ac_lib"; then |
| 10257 | ac_res="none required" |
| 10258 | else |
| 10259 | ac_res=-l$ac_lib |
| 10260 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10261 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10262 | if ac_fn_c_try_link "$LINENO"; then : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10263 | ac_cv_search_ffi_call=$ac_res |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10264 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10265 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10266 | conftest$ac_exeext |
| 10267 | if test "${ac_cv_search_ffi_call+set}" = set; then : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10268 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10269 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10270 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10271 | if test "${ac_cv_search_ffi_call+set}" = set; then : |
| 10272 | |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10273 | else |
| 10274 | ac_cv_search_ffi_call=no |
| 10275 | fi |
| 10276 | rm conftest.$ac_ext |
| 10277 | LIBS=$ac_func_search_save_LIBS |
| 10278 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 |
| 10280 | $as_echo "$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10281 | ac_res=$ac_cv_search_ffi_call |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10282 | if test "$ac_res" != no; then : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10283 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10284 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10285 | $as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 10286 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10287 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 10289 | $as_echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10290 | fi |
| 10291 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 10292 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 10293 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 |
| 10295 | $as_echo_n "checking for library containing mallinfo... " >&6; } |
| 10296 | if test "${ac_cv_search_mallinfo+set}" = set; then : |
| 10297 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10298 | else |
| 10299 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10301 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10303 | /* Override any GCC internal prototype to avoid an error. |
| 10304 | Use char because int might match the return type of a GCC |
| 10305 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10306 | #ifdef __cplusplus |
| 10307 | extern "C" |
| 10308 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10309 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10310 | int |
| 10311 | main () |
| 10312 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10313 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10314 | ; |
| 10315 | return 0; |
| 10316 | } |
| 10317 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10318 | for ac_lib in '' malloc; do |
| 10319 | if test -z "$ac_lib"; then |
| 10320 | ac_res="none required" |
| 10321 | else |
| 10322 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10323 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10324 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10325 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10326 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10327 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10328 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10329 | conftest$ac_exeext |
| 10330 | if test "${ac_cv_search_mallinfo+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10331 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10332 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10333 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10334 | if test "${ac_cv_search_mallinfo+set}" = set; then : |
| 10335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10336 | else |
| 10337 | ac_cv_search_mallinfo=no |
| 10338 | fi |
| 10339 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10340 | LIBS=$ac_func_search_save_LIBS |
| 10341 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 |
| 10343 | $as_echo "$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10344 | ac_res=$ac_cv_search_mallinfo |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10345 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10346 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 10347 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10348 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10349 | |
| 10350 | fi |
| 10351 | |
| 10352 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 10353 | if test "$ENABLE_THREADS" -eq 1 ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 |
| 10355 | $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } |
| 10356 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then : |
| 10357 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10358 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 10359 | ac_check_lib_save_LIBS=$LIBS |
| 10360 | LIBS="-lpthread $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10362 | /* end confdefs.h. */ |
| 10363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10364 | /* Override any GCC internal prototype to avoid an error. |
| 10365 | Use char because int might match the return type of a GCC |
| 10366 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10367 | #ifdef __cplusplus |
| 10368 | extern "C" |
| 10369 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10370 | char pthread_mutex_init (); |
| 10371 | int |
| 10372 | main () |
| 10373 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10374 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10375 | ; |
| 10376 | return 0; |
| 10377 | } |
| 10378 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10379 | if ac_fn_c_try_link "$LINENO"; then : |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 10380 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10381 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10382 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10383 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10384 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10385 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 10386 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10387 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 10389 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 10390 | if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then : |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 10391 | cat >>confdefs.h <<_ACEOF |
| 10392 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 10393 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10394 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 10395 | LIBS="-lpthread $LIBS" |
| 10396 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10397 | fi |
| 10398 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5 |
| 10400 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } |
| 10401 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then : |
| 10402 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10403 | else |
| 10404 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10406 | /* end confdefs.h. */ |
| 10407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10408 | /* Override any GCC internal prototype to avoid an error. |
| 10409 | Use char because int might match the return type of a GCC |
| 10410 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10411 | #ifdef __cplusplus |
| 10412 | extern "C" |
| 10413 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10414 | char pthread_mutex_lock (); |
| 10415 | int |
| 10416 | main () |
| 10417 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10418 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10419 | ; |
| 10420 | return 0; |
| 10421 | } |
| 10422 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10423 | for ac_lib in '' pthread; do |
| 10424 | if test -z "$ac_lib"; then |
| 10425 | ac_res="none required" |
| 10426 | else |
| 10427 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10428 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10429 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10430 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10431 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10432 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10433 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10434 | conftest$ac_exeext |
| 10435 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10436 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10437 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10438 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10439 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then : |
| 10440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10441 | else |
| 10442 | ac_cv_search_pthread_mutex_lock=no |
| 10443 | fi |
| 10444 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10445 | LIBS=$ac_func_search_save_LIBS |
| 10446 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 10448 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10449 | ac_res=$ac_cv_search_pthread_mutex_lock |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10450 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10451 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10452 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10453 | $as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 10454 | |
| 10455 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 10456 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5 |
| 10458 | $as_echo_n "checking for library containing pthread_rwlock_init... " >&6; } |
| 10459 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then : |
| 10460 | $as_echo_n "(cached) " >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10461 | else |
| 10462 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10464 | /* end confdefs.h. */ |
| 10465 | |
| 10466 | /* Override any GCC internal prototype to avoid an error. |
| 10467 | Use char because int might match the return type of a GCC |
| 10468 | builtin and then its argument prototype would still apply. */ |
| 10469 | #ifdef __cplusplus |
| 10470 | extern "C" |
| 10471 | #endif |
| 10472 | char pthread_rwlock_init (); |
| 10473 | int |
| 10474 | main () |
| 10475 | { |
| 10476 | return pthread_rwlock_init (); |
| 10477 | ; |
| 10478 | return 0; |
| 10479 | } |
| 10480 | _ACEOF |
| 10481 | for ac_lib in '' pthread; do |
| 10482 | if test -z "$ac_lib"; then |
| 10483 | ac_res="none required" |
| 10484 | else |
| 10485 | ac_res=-l$ac_lib |
| 10486 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10487 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10488 | if ac_fn_c_try_link "$LINENO"; then : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10489 | ac_cv_search_pthread_rwlock_init=$ac_res |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10490 | fi |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10491 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10492 | conftest$ac_exeext |
| 10493 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10494 | break |
| 10495 | fi |
| 10496 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10497 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then : |
| 10498 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10499 | else |
| 10500 | ac_cv_search_pthread_rwlock_init=no |
| 10501 | fi |
| 10502 | rm conftest.$ac_ext |
| 10503 | LIBS=$ac_func_search_save_LIBS |
| 10504 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 10506 | $as_echo "$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10507 | ac_res=$ac_cv_search_pthread_rwlock_init |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10508 | if test "$ac_res" != no; then : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10509 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10510 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10511 | $as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 10512 | |
| 10513 | fi |
| 10514 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5 |
| 10516 | $as_echo_n "checking for library containing pthread_getspecific... " >&6; } |
| 10517 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then : |
| 10518 | $as_echo_n "(cached) " >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10519 | else |
| 10520 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10522 | /* end confdefs.h. */ |
| 10523 | |
| 10524 | /* Override any GCC internal prototype to avoid an error. |
| 10525 | Use char because int might match the return type of a GCC |
| 10526 | builtin and then its argument prototype would still apply. */ |
| 10527 | #ifdef __cplusplus |
| 10528 | extern "C" |
| 10529 | #endif |
| 10530 | char pthread_getspecific (); |
| 10531 | int |
| 10532 | main () |
| 10533 | { |
| 10534 | return pthread_getspecific (); |
| 10535 | ; |
| 10536 | return 0; |
| 10537 | } |
| 10538 | _ACEOF |
| 10539 | for ac_lib in '' pthread; do |
| 10540 | if test -z "$ac_lib"; then |
| 10541 | ac_res="none required" |
| 10542 | else |
| 10543 | ac_res=-l$ac_lib |
| 10544 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10545 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10546 | if ac_fn_c_try_link "$LINENO"; then : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10547 | ac_cv_search_pthread_getspecific=$ac_res |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10548 | fi |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10549 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10550 | conftest$ac_exeext |
| 10551 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10552 | break |
| 10553 | fi |
| 10554 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10555 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then : |
| 10556 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10557 | else |
| 10558 | ac_cv_search_pthread_getspecific=no |
| 10559 | fi |
| 10560 | rm conftest.$ac_ext |
| 10561 | LIBS=$ac_func_search_save_LIBS |
| 10562 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5 |
| 10564 | $as_echo "$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10565 | ac_res=$ac_cv_search_pthread_getspecific |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10566 | if test "$ac_res" != no; then : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10567 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10568 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10569 | $as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 10570 | |
| 10571 | fi |
| 10572 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 10573 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 10574 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10575 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10576 | # Check whether --with-udis86 was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10577 | if test "${with_udis86+set}" = set; then : |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10578 | withval=$with_udis86; |
| 10579 | USE_UDIS86=1 |
| 10580 | |
| 10581 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 10582 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10583 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 10584 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ud_init in -ludis86" >&5 |
| 10586 | $as_echo_n "checking for ud_init in -ludis86... " >&6; } |
| 10587 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then : |
| 10588 | $as_echo_n "(cached) " >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10589 | else |
| 10590 | ac_check_lib_save_LIBS=$LIBS |
| 10591 | LIBS="-ludis86 $LIBS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10593 | /* end confdefs.h. */ |
| 10594 | |
| 10595 | /* Override any GCC internal prototype to avoid an error. |
| 10596 | Use char because int might match the return type of a GCC |
| 10597 | builtin and then its argument prototype would still apply. */ |
| 10598 | #ifdef __cplusplus |
| 10599 | extern "C" |
| 10600 | #endif |
| 10601 | char ud_init (); |
| 10602 | int |
| 10603 | main () |
| 10604 | { |
| 10605 | return ud_init (); |
| 10606 | ; |
| 10607 | return 0; |
| 10608 | } |
| 10609 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10610 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10611 | ac_cv_lib_udis86_ud_init=yes |
| 10612 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10613 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10614 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10615 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10616 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10617 | LIBS=$ac_check_lib_save_LIBS |
| 10618 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 10620 | $as_echo "$ac_cv_lib_udis86_ud_init" >&6; } |
| 10621 | if test "x$ac_cv_lib_udis86_ud_init" = x""yes; then : |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 10622 | cat >>confdefs.h <<_ACEOF |
| 10623 | #define HAVE_LIBUDIS86 1 |
| 10624 | _ACEOF |
| 10625 | |
| 10626 | LIBS="-ludis86 $LIBS" |
| 10627 | |
| 10628 | else |
| 10629 | |
| 10630 | echo "Error! You need to have libudis86 around." |
| 10631 | exit -1 |
| 10632 | |
| 10633 | fi |
| 10634 | |
| 10635 | |
| 10636 | else |
| 10637 | USE_UDIS86=0 |
| 10638 | |
| 10639 | fi |
| 10640 | |
| 10641 | |
| 10642 | cat >>confdefs.h <<_ACEOF |
| 10643 | #define USE_UDIS86 $USE_UDIS86 |
| 10644 | _ACEOF |
| 10645 | |
| 10646 | |
| 10647 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10648 | # Check whether --with-oprofile was given. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10649 | if test "${with_oprofile+set}" = set; then : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10650 | withval=$with_oprofile; |
| 10651 | USE_OPROFILE=1 |
| 10652 | |
| 10653 | case "$withval" in |
| 10654 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10655 | no) llvm_cv_oppath= |
| 10656 | USE_OPROFILE=0 |
| 10657 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10658 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 10659 | CPPFLAGS="-I${withval}/include";; |
| 10660 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10661 | if test -n "$llvm_cv_oppath" ; then |
| 10662 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5 |
| 10664 | $as_echo_n "checking for library containing bfd_init... " >&6; } |
| 10665 | if test "${ac_cv_search_bfd_init+set}" = set; then : |
| 10666 | $as_echo_n "(cached) " >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10667 | else |
| 10668 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10670 | /* end confdefs.h. */ |
| 10671 | |
| 10672 | /* Override any GCC internal prototype to avoid an error. |
| 10673 | Use char because int might match the return type of a GCC |
| 10674 | builtin and then its argument prototype would still apply. */ |
| 10675 | #ifdef __cplusplus |
| 10676 | extern "C" |
| 10677 | #endif |
| 10678 | char bfd_init (); |
| 10679 | int |
| 10680 | main () |
| 10681 | { |
| 10682 | return bfd_init (); |
| 10683 | ; |
| 10684 | return 0; |
| 10685 | } |
| 10686 | _ACEOF |
| 10687 | for ac_lib in '' bfd; do |
| 10688 | if test -z "$ac_lib"; then |
| 10689 | ac_res="none required" |
| 10690 | else |
| 10691 | ac_res=-l$ac_lib |
| 10692 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10693 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10694 | if ac_fn_c_try_link "$LINENO"; then : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10695 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10696 | fi |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10697 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10698 | conftest$ac_exeext |
| 10699 | if test "${ac_cv_search_bfd_init+set}" = set; then : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10700 | break |
| 10701 | fi |
| 10702 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10703 | if test "${ac_cv_search_bfd_init+set}" = set; then : |
| 10704 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10705 | else |
| 10706 | ac_cv_search_bfd_init=no |
| 10707 | fi |
| 10708 | rm conftest.$ac_ext |
| 10709 | LIBS=$ac_func_search_save_LIBS |
| 10710 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5 |
| 10712 | $as_echo "$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10713 | ac_res=$ac_cv_search_bfd_init |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10714 | if test "$ac_res" != no; then : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10715 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10716 | |
| 10717 | fi |
| 10718 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5 |
| 10720 | $as_echo_n "checking for library containing op_open_agent... " >&6; } |
| 10721 | if test "${ac_cv_search_op_open_agent+set}" = set; then : |
| 10722 | $as_echo_n "(cached) " >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10723 | else |
| 10724 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10726 | /* end confdefs.h. */ |
| 10727 | |
| 10728 | /* Override any GCC internal prototype to avoid an error. |
| 10729 | Use char because int might match the return type of a GCC |
| 10730 | builtin and then its argument prototype would still apply. */ |
| 10731 | #ifdef __cplusplus |
| 10732 | extern "C" |
| 10733 | #endif |
| 10734 | char op_open_agent (); |
| 10735 | int |
| 10736 | main () |
| 10737 | { |
| 10738 | return op_open_agent (); |
| 10739 | ; |
| 10740 | return 0; |
| 10741 | } |
| 10742 | _ACEOF |
| 10743 | for ac_lib in '' opagent; do |
| 10744 | if test -z "$ac_lib"; then |
| 10745 | ac_res="none required" |
| 10746 | else |
| 10747 | ac_res=-l$ac_lib |
| 10748 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10749 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10750 | if ac_fn_c_try_link "$LINENO"; then : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10751 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10752 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10753 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10754 | conftest$ac_exeext |
| 10755 | if test "${ac_cv_search_op_open_agent+set}" = set; then : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10756 | break |
| 10757 | fi |
| 10758 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10759 | if test "${ac_cv_search_op_open_agent+set}" = set; then : |
| 10760 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10761 | else |
| 10762 | ac_cv_search_op_open_agent=no |
| 10763 | fi |
| 10764 | rm conftest.$ac_ext |
| 10765 | LIBS=$ac_func_search_save_LIBS |
| 10766 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5 |
| 10768 | $as_echo "$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10769 | ac_res=$ac_cv_search_op_open_agent |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10770 | if test "$ac_res" != no; then : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10771 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10772 | |
| 10773 | else |
| 10774 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10775 | echo "Error! You need to have libopagent around." |
| 10776 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10777 | |
| 10778 | fi |
| 10779 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10780 | ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default" |
| 10781 | if test "x$ac_cv_header_opagent_h" = x""yes; then : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10782 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10783 | else |
| 10784 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10785 | echo "Error! You need to have opagent.h around." |
| 10786 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10787 | |
| 10788 | fi |
| 10789 | |
| 10790 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10791 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10792 | |
| 10793 | else |
| 10794 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10795 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10796 | |
| 10797 | |
| 10798 | fi |
| 10799 | |
| 10800 | |
| 10801 | cat >>confdefs.h <<_ACEOF |
| 10802 | #define USE_OPROFILE $USE_OPROFILE |
| 10803 | _ACEOF |
| 10804 | |
| 10805 | |
| 10806 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10807 | ac_header_dirent=no |
| 10808 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10809 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 10811 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10812 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10813 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10814 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10816 | /* end confdefs.h. */ |
| 10817 | #include <sys/types.h> |
| 10818 | #include <$ac_hdr> |
| 10819 | |
| 10820 | int |
| 10821 | main () |
| 10822 | { |
| 10823 | if ((DIR *) 0) |
| 10824 | return 0; |
| 10825 | ; |
| 10826 | return 0; |
| 10827 | } |
| 10828 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10829 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10830 | eval "$as_ac_Header=yes" |
| 10831 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10832 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10835 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10836 | eval ac_res=\$$as_ac_Header |
| 10837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10838 | $as_echo "$ac_res" >&6; } |
| 10839 | eval as_val=\$$as_ac_Header |
| 10840 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10841 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10842 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10843 | _ACEOF |
| 10844 | |
| 10845 | ac_header_dirent=$ac_hdr; break |
| 10846 | fi |
| 10847 | |
| 10848 | done |
| 10849 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10850 | if test $ac_header_dirent = dirent.h; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 10852 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 10853 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 10854 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10855 | else |
| 10856 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10858 | /* end confdefs.h. */ |
| 10859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10860 | /* Override any GCC internal prototype to avoid an error. |
| 10861 | Use char because int might match the return type of a GCC |
| 10862 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10863 | #ifdef __cplusplus |
| 10864 | extern "C" |
| 10865 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10866 | char opendir (); |
| 10867 | int |
| 10868 | main () |
| 10869 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10870 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10871 | ; |
| 10872 | return 0; |
| 10873 | } |
| 10874 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10875 | for ac_lib in '' dir; do |
| 10876 | if test -z "$ac_lib"; then |
| 10877 | ac_res="none required" |
| 10878 | else |
| 10879 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10880 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10881 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10882 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10883 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10884 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10885 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10886 | conftest$ac_exeext |
| 10887 | if test "${ac_cv_search_opendir+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10888 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10889 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10890 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10891 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 10892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10893 | else |
| 10894 | ac_cv_search_opendir=no |
| 10895 | fi |
| 10896 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10897 | LIBS=$ac_func_search_save_LIBS |
| 10898 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 10900 | $as_echo "$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10901 | ac_res=$ac_cv_search_opendir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10902 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10903 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10904 | |
| 10905 | fi |
| 10906 | |
| 10907 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 10909 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 10910 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 10911 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10912 | else |
| 10913 | ac_func_search_save_LIBS=$LIBS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10915 | /* end confdefs.h. */ |
| 10916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10917 | /* Override any GCC internal prototype to avoid an error. |
| 10918 | Use char because int might match the return type of a GCC |
| 10919 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10920 | #ifdef __cplusplus |
| 10921 | extern "C" |
| 10922 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10923 | char opendir (); |
| 10924 | int |
| 10925 | main () |
| 10926 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10927 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10928 | ; |
| 10929 | return 0; |
| 10930 | } |
| 10931 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10932 | for ac_lib in '' x; do |
| 10933 | if test -z "$ac_lib"; then |
| 10934 | ac_res="none required" |
| 10935 | else |
| 10936 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10937 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10938 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10939 | if ac_fn_c_try_link "$LINENO"; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10940 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10941 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10942 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10943 | conftest$ac_exeext |
| 10944 | if test "${ac_cv_search_opendir+set}" = set; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10945 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10946 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10947 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10948 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 10949 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10950 | else |
| 10951 | ac_cv_search_opendir=no |
| 10952 | fi |
| 10953 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10954 | LIBS=$ac_func_search_save_LIBS |
| 10955 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 10957 | $as_echo "$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10958 | ac_res=$ac_cv_search_opendir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10959 | if test "$ac_res" != no; then : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10960 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10961 | |
| 10962 | fi |
| 10963 | |
| 10964 | fi |
| 10965 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 10967 | $as_echo_n "checking for MAP_ANONYMOUS vs. MAP_ANON... " >&6; } |
| 10968 | if test "${ac_cv_header_mmap_anon+set}" = set; then : |
| 10969 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10970 | else |
| 10971 | ac_ext=c |
| 10972 | ac_cpp='$CPP $CPPFLAGS' |
| 10973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10976 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10978 | /* end confdefs.h. */ |
| 10979 | #include <sys/mman.h> |
| 10980 | #include <unistd.h> |
| 10981 | #include <fcntl.h> |
| 10982 | int |
| 10983 | main () |
| 10984 | { |
| 10985 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 10986 | ; |
| 10987 | return 0; |
| 10988 | } |
| 10989 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10990 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10991 | ac_cv_header_mmap_anon=yes |
| 10992 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 10993 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10994 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10996 | ac_ext=c |
| 10997 | ac_cpp='$CPP $CPPFLAGS' |
| 10998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11001 | |
| 11002 | |
| 11003 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_mmap_anon" >&5 |
| 11005 | $as_echo "$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11006 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 11007 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11008 | $as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11009 | |
| 11010 | fi |
| 11011 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| 11013 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| 11014 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
| 11015 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11016 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11018 | /* end confdefs.h. */ |
| 11019 | #include <sys/types.h> |
| 11020 | #include <sys/stat.h> |
| 11021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11022 | #if defined S_ISBLK && defined S_IFDIR |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11023 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11024 | #endif |
| 11025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11026 | #if defined S_ISBLK && defined S_IFCHR |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11027 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11028 | #endif |
| 11029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11030 | #if defined S_ISLNK && defined S_IFREG |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11031 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11032 | #endif |
| 11033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11034 | #if defined S_ISSOCK && defined S_IFREG |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11035 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11036 | #endif |
| 11037 | |
| 11038 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11039 | if ac_fn_c_try_compile "$LINENO"; then : |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11040 | ac_cv_header_stat_broken=no |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11041 | else |
| 11042 | ac_cv_header_stat_broken=yes |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 11043 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11045 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| 11047 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11048 | if test $ac_cv_header_stat_broken = yes; then |
| 11049 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11050 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11051 | |
| 11052 | fi |
| 11053 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 11055 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 11056 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 11057 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11058 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11060 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11061 | #include <stdlib.h> |
| 11062 | #include <stdarg.h> |
| 11063 | #include <string.h> |
| 11064 | #include <float.h> |
| 11065 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11066 | int |
| 11067 | main () |
| 11068 | { |
| 11069 | |
| 11070 | ; |
| 11071 | return 0; |
| 11072 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11073 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11074 | if ac_fn_c_try_compile "$LINENO"; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11075 | ac_cv_header_stdc=yes |
| 11076 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11077 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11080 | |
| 11081 | if test $ac_cv_header_stdc = yes; then |
| 11082 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11084 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11085 | #include <string.h> |
| 11086 | |
| 11087 | _ACEOF |
| 11088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11089 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 11090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11091 | else |
| 11092 | ac_cv_header_stdc=no |
| 11093 | fi |
| 11094 | rm -f conftest* |
| 11095 | |
| 11096 | fi |
| 11097 | |
| 11098 | if test $ac_cv_header_stdc = yes; then |
| 11099 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11101 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11102 | #include <stdlib.h> |
| 11103 | |
| 11104 | _ACEOF |
| 11105 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11106 | $EGREP "free" >/dev/null 2>&1; then : |
| 11107 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11108 | else |
| 11109 | ac_cv_header_stdc=no |
| 11110 | fi |
| 11111 | rm -f conftest* |
| 11112 | |
| 11113 | fi |
| 11114 | |
| 11115 | if test $ac_cv_header_stdc = yes; then |
| 11116 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11117 | if test "$cross_compiling" = yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11118 | : |
| 11119 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11121 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11122 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11123 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11124 | #if ((' ' & 0x0FF) == 0x020) |
| 11125 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 11126 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 11127 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11128 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11129 | (('a' <= (c) && (c) <= 'i') \ |
| 11130 | || ('j' <= (c) && (c) <= 'r') \ |
| 11131 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11132 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 11133 | #endif |
| 11134 | |
| 11135 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 11136 | int |
| 11137 | main () |
| 11138 | { |
| 11139 | int i; |
| 11140 | for (i = 0; i < 256; i++) |
| 11141 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11142 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11143 | return 2; |
| 11144 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11145 | } |
| 11146 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11147 | if ac_fn_c_try_run "$LINENO"; then : |
| 11148 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11149 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11150 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11151 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11153 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11154 | fi |
| 11155 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11156 | fi |
| 11157 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 11159 | $as_echo "$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11160 | if test $ac_cv_header_stdc = yes; then |
| 11161 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11162 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11163 | |
| 11164 | fi |
| 11165 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 11167 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 11168 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : |
| 11169 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11170 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11172 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11173 | #include <sys/types.h> |
| 11174 | #include <sys/wait.h> |
| 11175 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11176 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11177 | #endif |
| 11178 | #ifndef WIFEXITED |
| 11179 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 11180 | #endif |
| 11181 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11182 | int |
| 11183 | main () |
| 11184 | { |
| 11185 | int s; |
| 11186 | wait (&s); |
| 11187 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 11188 | ; |
| 11189 | return 0; |
| 11190 | } |
| 11191 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11192 | if ac_fn_c_try_compile "$LINENO"; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11193 | ac_cv_header_sys_wait_h=yes |
| 11194 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11195 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11198 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 11200 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11201 | if test $ac_cv_header_sys_wait_h = yes; then |
| 11202 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11203 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11204 | |
| 11205 | fi |
| 11206 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 11208 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 11209 | if test "${ac_cv_header_time+set}" = set; then : |
| 11210 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11211 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11213 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11214 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11215 | #include <sys/time.h> |
| 11216 | #include <time.h> |
| 11217 | |
| 11218 | int |
| 11219 | main () |
| 11220 | { |
| 11221 | if ((struct tm *) 0) |
| 11222 | return 0; |
| 11223 | ; |
| 11224 | return 0; |
| 11225 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11226 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11227 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11228 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11229 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11230 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11231 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11233 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 11235 | $as_echo "$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11236 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11237 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11238 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11239 | |
| 11240 | fi |
| 11241 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11242 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11243 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11244 | do : |
| 11245 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11246 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11247 | eval as_val=\$$as_ac_Header |
| 11248 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11249 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11250 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11251 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11252 | |
| 11253 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11254 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11255 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11256 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 11257 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11258 | do : |
| 11259 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11260 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11261 | eval as_val=\$$as_ac_Header |
| 11262 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11263 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11264 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11265 | _ACEOF |
| 11266 | |
| 11267 | fi |
| 11268 | |
| 11269 | done |
| 11270 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 11271 | for ac_header in utime.h windows.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11272 | do : |
| 11273 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11274 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11275 | eval as_val=\$$as_ac_Header |
| 11276 | if test "x$as_val" = x""yes; then : |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11277 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11278 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11279 | _ACEOF |
| 11280 | |
| 11281 | fi |
| 11282 | |
| 11283 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11284 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11285 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11286 | do : |
| 11287 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11288 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11289 | eval as_val=\$$as_ac_Header |
| 11290 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11291 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11292 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 11293 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 11294 | |
| 11295 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 11296 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11297 | done |
| 11298 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 11299 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11300 | do : |
| 11301 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11302 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11303 | eval as_val=\$$as_ac_Header |
| 11304 | if test "x$as_val" = x""yes; then : |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 11305 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11306 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 11307 | _ACEOF |
| 11308 | |
| 11309 | fi |
| 11310 | |
| 11311 | done |
| 11312 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 11313 | if test "$ENABLE_THREADS" -eq 1 ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11314 | for ac_header in pthread.h |
| 11315 | do : |
| 11316 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 11317 | if test "x$ac_cv_header_pthread_h" = x""yes; then : |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11318 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11319 | #define HAVE_PTHREAD_H 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11320 | _ACEOF |
| 11321 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 11322 | |
| 11323 | else |
| 11324 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 11325 | |
| 11326 | fi |
| 11327 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11328 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 11329 | |
| 11330 | else |
| 11331 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 11332 | |
| 11333 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 11334 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 11335 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11336 | for ac_header in ffi.h ffi/ffi.h |
| 11337 | do : |
| 11338 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11339 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 11340 | eval as_val=\$$as_ac_Header |
| 11341 | if test "x$as_val" = x""yes; then : |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 11342 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11343 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 11344 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 11345 | |
| 11346 | fi |
| 11347 | |
| 11348 | done |
| 11349 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 11350 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 11351 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 11352 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 11353 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11354 | |
| 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5 |
| 11356 | $as_echo_n "checking for HUGE_VAL sanity... " >&6; } |
| 11357 | if test "${ac_cv_huge_val_sanity+set}" = set; then : |
| 11358 | $as_echo_n "(cached) " >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11359 | else |
| 11360 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 11361 | ac_ext=cpp |
| 11362 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11363 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11364 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11365 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11366 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 11367 | CXXFLAGS=-pedantic |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11368 | if test "$cross_compiling" = yes; then : |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11369 | ac_cv_huge_val_sanity=yes |
| 11370 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11372 | /* end confdefs.h. */ |
| 11373 | #include <math.h> |
| 11374 | int |
| 11375 | main () |
| 11376 | { |
| 11377 | double x = HUGE_VAL; return x != x; |
| 11378 | ; |
| 11379 | return 0; |
| 11380 | } |
| 11381 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11382 | if ac_fn_cxx_try_run "$LINENO"; then : |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11383 | ac_cv_huge_val_sanity=yes |
| 11384 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11385 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11386 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11387 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11388 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11389 | fi |
| 11390 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11391 | ac_ext=c |
| 11392 | ac_cpp='$CPP $CPPFLAGS' |
| 11393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11396 | |
| 11397 | |
| 11398 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5 |
| 11400 | $as_echo "$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 11401 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 11402 | |
| 11403 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11404 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 11405 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11407 | else |
| 11408 | |
| 11409 | cat >>confdefs.h <<_ACEOF |
| 11410 | #define pid_t int |
| 11411 | _ACEOF |
| 11412 | |
| 11413 | fi |
| 11414 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11415 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 11416 | if test "x$ac_cv_type_size_t" = x""yes; then : |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11417 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11418 | else |
| 11419 | |
| 11420 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11421 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11422 | _ACEOF |
| 11423 | |
| 11424 | fi |
| 11425 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11426 | |
| 11427 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11428 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11429 | _ACEOF |
| 11430 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 11432 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 11433 | if test "${ac_cv_struct_tm+set}" = set; then : |
| 11434 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11435 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11437 | /* end confdefs.h. */ |
| 11438 | #include <sys/types.h> |
| 11439 | #include <time.h> |
| 11440 | |
| 11441 | int |
| 11442 | main () |
| 11443 | { |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11444 | struct tm tm; |
| 11445 | int *p = &tm.tm_sec; |
| 11446 | return !p; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11447 | ; |
| 11448 | return 0; |
| 11449 | } |
| 11450 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11451 | if ac_fn_c_try_compile "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11452 | ac_cv_struct_tm=time.h |
| 11453 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11454 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11455 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11457 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 11459 | $as_echo "$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11460 | if test $ac_cv_struct_tm = sys/time.h; then |
| 11461 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11462 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11463 | |
| 11464 | fi |
| 11465 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11466 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 11467 | if test "x$ac_cv_type_int64_t" = x""yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11468 | |
| 11469 | cat >>confdefs.h <<_ACEOF |
| 11470 | #define HAVE_INT64_T 1 |
| 11471 | _ACEOF |
| 11472 | |
| 11473 | |
| 11474 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11475 | as_fn_error "Type int64_t required but not found" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11476 | fi |
| 11477 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11478 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 11479 | if test "x$ac_cv_type_uint64_t" = x""yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11480 | |
| 11481 | cat >>confdefs.h <<_ACEOF |
| 11482 | #define HAVE_UINT64_T 1 |
| 11483 | _ACEOF |
| 11484 | |
| 11485 | |
| 11486 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11487 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" |
| 11488 | if test "x$ac_cv_type_u_int64_t" = x""yes; then : |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 11489 | |
| 11490 | cat >>confdefs.h <<_ACEOF |
| 11491 | #define HAVE_U_INT64_T 1 |
| 11492 | _ACEOF |
| 11493 | |
| 11494 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 11495 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11496 | as_fn_error "Type uint64_t or u_int64_t required but not found" "$LINENO" 5 |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 11497 | fi |
| 11498 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 11499 | fi |
| 11500 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11501 | |
| 11502 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 11503 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11504 | do : |
| 11505 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11506 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11507 | eval as_val=\$$as_ac_var |
| 11508 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11509 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11510 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11511 | _ACEOF |
| 11512 | |
| 11513 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11514 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11515 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 11516 | for ac_func in powf fmodf strtof round |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11517 | do : |
| 11518 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11519 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11520 | eval as_val=\$$as_ac_var |
| 11521 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 11522 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11523 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 11524 | _ACEOF |
| 11525 | |
| 11526 | fi |
| 11527 | done |
| 11528 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 11529 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11530 | do : |
| 11531 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11532 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11533 | eval as_val=\$$as_ac_var |
| 11534 | if test "x$as_val" = x""yes; then : |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 11535 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11536 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 11537 | _ACEOF |
| 11538 | |
| 11539 | fi |
| 11540 | done |
| 11541 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 11542 | for ac_func in isatty mkdtemp mkstemp |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11543 | do : |
| 11544 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11545 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11546 | eval as_val=\$$as_ac_var |
| 11547 | if test "x$as_val" = x""yes; then : |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 11548 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11549 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 11550 | _ACEOF |
| 11551 | |
| 11552 | fi |
| 11553 | done |
| 11554 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 11555 | for ac_func in mktemp realpath sbrk setrlimit strdup |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11556 | do : |
| 11557 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11558 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11559 | eval as_val=\$$as_ac_var |
| 11560 | if test "x$as_val" = x""yes; then : |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 11561 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11562 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 11563 | _ACEOF |
| 11564 | |
| 11565 | fi |
| 11566 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 11567 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 11568 | for ac_func in strerror strerror_r strerror_s setenv |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11569 | do : |
| 11570 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11571 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11572 | eval as_val=\$$as_ac_var |
| 11573 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 11574 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11575 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 11576 | _ACEOF |
| 11577 | |
| 11578 | fi |
| 11579 | done |
| 11580 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 11581 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11582 | do : |
| 11583 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11584 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11585 | eval as_val=\$$as_ac_var |
| 11586 | if test "x$as_val" = x""yes; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11587 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11588 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11589 | _ACEOF |
| 11590 | |
| 11591 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11592 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11593 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 11594 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11595 | do : |
| 11596 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11597 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11598 | eval as_val=\$$as_ac_var |
| 11599 | if test "x$as_val" = x""yes; then : |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 11600 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11601 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 11602 | _ACEOF |
| 11603 | |
| 11604 | fi |
| 11605 | done |
| 11606 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has the %a format character" >&5 |
| 11608 | $as_echo_n "checking if printf has the %a format character... " >&6; } |
| 11609 | if test "${llvm_cv_c_printf_a+set}" = set; then : |
| 11610 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11611 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11612 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11613 | ac_cpp='$CPP $CPPFLAGS' |
| 11614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11617 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11618 | if test "$cross_compiling" = yes; then : |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 11619 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11620 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11622 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11623 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11624 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11625 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11626 | #include <stdlib.h> |
| 11627 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11628 | int |
| 11629 | main () |
| 11630 | { |
| 11631 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11632 | volatile double A, B; |
| 11633 | char Buffer[100]; |
| 11634 | A = 1; |
| 11635 | A /= 10.0; |
| 11636 | sprintf(Buffer, "%a", A); |
| 11637 | B = atof(Buffer); |
| 11638 | if (A != B) |
| 11639 | return (1); |
| 11640 | if (A != 0x1.999999999999ap-4) |
| 11641 | return (1); |
| 11642 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11643 | ; |
| 11644 | return 0; |
| 11645 | } |
| 11646 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11647 | if ac_fn_c_try_run "$LINENO"; then : |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 11648 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11649 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11650 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11651 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11652 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11653 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11654 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11655 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11656 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11657 | ac_cpp='$CPP $CPPFLAGS' |
| 11658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11661 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11662 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_c_printf_a" >&5 |
| 11664 | $as_echo "$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 11665 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11666 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11667 | $as_echo "#define HAVE_PRINTF_A 1" >>confdefs.h |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11668 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11669 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 11670 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11671 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 11673 | $as_echo_n "checking for srand48/lrand48/drand48 in <stdlib.h>... " >&6; } |
| 11674 | if test "${ac_cv_func_rand48+set}" = set; then : |
| 11675 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11676 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11677 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11678 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11679 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11680 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11681 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11682 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11684 | /* end confdefs.h. */ |
| 11685 | #include <stdlib.h> |
| 11686 | int |
| 11687 | main () |
| 11688 | { |
| 11689 | srand48(0);lrand48();drand48(); |
| 11690 | ; |
| 11691 | return 0; |
| 11692 | } |
| 11693 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11694 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11695 | ac_cv_func_rand48=yes |
| 11696 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11697 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11700 | ac_ext=c |
| 11701 | ac_cpp='$CPP $CPPFLAGS' |
| 11702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11705 | |
| 11706 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_rand48" >&5 |
| 11708 | $as_echo "$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11709 | |
| 11710 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 11711 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11712 | $as_echo "#define HAVE_RAND48 1" >>confdefs.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11713 | |
| 11714 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 11715 | |
| 11716 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11717 | |
| 11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <math.h>" >&5 |
| 11719 | $as_echo_n "checking for isnan in <math.h>... " >&6; } |
| 11720 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then : |
| 11721 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11722 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11723 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11724 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11725 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11726 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11727 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11728 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11730 | /* end confdefs.h. */ |
| 11731 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11732 | int |
| 11733 | main () |
| 11734 | { |
| 11735 | float f; isnan(f); |
| 11736 | ; |
| 11737 | return 0; |
| 11738 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11739 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11740 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11741 | ac_cv_func_isnan_in_math_h=yes |
| 11742 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11743 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11746 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11747 | ac_cpp='$CPP $CPPFLAGS' |
| 11748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11751 | |
| 11752 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 11754 | $as_echo "$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11755 | |
| 11756 | |
| 11757 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11758 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11759 | $as_echo "#define HAVE_ISNAN_IN_MATH_H 1" >>confdefs.h |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11760 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11761 | fi |
| 11762 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <cmath>" >&5 |
| 11764 | $as_echo_n "checking for isnan in <cmath>... " >&6; } |
| 11765 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then : |
| 11766 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11767 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11768 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11769 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11773 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11775 | /* end confdefs.h. */ |
| 11776 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11777 | int |
| 11778 | main () |
| 11779 | { |
| 11780 | float f; isnan(f); |
| 11781 | ; |
| 11782 | return 0; |
| 11783 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11784 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11785 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11786 | ac_cv_func_isnan_in_cmath=yes |
| 11787 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11788 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11791 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11792 | ac_cpp='$CPP $CPPFLAGS' |
| 11793 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11794 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11795 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11796 | |
| 11797 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 11799 | $as_echo "$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11800 | |
| 11801 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11802 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11803 | $as_echo "#define HAVE_ISNAN_IN_CMATH 1" >>confdefs.h |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11804 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11805 | fi |
| 11806 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in <cmath>" >&5 |
| 11808 | $as_echo_n "checking for std::isnan in <cmath>... " >&6; } |
| 11809 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then : |
| 11810 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11811 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11812 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11813 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11814 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11815 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11816 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11817 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11819 | /* end confdefs.h. */ |
| 11820 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11821 | int |
| 11822 | main () |
| 11823 | { |
| 11824 | float f; std::isnan(f); |
| 11825 | ; |
| 11826 | return 0; |
| 11827 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11828 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11829 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11830 | ac_cv_func_std_isnan_in_cmath=yes |
| 11831 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11832 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11835 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11836 | ac_cpp='$CPP $CPPFLAGS' |
| 11837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11840 | |
| 11841 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 11843 | $as_echo "$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11844 | |
| 11845 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11846 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11847 | $as_echo "#define HAVE_STD_ISNAN_IN_CMATH 1" >>confdefs.h |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11848 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11849 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 11850 | |
| 11851 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <math.h>" >&5 |
| 11853 | $as_echo_n "checking for isinf in <math.h>... " >&6; } |
| 11854 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then : |
| 11855 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11856 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11857 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11858 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11859 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11860 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11861 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11862 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11864 | /* end confdefs.h. */ |
| 11865 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11866 | int |
| 11867 | main () |
| 11868 | { |
| 11869 | float f; isinf(f); |
| 11870 | ; |
| 11871 | return 0; |
| 11872 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11873 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11874 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11875 | ac_cv_func_isinf_in_math_h=yes |
| 11876 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11877 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11878 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11880 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11881 | ac_cpp='$CPP $CPPFLAGS' |
| 11882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11885 | |
| 11886 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 11888 | $as_echo "$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11889 | |
| 11890 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11891 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11892 | $as_echo "#define HAVE_ISINF_IN_MATH_H 1" >>confdefs.h |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11893 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11894 | fi |
| 11895 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <cmath>" >&5 |
| 11897 | $as_echo_n "checking for isinf in <cmath>... " >&6; } |
| 11898 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then : |
| 11899 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11900 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11901 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11902 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11906 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11908 | /* end confdefs.h. */ |
| 11909 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11910 | int |
| 11911 | main () |
| 11912 | { |
| 11913 | float f; isinf(f); |
| 11914 | ; |
| 11915 | return 0; |
| 11916 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11917 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11918 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11919 | ac_cv_func_isinf_in_cmath=yes |
| 11920 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11921 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11922 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11924 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11925 | ac_cpp='$CPP $CPPFLAGS' |
| 11926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11929 | |
| 11930 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 11932 | $as_echo "$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11933 | |
| 11934 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11935 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11936 | $as_echo "#define HAVE_ISINF_IN_CMATH 1" >>confdefs.h |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11937 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11938 | fi |
| 11939 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in <cmath>" >&5 |
| 11941 | $as_echo_n "checking for std::isinf in <cmath>... " >&6; } |
| 11942 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then : |
| 11943 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11944 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11945 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11946 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11947 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11948 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11949 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11950 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11952 | /* end confdefs.h. */ |
| 11953 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11954 | int |
| 11955 | main () |
| 11956 | { |
| 11957 | float f; std::isinf(f)} |
| 11958 | ; |
| 11959 | return 0; |
| 11960 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11961 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11962 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11963 | ac_cv_func_std_isinf_in_cmath=yes |
| 11964 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11965 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11968 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11969 | ac_cpp='$CPP $CPPFLAGS' |
| 11970 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11971 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11972 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11973 | |
| 11974 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 11976 | $as_echo "$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11977 | |
| 11978 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11979 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11980 | $as_echo "#define HAVE_STD_ISINF_IN_CMATH 1" >>confdefs.h |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 11981 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11982 | fi |
| 11983 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <ieeefp.h>" >&5 |
| 11985 | $as_echo_n "checking for finite in <ieeefp.h>... " >&6; } |
| 11986 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then : |
| 11987 | $as_echo_n "(cached) " >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 11988 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11989 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 11990 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11991 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11992 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11993 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11994 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 11995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 11996 | /* end confdefs.h. */ |
| 11997 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 11998 | int |
| 11999 | main () |
| 12000 | { |
| 12001 | float f; finite(f); |
| 12002 | ; |
| 12003 | return 0; |
| 12004 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 12005 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12006 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 12007 | ac_cv_func_finite_in_ieeefp_h=yes |
| 12008 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12009 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 12010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 12012 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 12013 | ac_cpp='$CPP $CPPFLAGS' |
| 12014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12017 | |
| 12018 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 12020 | $as_echo "$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 12021 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 12022 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 12023 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12024 | $as_echo "#define HAVE_FINITE_IN_IEEEFP_H 1" >>confdefs.h |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 12025 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 12026 | fi |
| 12027 | |
| 12028 | |
| 12029 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 12030 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12031 | |
| 12032 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12033 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12034 | for ac_header in $ac_header_list |
| 12035 | do : |
| 12036 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12037 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 12038 | " |
| 12039 | eval as_val=\$$as_ac_Header |
| 12040 | if test "x$as_val" = x""yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12041 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12042 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12043 | _ACEOF |
| 12044 | |
| 12045 | fi |
| 12046 | |
| 12047 | done |
| 12048 | |
| 12049 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12050 | |
| 12051 | |
| 12052 | |
| 12053 | |
| 12054 | |
| 12055 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12056 | for ac_func in getpagesize |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12057 | do : |
| 12058 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 12059 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12060 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12061 | #define HAVE_GETPAGESIZE 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12062 | _ACEOF |
| 12063 | |
| 12064 | fi |
| 12065 | done |
| 12066 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| 12068 | $as_echo_n "checking for working mmap... " >&6; } |
| 12069 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
| 12070 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12071 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12072 | if test "$cross_compiling" = yes; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12073 | ac_cv_func_mmap_fixed_mapped=no |
| 12074 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12076 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12077 | $ac_includes_default |
| 12078 | /* malloc might have been renamed as rpl_malloc. */ |
| 12079 | #undef malloc |
| 12080 | |
| 12081 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 12082 | Here is a matrix of mmap possibilities: |
| 12083 | mmap private not fixed |
| 12084 | mmap private fixed at somewhere currently unmapped |
| 12085 | mmap private fixed at somewhere already mapped |
| 12086 | mmap shared not fixed |
| 12087 | mmap shared fixed at somewhere currently unmapped |
| 12088 | mmap shared fixed at somewhere already mapped |
| 12089 | For private mappings, we should verify that changes cannot be read() |
| 12090 | back from the file, nor mmap's back from the file at a different |
| 12091 | address. (There have been systems where private was not correctly |
| 12092 | implemented like the infamous i386 svr4.0, and systems where the |
| 12093 | VM page cache was not coherent with the file system buffer cache |
| 12094 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 12095 | For shared mappings, we should conversely verify that changes get |
| 12096 | propagated back to all the places they're supposed to be. |
| 12097 | |
| 12098 | Grep wants private fixed already mapped. |
| 12099 | The main things grep needs to know about mmap are: |
| 12100 | * does it exist and is it safe to write into the mmap'd area |
| 12101 | * how to use it (BSD variants) */ |
| 12102 | |
| 12103 | #include <fcntl.h> |
| 12104 | #include <sys/mman.h> |
| 12105 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12106 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12107 | char *malloc (); |
| 12108 | #endif |
| 12109 | |
| 12110 | /* This mess was copied from the GNU getpagesize.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12111 | #ifndef HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12112 | # ifdef _SC_PAGESIZE |
| 12113 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 12114 | # else /* no _SC_PAGESIZE */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12115 | # ifdef HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12116 | # include <sys/param.h> |
| 12117 | # ifdef EXEC_PAGESIZE |
| 12118 | # define getpagesize() EXEC_PAGESIZE |
| 12119 | # else /* no EXEC_PAGESIZE */ |
| 12120 | # ifdef NBPG |
| 12121 | # define getpagesize() NBPG * CLSIZE |
| 12122 | # ifndef CLSIZE |
| 12123 | # define CLSIZE 1 |
| 12124 | # endif /* no CLSIZE */ |
| 12125 | # else /* no NBPG */ |
| 12126 | # ifdef NBPC |
| 12127 | # define getpagesize() NBPC |
| 12128 | # else /* no NBPC */ |
| 12129 | # ifdef PAGESIZE |
| 12130 | # define getpagesize() PAGESIZE |
| 12131 | # endif /* PAGESIZE */ |
| 12132 | # endif /* no NBPC */ |
| 12133 | # endif /* no NBPG */ |
| 12134 | # endif /* no EXEC_PAGESIZE */ |
| 12135 | # else /* no HAVE_SYS_PARAM_H */ |
| 12136 | # define getpagesize() 8192 /* punt totally */ |
| 12137 | # endif /* no HAVE_SYS_PARAM_H */ |
| 12138 | # endif /* no _SC_PAGESIZE */ |
| 12139 | |
| 12140 | #endif /* no HAVE_GETPAGESIZE */ |
| 12141 | |
| 12142 | int |
| 12143 | main () |
| 12144 | { |
| 12145 | char *data, *data2, *data3; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12146 | const char *cdata2; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12147 | int i, pagesize; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12148 | int fd, fd2; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12149 | |
| 12150 | pagesize = getpagesize (); |
| 12151 | |
| 12152 | /* First, make a file with some known garbage in it. */ |
| 12153 | data = (char *) malloc (pagesize); |
| 12154 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12155 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12156 | for (i = 0; i < pagesize; ++i) |
| 12157 | *(data + i) = rand (); |
| 12158 | umask (0); |
| 12159 | fd = creat ("conftest.mmap", 0600); |
| 12160 | if (fd < 0) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12161 | return 2; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12162 | if (write (fd, data, pagesize) != pagesize) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12163 | return 3; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12164 | close (fd); |
| 12165 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12166 | /* Next, check that the tail of a page is zero-filled. File must have |
| 12167 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 12168 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 12169 | if (fd2 < 0) |
| 12170 | return 4; |
| 12171 | cdata2 = ""; |
| 12172 | if (write (fd2, cdata2, 1) != 1) |
| 12173 | return 5; |
| 12174 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 12175 | if (data2 == MAP_FAILED) |
| 12176 | return 6; |
| 12177 | for (i = 0; i < pagesize; ++i) |
| 12178 | if (*(data2 + i)) |
| 12179 | return 7; |
| 12180 | close (fd2); |
| 12181 | if (munmap (data2, pagesize)) |
| 12182 | return 8; |
| 12183 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12184 | /* Next, try to mmap the file at a fixed address which already has |
| 12185 | something else allocated at it. If we can, also make sure that |
| 12186 | we see the same garbage. */ |
| 12187 | fd = open ("conftest.mmap", O_RDWR); |
| 12188 | if (fd < 0) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12189 | return 9; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12190 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12191 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12192 | return 10; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12193 | for (i = 0; i < pagesize; ++i) |
| 12194 | if (*(data + i) != *(data2 + i)) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12195 | return 11; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12196 | |
| 12197 | /* Finally, make sure that changes to the mapped area do not |
| 12198 | percolate back to the file as seen by read(). (This is a bug on |
| 12199 | some variants of i386 svr4.0.) */ |
| 12200 | for (i = 0; i < pagesize; ++i) |
| 12201 | *(data2 + i) = *(data2 + i) + 1; |
| 12202 | data3 = (char *) malloc (pagesize); |
| 12203 | if (!data3) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12204 | return 12; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12205 | if (read (fd, data3, pagesize) != pagesize) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12206 | return 13; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12207 | for (i = 0; i < pagesize; ++i) |
| 12208 | if (*(data + i) != *(data3 + i)) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12209 | return 14; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12210 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12211 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12212 | } |
| 12213 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12214 | if ac_fn_c_try_run "$LINENO"; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12215 | ac_cv_func_mmap_fixed_mapped=yes |
| 12216 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12217 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12218 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12219 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12220 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12222 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12223 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 12225 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12226 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 12227 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12228 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12229 | |
| 12230 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12231 | rm -f conftest.mmap conftest.txt |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12232 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap of files" >&5 |
| 12234 | $as_echo_n "checking for mmap of files... " >&6; } |
| 12235 | if test "${ac_cv_func_mmap_file+set}" = set; then : |
| 12236 | $as_echo_n "(cached) " >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12237 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12238 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12239 | ac_cpp='$CPP $CPPFLAGS' |
| 12240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12243 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12244 | if test "$cross_compiling" = yes; then : |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 12245 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12246 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 12248 | /* end confdefs.h. */ |
| 12249 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12250 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12251 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12252 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12253 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 12254 | |
| 12255 | int |
| 12256 | main () |
| 12257 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12258 | |
| 12259 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 12260 | fd = creat ("foo",0777); |
| 12261 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 12262 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 12263 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 12264 | ; |
| 12265 | return 0; |
| 12266 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12267 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12268 | if ac_fn_c_try_run "$LINENO"; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12269 | ac_cv_func_mmap_file=yes |
| 12270 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12271 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12272 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12273 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12274 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12275 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12276 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12277 | ac_ext=c |
| 12278 | ac_cpp='$CPP $CPPFLAGS' |
| 12279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12282 | |
| 12283 | |
| 12284 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5 |
| 12286 | $as_echo "$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12287 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12288 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12289 | $as_echo "#define HAVE_MMAP_FILE /**/" >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12290 | |
| 12291 | MMAP_FILE=yes |
| 12292 | |
| 12293 | fi |
| 12294 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/zero is needed for mmap" >&5 |
| 12296 | $as_echo_n "checking if /dev/zero is needed for mmap... " >&6; } |
| 12297 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then : |
| 12298 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12299 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 12300 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12301 | ac_cv_need_dev_zero_for_mmap=yes |
| 12302 | else |
| 12303 | ac_cv_need_dev_zero_for_mmap=no |
| 12304 | fi |
| 12305 | |
| 12306 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 12308 | $as_echo "$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12309 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 12310 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12311 | $as_echo "#define NEED_DEV_ZERO_FOR_MMAP 1" >>confdefs.h |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12312 | |
| 12313 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12314 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 12315 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 12316 | then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 12318 | $as_echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 12319 | fi |
| 12320 | if test "$ac_cv_func_mmap_file" = "no" |
| 12321 | then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of files required but not found" >&5 |
| 12323 | $as_echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 12324 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 12325 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12326 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5 |
| 12328 | $as_echo_n "checking for GCC atomic builtins... " >&6; } |
| 12329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12330 | /* end confdefs.h. */ |
| 12331 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 12332 | volatile unsigned long val = 1; |
| 12333 | __sync_synchronize(); |
| 12334 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 12335 | __sync_add_and_fetch(&val, 1); |
| 12336 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 12337 | return 0; |
| 12338 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12339 | |
| 12340 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12341 | if ac_fn_c_try_link "$LINENO"; then : |
| 12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12343 | $as_echo "yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 12344 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12345 | $as_echo "#define LLVM_MULTITHREADED 1" >>confdefs.h |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 12346 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12347 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12349 | $as_echo "no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12350 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12351 | $as_echo "#define LLVM_MULTITHREADED 0" >>confdefs.h |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12352 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 12354 | $as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12355 | fi |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12356 | rm -f core conftest.err conftest.$ac_objext \ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12357 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 12358 | |
| 12359 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12360 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12361 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5 |
| 12363 | $as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; } |
| 12364 | if test "${llvm_cv_linux_mixed+set}" = set; then : |
| 12365 | $as_echo_n "(cached) " >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12366 | else |
| 12367 | ac_ext=c |
| 12368 | ac_cpp='$CPP $CPPFLAGS' |
| 12369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12372 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12374 | /* end confdefs.h. */ |
| 12375 | #ifndef __x86_64__ |
| 12376 | error: Not x86-64 even if uname says so! |
| 12377 | #endif |
| 12378 | |
| 12379 | int |
| 12380 | main () |
| 12381 | { |
| 12382 | |
| 12383 | ; |
| 12384 | return 0; |
| 12385 | } |
| 12386 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12387 | if ac_fn_c_try_compile "$LINENO"; then : |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12388 | llvm_cv_linux_mixed=no |
| 12389 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12390 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12391 | fi |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12393 | ac_ext=c |
| 12394 | ac_cpp='$CPP $CPPFLAGS' |
| 12395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12398 | |
| 12399 | |
| 12400 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5 |
| 12402 | $as_echo "$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 12403 | |
| 12404 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 12405 | llvm_cv_target_arch="x86" |
| 12406 | ARCH="x86" |
| 12407 | fi |
| 12408 | fi |
| 12409 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 12410 | for ac_func in __dso_handle |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12411 | do : |
| 12412 | ac_fn_c_check_func "$LINENO" "__dso_handle" "ac_cv_func___dso_handle" |
| 12413 | if test "x$ac_cv_func___dso_handle" = x""yes; then : |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 12414 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12415 | #define HAVE___DSO_HANDLE 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 12416 | _ACEOF |
| 12417 | |
| 12418 | fi |
| 12419 | done |
| 12420 | |
| 12421 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llvm-gcc is sane" >&5 |
| 12423 | $as_echo_n "checking whether llvm-gcc is sane... " >&6; } |
| 12424 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then : |
| 12425 | $as_echo_n "(cached) " >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12426 | else |
| 12427 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 12428 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12429 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 12430 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 12431 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12432 | if test $? -eq 0 ; then |
| 12433 | llvm_cv_llvmgcc_sanity="yes" |
| 12434 | fi |
| 12435 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 12436 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12437 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 12439 | $as_echo "$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12440 | |
| 12441 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm-gcc component support" >&5 |
| 12443 | $as_echo_n "checking llvm-gcc component support... " >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 12444 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12445 | LLVMCC1=$llvmcc1path |
| 12446 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 12447 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12448 | LLVMCC1PLUS=$llvmcc1pluspath |
| 12449 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 12450 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 12451 | LLVMGCCDIR=$llvmgccdir |
| 12452 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 12453 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 12454 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 12455 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 12456 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 12457 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 12458 | LLVMGCC_VERSION=$llvmgccversion |
| 12459 | |
| 12460 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 12461 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 12462 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 12463 | LLVMGCC_LANGS=$llvmgcclangs |
| 12464 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 12466 | $as_echo "ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 12467 | fi |
| 12468 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12469 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 12470 | |
| 12471 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 12472 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12473 | # information into substitutions that will end up in Makefile.config.in |
| 12474 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12475 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 12476 | prefix="/usr/local" |
| 12477 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 12478 | eval LLVM_PREFIX="${prefix}"; |
| 12479 | eval LLVM_BINDIR="${prefix}/bin"; |
| 12480 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 12481 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 12482 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 12483 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 12484 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 12485 | eval LLVM_INFODIR="${prefix}/info"; |
| 12486 | eval LLVM_MANDIR="${prefix}/man"; |
| 12487 | LLVM_CONFIGTIME=`date` |
| 12488 | |
| 12489 | |
| 12490 | |
| 12491 | |
| 12492 | |
| 12493 | |
| 12494 | |
| 12495 | |
| 12496 | |
| 12497 | |
| 12498 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12499 | # Place the various directores into the config.h file as #defines so that we |
| 12500 | # can know about the installation paths within LLVM. |
| 12501 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 12502 | cat >>confdefs.h <<_ACEOF |
| 12503 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 12504 | _ACEOF |
| 12505 | |
| 12506 | |
| 12507 | cat >>confdefs.h <<_ACEOF |
| 12508 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 12509 | _ACEOF |
| 12510 | |
| 12511 | |
| 12512 | cat >>confdefs.h <<_ACEOF |
| 12513 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 12514 | _ACEOF |
| 12515 | |
| 12516 | |
| 12517 | cat >>confdefs.h <<_ACEOF |
| 12518 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 12519 | _ACEOF |
| 12520 | |
| 12521 | |
| 12522 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 12523 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 12524 | _ACEOF |
| 12525 | |
| 12526 | |
| 12527 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 12528 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 12529 | _ACEOF |
| 12530 | |
| 12531 | |
| 12532 | cat >>confdefs.h <<_ACEOF |
| 12533 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 12534 | _ACEOF |
| 12535 | |
| 12536 | |
| 12537 | cat >>confdefs.h <<_ACEOF |
| 12538 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 12539 | _ACEOF |
| 12540 | |
| 12541 | |
| 12542 | cat >>confdefs.h <<_ACEOF |
| 12543 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 12544 | _ACEOF |
| 12545 | |
| 12546 | |
| 12547 | cat >>confdefs.h <<_ACEOF |
| 12548 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 12549 | _ACEOF |
| 12550 | |
| 12551 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 12552 | cat >>confdefs.h <<_ACEOF |
| 12553 | #define LLVM_HOSTTRIPLE "$host" |
| 12554 | _ACEOF |
| 12555 | |
| 12556 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 12557 | # Determine which bindings to build. |
| 12558 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 12559 | BINDINGS_TO_BUILD="" |
| 12560 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 12561 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 12562 | fi |
| 12563 | fi |
| 12564 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 12565 | |
| 12566 | |
| 12567 | # This isn't really configurey, but it avoids having to repeat the list in |
| 12568 | # other files. |
| 12569 | ALL_BINDINGS=ocaml |
| 12570 | |
| 12571 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 12572 | # Do any work necessary to ensure that bindings have what they need. |
| 12573 | binding_prereqs_failed=0 |
| 12574 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 12575 | case "$a_binding" in |
| 12576 | ocaml) |
| 12577 | if test "x$OCAMLC" = x ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 12579 | $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 12580 | binding_prereqs_failed=1 |
| 12581 | fi |
| 12582 | if test "x$OCAMLDEP" = x ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 12584 | $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 12585 | binding_prereqs_failed=1 |
| 12586 | fi |
| 12587 | if test "x$OCAMLOPT" = x ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 12589 | $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 12590 | fi |
| 12591 | if test "x$with_ocaml_libdir" != xauto ; then |
| 12592 | OCAML_LIBDIR=$with_ocaml_libdir |
| 12593 | |
| 12594 | else |
| 12595 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 12596 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 12597 | then |
| 12598 | # ocaml stdlib is beneath our prefix; use stdlib |
| 12599 | OCAML_LIBDIR=$ocaml_stdlib |
| 12600 | |
| 12601 | else |
| 12602 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 12603 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 12604 | |
| 12605 | fi |
| 12606 | fi |
| 12607 | ;; |
| 12608 | esac |
| 12609 | done |
| 12610 | if test "$binding_prereqs_failed" = 1 ; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12611 | as_fn_error "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5 |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 12612 | fi |
| 12613 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 12615 | $as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; } |
| 12616 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then : |
| 12617 | $as_echo_n "(cached) " >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 12618 | else |
| 12619 | ac_ext=cpp |
| 12620 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12621 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12622 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12623 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12624 | |
| 12625 | oldcxxflags="$CXXFLAGS" |
| 12626 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 12628 | /* end confdefs.h. */ |
| 12629 | |
| 12630 | int |
| 12631 | main () |
| 12632 | { |
| 12633 | |
| 12634 | ; |
| 12635 | return 0; |
| 12636 | } |
| 12637 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12638 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 12639 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 12640 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12641 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 12642 | fi |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 12643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12644 | CXXFLAGS="$oldcxxflags" |
| 12645 | ac_ext=c |
| 12646 | ac_cpp='$CPP $CPPFLAGS' |
| 12647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12650 | |
| 12651 | |
| 12652 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 12654 | $as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 12655 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 12656 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 12657 | |
| 12658 | else |
| 12659 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 12660 | |
| 12661 | fi |
| 12662 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 12663 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 12664 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 12665 | RPATH="-Wl,-R" |
| 12666 | else |
| 12667 | RPATH="-Wl,-rpath" |
| 12668 | fi |
| 12669 | |
| 12670 | |
| 12671 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 12672 | RDYNAMIC="-Wl,-export-dynamic" |
| 12673 | else |
| 12674 | RDYNAMIC="" |
| 12675 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 12676 | |
| 12677 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12679 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12680 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 12681 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 12682 | |
| 12683 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 12684 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12685 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 12686 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 12687 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 12688 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 12689 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12690 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12692 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12693 | |
| 12694 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 12695 | ac_config_files="$ac_config_files llvm.spec" |
| 12696 | |
| 12697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12698 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 12699 | |
| 12700 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12701 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 12702 | |
| 12703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12704 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 12705 | |
| 12706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12707 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 12708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12709 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12710 | |
| 12711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12712 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12713 | |
| 12714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12715 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12716 | |
| 12717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12718 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12719 | |
| 12720 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 12721 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 12722 | |
| 12723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12724 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12725 | |
| 12726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12727 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12728 | |
| 12729 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 12730 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 12731 | |
| 12732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12733 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12734 | |
| 12735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12736 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12737 | |
| 12738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12739 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12740 | |
| 12741 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 12742 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 12743 | |
| 12744 | |
| 12745 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 12746 | |
| 12747 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12749 | cat >confcache <<\_ACEOF |
| 12750 | # This file is a shell script that caches the results of configure |
| 12751 | # tests run on this system so they can be shared between configure |
| 12752 | # scripts and configure runs, see configure's option --config-cache. |
| 12753 | # It is not useful on other systems. If it contains results you don't |
| 12754 | # want to keep, you may remove or edit it. |
| 12755 | # |
| 12756 | # config.status only pays attention to the cache file if you give it |
| 12757 | # the --recheck option to rerun configure. |
| 12758 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12759 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12760 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 12761 | # following values. |
| 12762 | |
| 12763 | _ACEOF |
| 12764 | |
| 12765 | # The following way of writing the cache mishandles newlines in values, |
| 12766 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12767 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12768 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 12769 | # and sets the high bit in the cache file unless we assign to the vars. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | ( |
| 12771 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 12772 | eval ac_val=\$$ac_var |
| 12773 | case $ac_val in #( |
| 12774 | *${as_nl}*) |
| 12775 | case $ac_var in #( |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12776 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 12777 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12778 | esac |
| 12779 | case $ac_var in #( |
| 12780 | _ | IFS | as_nl) ;; #( |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12781 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 12782 | *) { eval $ac_var=; unset $ac_var;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12783 | esac ;; |
| 12784 | esac |
| 12785 | done |
| 12786 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12787 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12788 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 12789 | *${as_nl}ac_space=\ *) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12790 | # `set' does not quote correctly, so add quotes: double-quote |
| 12791 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12792 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12793 | "s/'/'\\\\''/g; |
| 12794 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12795 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12796 | *) |
| 12797 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12798 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12799 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12800 | esac | |
| 12801 | sort |
| 12802 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12803 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12804 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12805 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12807 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 12808 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12809 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12810 | :end' >>confcache |
| 12811 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 12812 | if test -w "$cache_file"; then |
| 12813 | test "x$cache_file" != "x/dev/null" && |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 12815 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12816 | cat confcache >$cache_file |
| 12817 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 12819 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12820 | fi |
| 12821 | fi |
| 12822 | rm -f confcache |
| 12823 | |
| 12824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12825 | # Let make expand exec_prefix. |
| 12826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12827 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12828 | DEFS=-DHAVE_CONFIG_H |
| 12829 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12830 | ac_libobjs= |
| 12831 | ac_ltlibobjs= |
| 12832 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12833 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12834 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12835 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12836 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 12837 | # will be set to the directory where LIBOBJS objects are built. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12838 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 12839 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12840 | done |
| 12841 | LIBOBJS=$ac_libobjs |
| 12842 | |
| 12843 | LTLIBOBJS=$ac_ltlibobjs |
| 12844 | |
| 12845 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12846 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12847 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12848 | as_fn_error "conditional \"INSTALL_LTDL\" was never defined. |
| 12849 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12850 | fi |
| 12851 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12852 | as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined. |
| 12853 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12854 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12855 | |
| 12856 | : ${CONFIG_STATUS=./config.status} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12857 | ac_write_fail=0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12858 | ac_clean_files_save=$ac_clean_files |
| 12859 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 12861 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12862 | as_write_fail=0 |
| 12863 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12864 | #! $SHELL |
| 12865 | # Generated by $as_me. |
| 12866 | # Run this file to recreate the current configuration. |
| 12867 | # Compiler output produced by configure, useful for debugging |
| 12868 | # configure, is in config.log if it exists. |
| 12869 | |
| 12870 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12871 | ac_cs_recheck=false |
| 12872 | ac_cs_silent=false |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12873 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12874 | SHELL=\${CONFIG_SHELL-$SHELL} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12875 | export SHELL |
| 12876 | _ASEOF |
| 12877 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 12878 | ## -------------------- ## |
| 12879 | ## M4sh Initialization. ## |
| 12880 | ## -------------------- ## |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12881 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12882 | # Be more Bourne compatible |
| 12883 | DUALCASE=1; export DUALCASE # for MKS sh |
| 12884 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12885 | emulate sh |
| 12886 | NULLCMD=: |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12887 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12888 | # is contrary to our usage. Disable this feature. |
| 12889 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12890 | setopt NO_GLOB_SUBST |
| 12891 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12892 | case `(set -o) 2>/dev/null` in #( |
| 12893 | *posix*) : |
| 12894 | set -o posix ;; #( |
| 12895 | *) : |
| 12896 | ;; |
| 12897 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12898 | fi |
| 12899 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12900 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12901 | as_nl=' |
| 12902 | ' |
| 12903 | export as_nl |
| 12904 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 12905 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 12906 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 12907 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 12908 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 12909 | # but without wasting forks for bash or zsh. |
| 12910 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 12911 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 12912 | as_echo='print -r --' |
| 12913 | as_echo_n='print -rn --' |
| 12914 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 12915 | as_echo='printf %s\n' |
| 12916 | as_echo_n='printf %s' |
| 12917 | else |
| 12918 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 12919 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 12920 | as_echo_n='/usr/ucb/echo -n' |
| 12921 | else |
| 12922 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 12923 | as_echo_n_body='eval |
| 12924 | arg=$1; |
| 12925 | case $arg in #( |
| 12926 | *"$as_nl"*) |
| 12927 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 12928 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 12929 | esac; |
| 12930 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 12931 | ' |
| 12932 | export as_echo_n_body |
| 12933 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 12934 | fi |
| 12935 | export as_echo_body |
| 12936 | as_echo='sh -c $as_echo_body as_echo' |
| 12937 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12938 | |
| 12939 | # The user is always right. |
| 12940 | if test "${PATH_SEPARATOR+set}" != set; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12941 | PATH_SEPARATOR=: |
| 12942 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 12943 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 12944 | PATH_SEPARATOR=';' |
| 12945 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12946 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12948 | |
| 12949 | # IFS |
| 12950 | # We need space, tab and new line, in precisely that order. Quoting is |
| 12951 | # there to prevent editors from complaining about space-tab. |
| 12952 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 12953 | # splitting by setting IFS to empty value.) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12954 | IFS=" "" $as_nl" |
| 12955 | |
| 12956 | # Find who we are. Look in the path if we contain no directory separator. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12957 | case $0 in #(( |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12958 | *[\\/]* ) as_myself=$0 ;; |
| 12959 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12960 | for as_dir in $PATH |
| 12961 | do |
| 12962 | IFS=$as_save_IFS |
| 12963 | test -z "$as_dir" && as_dir=. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12964 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12965 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12966 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12968 | ;; |
| 12969 | esac |
| 12970 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12971 | # in which case we are not to be found in the path. |
| 12972 | if test "x$as_myself" = x; then |
| 12973 | as_myself=$0 |
| 12974 | fi |
| 12975 | if test ! -f "$as_myself"; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12976 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 12977 | exit 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12978 | fi |
| 12979 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12980 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 12981 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 12982 | # suppresses any "Segmentation fault" message there. '((' could |
| 12983 | # trigger a bug in pdksh 5.2.14. |
| 12984 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 12985 | do eval test x\${$as_var+set} = xset \ |
| 12986 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12987 | done |
| 12988 | PS1='$ ' |
| 12989 | PS2='> ' |
| 12990 | PS4='+ ' |
| 12991 | |
| 12992 | # NLS nuisances. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12993 | LC_ALL=C |
| 12994 | export LC_ALL |
| 12995 | LANGUAGE=C |
| 12996 | export LANGUAGE |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12997 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 12998 | # CDPATH. |
| 12999 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13000 | |
| 13001 | |
| 13002 | # as_fn_error ERROR [LINENO LOG_FD] |
| 13003 | # --------------------------------- |
| 13004 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13005 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 13006 | # script with status $?, using 1 if that was 0. |
| 13007 | as_fn_error () |
| 13008 | { |
| 13009 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 13010 | if test "$3"; then |
| 13011 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13012 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 13013 | fi |
| 13014 | $as_echo "$as_me: error: $1" >&2 |
| 13015 | as_fn_exit $as_status |
| 13016 | } # as_fn_error |
| 13017 | |
| 13018 | |
| 13019 | # as_fn_set_status STATUS |
| 13020 | # ----------------------- |
| 13021 | # Set $? to STATUS, without forking. |
| 13022 | as_fn_set_status () |
| 13023 | { |
| 13024 | return $1 |
| 13025 | } # as_fn_set_status |
| 13026 | |
| 13027 | # as_fn_exit STATUS |
| 13028 | # ----------------- |
| 13029 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13030 | as_fn_exit () |
| 13031 | { |
| 13032 | set +e |
| 13033 | as_fn_set_status $1 |
| 13034 | exit $1 |
| 13035 | } # as_fn_exit |
| 13036 | |
| 13037 | # as_fn_unset VAR |
| 13038 | # --------------- |
| 13039 | # Portably unset VAR. |
| 13040 | as_fn_unset () |
| 13041 | { |
| 13042 | { eval $1=; unset $1;} |
| 13043 | } |
| 13044 | as_unset=as_fn_unset |
| 13045 | # as_fn_append VAR VALUE |
| 13046 | # ---------------------- |
| 13047 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13048 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13049 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13050 | # implementations. |
| 13051 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13052 | eval 'as_fn_append () |
| 13053 | { |
| 13054 | eval $1+=\$2 |
| 13055 | }' |
| 13056 | else |
| 13057 | as_fn_append () |
| 13058 | { |
| 13059 | eval $1=\$$1\$2 |
| 13060 | } |
| 13061 | fi # as_fn_append |
| 13062 | |
| 13063 | # as_fn_arith ARG... |
| 13064 | # ------------------ |
| 13065 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13066 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13067 | # must be portable across $(()) and expr. |
| 13068 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13069 | eval 'as_fn_arith () |
| 13070 | { |
| 13071 | as_val=$(( $* )) |
| 13072 | }' |
| 13073 | else |
| 13074 | as_fn_arith () |
| 13075 | { |
| 13076 | as_val=`expr "$@" || test $? -eq 1` |
| 13077 | } |
| 13078 | fi # as_fn_arith |
| 13079 | |
| 13080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13081 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13082 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13083 | as_expr=expr |
| 13084 | else |
| 13085 | as_expr=false |
| 13086 | fi |
| 13087 | |
| 13088 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13089 | as_basename=basename |
| 13090 | else |
| 13091 | as_basename=false |
| 13092 | fi |
| 13093 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13094 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13095 | as_dirname=dirname |
| 13096 | else |
| 13097 | as_dirname=false |
| 13098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13100 | as_me=`$as_basename -- "$0" || |
| 13101 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13102 | X"$0" : 'X\(//\)$' \| \ |
| 13103 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13104 | $as_echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13105 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13106 | s//\1/ |
| 13107 | q |
| 13108 | } |
| 13109 | /^X\/\(\/\/\)$/{ |
| 13110 | s//\1/ |
| 13111 | q |
| 13112 | } |
| 13113 | /^X\/\(\/\).*/{ |
| 13114 | s//\1/ |
| 13115 | q |
| 13116 | } |
| 13117 | s/.*/./; q'` |
| 13118 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13119 | # Avoid depending upon Character Ranges. |
| 13120 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13121 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13122 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13123 | as_cr_digits='0123456789' |
| 13124 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13125 | |
| 13126 | ECHO_C= ECHO_N= ECHO_T= |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13127 | case `echo -n x` in #((((( |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13128 | -n*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13129 | case `echo 'xy\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13130 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13131 | xy) ECHO_C='\c';; |
| 13132 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13133 | ECHO_T=' ';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13134 | esac;; |
| 13135 | *) |
| 13136 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13137 | esac |
| 13138 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13139 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13140 | if test -d conf$$.dir; then |
| 13141 | rm -f conf$$.dir/conf$$.file |
| 13142 | else |
| 13143 | rm -f conf$$.dir |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13144 | mkdir conf$$.dir 2>/dev/null |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13145 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13146 | if (echo >conf$$.file) 2>/dev/null; then |
| 13147 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13148 | as_ln_s='ln -s' |
| 13149 | # ... but there are two gotchas: |
| 13150 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13151 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 13152 | # In both cases, we have to default to `cp -p'. |
| 13153 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 13154 | as_ln_s='cp -p' |
| 13155 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13156 | as_ln_s=ln |
| 13157 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13158 | as_ln_s='cp -p' |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13159 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13160 | else |
| 13161 | as_ln_s='cp -p' |
| 13162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13163 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13164 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13165 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13166 | |
| 13167 | # as_fn_mkdir_p |
| 13168 | # ------------- |
| 13169 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13170 | as_fn_mkdir_p () |
| 13171 | { |
| 13172 | |
| 13173 | case $as_dir in #( |
| 13174 | -*) as_dir=./$as_dir;; |
| 13175 | esac |
| 13176 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13177 | as_dirs= |
| 13178 | while :; do |
| 13179 | case $as_dir in #( |
| 13180 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13181 | *) as_qdir=$as_dir;; |
| 13182 | esac |
| 13183 | as_dirs="'$as_qdir' $as_dirs" |
| 13184 | as_dir=`$as_dirname -- "$as_dir" || |
| 13185 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13186 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13187 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13188 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13189 | $as_echo X"$as_dir" | |
| 13190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13191 | s//\1/ |
| 13192 | q |
| 13193 | } |
| 13194 | /^X\(\/\/\)[^/].*/{ |
| 13195 | s//\1/ |
| 13196 | q |
| 13197 | } |
| 13198 | /^X\(\/\/\)$/{ |
| 13199 | s//\1/ |
| 13200 | q |
| 13201 | } |
| 13202 | /^X\(\/\).*/{ |
| 13203 | s//\1/ |
| 13204 | q |
| 13205 | } |
| 13206 | s/.*/./; q'` |
| 13207 | test -d "$as_dir" && break |
| 13208 | done |
| 13209 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13210 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 13211 | |
| 13212 | |
| 13213 | } # as_fn_mkdir_p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13214 | if mkdir -p . 2>/dev/null; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13215 | as_mkdir_p='mkdir -p "$as_dir"' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13216 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13217 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13218 | as_mkdir_p=false |
| 13219 | fi |
| 13220 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13221 | if test -x / >/dev/null 2>&1; then |
| 13222 | as_test_x='test -x' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13223 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13224 | if ls -dL / >/dev/null 2>&1; then |
| 13225 | as_ls_L_option=L |
| 13226 | else |
| 13227 | as_ls_L_option= |
| 13228 | fi |
| 13229 | as_test_x=' |
| 13230 | eval sh -c '\'' |
| 13231 | if test -d "$1"; then |
| 13232 | test -d "$1/."; |
| 13233 | else |
| 13234 | case $1 in #( |
| 13235 | -*)set "./$1";; |
| 13236 | esac; |
| 13237 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 13238 | ???[sx]*):;;*)false;;esac;fi |
| 13239 | '\'' sh |
| 13240 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13241 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13242 | as_executable_p=$as_test_x |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13243 | |
| 13244 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13245 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13246 | |
| 13247 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13248 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13249 | |
| 13250 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13251 | exec 6>&1 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13252 | ## ----------------------------------- ## |
| 13253 | ## Main body of $CONFIG_STATUS script. ## |
| 13254 | ## ----------------------------------- ## |
| 13255 | _ASEOF |
| 13256 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13257 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13259 | # Save the log message, to keep $0 and so on meaningful, and to |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13260 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13261 | # values after options handling. |
| 13262 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 13263 | This file was extended by llvm $as_me 2.7svn, which was |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13264 | generated by GNU Autoconf 2.65. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13265 | |
| 13266 | CONFIG_FILES = $CONFIG_FILES |
| 13267 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13268 | CONFIG_LINKS = $CONFIG_LINKS |
| 13269 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13270 | $ $0 $@ |
| 13271 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13272 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13273 | " |
| 13274 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13275 | _ACEOF |
| 13276 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13277 | case $ac_config_files in *" |
| 13278 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13279 | esac |
| 13280 | |
| 13281 | case $ac_config_headers in *" |
| 13282 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13283 | esac |
| 13284 | |
| 13285 | |
| 13286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13287 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13288 | config_files="$ac_config_files" |
| 13289 | config_headers="$ac_config_headers" |
| 13290 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13292 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13293 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13295 | ac_cs_usage="\ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13296 | \`$as_me' instantiates files and other configuration actions |
| 13297 | from templates according to the current configuration. Unless the files |
| 13298 | and actions are specified as TAGs, all are instantiated by default. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13299 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13300 | Usage: $0 [OPTION]... [TAG]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13301 | |
| 13302 | -h, --help print this help, then exit |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13303 | -V, --version print version number and configuration settings, then exit |
| 13304 | --config print configuration, then exit |
| 13305 | -q, --quiet, --silent |
| 13306 | do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13307 | -d, --debug don't remove temporary files |
| 13308 | --recheck update $as_me by reconfiguring in the same conditions |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13309 | --file=FILE[:TEMPLATE] |
| 13310 | instantiate the configuration file FILE |
| 13311 | --header=FILE[:TEMPLATE] |
| 13312 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13313 | |
| 13314 | Configuration files: |
| 13315 | $config_files |
| 13316 | |
| 13317 | Configuration headers: |
| 13318 | $config_headers |
| 13319 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 13320 | Configuration commands: |
| 13321 | $config_commands |
| 13322 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13323 | Report bugs to <llvmbugs@cs.uiuc.edu>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13325 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13327 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13328 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 13329 | llvm config.status 2.7svn |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13330 | configured by $0, generated by GNU Autoconf 2.65, |
| 13331 | with options \\"\$ac_cs_config\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13332 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13333 | Copyright (C) 2009 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13334 | This config.status script is free software; the Free Software Foundation |
| 13335 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13336 | |
| 13337 | ac_pwd='$ac_pwd' |
| 13338 | srcdir='$srcdir' |
| 13339 | INSTALL='$INSTALL' |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13340 | test -n "\$AWK" || AWK=awk |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13341 | _ACEOF |
| 13342 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13343 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13344 | # The default lists apply if the user does not specify any file. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13345 | ac_need_defaults=: |
| 13346 | while test $# != 0 |
| 13347 | do |
| 13348 | case $1 in |
| 13349 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13350 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13351 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13352 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13353 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13354 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13355 | ac_option=$1 |
| 13356 | ac_optarg=$2 |
| 13357 | ac_shift=shift |
| 13358 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13359 | esac |
| 13360 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13361 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13362 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13363 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13364 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13365 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13366 | $as_echo "$ac_cs_version"; exit ;; |
| 13367 | --config | --confi | --conf | --con | --co | --c ) |
| 13368 | $as_echo "$ac_cs_config"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13369 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13370 | debug=: ;; |
| 13371 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13372 | $ac_shift |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13373 | case $ac_optarg in |
| 13374 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13375 | esac |
| 13376 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13377 | ac_need_defaults=false;; |
| 13378 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13379 | $ac_shift |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13380 | case $ac_optarg in |
| 13381 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13382 | esac |
| 13383 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13384 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13385 | --he | --h) |
| 13386 | # Conflict between --help and --header |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13387 | as_fn_error "ambiguous option: \`$1' |
| 13388 | Try \`$0 --help' for more information.";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13389 | --help | --hel | -h ) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13390 | $as_echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13391 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13392 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13393 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13394 | |
| 13395 | # This is an error. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13396 | -*) as_fn_error "unrecognized option: \`$1' |
| 13397 | Try \`$0 --help' for more information." ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13398 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13399 | *) as_fn_append ac_config_targets " $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13400 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13401 | |
| 13402 | esac |
| 13403 | shift |
| 13404 | done |
| 13405 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13406 | ac_configure_extra_args= |
| 13407 | |
| 13408 | if $ac_cs_silent; then |
| 13409 | exec 6>/dev/null |
| 13410 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13411 | fi |
| 13412 | |
| 13413 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13414 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13415 | if \$ac_cs_recheck; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13416 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 13417 | shift |
| 13418 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 13419 | CONFIG_SHELL='$SHELL' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13420 | export CONFIG_SHELL |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13421 | exec "\$@" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13422 | fi |
| 13423 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13424 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13425 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13426 | exec 5>>config.log |
| 13427 | { |
| 13428 | echo |
| 13429 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13430 | ## Running $as_me. ## |
| 13431 | _ASBOX |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13432 | $as_echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13433 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13435 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 13437 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13438 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 13439 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 13440 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 13441 | |
| 13442 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13443 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13444 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13445 | |
| 13446 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13447 | for ac_config_target in $ac_config_targets |
| 13448 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13449 | case $ac_config_target in |
| 13450 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 13451 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 13452 | "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13453 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 13454 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 13455 | "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13456 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 13457 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13458 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13459 | "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13460 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 13461 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 13462 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 13463 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 13464 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 13465 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 13466 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13467 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 13468 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 13469 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13470 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 13471 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 13472 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 13473 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 13474 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13475 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13476 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13477 | esac |
| 13478 | done |
| 13479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13480 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13481 | # If the user did not use the arguments to specify the items to instantiate, |
| 13482 | # then the envvar interface is used. Set only those that are not. |
| 13483 | # We use the long form for the default assignment because of an extremely |
| 13484 | # bizarre bug on SunOS 4.1.3. |
| 13485 | if $ac_need_defaults; then |
| 13486 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 13487 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 13488 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13489 | fi |
| 13490 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13491 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13492 | # simply because there is no reason against having it here, and in addition, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13493 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13494 | # Hook for its removal unless debugging. |
| 13495 | # Note that there is a small window in which the directory will not be cleaned: |
| 13496 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13497 | $debug || |
| 13498 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13499 | tmp= |
| 13500 | trap 'exit_status=$? |
| 13501 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 13502 | ' 0 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13503 | trap 'as_fn_exit 1' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13504 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13505 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13506 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13507 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13508 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13509 | test -n "$tmp" && test -d "$tmp" |
| 13510 | } || |
| 13511 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13512 | tmp=./conf$$-$RANDOM |
| 13513 | (umask 077 && mkdir "$tmp") |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13514 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13515 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13516 | # Set up the scripts for CONFIG_FILES section. |
| 13517 | # No need to generate them if there are no CONFIG_FILES. |
| 13518 | # This happens for instance with `./config.status config.h'. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13519 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13520 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13521 | |
| 13522 | ac_cr=`echo X | tr X '\015'` |
| 13523 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 13524 | # But we know of no other shell where ac_cr would be empty at this |
| 13525 | # point, so we can use a bashism as a fallback. |
| 13526 | if test "x$ac_cr" = x; then |
| 13527 | eval ac_cr=\$\'\\r\' |
| 13528 | fi |
| 13529 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 13530 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 13531 | ac_cs_awk_cr='\r' |
| 13532 | else |
| 13533 | ac_cs_awk_cr=$ac_cr |
| 13534 | fi |
| 13535 | |
| 13536 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13537 | _ACEOF |
| 13538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13539 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13540 | { |
| 13541 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 13542 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 13543 | echo "_ACEOF" |
| 13544 | } >conf$$subs.sh || |
| 13545 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13546 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13547 | ac_delim='%!_!# ' |
| 13548 | for ac_last_try in false false false false false :; do |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13549 | . ./conf$$subs.sh || |
| 13550 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13551 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13552 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 13553 | if test $ac_delim_n = $ac_delim_num; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13554 | break |
| 13555 | elif $ac_last_try; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13556 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13557 | else |
| 13558 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13559 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13561 | rm -f conf$$subs.sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13562 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13563 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13564 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13565 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13566 | sed -n ' |
| 13567 | h |
| 13568 | s/^/S["/; s/!.*/"]=/ |
| 13569 | p |
| 13570 | g |
| 13571 | s/^[^!]*!// |
| 13572 | :repl |
| 13573 | t repl |
| 13574 | s/'"$ac_delim"'$// |
| 13575 | t delim |
| 13576 | :nl |
| 13577 | h |
| 13578 | s/\(.\{148\}\)..*/\1/ |
| 13579 | t more1 |
| 13580 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 13581 | p |
| 13582 | n |
| 13583 | b repl |
| 13584 | :more1 |
| 13585 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13586 | p |
| 13587 | g |
| 13588 | s/.\{148\}// |
| 13589 | t nl |
| 13590 | :delim |
| 13591 | h |
| 13592 | s/\(.\{148\}\)..*/\1/ |
| 13593 | t more2 |
| 13594 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 13595 | p |
| 13596 | b |
| 13597 | :more2 |
| 13598 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13599 | p |
| 13600 | g |
| 13601 | s/.\{148\}// |
| 13602 | t delim |
| 13603 | ' <conf$$subs.awk | sed ' |
| 13604 | /^[^""]/{ |
| 13605 | N |
| 13606 | s/\n// |
| 13607 | } |
| 13608 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13609 | rm -f conf$$subs.awk |
| 13610 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13611 | _ACAWK |
| 13612 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 13613 | for (key in S) S_is_set[key] = 1 |
| 13614 | FS = "" |
| 13615 | |
| 13616 | } |
| 13617 | { |
| 13618 | line = $ 0 |
| 13619 | nfields = split(line, field, "@") |
| 13620 | substed = 0 |
| 13621 | len = length(field[1]) |
| 13622 | for (i = 2; i < nfields; i++) { |
| 13623 | key = field[i] |
| 13624 | keylen = length(key) |
| 13625 | if (S_is_set[key]) { |
| 13626 | value = S[key] |
| 13627 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 13628 | len += length(value) + length(field[++i]) |
| 13629 | substed = 1 |
| 13630 | } else |
| 13631 | len += 1 + keylen |
| 13632 | } |
| 13633 | |
| 13634 | print line |
| 13635 | } |
| 13636 | |
| 13637 | _ACAWK |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13638 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13639 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13640 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 13641 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 13642 | else |
| 13643 | cat |
| 13644 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 13645 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13646 | _ACEOF |
| 13647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13648 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 13649 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 13650 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13651 | # (actually we leave an empty line to preserve line numbers). |
| 13652 | if test "x$srcdir" = x.; then |
| 13653 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 13654 | s/:*\$(srcdir):*/:/ |
| 13655 | s/:*\${srcdir}:*/:/ |
| 13656 | s/:*@srcdir@:*/:/ |
| 13657 | s/^\([^=]*=[ ]*\):*/\1/ |
| 13658 | s/:*$// |
| 13659 | s/^[^=]*=[ ]*$// |
| 13660 | }' |
| 13661 | fi |
| 13662 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13663 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13664 | fi # test -n "$CONFIG_FILES" |
| 13665 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13666 | # Set up the scripts for CONFIG_HEADERS section. |
| 13667 | # No need to generate them if there are no CONFIG_HEADERS. |
| 13668 | # This happens for instance with `./config.status Makefile'. |
| 13669 | if test -n "$CONFIG_HEADERS"; then |
| 13670 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 13671 | BEGIN { |
| 13672 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13673 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13674 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 13675 | # here-document in config.status, that substitutes the proper values into |
| 13676 | # config.h.in to produce config.h. |
| 13677 | |
| 13678 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 13679 | # handling of long lines. |
| 13680 | ac_delim='%!_!# ' |
| 13681 | for ac_last_try in false false :; do |
| 13682 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 13683 | if test -z "$ac_t"; then |
| 13684 | break |
| 13685 | elif $ac_last_try; then |
| 13686 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 13687 | else |
| 13688 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13689 | fi |
| 13690 | done |
| 13691 | |
| 13692 | # For the awk script, D is an array of macro values keyed by name, |
| 13693 | # likewise P contains macro parameters if any. Preserve backslash |
| 13694 | # newline sequences. |
| 13695 | |
| 13696 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 13697 | sed -n ' |
| 13698 | s/.\{148\}/&'"$ac_delim"'/g |
| 13699 | t rset |
| 13700 | :rset |
| 13701 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 13702 | t def |
| 13703 | d |
| 13704 | :def |
| 13705 | s/\\$// |
| 13706 | t bsnl |
| 13707 | s/["\\]/\\&/g |
| 13708 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 13709 | D["\1"]=" \3"/p |
| 13710 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 13711 | d |
| 13712 | :bsnl |
| 13713 | s/["\\]/\\&/g |
| 13714 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 13715 | D["\1"]=" \3\\\\\\n"\\/p |
| 13716 | t cont |
| 13717 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 13718 | t cont |
| 13719 | d |
| 13720 | :cont |
| 13721 | n |
| 13722 | s/.\{148\}/&'"$ac_delim"'/g |
| 13723 | t clear |
| 13724 | :clear |
| 13725 | s/\\$// |
| 13726 | t bsnlc |
| 13727 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 13728 | d |
| 13729 | :bsnlc |
| 13730 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 13731 | b cont |
| 13732 | ' <confdefs.h | sed ' |
| 13733 | s/'"$ac_delim"'/"\\\ |
| 13734 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13735 | |
| 13736 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13737 | for (key in D) D_is_set[key] = 1 |
| 13738 | FS = "" |
| 13739 | } |
| 13740 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 13741 | line = \$ 0 |
| 13742 | split(line, arg, " ") |
| 13743 | if (arg[1] == "#") { |
| 13744 | defundef = arg[2] |
| 13745 | mac1 = arg[3] |
| 13746 | } else { |
| 13747 | defundef = substr(arg[1], 2) |
| 13748 | mac1 = arg[2] |
| 13749 | } |
| 13750 | split(mac1, mac2, "(") #) |
| 13751 | macro = mac2[1] |
| 13752 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 13753 | if (D_is_set[macro]) { |
| 13754 | # Preserve the white space surrounding the "#". |
| 13755 | print prefix "define", macro P[macro] D[macro] |
| 13756 | next |
| 13757 | } else { |
| 13758 | # Replace #undef with comments. This is necessary, for example, |
| 13759 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 13760 | # on some systems where configure will not decide to define it. |
| 13761 | if (defundef == "undef") { |
| 13762 | print "/*", prefix defundef, macro, "*/" |
| 13763 | next |
| 13764 | } |
| 13765 | } |
| 13766 | } |
| 13767 | { print } |
| 13768 | _ACAWK |
| 13769 | _ACEOF |
| 13770 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13771 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 13772 | fi # test -n "$CONFIG_HEADERS" |
| 13773 | |
| 13774 | |
| 13775 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 13776 | shift |
| 13777 | for ac_tag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13778 | do |
| 13779 | case $ac_tag in |
| 13780 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 13781 | esac |
| 13782 | case $ac_mode$ac_tag in |
| 13783 | :[FHL]*:*);; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13784 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13785 | :[FH]-) ac_tag=-:-;; |
| 13786 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 13787 | esac |
| 13788 | ac_save_IFS=$IFS |
| 13789 | IFS=: |
| 13790 | set x $ac_tag |
| 13791 | IFS=$ac_save_IFS |
| 13792 | shift |
| 13793 | ac_file=$1 |
| 13794 | shift |
| 13795 | |
| 13796 | case $ac_mode in |
| 13797 | :L) ac_source=$1;; |
| 13798 | :[FH]) |
| 13799 | ac_file_inputs= |
| 13800 | for ac_f |
| 13801 | do |
| 13802 | case $ac_f in |
| 13803 | -) ac_f="$tmp/stdin";; |
| 13804 | *) # Look for the file first in the build tree, then in the source tree |
| 13805 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13806 | # because $ac_f cannot contain `:'. |
| 13807 | test -f "$ac_f" || |
| 13808 | case $ac_f in |
| 13809 | [\\/$]*) false;; |
| 13810 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13811 | esac || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13812 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13813 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13814 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 13815 | as_fn_append ac_file_inputs " '$ac_f'" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13816 | done |
| 13817 | |
| 13818 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13819 | # use $as_me), people would be surprised to read: |
| 13820 | # /* config.h. Generated by config.status. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13821 | configure_input='Generated from '` |
| 13822 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 13823 | `' by configure.' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13824 | if test x"$ac_file" != x-; then |
| 13825 | configure_input="$ac_file. $configure_input" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 13827 | $as_echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13828 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13829 | # Neutralize special characters interpreted by sed in replacement strings. |
| 13830 | case $configure_input in #( |
| 13831 | *\&* | *\|* | *\\* ) |
| 13832 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 13833 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 13834 | *) ac_sed_conf_input=$configure_input;; |
| 13835 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13836 | |
| 13837 | case $ac_tag in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13838 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 13839 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13840 | esac |
| 13841 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13842 | esac |
| 13843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13844 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13845 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13846 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13847 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13848 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13849 | $as_echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13850 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13851 | s//\1/ |
| 13852 | q |
| 13853 | } |
| 13854 | /^X\(\/\/\)[^/].*/{ |
| 13855 | s//\1/ |
| 13856 | q |
| 13857 | } |
| 13858 | /^X\(\/\/\)$/{ |
| 13859 | s//\1/ |
| 13860 | q |
| 13861 | } |
| 13862 | /^X\(\/\).*/{ |
| 13863 | s//\1/ |
| 13864 | q |
| 13865 | } |
| 13866 | s/.*/./; q'` |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13867 | as_dir="$ac_dir"; as_fn_mkdir_p |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13868 | ac_builddir=. |
| 13869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13870 | case "$ac_dir" in |
| 13871 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13872 | *) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13873 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13874 | # A ".." for each directory in $ac_dir_suffix. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13875 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13876 | case $ac_top_builddir_sub in |
| 13877 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13878 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 13879 | esac ;; |
| 13880 | esac |
| 13881 | ac_abs_top_builddir=$ac_pwd |
| 13882 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 13883 | # for backward compatibility: |
| 13884 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13885 | |
| 13886 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13887 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13888 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13889 | ac_top_srcdir=$ac_top_builddir_sub |
| 13890 | ac_abs_top_srcdir=$ac_pwd ;; |
| 13891 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13892 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13893 | ac_top_srcdir=$srcdir |
| 13894 | ac_abs_top_srcdir=$srcdir ;; |
| 13895 | *) # Relative name. |
| 13896 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13897 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13898 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13899 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13900 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13903 | case $ac_mode in |
| 13904 | :F) |
| 13905 | # |
| 13906 | # CONFIG_FILE |
| 13907 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13908 | |
| 13909 | case $INSTALL in |
| 13910 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13911 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13912 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13913 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13914 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | # If the template does not know about datarootdir, expand it. |
| 13917 | # FIXME: This hack should be removed a few years after 2.60. |
| 13918 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13919 | ac_sed_dataroot=' |
| 13920 | /datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13921 | p |
| 13922 | q |
| 13923 | } |
| 13924 | /@datadir@/p |
| 13925 | /@docdir@/p |
| 13926 | /@infodir@/p |
| 13927 | /@localedir@/p |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13928 | /@mandir@/p' |
| 13929 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13930 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 13931 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 13933 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13934 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13936 | ac_datarootdir_hack=' |
| 13937 | s&@datadir@&$datadir&g |
| 13938 | s&@docdir@&$docdir&g |
| 13939 | s&@infodir@&$infodir&g |
| 13940 | s&@localedir@&$localedir&g |
| 13941 | s&@mandir@&$mandir&g |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13942 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13943 | esac |
| 13944 | _ACEOF |
| 13945 | |
| 13946 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13947 | # Shell code in configure.ac might set extrasub. |
| 13948 | # FIXME: do we really want to maintain this feature? |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13950 | ac_sed_extra="$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13951 | $extrasub |
| 13952 | _ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13954 | :t |
| 13955 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13956 | s|@configure_input@|$ac_sed_conf_input|;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13957 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13958 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13959 | s&@srcdir@&$ac_srcdir&;t t |
| 13960 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13961 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13962 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13963 | s&@builddir@&$ac_builddir&;t t |
| 13964 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13965 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13966 | s&@INSTALL@&$ac_INSTALL&;t t |
| 13967 | $ac_datarootdir_hack |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13968 | " |
| 13969 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 13970 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13972 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 13973 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 13974 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13976 | which seems to be undefined. Please make sure it is defined." >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13977 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13980 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13981 | case $ac_file in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13982 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 13983 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 13984 | esac \ |
| 13985 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13986 | ;; |
| 13987 | :H) |
| 13988 | # |
| 13989 | # CONFIG_HEADER |
| 13990 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13991 | if test x"$ac_file" != x-; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 13992 | { |
| 13993 | $as_echo "/* $configure_input */" \ |
| 13994 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 13995 | } >"$tmp/config.h" \ |
| 13996 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 13997 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 13999 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14000 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14001 | rm -f "$ac_file" |
| 14002 | mv "$tmp/config.h" "$ac_file" \ |
| 14003 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14004 | fi |
| 14005 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14006 | $as_echo "/* $configure_input */" \ |
| 14007 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 14008 | || as_fn_error "could not create -" "$LINENO" 5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14010 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 14011 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14012 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 14013 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14014 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 14015 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14017 | |
| 14018 | case $ac_file$ac_mode in |
| 14019 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14020 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14021 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14022 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14023 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14024 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14025 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14026 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 14027 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14028 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14029 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14030 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14031 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14032 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 14033 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14034 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14035 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14036 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14037 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14038 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14039 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14040 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 14041 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14042 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 14043 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 14044 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14045 | |
| 14046 | esac |
| 14047 | done # for ac_tag |
| 14048 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14049 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14050 | as_fn_exit 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14051 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14052 | ac_clean_files=$ac_clean_files_save |
| 14053 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14054 | test $ac_write_fail = 0 || |
| 14055 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 14056 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14057 | |
| 14058 | # configure is writing to config.log, and then calls config.status. |
| 14059 | # config.status does its own redirection, appending to config.log. |
| 14060 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14061 | # by configure, so config.status won't be able to write to it; its |
| 14062 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14063 | # effectively closing config.log, so it can be properly (re)opened and |
| 14064 | # appended to by config.status. When coming back to configure, we |
| 14065 | # need to make the FD available again. |
| 14066 | if test "$no_create" != yes; then |
| 14067 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14068 | ac_config_status_args= |
| 14069 | test "$silent" = yes && |
| 14070 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14071 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14072 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14073 | exec 5>>config.log |
| 14074 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14075 | # would make configure fail if this is the last instruction. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14076 | $ac_cs_success || as_fn_exit $? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14077 | fi |
| 14078 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14079 | # |
| 14080 | # CONFIG_SUBDIRS section. |
| 14081 | # |
| 14082 | if test "$no_recursion" != yes; then |
| 14083 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14084 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 14085 | # so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14086 | ac_sub_configure_args= |
| 14087 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14088 | eval "set x $ac_configure_args" |
| 14089 | shift |
| 14090 | for ac_arg |
| 14091 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14092 | if test -n "$ac_prev"; then |
| 14093 | ac_prev= |
| 14094 | continue |
| 14095 | fi |
| 14096 | case $ac_arg in |
| 14097 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 14098 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 14099 | ac_prev=cache_file ;; |
| 14100 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 14101 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 14102 | | --c=*) |
| 14103 | ;; |
| 14104 | --config-cache | -C) |
| 14105 | ;; |
| 14106 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 14107 | ac_prev=srcdir ;; |
| 14108 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 14109 | ;; |
| 14110 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 14111 | ac_prev=prefix ;; |
| 14112 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 14113 | ;; |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14114 | --disable-option-checking) |
| 14115 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14116 | *) |
| 14117 | case $ac_arg in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14118 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14119 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14120 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14121 | esac |
| 14122 | done |
| 14123 | |
| 14124 | # Always prepend --prefix to ensure using the same prefix |
| 14125 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14126 | ac_arg="--prefix=$prefix" |
| 14127 | case $ac_arg in |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14128 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14129 | esac |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14130 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 14131 | |
| 14132 | # Pass --silent |
| 14133 | if test "$silent" = yes; then |
| 14134 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 14135 | fi |
| 14136 | |
| 14137 | # Always prepend --disable-option-checking to silence warnings, since |
| 14138 | # different subdirs can have different --enable and --with options. |
| 14139 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14140 | |
| 14141 | ac_popdir=`pwd` |
| 14142 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 14143 | |
| 14144 | # Do not complain, so a configure script can configure whichever |
| 14145 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14146 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14148 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14149 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 14150 | $as_echo "$ac_msg" >&6 |
| 14151 | as_dir="$ac_dir"; as_fn_mkdir_p |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14152 | ac_builddir=. |
| 14153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14154 | case "$ac_dir" in |
| 14155 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14156 | *) |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14157 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14158 | # A ".." for each directory in $ac_dir_suffix. |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14159 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14160 | case $ac_top_builddir_sub in |
| 14161 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14162 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14163 | esac ;; |
| 14164 | esac |
| 14165 | ac_abs_top_builddir=$ac_pwd |
| 14166 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14167 | # for backward compatibility: |
| 14168 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14169 | |
| 14170 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14171 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14172 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14173 | ac_top_srcdir=$ac_top_builddir_sub |
| 14174 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14175 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14176 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14177 | ac_top_srcdir=$srcdir |
| 14178 | ac_abs_top_srcdir=$srcdir ;; |
| 14179 | *) # Relative name. |
| 14180 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14181 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14182 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14183 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14184 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14185 | |
| 14186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14187 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14188 | |
| 14189 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14190 | if test -f "$ac_srcdir/configure.gnu"; then |
| 14191 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 14192 | elif test -f "$ac_srcdir/configure"; then |
| 14193 | ac_sub_configure=$ac_srcdir/configure |
| 14194 | elif test -f "$ac_srcdir/configure.in"; then |
| 14195 | # This should be Cygnus configure. |
| 14196 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14197 | else |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
| 14199 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14200 | ac_sub_configure= |
| 14201 | fi |
| 14202 | |
| 14203 | # The recursion is here. |
| 14204 | if test -n "$ac_sub_configure"; then |
| 14205 | # Make the cache file name correct relative to the subdirectory. |
| 14206 | case $cache_file in |
| 14207 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14208 | *) # Relative name. |
| 14209 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14210 | esac |
| 14211 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 14213 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14214 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14215 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 14216 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14217 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14218 | fi |
| 14219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14220 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14221 | done |
| 14222 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame^] | 14223 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 14225 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14226 | fi |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 14227 | |