1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for LLVM 4.0.0svn. 4# 5# Report bugs to <http://llvm.org/bugs/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13# 14# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139# Use a proper internal environment variable to ensure we don't fall 140 # into an infinite loop, continuously re-executing ourselves. 141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 142 _as_can_reexec=no; export _as_can_reexec; 143 # We cannot yet assume a decent shell, so we have to provide a 144# neutralization value for shells without unset; and this also 145# works around shells that cannot unset nonexistent variables. 146# Preserve -v and -x to the replacement shell. 147BASH_ENV=/dev/null 148ENV=/dev/null 149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 150case $- in # (((( 151 *v*x* | *x*v* ) as_opts=-vx ;; 152 *v* ) as_opts=-v ;; 153 *x* ) as_opts=-x ;; 154 * ) as_opts= ;; 155esac 156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 157# Admittedly, this is quite paranoid, since all the known shells bail 158# out after a failed `exec'. 159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 160as_fn_exit 255 161 fi 162 # We don't want this to propagate to other subprocesses. 163 { _as_can_reexec=; unset _as_can_reexec;} 164if test "x$CONFIG_SHELL" = x; then 165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 166 emulate sh 167 NULLCMD=: 168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 169 # is contrary to our usage. Disable this feature. 170 alias -g '\${1+\"\$@\"}'='\"\$@\"' 171 setopt NO_GLOB_SUBST 172else 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178esac 179fi 180" 181 as_required="as_fn_return () { (exit \$1); } 182as_fn_success () { as_fn_return 0; } 183as_fn_failure () { as_fn_return 1; } 184as_fn_ret_success () { return 0; } 185as_fn_ret_failure () { return 1; } 186 187exitcode=0 188as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 193 194else 195 exitcode=1; echo positional parameters were not saved. 196fi 197test x\$exitcode = x0 || exit 1 198test -x / || exit 1" 199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 203test \$(( 1 + 1 )) = 2 || exit 1" 204 if (eval "$as_required") 2>/dev/null; then : 205 as_have_required=yes 206else 207 as_have_required=no 208fi 209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 210 211else 212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213as_found=false 214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 215do 216 IFS=$as_save_IFS 217 test -z "$as_dir" && as_dir=. 218 as_found=: 219 case $as_dir in #( 220 /*) 221 for as_base in sh bash ksh sh5; do 222 # Try only shells that exist, to save several forks. 223 as_shell=$as_dir/$as_base 224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 228 break 2 229fi 230fi 231 done;; 232 esac 233 as_found=false 234done 235$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 237 CONFIG_SHELL=$SHELL as_have_required=yes 238fi; } 239IFS=$as_save_IFS 240 241 242 if test "x$CONFIG_SHELL" != x; then : 243 export CONFIG_SHELL 244 # We cannot yet assume a decent shell, so we have to provide a 245# neutralization value for shells without unset; and this also 246# works around shells that cannot unset nonexistent variables. 247# Preserve -v and -x to the replacement shell. 248BASH_ENV=/dev/null 249ENV=/dev/null 250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 251case $- in # (((( 252 *v*x* | *x*v* ) as_opts=-vx ;; 253 *v* ) as_opts=-v ;; 254 *x* ) as_opts=-x ;; 255 * ) as_opts= ;; 256esac 257exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 258# Admittedly, this is quite paranoid, since all the known shells bail 259# out after a failed `exec'. 260$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 261exit 255 262fi 263 264 if test x$as_have_required = xno; then : 265 $as_echo "$0: This script requires a shell more modern than all" 266 $as_echo "$0: the shells that I found on your system." 267 if test x${ZSH_VERSION+set} = xset ; then 268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 269 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 270 else 271 $as_echo "$0: Please tell bug-autoconf@gnu.org and 272$0: http://llvm.org/bugs/ about your system, including any 273$0: error possibly output before this message. Then install 274$0: a modern shell, or manually run the script under such a 275$0: shell if you do have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316 317# as_fn_mkdir_p 318# ------------- 319# Create "$as_dir" as a directory, including parents if necessary. 320as_fn_mkdir_p () 321{ 322 323 case $as_dir in #( 324 -*) as_dir=./$as_dir;; 325 esac 326 test -d "$as_dir" || eval $as_mkdir_p || { 327 as_dirs= 328 while :; do 329 case $as_dir in #( 330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 331 *) as_qdir=$as_dir;; 332 esac 333 as_dirs="'$as_qdir' $as_dirs" 334 as_dir=`$as_dirname -- "$as_dir" || 335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 336 X"$as_dir" : 'X\(//\)[^/]' \| \ 337 X"$as_dir" : 'X\(//\)$' \| \ 338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 339$as_echo X"$as_dir" | 340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 341 s//\1/ 342 q 343 } 344 /^X\(\/\/\)[^/].*/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\).*/{ 353 s//\1/ 354 q 355 } 356 s/.*/./; q'` 357 test -d "$as_dir" && break 358 done 359 test -z "$as_dirs" || eval "mkdir $as_dirs" 360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 361 362 363} # as_fn_mkdir_p 364 365# as_fn_executable_p FILE 366# ----------------------- 367# Test if FILE is an executable regular file. 368as_fn_executable_p () 369{ 370 test -f "$1" && test -x "$1" 371} # as_fn_executable_p 372# as_fn_append VAR VALUE 373# ---------------------- 374# Append the text in VALUE to the end of the definition contained in VAR. Take 375# advantage of any shell optimizations that allow amortized linear growth over 376# repeated appends, instead of the typical quadratic growth present in naive 377# implementations. 378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 379 eval 'as_fn_append () 380 { 381 eval $1+=\$2 382 }' 383else 384 as_fn_append () 385 { 386 eval $1=\$$1\$2 387 } 388fi # as_fn_append 389 390# as_fn_arith ARG... 391# ------------------ 392# Perform arithmetic evaluation on the ARGs, and store the result in the 393# global $as_val. Take advantage of shells that can avoid forks. The arguments 394# must be portable across $(()) and expr. 395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 396 eval 'as_fn_arith () 397 { 398 as_val=$(( $* )) 399 }' 400else 401 as_fn_arith () 402 { 403 as_val=`expr "$@" || test $? -eq 1` 404 } 405fi # as_fn_arith 406 407 408# as_fn_error STATUS ERROR [LINENO LOG_FD] 409# ---------------------------------------- 410# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 411# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 412# script with STATUS, using 1 if that was 0. 413as_fn_error () 414{ 415 as_status=$1; test $as_status -eq 0 && as_status=1 416 if test "$4"; then 417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 419 fi 420 $as_echo "$as_me: error: $2" >&2 421 as_fn_exit $as_status 422} # as_fn_error 423 424if expr a : '\(a\)' >/dev/null 2>&1 && 425 test "X`expr 00001 : '.*\(...\)'`" = X001; then 426 as_expr=expr 427else 428 as_expr=false 429fi 430 431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 432 as_basename=basename 433else 434 as_basename=false 435fi 436 437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 438 as_dirname=dirname 439else 440 as_dirname=false 441fi 442 443as_me=`$as_basename -- "$0" || 444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 445 X"$0" : 'X\(//\)$' \| \ 446 X"$0" : 'X\(/\)' \| . 2>/dev/null || 447$as_echo X/"$0" | 448 sed '/^.*\/\([^/][^/]*\)\/*$/{ 449 s//\1/ 450 q 451 } 452 /^X\/\(\/\/\)$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\).*/{ 457 s//\1/ 458 q 459 } 460 s/.*/./; q'` 461 462# Avoid depending upon Character Ranges. 463as_cr_letters='abcdefghijklmnopqrstuvwxyz' 464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 465as_cr_Letters=$as_cr_letters$as_cr_LETTERS 466as_cr_digits='0123456789' 467as_cr_alnum=$as_cr_Letters$as_cr_digits 468 469 470 as_lineno_1=$LINENO as_lineno_1a=$LINENO 471 as_lineno_2=$LINENO as_lineno_2a=$LINENO 472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 475 sed -n ' 476 p 477 /[$]LINENO/= 478 ' <$as_myself | 479 sed ' 480 s/[$]LINENO.*/&-/ 481 t lineno 482 b 483 :lineno 484 N 485 :loop 486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 487 t loop 488 s/-\n.*// 489 ' >$as_me.lineno && 490 chmod +x "$as_me.lineno" || 491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 492 493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 494 # already done that, so ensure we don't try to do so again and fall 495 # in an infinite loop. This has already happened in practice. 496 _as_can_reexec=no; export _as_can_reexec 497 # Don't try to exec as it changes $[0], causing all sort of problems 498 # (the dirname of $[0] is not the place where we might find the 499 # original and so on. Autoconf is especially sensitive to this). 500 . "./$as_me.lineno" 501 # Exit status is that of the last command. 502 exit 503} 504 505ECHO_C= ECHO_N= ECHO_T= 506case `echo -n x` in #((((( 507-n*) 508 case `echo 'xy\c'` in 509 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 510 xy) ECHO_C='\c';; 511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 512 ECHO_T=' ';; 513 esac;; 514*) 515 ECHO_N='-n';; 516esac 517 518rm -f conf$$ conf$$.exe conf$$.file 519if test -d conf$$.dir; then 520 rm -f conf$$.dir/conf$$.file 521else 522 rm -f conf$$.dir 523 mkdir conf$$.dir 2>/dev/null 524fi 525if (echo >conf$$.file) 2>/dev/null; then 526 if ln -s conf$$.file conf$$ 2>/dev/null; then 527 as_ln_s='ln -s' 528 # ... but there are two gotchas: 529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 531 # In both cases, we have to default to `cp -pR'. 532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 533 as_ln_s='cp -pR' 534 elif ln conf$$.file conf$$ 2>/dev/null; then 535 as_ln_s=ln 536 else 537 as_ln_s='cp -pR' 538 fi 539else 540 as_ln_s='cp -pR' 541fi 542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 543rmdir conf$$.dir 2>/dev/null 544 545if mkdir -p . 2>/dev/null; then 546 as_mkdir_p='mkdir -p "$as_dir"' 547else 548 test -d ./-p && rmdir ./-p 549 as_mkdir_p=false 550fi 551 552as_test_x='test -x' 553as_executable_p=as_fn_executable_p 554 555# Sed expression to map a string onto a valid CPP name. 556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 557 558# Sed expression to map a string onto a valid variable name. 559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 560 561 562test -n "$DJDIR" || exec 7<&0 </dev/null 563exec 6>&1 564 565# Name of the host. 566# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 567# so uname gets run too. 568ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 569 570# 571# Initializations. 572# 573ac_default_prefix=/usr/local 574ac_clean_files= 575ac_config_libobj_dir=. 576LIBOBJS= 577cross_compiling=no 578subdirs= 579MFLAGS= 580MAKEFLAGS= 581 582# Identity of this package. 583PACKAGE_NAME='LLVM' 584PACKAGE_TARNAME='llvm' 585PACKAGE_VERSION='4.0.0svn' 586PACKAGE_STRING='LLVM 4.0.0svn' 587PACKAGE_BUGREPORT='http://llvm.org/bugs/' 588PACKAGE_URL='' 589 590enable_option_checking=no 591# Factoring default headers for most tests. 592ac_includes_default="\ 593#include <stdio.h> 594#ifdef HAVE_SYS_TYPES_H 595# include <sys/types.h> 596#endif 597#ifdef HAVE_SYS_STAT_H 598# include <sys/stat.h> 599#endif 600#ifdef STDC_HEADERS 601# include <stdlib.h> 602# include <stddef.h> 603#else 604# ifdef HAVE_STDLIB_H 605# include <stdlib.h> 606# endif 607#endif 608#ifdef HAVE_STRING_H 609# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 610# include <memory.h> 611# endif 612# include <string.h> 613#endif 614#ifdef HAVE_STRINGS_H 615# include <strings.h> 616#endif 617#ifdef HAVE_INTTYPES_H 618# include <inttypes.h> 619#endif 620#ifdef HAVE_STDINT_H 621# include <stdint.h> 622#endif 623#ifdef HAVE_UNISTD_H 624# include <unistd.h> 625#endif" 626 627ac_subst_vars='LTLIBOBJS 628LIBOBJS 629RDYNAMIC 630RPATH 631ENABLE_VISIBILITY_INLINES_HIDDEN 632OCAML_LIBDIR 633HAVE_OCAML_OUNIT 634HAVE_OCAMLOPT 635BINDINGS_TO_BUILD 636SHLIBEXT 637HUGE_VAL_SANITY 638HAVE_LIBZ 639HAVE_PTHREAD 640USE_INTEL_JITEVENTS 641USE_OPROFILE 642HAVE_TERMINFO 643HAVE_DLOPEN 644NO_COMMENT 645NO_UNINITIALIZED 646NO_MAYBE_UNINITIALIZED 647COVERED_SWITCH_DEFAULT 648MISSING_FIELD_INITIALIZERS 649NO_VARIADIC_MACROS 650EGREP 651HAVE_LINK_VERSION_SCRIPT 652GAS 653OCAMLFIND 654GO 655ZIP 656PDFROFF 657GZIPBIN 658GROFF 659DOXYGEN 660CAT 661BZIP2 662INSTALL_DATA 663INSTALL_SCRIPT 664INSTALL_PROGRAM 665DOT 666BINPWD 667TAR 668SED 669RM 670AR 671RANLIB 672MV 673MKDIR 674GREP 675FIND 676DATE 677CP 678CMP 679NM 680LN_S 681ifGNUmake 682INTERNAL_PREFIX 683ENABLE_TERMINFO 684BINUTILS_INCDIR 685CLANG_SRC_ROOT 686EXTRA_LD_OPTIONS 687EXTRA_OPTIONS 688OPTIMIZE_OPTION 689LLVM_ENUM_DISASSEMBLERS 690LLVM_ENUM_ASM_PARSERS 691LLVM_ENUM_ASM_PRINTERS 692LLVM_ENUM_TARGETS 693TARGETS_TO_BUILD 694ALL_TARGETS 695ENABLE_EMBED_STDCXX 696ENABLE_SHARED 697LLVM_ENABLE_ZLIB 698ENABLE_PTHREADS 699LLVM_ENABLE_THREADS 700clang_doxygen_qhp_cust_filter_attrs 701clang_doxygen_qhp_cust_filter_name 702clang_doxygen_qhelpgenerator_path 703clang_doxygen_qhp_namespace 704clang_doxygen_qch_filename 705clang_doxygen_generate_qhp 706llvm_doxygen_qhp_cust_filter_attrs 707llvm_doxygen_qhp_cust_filter_name 708llvm_doxygen_qhelpgenerator_path 709llvm_doxygen_qhp_namespace 710llvm_doxygen_qch_filename 711llvm_doxygen_generate_qhp 712QHELPGENERATOR 713extra_search_mappings 714searchengine_url 715enable_server_based_search 716enable_external_search 717enable_searchengine 718ENABLE_DOXYGEN 719ENABLE_DOCS 720TARGETS_WITH_JIT 721TARGET_HAS_JIT 722JIT 723KEEP_SYMBOLS 724DEBUG_SYMBOLS 725DEBUG_RUNTIME 726ENABLE_ABI_BREAKING_CHECKS 727EXPENSIVE_CHECKS 728ENABLE_EXPENSIVE_CHECKS 729ENABLE_WERROR 730DISABLE_ASSERTIONS 731ENABLE_PROFILING 732ENABLE_OPTIMIZED 733ENABLE_CLANG_STATIC_ANALYZER 734CLANG_PLUGIN_SUPPORT 735ENABLE_CLANG_ARCMT 736ENABLE_SPLIT_DWARF 737ENABLE_CXX1Y 738ENABLE_LIBCPP 739CVSBUILD 740BUILD_CXX 741BUILD_EXEEXT 742BUILD_CC 743LLVM_CROSS_COMPILING 744HOST_ARCH 745LLVM_NATIVE_ARCH 746ARCH 747LLVM_ON_WIN32 748LLVM_ON_UNIX 749NOLINKALL 750LINKALL 751TARGET_OS 752HOST_OS 753OS 754target_os 755target_vendor 756target_cpu 757target 758host_os 759host_vendor 760host_cpu 761host 762build_os 763build_vendor 764build_cpu 765build 766subdirs 767LLVM_HAS_POLLY 768ENABLE_POLLY 769CXX_COMPILER 770CPP 771ac_ct_CXX 772CXXFLAGS 773CXX 774OBJEXT 775EXEEXT 776ac_ct_CC 777CPPFLAGS 778LDFLAGS 779CFLAGS 780CC 781LLVM_COPYRIGHT 782LLVM_VERSION_SUFFIX 783LLVM_VERSION_PATCH 784LLVM_VERSION_MINOR 785LLVM_VERSION_MAJOR 786target_alias 787host_alias 788build_alias 789LIBS 790ECHO_T 791ECHO_N 792ECHO_C 793DEFS 794mandir 795localedir 796libdir 797psdir 798pdfdir 799dvidir 800htmldir 801infodir 802docdir 803oldincludedir 804includedir 805localstatedir 806sharedstatedir 807sysconfdir 808datadir 809datarootdir 810libexecdir 811sbindir 812bindir 813program_transform_name 814prefix 815exec_prefix 816PACKAGE_URL 817PACKAGE_BUGREPORT 818PACKAGE_STRING 819PACKAGE_VERSION 820PACKAGE_TARNAME 821PACKAGE_NAME 822PATH_SEPARATOR 823SHELL' 824ac_subst_files='' 825ac_user_opts=' 826enable_option_checking 827with_llvm_srcdir 828enable_polly 829enable_libcpp 830enable_compiler_version_checks 831enable_cxx1y 832enable_split_dwarf 833enable_clang_arcmt 834enable_clang_plugin_support 835enable_clang_static_analyzer 836enable_optimized 837enable_profiling 838enable_assertions 839enable_werror 840enable_expensive_checks 841enable_abi_breaking_checks 842enable_debug_runtime 843enable_debug_symbols 844enable_keep_symbols 845enable_jit 846enable_docs 847enable_doxygen 848enable_doxygen_search 849enable_doxygen_external_search 850with_doxygen_search_engine_url 851with_doxygen_search_mappings 852enable_doxygen_qt_help 853enable_threads 854enable_pthreads 855enable_zlib 856enable_shared 857enable_embed_stdcxx 858enable_backtraces 859enable_crash_overrides 860enable_targets 861enable_experimental_targets 862with_optimize_option 863with_extra_options 864with_extra_ld_options 865enable_bindings 866with_ocaml_libdir 867with_clang_srcdir 868with_clang_resource_dir 869with_c_include_dirs 870with_clang_default_openmp_runtime 871with_binutils_include 872with_bug_report_url 873enable_terminfo 874enable_libedit 875enable_libffi 876with_internal_prefix 877with_oprofile 878with_intel_jitevents 879' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CXX 889CXXFLAGS 890CCC 891CPP' 892ac_subdirs_all='tools/polly' 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897ac_unrecognized_opts= 898ac_unrecognized_sep= 899# The variables have the same names as the options, with 900# dashes changed to underlines. 901cache_file=/dev/null 902exec_prefix=NONE 903no_create= 904no_recursion= 905prefix=NONE 906program_prefix=NONE 907program_suffix=NONE 908program_transform_name=s,x,x, 909silent= 910site= 911srcdir= 912verbose= 913x_includes=NONE 914x_libraries=NONE 915 916# Installation directory options. 917# These are left unexpanded so users can "make install exec_prefix=/foo" 918# and all the variables that are supposed to be based on exec_prefix 919# by default will actually change. 920# Use braces instead of parens because sh, perl, etc. also accept them. 921# (The list follows the same order as the GNU Coding Standards.) 922bindir='${exec_prefix}/bin' 923sbindir='${exec_prefix}/sbin' 924libexecdir='${exec_prefix}/libexec' 925datarootdir='${prefix}/share' 926datadir='${datarootdir}' 927sysconfdir='${prefix}/etc' 928sharedstatedir='${prefix}/com' 929localstatedir='${prefix}/var' 930includedir='${prefix}/include' 931oldincludedir='/usr/include' 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933infodir='${datarootdir}/info' 934htmldir='${docdir}' 935dvidir='${docdir}' 936pdfdir='${docdir}' 937psdir='${docdir}' 938libdir='${exec_prefix}/lib' 939localedir='${datarootdir}/locale' 940mandir='${datarootdir}/man' 941 942ac_prev= 943ac_dashdash= 944for ac_option 945do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1001 as_fn_error $? "invalid feature name: $ac_useropt" 1002 ac_useropt_orig=$ac_useropt 1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1004 case $ac_user_opts in 1005 *" 1006"enable_$ac_useropt" 1007"*) ;; 1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1009 ac_unrecognized_sep=', ';; 1010 esac 1011 eval enable_$ac_useropt=no ;; 1012 1013 -docdir | --docdir | --docdi | --doc | --do) 1014 ac_prev=docdir ;; 1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1016 docdir=$ac_optarg ;; 1017 1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1019 ac_prev=dvidir ;; 1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1021 dvidir=$ac_optarg ;; 1022 1023 -enable-* | --enable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 as_fn_error $? "invalid feature name: $ac_useropt" 1028 ac_useropt_orig=$ac_useropt 1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1030 case $ac_user_opts in 1031 *" 1032"enable_$ac_useropt" 1033"*) ;; 1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=\$ac_optarg ;; 1242 1243 -without-* | --without-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error $? "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=no ;; 1258 1259 --x) 1260 # Obsolete; use --with-x. 1261 with_x=yes ;; 1262 1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1264 | --x-incl | --x-inc | --x-in | --x-i) 1265 ac_prev=x_includes ;; 1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1268 x_includes=$ac_optarg ;; 1269 1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1272 ac_prev=x_libraries ;; 1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1275 x_libraries=$ac_optarg ;; 1276 1277 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1278Try \`$0 --help' for more information" 1279 ;; 1280 1281 *=*) 1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1283 # Reject names that are not valid shell variable names. 1284 case $ac_envvar in #( 1285 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1287 esac 1288 eval $ac_envvar=\$ac_optarg 1289 export $ac_envvar ;; 1290 1291 *) 1292 # FIXME: should be removed in autoconf 3.0. 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1297 ;; 1298 1299 esac 1300done 1301 1302if test -n "$ac_prev"; then 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1304 as_fn_error $? "missing argument to $ac_option" 1305fi 1306 1307if test -n "$ac_unrecognized_opts"; then 1308 case $enable_option_checking in 1309 no) ;; 1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1312 esac 1313fi 1314 1315# Check all directory arguments for consistency. 1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1317 datadir sysconfdir sharedstatedir localstatedir includedir \ 1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1319 libdir localedir mandir 1320do 1321 eval ac_val=\$$ac_var 1322 # Remove trailing slashes. 1323 case $ac_val in 1324 */ ) 1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1326 eval $ac_var=\$ac_val;; 1327 esac 1328 # Be sure to have absolute directory names. 1329 case $ac_val in 1330 [\\/$]* | ?:[\\/]* ) continue;; 1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1332 esac 1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1334done 1335 1336# There might be people who depend on the old broken behavior: `$host' 1337# used to hold the argument of --host etc. 1338# FIXME: To remove some day. 1339build=$build_alias 1340host=$host_alias 1341target=$target_alias 1342 1343# FIXME: To remove some day. 1344if test "x$host_alias" != x; then 1345 if test "x$build_alias" = x; then 1346 cross_compiling=maybe 1347 elif test "x$build_alias" != "x$host_alias"; then 1348 cross_compiling=yes 1349 fi 1350fi 1351 1352ac_tool_prefix= 1353test -n "$host_alias" && ac_tool_prefix=$host_alias- 1354 1355test "$silent" = yes && exec 6>/dev/null 1356 1357 1358ac_pwd=`pwd` && test -n "$ac_pwd" && 1359ac_ls_di=`ls -di .` && 1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1361 as_fn_error $? "working directory cannot be determined" 1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1363 as_fn_error $? "pwd does not report name of working directory" 1364 1365 1366# Find the source files, if location was not specified. 1367if test -z "$srcdir"; then 1368 ac_srcdir_defaulted=yes 1369 # Try the directory containing this script, then the parent directory. 1370 ac_confdir=`$as_dirname -- "$as_myself" || 1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1372 X"$as_myself" : 'X\(//\)[^/]' \| \ 1373 X"$as_myself" : 'X\(//\)$' \| \ 1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1375$as_echo X"$as_myself" | 1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)[^/].*/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\/\)$/{ 1385 s//\1/ 1386 q 1387 } 1388 /^X\(\/\).*/{ 1389 s//\1/ 1390 q 1391 } 1392 s/.*/./; q'` 1393 srcdir=$ac_confdir 1394 if test ! -r "$srcdir/$ac_unique_file"; then 1395 srcdir=.. 1396 fi 1397else 1398 ac_srcdir_defaulted=no 1399fi 1400if test ! -r "$srcdir/$ac_unique_file"; then 1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1403fi 1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1405ac_abs_confdir=`( 1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1407 pwd)` 1408# When building in place, set srcdir=. 1409if test "$ac_abs_confdir" = "$ac_pwd"; then 1410 srcdir=. 1411fi 1412# Remove unnecessary trailing slashes from srcdir. 1413# Double slashes in file names in object file debugging info 1414# mess up M-x gdb in Emacs. 1415case $srcdir in 1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1417esac 1418for ac_var in $ac_precious_vars; do 1419 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1420 eval ac_env_${ac_var}_value=\$${ac_var} 1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1423done 1424 1425# 1426# Report the --help message. 1427# 1428if test "$ac_init_help" = "long"; then 1429 # Omit some internal or obsolete options to make the list less imposing. 1430 # This message is too long to be a string in the A/UX 3.1 sh. 1431 cat <<_ACEOF 1432\`configure' configures LLVM 4.0.0svn to adapt to many kinds of systems. 1433 1434Usage: $0 [OPTION]... [VAR=VALUE]... 1435 1436To assign environment variables (e.g., CC, CFLAGS...), specify them as 1437VAR=VALUE. See below for descriptions of some of the useful variables. 1438 1439Defaults for the options are specified in brackets. 1440 1441Configuration: 1442 -h, --help display this help and exit 1443 --help=short display options specific to this package 1444 --help=recursive display the short help of all the included packages 1445 -V, --version display version information and exit 1446 -q, --quiet, --silent do not print \`checking ...' messages 1447 --cache-file=FILE cache test results in FILE [disabled] 1448 -C, --config-cache alias for \`--cache-file=config.cache' 1449 -n, --no-create do not create output files 1450 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1451 1452Installation directories: 1453 --prefix=PREFIX install architecture-independent files in PREFIX 1454 [$ac_default_prefix] 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1456 [PREFIX] 1457 1458By default, \`make install' will install all the files in 1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1460an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1461for instance \`--prefix=\$HOME'. 1462 1463For better control, use the options below. 1464 1465Fine tuning of the installation directories: 1466 --bindir=DIR user executables [EPREFIX/bin] 1467 --sbindir=DIR system admin executables [EPREFIX/sbin] 1468 --libexecdir=DIR program executables [EPREFIX/libexec] 1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1472 --libdir=DIR object code libraries [EPREFIX/lib] 1473 --includedir=DIR C header files [PREFIX/include] 1474 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1477 --infodir=DIR info documentation [DATAROOTDIR/info] 1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1479 --mandir=DIR man documentation [DATAROOTDIR/man] 1480 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1481 --htmldir=DIR html documentation [DOCDIR] 1482 --dvidir=DIR dvi documentation [DOCDIR] 1483 --pdfdir=DIR pdf documentation [DOCDIR] 1484 --psdir=DIR ps documentation [DOCDIR] 1485_ACEOF 1486 1487 cat <<\_ACEOF 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492 --target=TARGET configure for building compilers for TARGET [HOST] 1493_ACEOF 1494fi 1495 1496if test -n "$ac_init_help"; then 1497 case $ac_init_help in 1498 short | recursive ) echo "Configuration of LLVM 4.0.0svn:";; 1499 esac 1500 cat <<\_ACEOF 1501 1502Optional Features: 1503 --disable-option-checking ignore unrecognized --enable/--with options 1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1506 --enable-polly Use polly if available (default is YES) 1507 --enable-libcpp Use libc++ if available (default is NO) 1508 --enable-compiler-version-checks 1509 Check the version of the host compiler (default is 1510 YES) 1511 --enable-cxx1y Use c++1y if available (default is NO) 1512 --enable-split-dwarf Use split-dwarf if available (default is NO) 1513 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1514 --enable-clang-plugin-support 1515 Enable plugin support in clang (default is YES) 1516 --enable-clang-static-analyzer 1517 Enable building of clang Static Analyzer (default is 1518 YES) 1519 --enable-optimized Compile with optimizations enabled (default is NO) 1520 --enable-profiling Compile with profiling enabled (default is NO) 1521 --enable-assertions Compile with assertion checks enabled (default is 1522 YES) 1523 --enable-werror Compile with -Werror enabled (default is NO) 1524 --enable-expensive-checks 1525 Compile with expensive debug checks enabled (default 1526 is NO) 1527 --enable-abi-breaking-checks 1528 Compile with abi-breaking asserts support (default 1529 is with-asserts) 1530 --enable-debug-runtime Build runtime libs with debug symbols (default is 1531 NO) 1532 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1533 optimization is on and YES if it's off) 1534 --enable-keep-symbols Do not strip installed executables) 1535 --enable-jit Enable Just In Time Compiling (default is YES) 1536 --enable-docs Build documents (default is YES) 1537 --enable-doxygen Build doxygen documentation (default is NO) 1538 --enable-doxygen-search Enable doxygen search support (default is NO) 1539 --enable-doxygen-external-search 1540 Enable doxygen exteranl search (default is NO) 1541 --enable-doxygen-qt-help 1542 Build Qt help files (default is NO) 1543 --enable-threads Use threads if available (default is YES) 1544 --enable-pthreads Use pthreads if available (default is YES) 1545 --enable-zlib Use zlib for compression/decompression if available 1546 (default is YES) 1547 --enable-shared Build a shared library and link tools against it 1548 (default is NO) 1549 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1550 Win32 DLL (default is NO) 1551 --enable-backtraces Enable embedding backtraces on crash (default is 1552 YES) 1553 --enable-crash-overrides 1554 Enable crash handling overrides (default is YES) 1555 --enable-targets Build specific host targets: all or 1556 target1,target2,... Valid targets are: host, x86, 1557 x86_64, sparc, powerpc, arm64, arm, aarch64, mips, 1558 hexagon, xcore, msp430, nvptx, systemz, r600, bpf, 1559 wasm, and cpp (default=all) 1560 --enable-experimental-targets 1561 Build experimental host targets: disable or 1562 target1,target2,... (default=disable) 1563 --enable-bindings Build specific language bindings: 1564 all,auto,none,{binding-name} (default=auto) 1565 --enable-terminfo Query the terminfo database if available (default is 1566 YES) 1567 --enable-libedit Use libedit if available (default is YES) 1568 --enable-libffi Check for the presence of libffi (default is NO) 1569 1570Optional Packages: 1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1573 --with-llvm-srcdir Directory to the out-of-tree LLVM source 1574 --with-doxygen-search-engine-url 1575 Specify the external search engine for doxygen 1576 --with-doxygen-search-mappings 1577 Specify the extra search mapping for doxygen 1578 --with-optimize-option Select the compiler options to use for optimized 1579 builds 1580 --with-extra-options Specify additional options to compile LLVM with 1581 --with-extra-ld-options Specify additional options to link LLVM with 1582 --with-ocaml-libdir Specify install location for ocaml bindings (default 1583 is stdlib) 1584 --with-clang-srcdir Directory to the out-of-tree Clang source 1585 --with-clang-resource-dir 1586 Relative directory from the Clang binary for 1587 resource files 1588 --with-c-include-dirs Colon separated list of directories clang will 1589 search for headers 1590 --with-clang-default-openmp-runtime 1591 The default OpenMP runtime for Clang. 1592 --with-binutils-include Specify path to binutils/include/ containing 1593 plugin-api.h file for gold plugin. 1594 --with-bug-report-url Specify the URL where bug reports should be 1595 submitted (default=http://llvm.org/bugs/) 1596 --with-internal-prefix Installation directory for internal files 1597 --with-oprofile=<prefix> 1598 Tell OProfile >= 0.9.4 how to symbolize JIT output 1599 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1600 1601 1602Some influential environment variables: 1603 CC C compiler command 1604 CFLAGS C compiler flags 1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1606 nonstandard directory <lib dir> 1607 LIBS libraries to pass to the linker, e.g. -l<library> 1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1609 you have headers in a nonstandard directory <include dir> 1610 CXX C++ compiler command 1611 CXXFLAGS C++ compiler flags 1612 CPP C preprocessor 1613 1614Use these variables to override the choices made by `configure' or to help 1615it to find libraries and programs with nonstandard names/locations. 1616 1617Report bugs to <http://llvm.org/bugs/>. 1618_ACEOF 1619ac_status=$? 1620fi 1621 1622if test "$ac_init_help" = "recursive"; then 1623 # If there are subdirs, report their specific --help. 1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1625 test -d "$ac_dir" || 1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1627 continue 1628 ac_builddir=. 1629 1630case "$ac_dir" in 1631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1632*) 1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1634 # A ".." for each directory in $ac_dir_suffix. 1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1636 case $ac_top_builddir_sub in 1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1639 esac ;; 1640esac 1641ac_abs_top_builddir=$ac_pwd 1642ac_abs_builddir=$ac_pwd$ac_dir_suffix 1643# for backward compatibility: 1644ac_top_builddir=$ac_top_build_prefix 1645 1646case $srcdir in 1647 .) # We are building in place. 1648 ac_srcdir=. 1649 ac_top_srcdir=$ac_top_builddir_sub 1650 ac_abs_top_srcdir=$ac_pwd ;; 1651 [\\/]* | ?:[\\/]* ) # Absolute name. 1652 ac_srcdir=$srcdir$ac_dir_suffix; 1653 ac_top_srcdir=$srcdir 1654 ac_abs_top_srcdir=$srcdir ;; 1655 *) # Relative name. 1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1657 ac_top_srcdir=$ac_top_build_prefix$srcdir 1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1659esac 1660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1661 1662 cd "$ac_dir" || { ac_status=$?; continue; } 1663 # Check for guested configure. 1664 if test -f "$ac_srcdir/configure.gnu"; then 1665 echo && 1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1667 elif test -f "$ac_srcdir/configure"; then 1668 echo && 1669 $SHELL "$ac_srcdir/configure" --help=recursive 1670 else 1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1672 fi || ac_status=$? 1673 cd "$ac_pwd" || { ac_status=$?; break; } 1674 done 1675fi 1676 1677test -n "$ac_init_help" && exit $ac_status 1678if $ac_init_version; then 1679 cat <<\_ACEOF 1680LLVM configure 4.0.0svn 1681generated by GNU Autoconf 2.69 1682 1683Copyright (C) 2012 Free Software Foundation, Inc. 1684This configure script is free software; the Free Software Foundation 1685gives unlimited permission to copy, distribute and modify it. 1686 1687Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. 1688_ACEOF 1689 exit 1690fi 1691 1692## ------------------------ ## 1693## Autoconf initialization. ## 1694## ------------------------ ## 1695 1696# ac_fn_c_try_compile LINENO 1697# -------------------------- 1698# Try to compile conftest.$ac_ext, and return whether this succeeded. 1699ac_fn_c_try_compile () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 rm -f conftest.$ac_objext 1703 if { { ac_try="$ac_compile" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_compile") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { 1719 test -z "$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 } && test -s conftest.$ac_objext; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_compile 1733 1734# ac_fn_cxx_try_compile LINENO 1735# ---------------------------- 1736# Try to compile conftest.$ac_ext, and return whether this succeeded. 1737ac_fn_cxx_try_compile () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 rm -f conftest.$ac_objext 1741 if { { ac_try="$ac_compile" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_compile") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { 1757 test -z "$ac_cxx_werror_flag" || 1758 test ! -s conftest.err 1759 } && test -s conftest.$ac_objext; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: failed program was:" >&5 1763sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=1 1766fi 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770} # ac_fn_cxx_try_compile 1771 1772# ac_fn_c_try_cpp LINENO 1773# ---------------------- 1774# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_cpp () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if { { ac_try="$ac_cpp conftest.$ac_ext" 1779case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1786 ac_status=$? 1787 if test -s conftest.err; then 1788 grep -v '^ *+' conftest.err >conftest.er1 1789 cat conftest.er1 >&5 1790 mv -f conftest.er1 conftest.err 1791 fi 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } > conftest.i && { 1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1795 test ! -s conftest.err 1796 }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: failed program was:" >&5 1800sed 's/^/| /' conftest.$ac_ext >&5 1801 1802 ac_retval=1 1803fi 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_cpp 1808 1809# ac_fn_cxx_try_link LINENO 1810# ------------------------- 1811# Try to link conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_cxx_try_link () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 rm -f conftest.$ac_objext conftest$ac_exeext 1816 if { { ac_try="$ac_link" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_link") 2>conftest.err 1824 ac_status=$? 1825 if test -s conftest.err; then 1826 grep -v '^ *+' conftest.err >conftest.er1 1827 cat conftest.er1 >&5 1828 mv -f conftest.er1 conftest.err 1829 fi 1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; } && { 1832 test -z "$ac_cxx_werror_flag" || 1833 test ! -s conftest.err 1834 } && test -s conftest$ac_exeext && { 1835 test "$cross_compiling" = yes || 1836 test -x conftest$ac_exeext 1837 }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=1 1844fi 1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1847 # interfere with the next link command; also delete a directory that is 1848 # left behind by Apple's compiler. We do this before executing the actions. 1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 as_fn_set_status $ac_retval 1852 1853} # ac_fn_cxx_try_link 1854 1855# ac_fn_c_try_link LINENO 1856# ----------------------- 1857# Try to link conftest.$ac_ext, and return whether this succeeded. 1858ac_fn_c_try_link () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 rm -f conftest.$ac_objext conftest$ac_exeext 1862 if { { ac_try="$ac_link" 1863case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866esac 1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868$as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_link") 2>conftest.err 1870 ac_status=$? 1871 if test -s conftest.err; then 1872 grep -v '^ *+' conftest.err >conftest.er1 1873 cat conftest.er1 >&5 1874 mv -f conftest.er1 conftest.err 1875 fi 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; } && { 1878 test -z "$ac_c_werror_flag" || 1879 test ! -s conftest.err 1880 } && test -s conftest$ac_exeext && { 1881 test "$cross_compiling" = yes || 1882 test -x conftest$ac_exeext 1883 }; then : 1884 ac_retval=0 1885else 1886 $as_echo "$as_me: failed program was:" >&5 1887sed 's/^/| /' conftest.$ac_ext >&5 1888 1889 ac_retval=1 1890fi 1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1893 # interfere with the next link command; also delete a directory that is 1894 # left behind by Apple's compiler. We do this before executing the actions. 1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 as_fn_set_status $ac_retval 1898 1899} # ac_fn_c_try_link 1900 1901# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1902# ------------------------------------------------------- 1903# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1904# the include files in INCLUDES and setting the cache variable VAR 1905# accordingly. 1906ac_fn_c_check_header_mongrel () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 if eval \${$3+:} false; then : 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918else 1919 # Is the header compilable? 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1921$as_echo_n "checking $2 usability... " >&6; } 1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925#include <$2> 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO"; then : 1928 ac_header_compiler=yes 1929else 1930 ac_header_compiler=no 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1934$as_echo "$ac_header_compiler" >&6; } 1935 1936# Is the header present? 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1938$as_echo_n "checking $2 presence... " >&6; } 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941#include <$2> 1942_ACEOF 1943if ac_fn_c_try_cpp "$LINENO"; then : 1944 ac_header_preproc=yes 1945else 1946 ac_header_preproc=no 1947fi 1948rm -f conftest.err conftest.i conftest.$ac_ext 1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1950$as_echo "$ac_header_preproc" >&6; } 1951 1952# So? What about this header? 1953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1954 yes:no: ) 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1956$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1959 ;; 1960 no:yes:* ) 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1962$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1964$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1966$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1968$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1971( $as_echo "## ------------------------------------ ## 1972## Report this to http://llvm.org/bugs/ ## 1973## ------------------------------------ ##" 1974 ) | sed "s/^/$as_me: WARNING: /" >&2 1975 ;; 1976esac 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981else 1982 eval "$3=\$ac_header_compiler" 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987fi 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_header_mongrel 1991 1992# ac_fn_c_try_run LINENO 1993# ---------------------- 1994# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1995# that executables *can* be run. 1996ac_fn_c_try_run () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 if { { ac_try="$ac_link" 2000case "(($ac_try" in 2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2002 *) ac_try_echo=$ac_try;; 2003esac 2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2005$as_echo "$ac_try_echo"; } >&5 2006 (eval "$ac_link") 2>&5 2007 ac_status=$? 2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2010 { { case "(($ac_try" in 2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2012 *) ac_try_echo=$ac_try;; 2013esac 2014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2015$as_echo "$ac_try_echo"; } >&5 2016 (eval "$ac_try") 2>&5 2017 ac_status=$? 2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2019 test $ac_status = 0; }; }; then : 2020 ac_retval=0 2021else 2022 $as_echo "$as_me: program exited with status $ac_status" >&5 2023 $as_echo "$as_me: failed program was:" >&5 2024sed 's/^/| /' conftest.$ac_ext >&5 2025 2026 ac_retval=$ac_status 2027fi 2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 as_fn_set_status $ac_retval 2031 2032} # ac_fn_c_try_run 2033 2034# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2035# ------------------------------------------------------- 2036# Tests whether HEADER exists and can be compiled using the include files in 2037# INCLUDES, setting the cache variable VAR accordingly. 2038ac_fn_c_check_header_compile () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2042$as_echo_n "checking for $2... " >&6; } 2043if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 eval "$3=yes" 2053else 2054 eval "$3=no" 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057fi 2058eval ac_res=\$$3 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2060$as_echo "$ac_res" >&6; } 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 2063} # ac_fn_c_check_header_compile 2064 2065# ac_fn_c_check_func LINENO FUNC VAR 2066# ---------------------------------- 2067# Tests whether FUNC exists, setting the cache variable VAR accordingly 2068ac_fn_c_check_func () 2069{ 2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2072$as_echo_n "checking for $2... " >&6; } 2073if eval \${$3+:} false; then : 2074 $as_echo_n "(cached) " >&6 2075else 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2080#define $2 innocuous_$2 2081 2082/* System header to define __stub macros and hopefully few prototypes, 2083 which can conflict with char $2 (); below. 2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2085 <limits.h> exists even on freestanding compilers. */ 2086 2087#ifdef __STDC__ 2088# include <limits.h> 2089#else 2090# include <assert.h> 2091#endif 2092 2093#undef $2 2094 2095/* Override any GCC internal prototype to avoid an error. 2096 Use char because int might match the return type of a GCC 2097 builtin and then its argument prototype would still apply. */ 2098#ifdef __cplusplus 2099extern "C" 2100#endif 2101char $2 (); 2102/* The GNU C library defines this for functions which it implements 2103 to always fail with ENOSYS. Some functions are actually named 2104 something starting with __ and the normal name is an alias. */ 2105#if defined __stub_$2 || defined __stub___$2 2106choke me 2107#endif 2108 2109int 2110main () 2111{ 2112return $2 (); 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_link "$LINENO"; then : 2118 eval "$3=yes" 2119else 2120 eval "$3=no" 2121fi 2122rm -f core conftest.err conftest.$ac_objext \ 2123 conftest$ac_exeext conftest.$ac_ext 2124fi 2125eval ac_res=\$$3 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2127$as_echo "$ac_res" >&6; } 2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2129 2130} # ac_fn_c_check_func 2131 2132# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2133# --------------------------------------------- 2134# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2135# accordingly. 2136ac_fn_c_check_decl () 2137{ 2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2139 as_decl_name=`echo $2|sed 's/ *(.*//'` 2140 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2142$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2143if eval \${$3+:} false; then : 2144 $as_echo_n "(cached) " >&6 2145else 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$4 2149int 2150main () 2151{ 2152#ifndef $as_decl_name 2153#ifdef __cplusplus 2154 (void) $as_decl_use; 2155#else 2156 (void) $as_decl_name; 2157#endif 2158#endif 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 eval "$3=yes" 2166else 2167 eval "$3=no" 2168fi 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170fi 2171eval ac_res=\$$3 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2173$as_echo "$ac_res" >&6; } 2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2175 2176} # ac_fn_c_check_decl 2177 2178# ac_fn_cxx_try_run LINENO 2179# ------------------------ 2180# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2181# that executables *can* be run. 2182ac_fn_cxx_try_run () 2183{ 2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2185 if { { ac_try="$ac_link" 2186case "(($ac_try" in 2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2188 *) ac_try_echo=$ac_try;; 2189esac 2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2191$as_echo "$ac_try_echo"; } >&5 2192 (eval "$ac_link") 2>&5 2193 ac_status=$? 2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2196 { { case "(($ac_try" in 2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2198 *) ac_try_echo=$ac_try;; 2199esac 2200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2201$as_echo "$ac_try_echo"; } >&5 2202 (eval "$ac_try") 2>&5 2203 ac_status=$? 2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2205 test $ac_status = 0; }; }; then : 2206 ac_retval=0 2207else 2208 $as_echo "$as_me: program exited with status $ac_status" >&5 2209 $as_echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212 ac_retval=$ac_status 2213fi 2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 as_fn_set_status $ac_retval 2217 2218} # ac_fn_cxx_try_run 2219 2220# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2221# ------------------------------------------- 2222# Tests whether TYPE exists after having included INCLUDES, setting cache 2223# variable VAR accordingly. 2224ac_fn_c_check_type () 2225{ 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2228$as_echo_n "checking for $2... " >&6; } 2229if eval \${$3+:} false; then : 2230 $as_echo_n "(cached) " >&6 2231else 2232 eval "$3=no" 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main () 2238{ 2239if (sizeof ($2)) 2240 return 0; 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_c_try_compile "$LINENO"; then : 2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252if (sizeof (($2))) 2253 return 0; 2254 ; 2255 return 0; 2256} 2257_ACEOF 2258if ac_fn_c_try_compile "$LINENO"; then : 2259 2260else 2261 eval "$3=yes" 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267eval ac_res=\$$3 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2269$as_echo "$ac_res" >&6; } 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 2272} # ac_fn_c_check_type 2273 2274# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2275# ---------------------------------------------------- 2276# Tries to find if the field MEMBER exists in type AGGR, after including 2277# INCLUDES, setting cache variable VAR accordingly. 2278ac_fn_c_check_member () 2279{ 2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2282$as_echo_n "checking for $2.$3... " >&6; } 2283if eval \${$4+:} false; then : 2284 $as_echo_n "(cached) " >&6 2285else 2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2287/* end confdefs.h. */ 2288$5 2289int 2290main () 2291{ 2292static $2 ac_aggr; 2293if (ac_aggr.$3) 2294return 0; 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299if ac_fn_c_try_compile "$LINENO"; then : 2300 eval "$4=yes" 2301else 2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2303/* end confdefs.h. */ 2304$5 2305int 2306main () 2307{ 2308static $2 ac_aggr; 2309if (sizeof ac_aggr.$3) 2310return 0; 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 eval "$4=yes" 2317else 2318 eval "$4=no" 2319fi 2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321fi 2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2323fi 2324eval ac_res=\$$4 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2326$as_echo "$ac_res" >&6; } 2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2328 2329} # ac_fn_c_check_member 2330cat >config.log <<_ACEOF 2331This file contains any messages produced by compilers while 2332running configure, to aid debugging if configure makes a mistake. 2333 2334It was created by LLVM $as_me 4.0.0svn, which was 2335generated by GNU Autoconf 2.69. Invocation command line was 2336 2337 $ $0 $@ 2338 2339_ACEOF 2340exec 5>>config.log 2341{ 2342cat <<_ASUNAME 2343## --------- ## 2344## Platform. ## 2345## --------- ## 2346 2347hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2348uname -m = `(uname -m) 2>/dev/null || echo unknown` 2349uname -r = `(uname -r) 2>/dev/null || echo unknown` 2350uname -s = `(uname -s) 2>/dev/null || echo unknown` 2351uname -v = `(uname -v) 2>/dev/null || echo unknown` 2352 2353/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2354/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2355 2356/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2357/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2358/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2359/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2360/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2361/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2362/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2363 2364_ASUNAME 2365 2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2367for as_dir in $PATH 2368do 2369 IFS=$as_save_IFS 2370 test -z "$as_dir" && as_dir=. 2371 $as_echo "PATH: $as_dir" 2372 done 2373IFS=$as_save_IFS 2374 2375} >&5 2376 2377cat >&5 <<_ACEOF 2378 2379 2380## ----------- ## 2381## Core tests. ## 2382## ----------- ## 2383 2384_ACEOF 2385 2386 2387# Keep a trace of the command line. 2388# Strip out --no-create and --no-recursion so they do not pile up. 2389# Strip out --silent because we don't want to record it for future runs. 2390# Also quote any args containing shell meta-characters. 2391# Make two passes to allow for proper duplicate-argument suppression. 2392ac_configure_args= 2393ac_configure_args0= 2394ac_configure_args1= 2395ac_must_keep_next=false 2396for ac_pass in 1 2 2397do 2398 for ac_arg 2399 do 2400 case $ac_arg in 2401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2403 | -silent | --silent | --silen | --sile | --sil) 2404 continue ;; 2405 *\'*) 2406 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2407 esac 2408 case $ac_pass in 2409 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2410 2) 2411 as_fn_append ac_configure_args1 " '$ac_arg'" 2412 if test $ac_must_keep_next = true; then 2413 ac_must_keep_next=false # Got value, back to normal. 2414 else 2415 case $ac_arg in 2416 *=* | --config-cache | -C | -disable-* | --disable-* \ 2417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2419 | -with-* | --with-* | -without-* | --without-* | --x) 2420 case "$ac_configure_args0 " in 2421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2422 esac 2423 ;; 2424 -* ) ac_must_keep_next=true ;; 2425 esac 2426 fi 2427 as_fn_append ac_configure_args " '$ac_arg'" 2428 ;; 2429 esac 2430 done 2431done 2432{ ac_configure_args0=; unset ac_configure_args0;} 2433{ ac_configure_args1=; unset ac_configure_args1;} 2434 2435# When interrupted or exit'd, cleanup temporary files, and complete 2436# config.log. We remove comments because anyway the quotes in there 2437# would cause problems or look ugly. 2438# WARNING: Use '\'' to represent an apostrophe within the trap. 2439# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2440trap 'exit_status=$? 2441 # Save into config.log some information that might help in debugging. 2442 { 2443 echo 2444 2445 $as_echo "## ---------------- ## 2446## Cache variables. ## 2447## ---------------- ##" 2448 echo 2449 # The following way of writing the cache mishandles newlines in values, 2450( 2451 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2452 eval ac_val=\$$ac_var 2453 case $ac_val in #( 2454 *${as_nl}*) 2455 case $ac_var in #( 2456 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2457$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2458 esac 2459 case $ac_var in #( 2460 _ | IFS | as_nl) ;; #( 2461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2462 *) { eval $ac_var=; unset $ac_var;} ;; 2463 esac ;; 2464 esac 2465 done 2466 (set) 2>&1 | 2467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2468 *${as_nl}ac_space=\ *) 2469 sed -n \ 2470 "s/'\''/'\''\\\\'\'''\''/g; 2471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2472 ;; #( 2473 *) 2474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2475 ;; 2476 esac | 2477 sort 2478) 2479 echo 2480 2481 $as_echo "## ----------------- ## 2482## Output variables. ## 2483## ----------------- ##" 2484 echo 2485 for ac_var in $ac_subst_vars 2486 do 2487 eval ac_val=\$$ac_var 2488 case $ac_val in 2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2490 esac 2491 $as_echo "$ac_var='\''$ac_val'\''" 2492 done | sort 2493 echo 2494 2495 if test -n "$ac_subst_files"; then 2496 $as_echo "## ------------------- ## 2497## File substitutions. ## 2498## ------------------- ##" 2499 echo 2500 for ac_var in $ac_subst_files 2501 do 2502 eval ac_val=\$$ac_var 2503 case $ac_val in 2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2505 esac 2506 $as_echo "$ac_var='\''$ac_val'\''" 2507 done | sort 2508 echo 2509 fi 2510 2511 if test -s confdefs.h; then 2512 $as_echo "## ----------- ## 2513## confdefs.h. ## 2514## ----------- ##" 2515 echo 2516 cat confdefs.h 2517 echo 2518 fi 2519 test "$ac_signal" != 0 && 2520 $as_echo "$as_me: caught signal $ac_signal" 2521 $as_echo "$as_me: exit $exit_status" 2522 } >&5 2523 rm -f core *.core core.conftest.* && 2524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2525 exit $exit_status 2526' 0 2527for ac_signal in 1 2 13 15; do 2528 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2529done 2530ac_signal=0 2531 2532# confdefs.h avoids OS command line length limits that DEFS can exceed. 2533rm -f -r conftest* confdefs.h 2534 2535$as_echo "/* confdefs.h */" > confdefs.h 2536 2537# Predefined preprocessor variables. 2538 2539cat >>confdefs.h <<_ACEOF 2540#define PACKAGE_NAME "$PACKAGE_NAME" 2541_ACEOF 2542 2543cat >>confdefs.h <<_ACEOF 2544#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2545_ACEOF 2546 2547cat >>confdefs.h <<_ACEOF 2548#define PACKAGE_VERSION "$PACKAGE_VERSION" 2549_ACEOF 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE_STRING "$PACKAGE_STRING" 2553_ACEOF 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_URL "$PACKAGE_URL" 2561_ACEOF 2562 2563 2564# Let the site file select an alternate cache file if it wants to. 2565# Prefer an explicitly selected file to automatically selected ones. 2566ac_site_file1=NONE 2567ac_site_file2=NONE 2568if test -n "$CONFIG_SITE"; then 2569 # We do not want a PATH search for config.site. 2570 case $CONFIG_SITE in #(( 2571 -*) ac_site_file1=./$CONFIG_SITE;; 2572 */*) ac_site_file1=$CONFIG_SITE;; 2573 *) ac_site_file1=./$CONFIG_SITE;; 2574 esac 2575elif test "x$prefix" != xNONE; then 2576 ac_site_file1=$prefix/share/config.site 2577 ac_site_file2=$prefix/etc/config.site 2578else 2579 ac_site_file1=$ac_default_prefix/share/config.site 2580 ac_site_file2=$ac_default_prefix/etc/config.site 2581fi 2582for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2583do 2584 test "x$ac_site_file" = xNONE && continue 2585 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2587$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2588 sed 's/^/| /' "$ac_site_file" >&5 2589 . "$ac_site_file" \ 2590 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2592as_fn_error $? "failed to load site script $ac_site_file 2593See \`config.log' for more details" "$LINENO" 5; } 2594 fi 2595done 2596 2597if test -r "$cache_file"; then 2598 # Some versions of bash will fail to source /dev/null (special files 2599 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2600 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2602$as_echo "$as_me: loading cache $cache_file" >&6;} 2603 case $cache_file in 2604 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2605 *) . "./$cache_file";; 2606 esac 2607 fi 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2610$as_echo "$as_me: creating cache $cache_file" >&6;} 2611 >$cache_file 2612fi 2613 2614# Check that the precious variables saved in the cache have kept the same 2615# value. 2616ac_cache_corrupted=false 2617for ac_var in $ac_precious_vars; do 2618 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2619 eval ac_new_set=\$ac_env_${ac_var}_set 2620 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2621 eval ac_new_val=\$ac_env_${ac_var}_value 2622 case $ac_old_set,$ac_new_set in 2623 set,) 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2625$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2626 ac_cache_corrupted=: ;; 2627 ,set) 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2629$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2630 ac_cache_corrupted=: ;; 2631 ,);; 2632 *) 2633 if test "x$ac_old_val" != "x$ac_new_val"; then 2634 # differences in whitespace do not lead to failure. 2635 ac_old_val_w=`echo x $ac_old_val` 2636 ac_new_val_w=`echo x $ac_new_val` 2637 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2639$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2640 ac_cache_corrupted=: 2641 else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2643$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2644 eval $ac_var=\$ac_old_val 2645 fi 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2647$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2649$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2650 fi;; 2651 esac 2652 # Pass precious variables to config.status. 2653 if test "$ac_new_set" = set; then 2654 case $ac_new_val in 2655 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2656 *) ac_arg=$ac_var=$ac_new_val ;; 2657 esac 2658 case " $ac_configure_args " in 2659 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2660 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2661 esac 2662 fi 2663done 2664if $ac_cache_corrupted; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2668$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2669 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2670fi 2671## -------------------- ## 2672## Main body of script. ## 2673## -------------------- ## 2674 2675ac_ext=c 2676ac_cpp='$CPP $CPPFLAGS' 2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2679ac_compiler_gnu=$ac_cv_c_compiler_gnu 2680 2681 2682 2683LLVM_VERSION_MAJOR=4 2684LLVM_VERSION_MINOR=0 2685LLVM_VERSION_PATCH=0 2686LLVM_VERSION_SUFFIX=svn 2687 2688 2689cat >>confdefs.h <<_ACEOF 2690#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR 2691_ACEOF 2692 2693 2694cat >>confdefs.h <<_ACEOF 2695#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR 2696_ACEOF 2697 2698 2699cat >>confdefs.h <<_ACEOF 2700#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH 2701_ACEOF 2702 2703 2704cat >>confdefs.h <<_ACEOF 2705#define LLVM_VERSION_STRING "$PACKAGE_VERSION" 2706_ACEOF 2707 2708if false; then 2709 2710cat >>confdefs.h <<_ACEOF 2711#define LLVM_VERSION_INFO /**/ 2712_ACEOF 2713 2714fi 2715 2716 2717 2718 2719 2720 2721LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign." 2722 2723 2724 2725 2726 2727ac_aux_dir= 2728for ac_dir in autoconf "$srcdir"/autoconf; do 2729 if test -f "$ac_dir/install-sh"; then 2730 ac_aux_dir=$ac_dir 2731 ac_install_sh="$ac_aux_dir/install-sh -c" 2732 break 2733 elif test -f "$ac_dir/install.sh"; then 2734 ac_aux_dir=$ac_dir 2735 ac_install_sh="$ac_aux_dir/install.sh -c" 2736 break 2737 elif test -f "$ac_dir/shtool"; then 2738 ac_aux_dir=$ac_dir 2739 ac_install_sh="$ac_aux_dir/shtool install -c" 2740 break 2741 fi 2742done 2743if test -z "$ac_aux_dir"; then 2744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 2745fi 2746 2747# These three variables are undocumented and unsupported, 2748# and are intended to be withdrawn in a future Autoconf release. 2749# They can cause serious problems if a builder's source tree is in a directory 2750# whose full name contains unusual characters. 2751ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2752ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2753ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2754 2755 2756 2757 2758# Check whether --with-llvm-srcdir was given. 2759if test "${with_llvm_srcdir+set}" = set; then : 2760 withval=$with_llvm_srcdir; 2761else 2762 withval="-" 2763fi 2764 2765case "$withval" in 2766 -) llvm_srcdir="$srcdir" ;; 2767 /* | [A-Za-z]:[\\/]*) llvm_srcdir="$withval" ;; 2768 *) llvm_srcdir="$ac_pwd/$withval" ;; 2769esac 2770 2771if test ${srcdir} != "." ; then 2772 if test -f ${srcdir}/include/llvm/Config/config.h ; then 2773 as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5 2774 fi 2775fi 2776 2777if test ${srcdir} = "." ; then 2778 as_fn_error $? "In-source builds are not allowed. Please configure from a separate build directory!" "$LINENO" 5 2779fi 2780 2781: ${CFLAGS=} 2782: ${CXXFLAGS=} 2783 2784ac_ext=c 2785ac_cpp='$CPP $CPPFLAGS' 2786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2788ac_compiler_gnu=$ac_cv_c_compiler_gnu 2789if test -n "$ac_tool_prefix"; then 2790 for ac_prog in clang gcc 2791 do 2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795$as_echo_n "checking for $ac_word... " >&6; } 2796if ${ac_cv_prog_CC+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 if test -n "$CC"; then 2800 ac_cv_prog_CC="$CC" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814 done 2815IFS=$as_save_IFS 2816 2817fi 2818fi 2819CC=$ac_cv_prog_CC 2820if test -n "$CC"; then 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2822$as_echo "$CC" >&6; } 2823else 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825$as_echo "no" >&6; } 2826fi 2827 2828 2829 test -n "$CC" && break 2830 done 2831fi 2832if test -z "$CC"; then 2833 ac_ct_CC=$CC 2834 for ac_prog in clang gcc 2835do 2836 # Extract the first word of "$ac_prog", so it can be a program name with args. 2837set dummy $ac_prog; ac_word=$2 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839$as_echo_n "checking for $ac_word... " >&6; } 2840if ${ac_cv_prog_ac_ct_CC+:} false; then : 2841 $as_echo_n "(cached) " >&6 2842else 2843 if test -n "$ac_ct_CC"; then 2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2845else 2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH 2848do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2853 ac_cv_prog_ac_ct_CC="$ac_prog" 2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857done 2858 done 2859IFS=$as_save_IFS 2860 2861fi 2862fi 2863ac_ct_CC=$ac_cv_prog_ac_ct_CC 2864if test -n "$ac_ct_CC"; then 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2866$as_echo "$ac_ct_CC" >&6; } 2867else 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2869$as_echo "no" >&6; } 2870fi 2871 2872 2873 test -n "$ac_ct_CC" && break 2874done 2875 2876 if test "x$ac_ct_CC" = x; then 2877 CC="" 2878 else 2879 case $cross_compiling:$ac_tool_warned in 2880yes:) 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2883ac_tool_warned=yes ;; 2884esac 2885 CC=$ac_ct_CC 2886 fi 2887fi 2888 2889 2890test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2892as_fn_error $? "no acceptable C compiler found in \$PATH 2893See \`config.log' for more details" "$LINENO" 5; } 2894 2895# Provide some information about the compiler. 2896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2897set X $ac_compile 2898ac_compiler=$2 2899for ac_option in --version -v -V -qversion; do 2900 { { ac_try="$ac_compiler $ac_option >&5" 2901case "(($ac_try" in 2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2903 *) ac_try_echo=$ac_try;; 2904esac 2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2906$as_echo "$ac_try_echo"; } >&5 2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2908 ac_status=$? 2909 if test -s conftest.err; then 2910 sed '10a\ 2911... rest of stderr output deleted ... 2912 10q' conftest.err >conftest.er1 2913 cat conftest.er1 >&5 2914 fi 2915 rm -f conftest.er1 conftest.err 2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2917 test $ac_status = 0; } 2918done 2919 2920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931ac_clean_files_save=$ac_clean_files 2932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2933# Try to create an executable without -o first, disregard a.out. 2934# It will help us diagnose broken compilers, and finding out an intuition 2935# of exeext. 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2937$as_echo_n "checking whether the C compiler works... " >&6; } 2938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2939 2940# The possible output files: 2941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2942 2943ac_rmfiles= 2944for ac_file in $ac_files 2945do 2946 case $ac_file in 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2949 esac 2950done 2951rm -f $ac_rmfiles 2952 2953if { { ac_try="$ac_link_default" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2959$as_echo "$ac_try_echo"; } >&5 2960 (eval "$ac_link_default") 2>&5 2961 ac_status=$? 2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2963 test $ac_status = 0; }; then : 2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2966# in a Makefile. We should not override ac_cv_exeext if it was cached, 2967# so that the user can short-circuit this test for compilers unknown to 2968# Autoconf. 2969for ac_file in $ac_files '' 2970do 2971 test -f "$ac_file" || continue 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2974 ;; 2975 [ab].out ) 2976 # We found the default executable, but exeext='' is most 2977 # certainly right. 2978 break;; 2979 *.* ) 2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2981 then :; else 2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2983 fi 2984 # We set ac_cv_exeext here because the later test for it is not 2985 # safe: cross compilers may not add the suffix if given an `-o' 2986 # argument, so we may need to know it at that point already. 2987 # Even if this section looks crufty: it has the advantage of 2988 # actually working. 2989 break;; 2990 * ) 2991 break;; 2992 esac 2993done 2994test "$ac_cv_exeext" = no && ac_cv_exeext= 2995 2996else 2997 ac_file='' 2998fi 2999if test -z "$ac_file"; then : 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001$as_echo "no" >&6; } 3002$as_echo "$as_me: failed program was:" >&5 3003sed 's/^/| /' conftest.$ac_ext >&5 3004 3005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007as_fn_error 77 "C compiler cannot create executables 3008See \`config.log' for more details" "$LINENO" 5; } 3009else 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3011$as_echo "yes" >&6; } 3012fi 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3014$as_echo_n "checking for C compiler default output file name... " >&6; } 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3016$as_echo "$ac_file" >&6; } 3017ac_exeext=$ac_cv_exeext 3018 3019rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3020ac_clean_files=$ac_clean_files_save 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3022$as_echo_n "checking for suffix of executables... " >&6; } 3023if { { ac_try="$ac_link" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3029$as_echo "$ac_try_echo"; } >&5 3030 (eval "$ac_link") 2>&5 3031 ac_status=$? 3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; }; then : 3034 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3035# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3036# work properly (i.e., refer to `conftest.exe'), while it won't with 3037# `rm'. 3038for ac_file in conftest.exe conftest conftest.*; do 3039 test -f "$ac_file" || continue 3040 case $ac_file in 3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3043 break;; 3044 * ) break;; 3045 esac 3046done 3047else 3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3050as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3051See \`config.log' for more details" "$LINENO" 5; } 3052fi 3053rm -f conftest conftest$ac_cv_exeext 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3055$as_echo "$ac_cv_exeext" >&6; } 3056 3057rm -f conftest.$ac_ext 3058EXEEXT=$ac_cv_exeext 3059ac_exeext=$EXEEXT 3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3061/* end confdefs.h. */ 3062#include <stdio.h> 3063int 3064main () 3065{ 3066FILE *f = fopen ("conftest.out", "w"); 3067 return ferror (f) || fclose (f) != 0; 3068 3069 ; 3070 return 0; 3071} 3072_ACEOF 3073ac_clean_files="$ac_clean_files conftest.out" 3074# Check that the compiler produces executables we can run. If not, either 3075# the compiler is broken, or we cross compile. 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3077$as_echo_n "checking whether we are cross compiling... " >&6; } 3078if test "$cross_compiling" != yes; then 3079 { { ac_try="$ac_link" 3080case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3085$as_echo "$ac_try_echo"; } >&5 3086 (eval "$ac_link") 2>&5 3087 ac_status=$? 3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3089 test $ac_status = 0; } 3090 if { ac_try='./conftest$ac_cv_exeext' 3091 { { case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3096$as_echo "$ac_try_echo"; } >&5 3097 (eval "$ac_try") 2>&5 3098 ac_status=$? 3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3100 test $ac_status = 0; }; }; then 3101 cross_compiling=no 3102 else 3103 if test "$cross_compiling" = maybe; then 3104 cross_compiling=yes 3105 else 3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3108as_fn_error $? "cannot run C compiled programs. 3109If you meant to cross compile, use \`--host'. 3110See \`config.log' for more details" "$LINENO" 5; } 3111 fi 3112 fi 3113fi 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3115$as_echo "$cross_compiling" >&6; } 3116 3117rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3118ac_clean_files=$ac_clean_files_save 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3120$as_echo_n "checking for suffix of object files... " >&6; } 3121if ${ac_cv_objext+:} false; then : 3122 $as_echo_n "(cached) " >&6 3123else 3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3125/* end confdefs.h. */ 3126 3127int 3128main () 3129{ 3130 3131 ; 3132 return 0; 3133} 3134_ACEOF 3135rm -f conftest.o conftest.obj 3136if { { ac_try="$ac_compile" 3137case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3142$as_echo "$ac_try_echo"; } >&5 3143 (eval "$ac_compile") 2>&5 3144 ac_status=$? 3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3146 test $ac_status = 0; }; then : 3147 for ac_file in conftest.o conftest.obj conftest.*; do 3148 test -f "$ac_file" || continue; 3149 case $ac_file in 3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3152 break;; 3153 esac 3154done 3155else 3156 $as_echo "$as_me: failed program was:" >&5 3157sed 's/^/| /' conftest.$ac_ext >&5 3158 3159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161as_fn_error $? "cannot compute suffix of object files: cannot compile 3162See \`config.log' for more details" "$LINENO" 5; } 3163fi 3164rm -f conftest.$ac_cv_objext conftest.$ac_ext 3165fi 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3167$as_echo "$ac_cv_objext" >&6; } 3168OBJEXT=$ac_cv_objext 3169ac_objext=$OBJEXT 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3171$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3172if ${ac_cv_c_compiler_gnu+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3176/* end confdefs.h. */ 3177 3178int 3179main () 3180{ 3181#ifndef __GNUC__ 3182 choke me 3183#endif 3184 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189if ac_fn_c_try_compile "$LINENO"; then : 3190 ac_compiler_gnu=yes 3191else 3192 ac_compiler_gnu=no 3193fi 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195ac_cv_c_compiler_gnu=$ac_compiler_gnu 3196 3197fi 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3199$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3200if test $ac_compiler_gnu = yes; then 3201 GCC=yes 3202else 3203 GCC= 3204fi 3205ac_test_CFLAGS=${CFLAGS+set} 3206ac_save_CFLAGS=$CFLAGS 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3208$as_echo_n "checking whether $CC accepts -g... " >&6; } 3209if ${ac_cv_prog_cc_g+:} false; then : 3210 $as_echo_n "(cached) " >&6 3211else 3212 ac_save_c_werror_flag=$ac_c_werror_flag 3213 ac_c_werror_flag=yes 3214 ac_cv_prog_cc_g=no 3215 CFLAGS="-g" 3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3217/* end confdefs.h. */ 3218 3219int 3220main () 3221{ 3222 3223 ; 3224 return 0; 3225} 3226_ACEOF 3227if ac_fn_c_try_compile "$LINENO"; then : 3228 ac_cv_prog_cc_g=yes 3229else 3230 CFLAGS="" 3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3232/* end confdefs.h. */ 3233 3234int 3235main () 3236{ 3237 3238 ; 3239 return 0; 3240} 3241_ACEOF 3242if ac_fn_c_try_compile "$LINENO"; then : 3243 3244else 3245 ac_c_werror_flag=$ac_save_c_werror_flag 3246 CFLAGS="-g" 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249 3250int 3251main () 3252{ 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258if ac_fn_c_try_compile "$LINENO"; then : 3259 ac_cv_prog_cc_g=yes 3260fi 3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3262fi 3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3264fi 3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3266 ac_c_werror_flag=$ac_save_c_werror_flag 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3269$as_echo "$ac_cv_prog_cc_g" >&6; } 3270if test "$ac_test_CFLAGS" = set; then 3271 CFLAGS=$ac_save_CFLAGS 3272elif test $ac_cv_prog_cc_g = yes; then 3273 if test "$GCC" = yes; then 3274 CFLAGS="-g -O2" 3275 else 3276 CFLAGS="-g" 3277 fi 3278else 3279 if test "$GCC" = yes; then 3280 CFLAGS="-O2" 3281 else 3282 CFLAGS= 3283 fi 3284fi 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3286$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3287if ${ac_cv_prog_cc_c89+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 ac_cv_prog_cc_c89=no 3291ac_save_CC=$CC 3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294#include <stdarg.h> 3295#include <stdio.h> 3296struct stat; 3297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3298struct buf { int x; }; 3299FILE * (*rcsopen) (struct buf *, struct stat *, int); 3300static char *e (p, i) 3301 char **p; 3302 int i; 3303{ 3304 return p[i]; 3305} 3306static char *f (char * (*g) (char **, int), char **p, ...) 3307{ 3308 char *s; 3309 va_list v; 3310 va_start (v,p); 3311 s = g (p, va_arg (v,int)); 3312 va_end (v); 3313 return s; 3314} 3315 3316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3317 function prototypes and stuff, but not '\xHH' hex character constants. 3318 These don't provoke an error unfortunately, instead are silently treated 3319 as 'x'. The following induces an error, until -std is added to get 3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3321 array size at least. It's necessary to write '\x00'==0 to get something 3322 that's true only with -std. */ 3323int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3324 3325/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3326 inside strings and character constants. */ 3327#define FOO(x) 'x' 3328int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3329 3330int test (int i, double x); 3331struct s1 {int (*f) (int a);}; 3332struct s2 {int (*f) (double a);}; 3333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3334int argc; 3335char **argv; 3336int 3337main () 3338{ 3339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3346do 3347 CC="$ac_save_CC $ac_arg" 3348 if ac_fn_c_try_compile "$LINENO"; then : 3349 ac_cv_prog_cc_c89=$ac_arg 3350fi 3351rm -f core conftest.err conftest.$ac_objext 3352 test "x$ac_cv_prog_cc_c89" != "xno" && break 3353done 3354rm -f conftest.$ac_ext 3355CC=$ac_save_CC 3356 3357fi 3358# AC_CACHE_VAL 3359case "x$ac_cv_prog_cc_c89" in 3360 x) 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3362$as_echo "none needed" >&6; } ;; 3363 xno) 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3365$as_echo "unsupported" >&6; } ;; 3366 *) 3367 CC="$CC $ac_cv_prog_cc_c89" 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3369$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3370esac 3371if test "x$ac_cv_prog_cc_c89" != xno; then : 3372 3373fi 3374 3375ac_ext=c 3376ac_cpp='$CPP $CPPFLAGS' 3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3379ac_compiler_gnu=$ac_cv_c_compiler_gnu 3380 3381ac_ext=cpp 3382ac_cpp='$CXXCPP $CPPFLAGS' 3383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3386if test -z "$CXX"; then 3387 if test -n "$CCC"; then 3388 CXX=$CCC 3389 else 3390 if test -n "$ac_tool_prefix"; then 3391 for ac_prog in clang++ g++ 3392 do 3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3394set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3396$as_echo_n "checking for $ac_word... " >&6; } 3397if ${ac_cv_prog_CXX+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 if test -n "$CXX"; then 3401 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3402else 3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3404for as_dir in $PATH 3405do 3406 IFS=$as_save_IFS 3407 test -z "$as_dir" && as_dir=. 3408 for ac_exec_ext in '' $ac_executable_extensions; do 3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3412 break 2 3413 fi 3414done 3415 done 3416IFS=$as_save_IFS 3417 3418fi 3419fi 3420CXX=$ac_cv_prog_CXX 3421if test -n "$CXX"; then 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3423$as_echo "$CXX" >&6; } 3424else 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426$as_echo "no" >&6; } 3427fi 3428 3429 3430 test -n "$CXX" && break 3431 done 3432fi 3433if test -z "$CXX"; then 3434 ac_ct_CXX=$CXX 3435 for ac_prog in clang++ g++ 3436do 3437 # Extract the first word of "$ac_prog", so it can be a program name with args. 3438set dummy $ac_prog; ac_word=$2 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440$as_echo_n "checking for $ac_word... " >&6; } 3441if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 if test -n "$ac_ct_CXX"; then 3445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3454 ac_cv_prog_ac_ct_CXX="$ac_prog" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi 3463fi 3464ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3465if test -n "$ac_ct_CXX"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3467$as_echo "$ac_ct_CXX" >&6; } 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471fi 3472 3473 3474 test -n "$ac_ct_CXX" && break 3475done 3476 3477 if test "x$ac_ct_CXX" = x; then 3478 CXX="g++" 3479 else 3480 case $cross_compiling:$ac_tool_warned in 3481yes:) 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3484ac_tool_warned=yes ;; 3485esac 3486 CXX=$ac_ct_CXX 3487 fi 3488fi 3489 3490 fi 3491fi 3492# Provide some information about the compiler. 3493$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3494set X $ac_compile 3495ac_compiler=$2 3496for ac_option in --version -v -V -qversion; do 3497 { { ac_try="$ac_compiler $ac_option >&5" 3498case "(($ac_try" in 3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3500 *) ac_try_echo=$ac_try;; 3501esac 3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3503$as_echo "$ac_try_echo"; } >&5 3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3505 ac_status=$? 3506 if test -s conftest.err; then 3507 sed '10a\ 3508... rest of stderr output deleted ... 3509 10q' conftest.err >conftest.er1 3510 cat conftest.er1 >&5 3511 fi 3512 rm -f conftest.er1 conftest.err 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; } 3515done 3516 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3518$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3519if ${ac_cv_cxx_compiler_gnu+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528#ifndef __GNUC__ 3529 choke me 3530#endif 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_cxx_try_compile "$LINENO"; then : 3537 ac_compiler_gnu=yes 3538else 3539 ac_compiler_gnu=no 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3543 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3546$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3547if test $ac_compiler_gnu = yes; then 3548 GXX=yes 3549else 3550 GXX= 3551fi 3552ac_test_CXXFLAGS=${CXXFLAGS+set} 3553ac_save_CXXFLAGS=$CXXFLAGS 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3555$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3556if ${ac_cv_prog_cxx_g+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3560 ac_cxx_werror_flag=yes 3561 ac_cv_prog_cxx_g=no 3562 CXXFLAGS="-g" 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565 3566int 3567main () 3568{ 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574if ac_fn_cxx_try_compile "$LINENO"; then : 3575 ac_cv_prog_cxx_g=yes 3576else 3577 CXXFLAGS="" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_cxx_try_compile "$LINENO"; then : 3590 3591else 3592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3593 CXXFLAGS="-g" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_cxx_try_compile "$LINENO"; then : 3606 ac_cv_prog_cxx_g=yes 3607fi 3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3609fi 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3616$as_echo "$ac_cv_prog_cxx_g" >&6; } 3617if test "$ac_test_CXXFLAGS" = set; then 3618 CXXFLAGS=$ac_save_CXXFLAGS 3619elif test $ac_cv_prog_cxx_g = yes; then 3620 if test "$GXX" = yes; then 3621 CXXFLAGS="-g -O2" 3622 else 3623 CXXFLAGS="-g" 3624 fi 3625else 3626 if test "$GXX" = yes; then 3627 CXXFLAGS="-O2" 3628 else 3629 CXXFLAGS= 3630 fi 3631fi 3632ac_ext=c 3633ac_cpp='$CPP $CPPFLAGS' 3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3636ac_compiler_gnu=$ac_cv_c_compiler_gnu 3637 3638ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3644$as_echo_n "checking how to run the C preprocessor... " >&6; } 3645# On Suns, sometimes $CPP names a directory. 3646if test -n "$CPP" && test -d "$CPP"; then 3647 CPP= 3648fi 3649if test -z "$CPP"; then 3650 if ${ac_cv_prog_CPP+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 # Double quotes because CPP needs to be expanded 3654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3655 do 3656 ac_preproc_ok=false 3657for ac_c_preproc_warn_flag in '' yes 3658do 3659 # Use a header file that comes with gcc, so configuring glibc 3660 # with a fresh cross-compiler works. 3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3662 # <limits.h> exists even on freestanding compilers. 3663 # On the NeXT, cc -E runs the code through the compiler's parser, 3664 # not just through cpp. "Syntax error" is here to catch this case. 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667#ifdef __STDC__ 3668# include <limits.h> 3669#else 3670# include <assert.h> 3671#endif 3672 Syntax error 3673_ACEOF 3674if ac_fn_c_try_cpp "$LINENO"; then : 3675 3676else 3677 # Broken: fails on valid input. 3678continue 3679fi 3680rm -f conftest.err conftest.i conftest.$ac_ext 3681 3682 # OK, works on sane cases. Now check whether nonexistent headers 3683 # can be detected and how. 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686#include <ac_nonexistent.h> 3687_ACEOF 3688if ac_fn_c_try_cpp "$LINENO"; then : 3689 # Broken: success on invalid input. 3690continue 3691else 3692 # Passes both tests. 3693ac_preproc_ok=: 3694break 3695fi 3696rm -f conftest.err conftest.i conftest.$ac_ext 3697 3698done 3699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3700rm -f conftest.i conftest.err conftest.$ac_ext 3701if $ac_preproc_ok; then : 3702 break 3703fi 3704 3705 done 3706 ac_cv_prog_CPP=$CPP 3707 3708fi 3709 CPP=$ac_cv_prog_CPP 3710else 3711 ac_cv_prog_CPP=$CPP 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3714$as_echo "$CPP" >&6; } 3715ac_preproc_ok=false 3716for ac_c_preproc_warn_flag in '' yes 3717do 3718 # Use a header file that comes with gcc, so configuring glibc 3719 # with a fresh cross-compiler works. 3720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3721 # <limits.h> exists even on freestanding compilers. 3722 # On the NeXT, cc -E runs the code through the compiler's parser, 3723 # not just through cpp. "Syntax error" is here to catch this case. 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726#ifdef __STDC__ 3727# include <limits.h> 3728#else 3729# include <assert.h> 3730#endif 3731 Syntax error 3732_ACEOF 3733if ac_fn_c_try_cpp "$LINENO"; then : 3734 3735else 3736 # Broken: fails on valid input. 3737continue 3738fi 3739rm -f conftest.err conftest.i conftest.$ac_ext 3740 3741 # OK, works on sane cases. Now check whether nonexistent headers 3742 # can be detected and how. 3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745#include <ac_nonexistent.h> 3746_ACEOF 3747if ac_fn_c_try_cpp "$LINENO"; then : 3748 # Broken: success on invalid input. 3749continue 3750else 3751 # Passes both tests. 3752ac_preproc_ok=: 3753break 3754fi 3755rm -f conftest.err conftest.i conftest.$ac_ext 3756 3757done 3758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3759rm -f conftest.i conftest.err conftest.$ac_ext 3760if $ac_preproc_ok; then : 3761 3762else 3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3766See \`config.log' for more details" "$LINENO" 5; } 3767fi 3768 3769ac_ext=c 3770ac_cpp='$CPP $CPPFLAGS' 3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3773ac_compiler_gnu=$ac_cv_c_compiler_gnu 3774 3775 3776if test "$CXX" = "clang++" ; then 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang works" >&5 3778$as_echo_n "checking whether clang works... " >&6; } 3779 ac_ext=cpp 3780ac_cpp='$CXXCPP $CPPFLAGS' 3781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3784 3785 3786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788#include <limits> 3789#if __has_include (<cxxabi.h>) 3790#include <cxxabi.h> 3791#endif 3792#if __has_include (<unwind.h>) 3793#include <unwind.h> 3794#endif 3795 3796int 3797main () 3798{ 3799 3800 ; 3801 return 0; 3802} 3803_ACEOF 3804if ac_fn_cxx_try_compile "$LINENO"; then : 3805 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3807$as_echo "yes" >&6; } 3808 3809else 3810 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812$as_echo "no" >&6; } 3813 as_fn_error $? "Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." "$LINENO" 5 3814 3815fi 3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3817 ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822 3823fi 3824 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC or Clang is our host compiler" >&5 3826$as_echo_n "checking whether GCC or Clang is our host compiler... " >&6; } 3827ac_ext=cpp 3828ac_cpp='$CXXCPP $CPPFLAGS' 3829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3832 3833llvm_cv_cxx_compiler=unknown 3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3835/* end confdefs.h. */ 3836#if ! __clang__ 3837 #error 3838 #endif 3839 3840_ACEOF 3841if ac_fn_cxx_try_compile "$LINENO"; then : 3842 llvm_cv_cxx_compiler=clang 3843else 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#if ! __GNUC__ 3847 #error 3848 #endif 3849 3850_ACEOF 3851if ac_fn_cxx_try_compile "$LINENO"; then : 3852 llvm_cv_cxx_compiler=gcc 3853fi 3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3855fi 3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3857ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${llvm_cv_cxx_compiler}" >&5 3864$as_echo "${llvm_cv_cxx_compiler}" >&6; } 3865CXX_COMPILER=$llvm_cv_cxx_compiler 3866 3867 3868# Check whether --enable-polly was given. 3869if test "${enable_polly+set}" = set; then : 3870 enableval=$enable_polly; 3871else 3872 enableval=default 3873fi 3874 3875case "$enableval" in 3876 yes) ENABLE_POLLY=1 3877 ;; 3878 no) ENABLE_POLLY=0 3879 ;; 3880 default) ENABLE_POLLY=1 3881 ;; 3882 *) as_fn_error $? "Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 3883esac 3884 3885 3886if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3887 LLVM_HAS_POLLY=1 3888 3889 3890 3891subdirs="$subdirs tools/polly" 3892 3893fi 3894if false; then 3895 3896$as_echo "#define LINK_POLLY_INTO_TOOLS /**/" >>confdefs.h 3897 3898fi 3899 3900 3901# Make sure we can run config.sub. 3902$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3904 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3906$as_echo_n "checking build system type... " >&6; } 3907if ${ac_cv_build+:} false; then : 3908 $as_echo_n "(cached) " >&6 3909else 3910 ac_build_alias=$build_alias 3911test "x$ac_build_alias" = x && 3912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3913test "x$ac_build_alias" = x && 3914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3915ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3917 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3920$as_echo "$ac_cv_build" >&6; } 3921case $ac_cv_build in 3922*-*-*) ;; 3923*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3924esac 3925build=$ac_cv_build 3926ac_save_IFS=$IFS; IFS='-' 3927set x $ac_cv_build 3928shift 3929build_cpu=$1 3930build_vendor=$2 3931shift; shift 3932# Remember, the first character of IFS is used to create $*, 3933# except with old shells: 3934build_os=$* 3935IFS=$ac_save_IFS 3936case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3937 3938 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3940$as_echo_n "checking host system type... " >&6; } 3941if ${ac_cv_host+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 if test "x$host_alias" = x; then 3945 ac_cv_host=$ac_cv_build 3946else 3947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3949fi 3950 3951fi 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3953$as_echo "$ac_cv_host" >&6; } 3954case $ac_cv_host in 3955*-*-*) ;; 3956*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3957esac 3958host=$ac_cv_host 3959ac_save_IFS=$IFS; IFS='-' 3960set x $ac_cv_host 3961shift 3962host_cpu=$1 3963host_vendor=$2 3964shift; shift 3965# Remember, the first character of IFS is used to create $*, 3966# except with old shells: 3967host_os=$* 3968IFS=$ac_save_IFS 3969case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3970 3971 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3973$as_echo_n "checking target system type... " >&6; } 3974if ${ac_cv_target+:} false; then : 3975 $as_echo_n "(cached) " >&6 3976else 3977 if test "x$target_alias" = x; then 3978 ac_cv_target=$ac_cv_host 3979else 3980 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3982fi 3983 3984fi 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3986$as_echo "$ac_cv_target" >&6; } 3987case $ac_cv_target in 3988*-*-*) ;; 3989*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3990esac 3991target=$ac_cv_target 3992ac_save_IFS=$IFS; IFS='-' 3993set x $ac_cv_target 3994shift 3995target_cpu=$1 3996target_vendor=$2 3997shift; shift 3998# Remember, the first character of IFS is used to create $*, 3999# except with old shells: 4000target_os=$* 4001IFS=$ac_save_IFS 4002case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4003 4004 4005# The aliases save the names the user supplied, while $host etc. 4006# will get canonicalized. 4007test -n "$target_alias" && 4008 test "$program_prefix$program_suffix$program_transform_name" = \ 4009 NONENONEs,x,x, && 4010 program_prefix=${target_alias}- 4011 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5 4013$as_echo_n "checking type of operating system we're going to host on... " >&6; } 4014if ${llvm_cv_os_type+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 case $host in 4018 *-*-aix*) 4019 llvm_cv_link_all_option="-Wl,--whole-archive" 4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4021 llvm_cv_os_type="AIX" 4022 llvm_cv_platform_type="Unix" ;; 4023 *-*-irix*) 4024 llvm_cv_link_all_option="-Wl,--whole-archive" 4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4026 llvm_cv_os_type="IRIX" 4027 llvm_cv_platform_type="Unix" ;; 4028 *-*-cygwin*) 4029 llvm_cv_link_all_option="-Wl,--whole-archive" 4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4031 llvm_cv_os_type="Cygwin" 4032 llvm_cv_platform_type="Unix" ;; 4033 *-*-darwin*) 4034 llvm_cv_link_all_option="-Wl,-all_load" 4035 llvm_cv_no_link_all_option="-Wl,-noall_load" 4036 llvm_cv_os_type="Darwin" 4037 llvm_cv_platform_type="Unix" ;; 4038 *-*-minix*) 4039 llvm_cv_link_all_option="-Wl,-all_load" 4040 llvm_cv_no_link_all_option="-Wl,-noall_load" 4041 llvm_cv_os_type="Minix" 4042 llvm_cv_platform_type="Unix" ;; 4043 *-*-freebsd*) 4044 llvm_cv_link_all_option="-Wl,--whole-archive" 4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4046 llvm_cv_os_type="FreeBSD" 4047 llvm_cv_platform_type="Unix" ;; 4048 *-*-kfreebsd-gnu) 4049 llvm_cv_link_all_option="-Wl,--whole-archive" 4050 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4051 llvm_cv_os_type="GNU/kFreeBSD" 4052 llvm_cv_platform_type="Unix" ;; 4053 *-*-openbsd*) 4054 llvm_cv_link_all_option="-Wl,--whole-archive" 4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4056 llvm_cv_os_type="OpenBSD" 4057 llvm_cv_platform_type="Unix" ;; 4058 *-*-netbsd*) 4059 llvm_cv_link_all_option="-Wl,--whole-archive" 4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4061 llvm_cv_os_type="NetBSD" 4062 llvm_cv_platform_type="Unix" ;; 4063 *-*-dragonfly*) 4064 llvm_cv_link_all_option="-Wl,--whole-archive" 4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4066 llvm_cv_os_type="DragonFly" 4067 llvm_cv_platform_type="Unix" ;; 4068 *-*-bitrig*) 4069 llvm_cv_link_all_option="-Wl,--whole-archive" 4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4071 llvm_cv_os_type="Bitrig" 4072 llvm_cv_platform_type="Unix" ;; 4073 *-*-hpux*) 4074 llvm_cv_link_all_option="-Wl,--whole-archive" 4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4076 llvm_cv_os_type="HP-UX" 4077 llvm_cv_platform_type="Unix" ;; 4078 *-*-interix*) 4079 llvm_cv_link_all_option="-Wl,--whole-archive" 4080 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4081 llvm_cv_os_type="Interix" 4082 llvm_cv_platform_type="Unix" ;; 4083 *-*-linux*) 4084 llvm_cv_link_all_option="-Wl,--whole-archive" 4085 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4086 llvm_cv_os_type="Linux" 4087 llvm_cv_platform_type="Unix" ;; 4088 *-*-gnu*) 4089 llvm_cv_link_all_option="-Wl,--whole-archive" 4090 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4091 llvm_cv_os_type="GNU" 4092 llvm_cv_platform_type="Unix" ;; 4093 *-*-solaris*) 4094 llvm_cv_link_all_option="-Wl,-z,allextract" 4095 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 4096 llvm_cv_os_type="SunOS" 4097 llvm_cv_platform_type="Unix" ;; 4098 *-*-win32*) 4099 llvm_cv_link_all_option="-Wl,--whole-archive" 4100 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4101 llvm_cv_os_type="Win32" 4102 llvm_cv_platform_type="Win32" ;; 4103 *-*-mingw*) 4104 llvm_cv_link_all_option="-Wl,--whole-archive" 4105 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4106 llvm_cv_os_type="MingW" 4107 llvm_cv_platform_type="Win32" ;; 4108 *-*-haiku*) 4109 llvm_cv_link_all_option="-Wl,--whole-archive" 4110 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4111 llvm_cv_os_type="Haiku" 4112 llvm_cv_platform_type="Unix" ;; 4113 *-unknown-eabi*) 4114 llvm_cv_link_all_option="-Wl,--whole-archive" 4115 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4116 llvm_cv_os_type="Freestanding" 4117 llvm_cv_platform_type="Unix" ;; 4118 *-unknown-elf*) 4119 llvm_cv_link_all_option="-Wl,--whole-archive" 4120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4121 llvm_cv_os_type="Freestanding" 4122 llvm_cv_platform_type="Unix" ;; 4123 *) 4124 llvm_cv_link_all_option="" 4125 llvm_cv_no_link_all_option="" 4126 llvm_cv_os_type="Unknown" 4127 llvm_cv_platform_type="Unknown" ;; 4128esac 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5 4131$as_echo "$llvm_cv_os_type" >&6; } 4132 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5 4134$as_echo_n "checking type of operating system we're going to target... " >&6; } 4135if ${llvm_cv_target_os_type+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 case $target in 4139 *-*-aix*) 4140 llvm_cv_target_os_type="AIX" ;; 4141 *-*-irix*) 4142 llvm_cv_target_os_type="IRIX" ;; 4143 *-*-cygwin*) 4144 llvm_cv_target_os_type="Cygwin" ;; 4145 *-*-darwin*) 4146 llvm_cv_target_os_type="Darwin" ;; 4147 *-*-minix*) 4148 llvm_cv_target_os_type="Minix" ;; 4149 *-*-freebsd*) 4150 llvm_cv_target_os_type="FreeBSD" ;; 4151 *-*-kfreebsd-gnu) 4152 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 4153 *-*-openbsd*) 4154 llvm_cv_target_os_type="OpenBSD" ;; 4155 *-*-netbsd*) 4156 llvm_cv_target_os_type="NetBSD" ;; 4157 *-*-dragonfly*) 4158 llvm_cv_target_os_type="DragonFly" ;; 4159 *-*-bitrig*) 4160 llvm_cv_target_os_type="Bitrig" ;; 4161 *-*-hpux*) 4162 llvm_cv_target_os_type="HP-UX" ;; 4163 *-*-interix*) 4164 llvm_cv_target_os_type="Interix" ;; 4165 *-*-linux*) 4166 llvm_cv_target_os_type="Linux" ;; 4167 *-*-gnu*) 4168 llvm_cv_target_os_type="GNU" ;; 4169 *-*-solaris*) 4170 llvm_cv_target_os_type="SunOS" ;; 4171 *-*-win32*) 4172 llvm_cv_target_os_type="Win32" ;; 4173 *-*-mingw*) 4174 llvm_cv_target_os_type="MingW" ;; 4175 *-*-haiku*) 4176 llvm_cv_target_os_type="Haiku" ;; 4177 *-*-rtems*) 4178 llvm_cv_target_os_type="RTEMS" ;; 4179 *-*-nacl*) 4180 llvm_cv_target_os_type="NativeClient" ;; 4181 *-unknown-eabi*) 4182 llvm_cv_target_os_type="Freestanding" ;; 4183 *-*-ps4) 4184 llvm_cv_target_os_type="PS4" ;; 4185 *) 4186 llvm_cv_target_os_type="Unknown" ;; 4187esac 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5 4190$as_echo "$llvm_cv_target_os_type" >&6; } 4191 4192if test "$llvm_cv_os_type" = "Unknown" ; then 4193 as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5 4194fi 4195 4196OS=$llvm_cv_os_type 4197 4198HOST_OS=$llvm_cv_os_type 4199 4200TARGET_OS=$llvm_cv_target_os_type 4201 4202 4203LINKALL=$llvm_cv_link_all_option 4204 4205NOLINKALL=$llvm_cv_no_link_all_option 4206 4207 4208case $llvm_cv_platform_type in 4209 Unix) 4210 4211$as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h 4212 4213 LLVM_ON_UNIX=1 4214 4215 LLVM_ON_WIN32=0 4216 4217 ;; 4218 Win32) 4219 4220$as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h 4221 4222 LLVM_ON_UNIX=0 4223 4224 LLVM_ON_WIN32=1 4225 4226 ;; 4227esac 4228 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5 4230$as_echo_n "checking target architecture... " >&6; } 4231if ${llvm_cv_target_arch+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 case $target in 4235 i?86-*) llvm_cv_target_arch="x86" ;; 4236 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4237 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4238 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4239 arm64*-*) llvm_cv_target_arch="AArch64" ;; 4240 arm*-*) llvm_cv_target_arch="ARM" ;; 4241 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4242 avr-*) llvm_cv_target_arch="AVR" ;; 4243 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4244 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4245 xcore-*) llvm_cv_target_arch="XCore" ;; 4246 msp430-*) llvm_cv_target_arch="MSP430" ;; 4247 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4248 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4249 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4250 wasm*-*) llvm_cv_target_arch="WebAssembly" ;; 4251 *) llvm_cv_target_arch="Unknown" ;; 4252esac 4253fi 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5 4255$as_echo "$llvm_cv_target_arch" >&6; } 4256 4257if test "$llvm_cv_target_arch" = "Unknown" ; then 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5 4259$as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4260fi 4261 4262case "$llvm_cv_target_arch" in 4263 x86) LLVM_NATIVE_ARCH="X86" ;; 4264 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4265 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4266esac 4267 4268ARCH=$llvm_cv_target_arch 4269 4270LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH 4271 4272 4273case $host in 4274 i?86-*) host_arch="x86" ;; 4275 amd64-* | x86_64-*) host_arch="x86_64" ;; 4276 sparc*-*) host_arch="Sparc" ;; 4277 powerpc*-*) host_arch="PowerPC" ;; 4278 arm64*-*) host_arch="AArch64" ;; 4279 arm*-*) host_arch="ARM" ;; 4280 aarch64*-*) host_arch="AArch64" ;; 4281 avr-*) host_arch="AVR" ;; 4282 mips-* | mips64-*) host_arch="Mips" ;; 4283 mipsel-* | mips64el-*) host_arch="Mips" ;; 4284 xcore-*) host_arch="XCore" ;; 4285 msp430-*) host_arch="MSP430" ;; 4286 hexagon-*) host_arch="Hexagon" ;; 4287 s390x-*) host_arch="SystemZ" ;; 4288 wasm*-*) host_arch="WebAssembly" ;; 4289 *) host_arch="Unknown" ;; 4290esac 4291 4292if test "$host_arch" = "Unknown" ; then 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown host archicture" >&5 4294$as_echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4295fi 4296 4297HOST_ARCH=$host_arch 4298 4299 4300if test "$cross_compiling" = yes; then 4301 LLVM_CROSS_COMPILING=1 4302 4303 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5 4305$as_echo_n "checking for executable suffix on build platform... " >&6; } 4306if ${ac_cv_build_exeext+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4310 ac_cv_build_exeext=.exe 4311else 4312 ac_build_prefix=${build_alias}- 4313 4314 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4315set dummy ${ac_build_prefix}gcc; ac_word=$2 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4317$as_echo_n "checking for $ac_word... " >&6; } 4318if ${ac_cv_prog_BUILD_CC+:} false; then : 4319 $as_echo_n "(cached) " >&6 4320else 4321 if test -n "$BUILD_CC"; then 4322 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4323else 4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4325for as_dir in $PATH 4326do 4327 IFS=$as_save_IFS 4328 test -z "$as_dir" && as_dir=. 4329 for ac_exec_ext in '' $ac_executable_extensions; do 4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4331 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4333 break 2 4334 fi 4335done 4336 done 4337IFS=$as_save_IFS 4338 4339fi 4340fi 4341BUILD_CC=$ac_cv_prog_BUILD_CC 4342if test -n "$BUILD_CC"; then 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 4344$as_echo "$BUILD_CC" >&6; } 4345else 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4347$as_echo "no" >&6; } 4348fi 4349 4350 4351 if test -z "$BUILD_CC"; then 4352 # Extract the first word of "gcc", so it can be a program name with args. 4353set dummy gcc; ac_word=$2 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355$as_echo_n "checking for $ac_word... " >&6; } 4356if ${ac_cv_prog_BUILD_CC+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if test -n "$BUILD_CC"; then 4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4361else 4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH 4364do 4365 IFS=$as_save_IFS 4366 test -z "$as_dir" && as_dir=. 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4369 ac_cv_prog_BUILD_CC="gcc" 4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374 done 4375IFS=$as_save_IFS 4376 4377fi 4378fi 4379BUILD_CC=$ac_cv_prog_BUILD_CC 4380if test -n "$BUILD_CC"; then 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 4382$as_echo "$BUILD_CC" >&6; } 4383else 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4385$as_echo "no" >&6; } 4386fi 4387 4388 4389 if test -z "$BUILD_CC"; then 4390 # Extract the first word of "cc", so it can be a program name with args. 4391set dummy cc; ac_word=$2 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4393$as_echo_n "checking for $ac_word... " >&6; } 4394if ${ac_cv_prog_BUILD_CC+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if test -n "$BUILD_CC"; then 4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4399else 4400 ac_prog_rejected=no 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4409 ac_prog_rejected=yes 4410 continue 4411 fi 4412 ac_cv_prog_BUILD_CC="cc" 4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4414 break 2 4415 fi 4416done 4417 done 4418IFS=$as_save_IFS 4419 4420if test $ac_prog_rejected = yes; then 4421 # We found a bogon in the path, so make sure we never use it. 4422 set dummy $ac_cv_prog_BUILD_CC 4423 shift 4424 if test $# != 0; then 4425 # We chose a different compiler from the bogus one. 4426 # However, it has the same basename, so the bogon will be chosen 4427 # first if we set BUILD_CC to just the basename; use the full file name. 4428 shift 4429 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4430 fi 4431fi 4432fi 4433fi 4434BUILD_CC=$ac_cv_prog_BUILD_CC 4435if test -n "$BUILD_CC"; then 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 4437$as_echo "$BUILD_CC" >&6; } 4438else 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4440$as_echo "no" >&6; } 4441fi 4442 4443 4444 fi 4445 fi 4446 test -z "$BUILD_CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 4447 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4448 rm -f conftest* 4449 echo 'int main () { return 0; }' > conftest.$ac_ext 4450 ac_cv_build_exeext= 4451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5 4452 (eval $ac_build_link) 2>&5 4453 ac_status=$? 4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4455 test $ac_status = 0; }; then 4456 for file in conftest.*; do 4457 case $file in 4458 *.c | *.o | *.obj | *.dSYM) ;; 4459 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4460 esac 4461 done 4462 else 4463 as_fn_error $? "installation or configuration problem: compiler cannot create executables." "$LINENO" 5 4464 fi 4465 rm -f conftest* 4466 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4467fi 4468fi 4469 4470BUILD_EXEEXT="" 4471test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5 4473$as_echo "${ac_cv_build_exeext}" >&6; } 4474ac_build_exeext=$BUILD_EXEEXT 4475 4476 ac_build_prefix=${build_alias}- 4477 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4478set dummy ${ac_build_prefix}g++; ac_word=$2 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4480$as_echo_n "checking for $ac_word... " >&6; } 4481if ${ac_cv_prog_BUILD_CXX+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 if test -n "$BUILD_CXX"; then 4485 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4486else 4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4494 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4496 break 2 4497 fi 4498done 4499 done 4500IFS=$as_save_IFS 4501 4502fi 4503fi 4504BUILD_CXX=$ac_cv_prog_BUILD_CXX 4505if test -n "$BUILD_CXX"; then 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 4507$as_echo "$BUILD_CXX" >&6; } 4508else 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4510$as_echo "no" >&6; } 4511fi 4512 4513 4514 if test -z "$BUILD_CXX"; then 4515 # Extract the first word of "g++", so it can be a program name with args. 4516set dummy g++; ac_word=$2 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518$as_echo_n "checking for $ac_word... " >&6; } 4519if ${ac_cv_prog_BUILD_CXX+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 if test -n "$BUILD_CXX"; then 4523 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4524else 4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4526for as_dir in $PATH 4527do 4528 IFS=$as_save_IFS 4529 test -z "$as_dir" && as_dir=. 4530 for ac_exec_ext in '' $ac_executable_extensions; do 4531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4532 ac_cv_prog_BUILD_CXX="g++" 4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4534 break 2 4535 fi 4536done 4537 done 4538IFS=$as_save_IFS 4539 4540fi 4541fi 4542BUILD_CXX=$ac_cv_prog_BUILD_CXX 4543if test -n "$BUILD_CXX"; then 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 4545$as_echo "$BUILD_CXX" >&6; } 4546else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4548$as_echo "no" >&6; } 4549fi 4550 4551 4552 if test -z "$BUILD_CXX"; then 4553 # Extract the first word of "c++", so it can be a program name with args. 4554set dummy c++; ac_word=$2 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4556$as_echo_n "checking for $ac_word... " >&6; } 4557if ${ac_cv_prog_BUILD_CXX+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 if test -n "$BUILD_CXX"; then 4561 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4562else 4563 ac_prog_rejected=no 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4572 ac_prog_rejected=yes 4573 continue 4574 fi 4575 ac_cv_prog_BUILD_CXX="c++" 4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4577 break 2 4578 fi 4579done 4580 done 4581IFS=$as_save_IFS 4582 4583if test $ac_prog_rejected = yes; then 4584 # We found a bogon in the path, so make sure we never use it. 4585 set dummy $ac_cv_prog_BUILD_CXX 4586 shift 4587 if test $# != 0; then 4588 # We chose a different compiler from the bogus one. 4589 # However, it has the same basename, so the bogon will be chosen 4590 # first if we set BUILD_CXX to just the basename; use the full file name. 4591 shift 4592 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4593 fi 4594fi 4595fi 4596fi 4597BUILD_CXX=$ac_cv_prog_BUILD_CXX 4598if test -n "$BUILD_CXX"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 4600$as_echo "$BUILD_CXX" >&6; } 4601else 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603$as_echo "no" >&6; } 4604fi 4605 4606 4607 fi 4608 fi 4609else 4610 LLVM_CROSS_COMPILING=0 4611 4612fi 4613 4614if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4615 cvsbuild="yes" 4616 optimize="no" 4617 CVSBUILD=CVSBUILD=1 4618 4619else 4620 cvsbuild="no" 4621 optimize="yes" 4622fi 4623 4624 4625# Check whether --enable-libcpp was given. 4626if test "${enable_libcpp+set}" = set; then : 4627 enableval=$enable_libcpp; 4628else 4629 enableval=default 4630fi 4631 4632case "$enableval" in 4633 yes) ENABLE_LIBCPP=1 4634 ;; 4635 no) ENABLE_LIBCPP=0 4636 ;; 4637 default) ENABLE_LIBCPP=0 4638;; 4639 *) as_fn_error $? "Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4640esac 4641 4642# Check whether --enable-compiler-version-checks was given. 4643if test "${enable_compiler_version_checks+set}" = set; then : 4644 enableval=$enable_compiler_version_checks; 4645else 4646 enableval=default 4647fi 4648 4649case "$enableval" in 4650 no) 4651 ;; 4652 yes|default) 4653 ac_ext=cpp 4654ac_cpp='$CXXCPP $CPPFLAGS' 4655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4658 4659 case "$llvm_cv_cxx_compiler" in 4660 clang) 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5 4662$as_echo_n "checking whether Clang is new enough... " >&6; } 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665 4666#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1) 4667#error This version of Clang is too old to build LLVM 4668#endif 4669 4670_ACEOF 4671if ac_fn_cxx_try_compile "$LINENO"; then : 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4673$as_echo "yes" >&6; } 4674else 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676$as_echo "no" >&6; } 4677 as_fn_error $? " 4678The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4679Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4680bypass these sanity checks." "$LINENO" 5 4681fi 4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4683 4684 if test "$ENABLE_LIBCPP" -eq 0 ; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang will select a modern C++ standard library" >&5 4686$as_echo_n "checking whether Clang will select a modern C++ standard library... " >&6; } 4687 llvm_cv_old_cxxflags="$CXXFLAGS" 4688 CXXFLAGS="$CXXFLAGS -std=c++0x" 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691 4692#include <atomic> 4693std::atomic<float> x(0.0f); 4694int main() { return (float)x; } 4695 4696_ACEOF 4697if ac_fn_cxx_try_link "$LINENO"; then : 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4699$as_echo "yes" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703 as_fn_error $? " 4704We detected a missing feature in the standard C++ library that was known to be 4705missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4706C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4707than 4.7. You will need to update your system and ensure Clang uses the newer 4708standard library. 4709 4710If this error is incorrect or you need to force things to work, you may pass 4711'--disable-compiler-version-checks' to configure to bypass this test." "$LINENO" 5 4712fi 4713rm -f core conftest.err conftest.$ac_objext \ 4714 conftest$ac_exeext conftest.$ac_ext 4715 CXXFLAGS="$llvm_cv_old_cxxflags" 4716 fi 4717 ;; 4718 gcc) 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is new enough" >&5 4720$as_echo_n "checking whether GCC is new enough... " >&6; } 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4722/* end confdefs.h. */ 4723 4724#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) 4725#error This version of GCC is too old to build LLVM 4726#endif 4727 4728_ACEOF 4729if ac_fn_cxx_try_compile "$LINENO"; then : 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4731$as_echo "yes" >&6; } 4732else 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4734$as_echo "no" >&6; } 4735 as_fn_error $? " 4736The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4737to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4738bypass these sanity checks." "$LINENO" 5 4739fi 4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4741 ;; 4742 unknown) 4743 ;; 4744 esac 4745 ac_ext=c 4746ac_cpp='$CPP $CPPFLAGS' 4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4749ac_compiler_gnu=$ac_cv_c_compiler_gnu 4750 4751 ;; 4752 *) 4753 as_fn_error $? "Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" "$LINENO" 5 4754 ;; 4755esac 4756 4757# Check whether --enable-cxx1y was given. 4758if test "${enable_cxx1y+set}" = set; then : 4759 enableval=$enable_cxx1y; 4760else 4761 enableval=default 4762fi 4763 4764case "$enableval" in 4765 yes) ENABLE_CXX1Y=1 4766 ;; 4767 no) ENABLE_CXX1Y=0 4768 ;; 4769 default) ENABLE_CXX1Y=0 4770;; 4771 *) as_fn_error $? "Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4772esac 4773 4774# Check whether --enable-split-dwarf was given. 4775if test "${enable_split_dwarf+set}" = set; then : 4776 enableval=$enable_split_dwarf; 4777else 4778 enableval=default 4779fi 4780 4781case "$enableval" in 4782 yes) ENABLE_SPLIT_DWARF=1 4783 ;; 4784 no) ENABLE_SPLIT_DWARF=0 4785 ;; 4786 default) ENABLE_SPLIT_DWARF=0 4787;; 4788 *) as_fn_error $? "Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4789esac 4790 4791clang_arcmt="yes" 4792# Check whether --enable-clang-arcmt was given. 4793if test "${enable_clang_arcmt+set}" = set; then : 4794 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 4795else 4796 enableval="yes" 4797fi 4798 4799case "$enableval" in 4800 yes) ENABLE_CLANG_ARCMT=1 4801 ;; 4802 no) ENABLE_CLANG_ARCMT=0 4803 ;; 4804 default) ENABLE_CLANG_ARCMT=1 4805;; 4806 *) as_fn_error $? "Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4807esac 4808 4809clang_plugin_support="yes" 4810# Check whether --enable-clang-plugin-support was given. 4811if test "${enable_clang_plugin_support+set}" = set; then : 4812 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval" 4813else 4814 enableval="yes" 4815fi 4816 4817case "$enableval" in 4818 yes) CLANG_PLUGIN_SUPPORT=1 4819 ;; 4820 no) CLANG_PLUGIN_SUPPORT=0 4821 ;; 4822 default) CLANG_PLUGIN_SUPPORT=1 4823;; 4824 *) as_fn_error $? "Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4825esac 4826 4827clang_static_analyzer="yes" 4828# Check whether --enable-clang-static-analyzer was given. 4829if test "${enable_clang_static_analyzer+set}" = set; then : 4830 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 4831else 4832 enableval="yes" 4833fi 4834 4835case "$enableval" in 4836 yes) ENABLE_CLANG_STATIC_ANALYZER=1 4837 ;; 4838 no) 4839 if test ${clang_arcmt} != "no" ; then 4840 as_fn_error $? "Cannot enable clang ARC Migration Tool while disabling static analyzer." "$LINENO" 5 4841 fi 4842 ENABLE_CLANG_STATIC_ANALYZER=0 4843 4844 ;; 4845 default) ENABLE_CLANG_STATIC_ANALYZER=1 4846;; 4847 *) as_fn_error $? "Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4848esac 4849 4850# Check whether --enable-optimized was given. 4851if test "${enable_optimized+set}" = set; then : 4852 enableval=$enable_optimized; 4853else 4854 enableval=$optimize 4855fi 4856 4857if test ${enableval} = "no" ; then 4858 ENABLE_OPTIMIZED= 4859 4860else 4861 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4862 4863fi 4864 4865# Check whether --enable-profiling was given. 4866if test "${enable_profiling+set}" = set; then : 4867 enableval=$enable_profiling; 4868else 4869 enableval="no" 4870fi 4871 4872if test ${enableval} = "no" ; then 4873 ENABLE_PROFILING= 4874 4875else 4876 ENABLE_PROFILING=ENABLE_PROFILING=1 4877 4878fi 4879 4880# Check whether --enable-assertions was given. 4881if test "${enable_assertions+set}" = set; then : 4882 enableval=$enable_assertions; 4883else 4884 enableval="yes" 4885fi 4886 4887if test ${enableval} = "yes" ; then 4888 DISABLE_ASSERTIONS= 4889 4890 assertions_enabled="yes" 4891else 4892 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4893 4894 assertions_enabled="no" 4895fi 4896 4897# Check whether --enable-werror was given. 4898if test "${enable_werror+set}" = set; then : 4899 enableval=$enable_werror; 4900else 4901 enableval="no" 4902fi 4903 4904case "$enableval" in 4905 yes) ENABLE_WERROR=1 4906 ;; 4907 no) ENABLE_WERROR=0 4908 ;; 4909 default) ENABLE_WERROR=0 4910;; 4911 *) as_fn_error $? "Invalid setting for --enable-werror. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 4912esac 4913 4914# Check whether --enable-expensive-checks was given. 4915if test "${enable_expensive_checks+set}" = set; then : 4916 enableval=$enable_expensive_checks; 4917else 4918 enableval="no" 4919fi 4920 4921if test ${enableval} = "yes" ; then 4922 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4923 4924 EXPENSIVE_CHECKS=yes 4925 4926else 4927 ENABLE_EXPENSIVE_CHECKS= 4928 4929 EXPENSIVE_CHECKS=no 4930 4931fi 4932 4933# Check whether --enable-abi-breaking-checks was given. 4934if test "${enable_abi_breaking_checks+set}" = set; then : 4935 enableval=$enable_abi_breaking_checks; 4936else 4937 enableval="with-asserts" 4938fi 4939 4940case "$enableval" in 4941 with-asserts) if test ${assertions_enabled} = "yes" ; then 4942 ENABLE_ABI_BREAKING_CHECKS=1 4943 else 4944 ENABLE_ABI_BREAKING_CHECKS=0 4945 fi ;; 4946 yes) 4947 ENABLE_ABI_BREAKING_CHECKS=1 4948 ;; 4949 no) 4950 ENABLE_ABI_BREAKING_CHECKS=0 4951 ;; 4952 *) as_fn_error $? "Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" "$LINENO" 5 4953esac 4954ENABLE_ABI_BREAKING_CHECKS=$ENABLE_ABI_BREAKING_CHECKS 4955 4956 4957cat >>confdefs.h <<_ACEOF 4958#define LLVM_ENABLE_ABI_BREAKING_CHECKS $ENABLE_ABI_BREAKING_CHECKS 4959_ACEOF 4960 4961 4962# Check whether --enable-debug-runtime was given. 4963if test "${enable_debug_runtime+set}" = set; then : 4964 enableval=$enable_debug_runtime; 4965else 4966 enableval=no 4967fi 4968 4969if test ${enableval} = "no" ; then 4970 DEBUG_RUNTIME= 4971 4972else 4973 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4974 4975fi 4976 4977# Check whether --enable-debug-symbols was given. 4978if test "${enable_debug_symbols+set}" = set; then : 4979 enableval=$enable_debug_symbols; 4980else 4981 enableval=no 4982fi 4983 4984if test ${enableval} = "no" ; then 4985 DEBUG_SYMBOLS= 4986 4987else 4988 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4989 4990fi 4991 4992# Check whether --enable-keep-symbols was given. 4993if test "${enable_keep_symbols+set}" = set; then : 4994 enableval=$enable_keep_symbols; 4995else 4996 enableval=no 4997fi 4998 4999if test ${enableval} = "no" ; then 5000 KEEP_SYMBOLS= 5001 5002else 5003 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5004 5005fi 5006 5007# Check whether --enable-jit was given. 5008if test "${enable_jit+set}" = set; then : 5009 enableval=$enable_jit; 5010else 5011 enableval=default 5012fi 5013 5014if test ${enableval} = "no" 5015then 5016 JIT= 5017 5018else 5019 case "$llvm_cv_target_arch" in 5020 x86) TARGET_HAS_JIT=1 5021 ;; 5022 Sparc) TARGET_HAS_JIT=0 5023 ;; 5024 PowerPC) TARGET_HAS_JIT=1 5025 ;; 5026 x86_64) TARGET_HAS_JIT=1 5027 ;; 5028 ARM) TARGET_HAS_JIT=1 5029 ;; 5030 AVR) TARGET_HAS_JIT=0 5031 ;; 5032 Mips) TARGET_HAS_JIT=1 5033 ;; 5034 XCore) TARGET_HAS_JIT=0 5035 ;; 5036 MSP430) TARGET_HAS_JIT=0 5037 ;; 5038 Hexagon) TARGET_HAS_JIT=0 5039 ;; 5040 NVPTX) TARGET_HAS_JIT=0 5041 ;; 5042 SystemZ) TARGET_HAS_JIT=1 5043 ;; 5044 WebAssembly) TARGET_HAS_JIT=0 5045 ;; 5046 *) TARGET_HAS_JIT=0 5047 ;; 5048 esac 5049fi 5050 5051TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86" 5052TARGETS_WITH_JIT=$TARGETS_WITH_JIT 5053 5054 5055# Check whether --enable-docs was given. 5056if test "${enable_docs+set}" = set; then : 5057 enableval=$enable_docs; 5058else 5059 enableval=default 5060fi 5061 5062case "$enableval" in 5063 yes) ENABLE_DOCS=1 5064 ;; 5065 no) ENABLE_DOCS=0 5066 ;; 5067 default) ENABLE_DOCS=1 5068 ;; 5069 *) as_fn_error $? "Invalid setting for --enable-docs. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5070esac 5071 5072# Check whether --enable-doxygen was given. 5073if test "${enable_doxygen+set}" = set; then : 5074 enableval=$enable_doxygen; 5075else 5076 enableval=default 5077fi 5078 5079case "$enableval" in 5080 yes) ENABLE_DOXYGEN=1 5081 ;; 5082 no|default) ENABLE_DOXYGEN=0 5083 ;; 5084 *) as_fn_error $? "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5085esac 5086 5087# Check whether --enable-doxygen-search was given. 5088if test "${enable_doxygen_search+set}" = set; then : 5089 enableval=$enable_doxygen_search; 5090else 5091 enableval=default 5092fi 5093 5094ENABLE_DOXYGEN_SEARCH="$enableval" 5095 5096case "$enableval" in 5097 yes|no|default) ;; 5098 *) as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5099esac 5100 5101# Check whether --enable-doxygen-external-search was given. 5102if test "${enable_doxygen_external_search+set}" = set; then : 5103 enableval=$enable_doxygen_external_search; 5104else 5105 enableval=default 5106fi 5107 5108ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval" 5109 5110case "$enableval" in 5111 yes) 5112 case "$ENABLE_DOXYGEN_SEARCH" in 5113 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;; 5114 no) as_fn_error $? "The option --enable-doxygen-external-search requires --enable-doxygen-search" "$LINENO" 5 ;; 5115 esac 5116 ;; 5117 no|default) ;; 5118 *) as_fn_error $? "Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5119esac 5120 5121 5122# Check whether --with-doxygen-search-engine-url was given. 5123if test "${with_doxygen_search_engine_url+set}" = set; then : 5124 withval=$with_doxygen_search_engine_url; 5125fi 5126 5127WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval" 5128 5129 5130# Check whether --with-doxygen-search-mappings was given. 5131if test "${with_doxygen_search_mappings+set}" = set; then : 5132 withval=$with_doxygen_search_mappings; 5133fi 5134 5135WITH_DOXYGEN_SEARCH_MAPPINGS="$withval" 5136 5137case "$ENABLE_DOXYGEN_SEARCH" in 5138 yes) 5139 if test "$ENABLE_DOXYGEN" = "0" ; then 5140 as_fn_error $? "The option --enable-doxygen-search requires --enable-doxygen." "$LINENO" 5 5141 fi 5142 5143 enable_searchengine=YES 5144 5145 5146 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in 5147 yes) 5148 enable_external_search=YES 5149 5150 enable_server_based_search=YES 5151 5152 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL" 5153 5154 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS" 5155 5156 ;; 5157 5158 no|default) 5159 enable_external_search=NO 5160 5161 enable_server_based_search=NO 5162 5163 5164 5165 ;; 5166 esac 5167 ;; 5168 5169 no|default) 5170 enable_searchengine=NO 5171 5172 5173 enable_server_based_search=NO 5174 5175 enable_external_search=NO 5176 5177 5178 ;; 5179 5180 *) 5181 as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 5182 ;; 5183esac 5184 5185# Check whether --enable-doxygen-qt-help was given. 5186if test "${enable_doxygen_qt_help+set}" = set; then : 5187 enableval=$enable_doxygen_qt_help; 5188else 5189 enableval=default 5190fi 5191 5192case "$enableval" in 5193 yes) 5194 if test "$ENABLE_DOXYGEN" = "0" ; then 5195 as_fn_error $? "The option --enable-doxygen-qt-help requires --enable-doxygen." "$LINENO" 5 5196 fi 5197 5198 # Extract the first word of "qhelpgenerator", so it can be a program name with args. 5199set dummy qhelpgenerator; ac_word=$2 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5201$as_echo_n "checking for $ac_word... " >&6; } 5202if ${ac_cv_path_QHELPGENERATOR+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204else 5205 case $QHELPGENERATOR in 5206 [\\/]* | ?:[\\/]*) 5207 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path. 5208 ;; 5209 *) 5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211for as_dir in $PATH 5212do 5213 IFS=$as_save_IFS 5214 test -z "$as_dir" && as_dir=. 5215 for ac_exec_ext in '' $ac_executable_extensions; do 5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5217 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext" 5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5219 break 2 5220 fi 5221done 5222 done 5223IFS=$as_save_IFS 5224 5225 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator" 5226 ;; 5227esac 5228fi 5229QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR 5230if test -n "$QHELPGENERATOR"; then 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QHELPGENERATOR" >&5 5232$as_echo "$QHELPGENERATOR" >&6; } 5233else 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5235$as_echo "no" >&6; } 5236fi 5237 5238 5239 5240 llvm_doxygen_generate_qhp=YES 5241 5242 llvm_doxygen_qch_filename=org.llvm.qch 5243 5244 llvm_doxygen_qhp_namespace=org.llvm 5245 5246 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5247 5248 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING" 5249 5250 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION" 5251 5252 5253 clang_doxygen_generate_qhp=YES 5254 5255 clang_doxygen_qch_filename=org.llvm.clang.qch 5256 5257 clang_doxygen_qhp_namespace=org.llvm.clang 5258 5259 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR" 5260 5261 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5262 5263 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5264 5265 ;; 5266 5267 no|default) 5268 llvm_doxygen_generate_qhp=NO 5269 5270 5271 5272 5273 5274 5275 5276 clang_doxygen_generate_qhp=NO 5277 5278 5279 5280 5281 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION" 5282 5283 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION" 5284 5285 ;; 5286 5287 *) 5288 as_fn_error $? "Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5289esac 5290 5291# Check whether --enable-threads was given. 5292if test "${enable_threads+set}" = set; then : 5293 enableval=$enable_threads; 5294else 5295 enableval=default 5296fi 5297 5298case "$enableval" in 5299 yes) LLVM_ENABLE_THREADS=1 5300 ;; 5301 no) LLVM_ENABLE_THREADS=0 5302 ;; 5303 default) LLVM_ENABLE_THREADS=1 5304 ;; 5305 *) as_fn_error $? "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5306esac 5307 5308cat >>confdefs.h <<_ACEOF 5309#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5310_ACEOF 5311 5312 5313# Check whether --enable-pthreads was given. 5314if test "${enable_pthreads+set}" = set; then : 5315 enableval=$enable_pthreads; 5316else 5317 enableval=default 5318fi 5319 5320case "$enableval" in 5321 yes) ENABLE_PTHREADS=1 5322 ;; 5323 no) ENABLE_PTHREADS=0 5324 ;; 5325 default) ENABLE_PTHREADS=1 5326 ;; 5327 *) as_fn_error $? "Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5328esac 5329 5330# Check whether --enable-zlib was given. 5331if test "${enable_zlib+set}" = set; then : 5332 enableval=$enable_zlib; 5333else 5334 enableval=default 5335fi 5336 5337case "$enableval" in 5338 yes) LLVM_ENABLE_ZLIB=1 5339 ;; 5340 no) LLVM_ENABLE_ZLIB=0 5341 ;; 5342 default) LLVM_ENABLE_ZLIB=1 5343 ;; 5344 *) as_fn_error $? "Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5345esac 5346 5347cat >>confdefs.h <<_ACEOF 5348#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5349_ACEOF 5350 5351 5352# Check whether --enable-shared was given. 5353if test "${enable_shared+set}" = set; then : 5354 enableval=$enable_shared; 5355else 5356 enableval=default 5357fi 5358 5359case "$enableval" in 5360 yes) ENABLE_SHARED=1 5361 ;; 5362 no) ENABLE_SHARED=0 5363 ;; 5364 default) ENABLE_SHARED=0 5365 ;; 5366 *) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5367esac 5368 5369# Check whether --enable-embed-stdcxx was given. 5370if test "${enable_embed_stdcxx+set}" = set; then : 5371 enableval=$enable_embed_stdcxx; 5372else 5373 enableval=default 5374fi 5375 5376case "$enableval" in 5377 yes) ENABLE_EMBED_STDCXX=1 5378 ;; 5379 no) ENABLE_EMBED_STDCXX=0 5380 ;; 5381 default) ENABLE_EMBED_STDCXX=0 5382 ;; 5383 *) as_fn_error $? "Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5384esac 5385 5386# Check whether --enable-backtraces was given. 5387if test "${enable_backtraces+set}" = set; then : 5388 enableval=$enable_backtraces; case "$enableval" in 5389 yes) llvm_cv_enable_backtraces="yes" ;; 5390 no) llvm_cv_enable_backtraces="no" ;; 5391 *) as_fn_error $? "Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5392 esac 5393else 5394 llvm_cv_enable_backtraces="yes" 5395fi 5396 5397if test "$llvm_cv_enable_backtraces" = "yes" ; then 5398 5399$as_echo "#define ENABLE_BACKTRACES 1" >>confdefs.h 5400 5401fi 5402 5403# Check whether --enable-crash-overrides was given. 5404if test "${enable_crash_overrides+set}" = set; then : 5405 enableval=$enable_crash_overrides; case "$enableval" in 5406 yes) llvm_cv_enable_crash_overrides="yes" ;; 5407 no) llvm_cv_enable_crash_overrides="no" ;; 5408 *) as_fn_error $? "Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5409 esac 5410else 5411 llvm_cv_enable_crash_overrides="yes" 5412fi 5413 5414if test "$llvm_cv_enable_crash_overrides" = "yes" ; then 5415 5416$as_echo "#define ENABLE_CRASH_OVERRIDES 1" >>confdefs.h 5417 5418fi 5419 5420ALL_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore" 5421ALL_TARGETS=$ALL_TARGETS 5422 5423 5424TARGETS_TO_BUILD="" 5425# Check whether --enable-targets was given. 5426if test "${enable_targets+set}" = set; then : 5427 enableval=$enable_targets; 5428else 5429 enableval=all 5430fi 5431 5432if test "$enableval" = host-only ; then 5433 enableval=host 5434fi 5435case "$enableval" in 5436 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; 5437 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5438 case "$a_target" in 5439 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5440 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5441 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5442 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5443 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5444 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5445 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5446 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;; 5447 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5448 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5449 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5450 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5451 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5452 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5453 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5454 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5455 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5456 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5457 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;; 5458 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;; 5459 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;; 5460 host) case "$llvm_cv_target_arch" in 5461 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5462 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5463 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5464 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5465 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5466 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5467 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5468 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5469 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5470 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5471 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5472 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5473 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;; 5474 *) as_fn_error $? "Can not set target to build" "$LINENO" 5 ;; 5475 esac ;; 5476 *) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5 ;; 5477 esac 5478 done 5479 ;; 5480esac 5481 5482# Check whether --enable-experimental-targets was given. 5483if test "${enable_experimental_targets+set}" = set; then : 5484 enableval=$enable_experimental_targets; 5485else 5486 enableval=disable 5487fi 5488 5489 5490if test ${enableval} != "disable" 5491then 5492 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5493fi 5494 5495TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5496 5497 5498for a_target in $TARGETS_TO_BUILD; do 5499 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5500 5501cat >>confdefs.h <<_ACEOF 5502#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5503_ACEOF 5504 5505 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5506 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5507 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5508 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5509 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then 5510 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5511 fi 5512 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then 5513 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5514 fi 5515 5516cat >>confdefs.h <<_ACEOF 5517#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5518_ACEOF 5519 5520 5521cat >>confdefs.h <<_ACEOF 5522#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5523_ACEOF 5524 5525 5526cat >>confdefs.h <<_ACEOF 5527#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5528_ACEOF 5529 5530 5531cat >>confdefs.h <<_ACEOF 5532#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5533_ACEOF 5534 5535 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then 5536 5537cat >>confdefs.h <<_ACEOF 5538#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5539_ACEOF 5540 5541 fi 5542 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then 5543 5544cat >>confdefs.h <<_ACEOF 5545#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5546_ACEOF 5547 5548 fi 5549 fi 5550done 5551 5552LLVM_ENUM_TARGETS="" 5553LLVM_ENUM_ASM_PRINTERS="" 5554LLVM_ENUM_ASM_PARSERS="" 5555LLVM_ENUM_DISASSEMBLERS="" 5556for target_to_build in $TARGETS_TO_BUILD; do 5557 LLVM_ENUM_TARGETS="$LLVM_ENUM_TARGETS${as_nl}LLVM_TARGET($target_to_build)" 5558 has_asm_printer=0 5559 for asm_printer in ${llvm_srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp; do 5560 if test -f "$asm_printer"; then 5561 has_asm_printer=1 5562 fi 5563 done 5564 if test "$has_asm_printer" = 1; then 5565 LLVM_ENUM_ASM_PRINTERS="$LLVM_ENUM_ASM_PRINTERS${as_nl}LLVM_ASM_PRINTER($target_to_build)"; 5566 fi 5567 if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/AsmParser/CMakeLists.txt ; then 5568 LLVM_ENUM_ASM_PARSERS="$LLVM_ENUM_ASM_PARSERS${as_nl}LLVM_ASM_PARSER($target_to_build)"; 5569 fi 5570 if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/Disassembler/CMakeLists.txt ; then 5571 LLVM_ENUM_DISASSEMBLERS="$LLVM_ENUM_DISASSEMBLERS${as_nl}LLVM_DISASSEMBLER($target_to_build)"; 5572 fi 5573done 5574LLVM_ENUM_TARGETS="${LLVM_ENUM_TARGETS#${as_nl}}${as_nl}" 5575LLVM_ENUM_ASM_PRINTERS="${LLVM_ENUM_ASM_PRINTERS#${as_nl}}${as_nl}" 5576LLVM_ENUM_ASM_PARSERS="${LLVM_ENUM_ASM_PARSERS#${as_nl}}${as_nl}" 5577LLVM_ENUM_DISASSEMBLERS="${LLVM_ENUM_DISASSEMBLERS#${as_nl}}${as_nl}" 5578 5579 5580 5581 5582 5583 5584# Check whether --with-optimize-option was given. 5585if test "${with_optimize_option+set}" = set; then : 5586 withval=$with_optimize_option; 5587else 5588 withval=default 5589fi 5590 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5 5592$as_echo_n "checking optimization flags... " >&6; } 5593case "$withval" in 5594 default) 5595 case "$llvm_cv_os_type" in 5596 FreeBSD) optimize_option=-O2 ;; 5597 MingW) optimize_option=-O2 ;; 5598 *) optimize_option=-O3 ;; 5599 esac ;; 5600 *) optimize_option="$withval" ;; 5601esac 5602OPTIMIZE_OPTION=$optimize_option 5603 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5 5605$as_echo "$optimize_option" >&6; } 5606 5607 5608# Check whether --with-extra-options was given. 5609if test "${with_extra_options+set}" = set; then : 5610 withval=$with_extra_options; 5611else 5612 withval=default 5613fi 5614 5615case "$withval" in 5616 default) EXTRA_OPTIONS= ;; 5617 *) EXTRA_OPTIONS=$withval ;; 5618esac 5619EXTRA_OPTIONS=$EXTRA_OPTIONS 5620 5621 5622 5623# Check whether --with-extra-ld-options was given. 5624if test "${with_extra_ld_options+set}" = set; then : 5625 withval=$with_extra_ld_options; 5626else 5627 withval=default 5628fi 5629 5630case "$withval" in 5631 default) EXTRA_LD_OPTIONS= ;; 5632 *) EXTRA_LD_OPTIONS=$withval ;; 5633esac 5634EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5635 5636 5637# Check whether --enable-bindings was given. 5638if test "${enable_bindings+set}" = set; then : 5639 enableval=$enable_bindings; 5640else 5641 enableval=default 5642fi 5643 5644BINDINGS_TO_BUILD="" 5645case "$enableval" in 5646 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5647 all ) BINDINGS_TO_BUILD="ocaml" ;; 5648 none | no) BINDINGS_TO_BUILD="" ;; 5649 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5650 case "$a_binding" in 5651 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5652 *) as_fn_error $? "Unrecognized binding $a_binding" "$LINENO" 5 ;; 5653 esac 5654 done 5655 ;; 5656esac 5657 5658 5659# Check whether --with-ocaml-libdir was given. 5660if test "${with_ocaml_libdir+set}" = set; then : 5661 withval=$with_ocaml_libdir; 5662else 5663 withval=auto 5664fi 5665 5666case "$withval" in 5667 auto) with_ocaml_libdir="$withval" ;; 5668 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5669 *) as_fn_error $? "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;; 5670esac 5671 5672 5673# Check whether --with-clang-srcdir was given. 5674if test "${with_clang_srcdir+set}" = set; then : 5675 withval=$with_clang_srcdir; 5676else 5677 withval="-" 5678fi 5679 5680case "$withval" in 5681 -) clang_src_root="" ;; 5682 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5683 *) clang_src_root="$ac_pwd/$withval" ;; 5684esac 5685CLANG_SRC_ROOT=$clang_src_root 5686 5687 5688 5689# Check whether --with-clang-resource-dir was given. 5690if test "${with_clang_resource_dir+set}" = set; then : 5691 withval=$with_clang_resource_dir; 5692else 5693 withval="" 5694fi 5695 5696 5697cat >>confdefs.h <<_ACEOF 5698#define CLANG_RESOURCE_DIR "$withval" 5699_ACEOF 5700 5701 5702 5703# Check whether --with-c-include-dirs was given. 5704if test "${with_c_include_dirs+set}" = set; then : 5705 withval=$with_c_include_dirs; 5706else 5707 withval="" 5708fi 5709 5710 5711cat >>confdefs.h <<_ACEOF 5712#define C_INCLUDE_DIRS "$withval" 5713_ACEOF 5714 5715 5716 5717# Check whether --with-clang-default-openmp-runtime was given. 5718if test "${with_clang_default_openmp_runtime+set}" = set; then : 5719 withval=$with_clang_default_openmp_runtime; 5720else 5721 withval="libomp" 5722fi 5723 5724 5725 5726cat >>confdefs.h <<_ACEOF 5727#define CLANG_ENABLE_ARCMT 1 5728_ACEOF 5729 5730 5731cat >>confdefs.h <<_ACEOF 5732#define CLANG_ENABLE_OBJC_REWRITER 1 5733_ACEOF 5734 5735 5736cat >>confdefs.h <<_ACEOF 5737#define CLANG_ENABLE_STATIC_ANALYZER 1 5738_ACEOF 5739 5740 5741cat >>confdefs.h <<_ACEOF 5742#define CLANG_SPAWN_CC1 1 5743_ACEOF 5744 5745 5746 5747cat >>confdefs.h <<_ACEOF 5748#define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0 5749_ACEOF 5750 5751 5752cat >>confdefs.h <<_ACEOF 5753#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35" 5754_ACEOF 5755 5756 5757 5758cat >>confdefs.h <<_ACEOF 5759#define ENABLE_X86_RELAX_RELOCATIONS 0 5760_ACEOF 5761 5762 5763cat >>confdefs.h <<_ACEOF 5764#define CLANG_DEFAULT_CXX_STDLIB "" 5765_ACEOF 5766 5767 5768cat >>confdefs.h <<_ACEOF 5769#define CLANG_DEFAULT_LINKER "" 5770_ACEOF 5771 5772 5773cat >>confdefs.h <<_ACEOF 5774#define CLANG_DEFAULT_OBJCOPY "objcopy" 5775_ACEOF 5776 5777 5778cat >>confdefs.h <<_ACEOF 5779#define CLANG_DEFAULT_RTLIB "" 5780_ACEOF 5781 5782 5783cat >>confdefs.h <<_ACEOF 5784#define CLANG_DEFAULT_UNWINDLIB "none" 5785_ACEOF 5786 5787 5788cat >>confdefs.h <<_ACEOF 5789#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp" 5790_ACEOF 5791 5792 5793cat >>confdefs.h <<_ACEOF 5794#define CLANG_SYSTEMZ_DEFAULT_ARCH "z10" 5795_ACEOF 5796 5797 5798cat >>confdefs.h <<_ACEOF 5799#define CLANG_LIBDIR_SUFFIX "" 5800_ACEOF 5801 5802 5803cat >>confdefs.h <<_ACEOF 5804#define DEFAULT_SYSROOT "" 5805_ACEOF 5806 5807 5808cat >>confdefs.h <<_ACEOF 5809#define GCC_INSTALL_PREFIX "" 5810_ACEOF 5811 5812 5813 5814# Check whether --with-binutils-include was given. 5815if test "${with_binutils_include+set}" = set; then : 5816 withval=$with_binutils_include; 5817else 5818 withval=default 5819fi 5820 5821case "$withval" in 5822 default) WITH_BINUTILS_INCDIR=default ;; 5823 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5824 *) as_fn_error $? "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;; 5825esac 5826if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5827 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5828 5829 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5830 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5831 as_fn_error $? "Invalid path to directory containing plugin-api.h." "$LINENO" 5; 5832 fi 5833fi 5834 5835 5836# Check whether --with-bug-report-url was given. 5837if test "${with_bug_report_url+set}" = set; then : 5838 withval=$with_bug_report_url; 5839else 5840 withval="http://llvm.org/bugs/" 5841fi 5842 5843 5844cat >>confdefs.h <<_ACEOF 5845#define BUG_REPORT_URL "$withval" 5846_ACEOF 5847 5848 5849# Check whether --enable-terminfo was given. 5850if test "${enable_terminfo+set}" = set; then : 5851 enableval=$enable_terminfo; case "$enableval" in 5852 yes) llvm_cv_enable_terminfo="yes" ;; 5853 no) llvm_cv_enable_terminfo="no" ;; 5854 *) as_fn_error $? "Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5855 esac 5856else 5857 llvm_cv_enable_terminfo="yes" 5858fi 5859 5860case "$llvm_cv_enable_terminfo" in 5861 yes) ENABLE_TERMINFO=1 5862 ;; 5863 no) ENABLE_TERMINFO=0 5864 ;; 5865esac 5866 5867# Check whether --enable-libedit was given. 5868if test "${enable_libedit+set}" = set; then : 5869 enableval=$enable_libedit; case "$enableval" in 5870 yes) llvm_cv_enable_libedit="yes" ;; 5871 no) llvm_cv_enable_libedit="no" ;; 5872 *) as_fn_error $? "Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5873 esac 5874else 5875 llvm_cv_enable_libedit="yes" 5876fi 5877 5878 5879# Check whether --enable-libffi was given. 5880if test "${enable_libffi+set}" = set; then : 5881 enableval=$enable_libffi; case "$enableval" in 5882 yes) llvm_cv_enable_libffi="yes" ;; 5883 no) llvm_cv_enable_libffi="no" ;; 5884 *) as_fn_error $? "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;; 5885 esac 5886else 5887 llvm_cv_enable_libffi=no 5888fi 5889 5890 5891 5892# Check whether --with-internal-prefix was given. 5893if test "${with_internal_prefix+set}" = set; then : 5894 withval=$with_internal_prefix; 5895else 5896 withval="" 5897fi 5898 5899INTERNAL_PREFIX=$withval 5900 5901 5902 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 5904$as_echo_n "checking for GNU make... " >&6; } 5905if ${llvm_cv_gnu_make_command+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 llvm_cv_gnu_make_command='' 5909 for a in "$MAKE" make gmake gnumake ; do 5910 if test -z "$a" ; then continue ; fi ; 5911 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5912 then 5913 llvm_cv_gnu_make_command=$a ; 5914 break; 5915 fi 5916 done 5917fi 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5 5919$as_echo "$llvm_cv_gnu_make_command" >&6; } 5920 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5921 ifGNUmake='' ; 5922 else 5923 ifGNUmake='#' ; 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 5925$as_echo "\"Not found\"" >&6; }; 5926 fi 5927 5928 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5930$as_echo_n "checking whether ln -s works... " >&6; } 5931LN_S=$as_ln_s 5932if test "$LN_S" = "ln -s"; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5934$as_echo "yes" >&6; } 5935else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5937$as_echo "no, using $LN_S" >&6; } 5938fi 5939 5940# Extract the first word of "nm", so it can be a program name with args. 5941set dummy nm; ac_word=$2 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5943$as_echo_n "checking for $ac_word... " >&6; } 5944if ${ac_cv_path_NM+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 case $NM in 5948 [\\/]* | ?:[\\/]*) 5949 ac_cv_path_NM="$NM" # Let the user override the test with a path. 5950 ;; 5951 *) 5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5953for as_dir in $PATH 5954do 5955 IFS=$as_save_IFS 5956 test -z "$as_dir" && as_dir=. 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5959 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5961 break 2 5962 fi 5963done 5964 done 5965IFS=$as_save_IFS 5966 5967 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm" 5968 ;; 5969esac 5970fi 5971NM=$ac_cv_path_NM 5972if test -n "$NM"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 5974$as_echo "$NM" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5977$as_echo "no" >&6; } 5978fi 5979 5980 5981# Extract the first word of "cmp", so it can be a program name with args. 5982set dummy cmp; ac_word=$2 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5984$as_echo_n "checking for $ac_word... " >&6; } 5985if ${ac_cv_path_CMP+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 case $CMP in 5989 [\\/]* | ?:[\\/]*) 5990 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5991 ;; 5992 *) 5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994for as_dir in $PATH 5995do 5996 IFS=$as_save_IFS 5997 test -z "$as_dir" && as_dir=. 5998 for ac_exec_ext in '' $ac_executable_extensions; do 5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6000 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6002 break 2 6003 fi 6004done 6005 done 6006IFS=$as_save_IFS 6007 6008 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6009 ;; 6010esac 6011fi 6012CMP=$ac_cv_path_CMP 6013if test -n "$CMP"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6015$as_echo "$CMP" >&6; } 6016else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018$as_echo "no" >&6; } 6019fi 6020 6021 6022# Extract the first word of "cp", so it can be a program name with args. 6023set dummy cp; ac_word=$2 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6025$as_echo_n "checking for $ac_word... " >&6; } 6026if ${ac_cv_path_CP+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 case $CP in 6030 [\\/]* | ?:[\\/]*) 6031 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6032 ;; 6033 *) 6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6035for as_dir in $PATH 6036do 6037 IFS=$as_save_IFS 6038 test -z "$as_dir" && as_dir=. 6039 for ac_exec_ext in '' $ac_executable_extensions; do 6040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6041 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6043 break 2 6044 fi 6045done 6046 done 6047IFS=$as_save_IFS 6048 6049 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6050 ;; 6051esac 6052fi 6053CP=$ac_cv_path_CP 6054if test -n "$CP"; then 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6056$as_echo "$CP" >&6; } 6057else 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6059$as_echo "no" >&6; } 6060fi 6061 6062 6063# Extract the first word of "date", so it can be a program name with args. 6064set dummy date; ac_word=$2 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6066$as_echo_n "checking for $ac_word... " >&6; } 6067if ${ac_cv_path_DATE+:} false; then : 6068 $as_echo_n "(cached) " >&6 6069else 6070 case $DATE in 6071 [\\/]* | ?:[\\/]*) 6072 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6073 ;; 6074 *) 6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6082 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087 done 6088IFS=$as_save_IFS 6089 6090 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6091 ;; 6092esac 6093fi 6094DATE=$ac_cv_path_DATE 6095if test -n "$DATE"; then 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6097$as_echo "$DATE" >&6; } 6098else 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6100$as_echo "no" >&6; } 6101fi 6102 6103 6104# Extract the first word of "find", so it can be a program name with args. 6105set dummy find; ac_word=$2 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6107$as_echo_n "checking for $ac_word... " >&6; } 6108if ${ac_cv_path_FIND+:} false; then : 6109 $as_echo_n "(cached) " >&6 6110else 6111 case $FIND in 6112 [\\/]* | ?:[\\/]*) 6113 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6114 ;; 6115 *) 6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117for as_dir in $PATH 6118do 6119 IFS=$as_save_IFS 6120 test -z "$as_dir" && as_dir=. 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6123 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128 done 6129IFS=$as_save_IFS 6130 6131 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6132 ;; 6133esac 6134fi 6135FIND=$ac_cv_path_FIND 6136if test -n "$FIND"; then 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 6138$as_echo "$FIND" >&6; } 6139else 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6141$as_echo "no" >&6; } 6142fi 6143 6144 6145# Extract the first word of "grep", so it can be a program name with args. 6146set dummy grep; ac_word=$2 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6148$as_echo_n "checking for $ac_word... " >&6; } 6149if ${ac_cv_path_GREP+:} false; then : 6150 $as_echo_n "(cached) " >&6 6151else 6152 case $GREP in 6153 [\\/]* | ?:[\\/]*) 6154 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6155 ;; 6156 *) 6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6173 ;; 6174esac 6175fi 6176GREP=$ac_cv_path_GREP 6177if test -n "$GREP"; then 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 6179$as_echo "$GREP" >&6; } 6180else 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6182$as_echo "no" >&6; } 6183fi 6184 6185 6186# Extract the first word of "mkdir", so it can be a program name with args. 6187set dummy mkdir; ac_word=$2 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6189$as_echo_n "checking for $ac_word... " >&6; } 6190if ${ac_cv_path_MKDIR+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 case $MKDIR in 6194 [\\/]* | ?:[\\/]*) 6195 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6196 ;; 6197 *) 6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199for as_dir in $PATH 6200do 6201 IFS=$as_save_IFS 6202 test -z "$as_dir" && as_dir=. 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6205 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209done 6210 done 6211IFS=$as_save_IFS 6212 6213 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6214 ;; 6215esac 6216fi 6217MKDIR=$ac_cv_path_MKDIR 6218if test -n "$MKDIR"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 6220$as_echo "$MKDIR" >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6223$as_echo "no" >&6; } 6224fi 6225 6226 6227# Extract the first word of "mv", so it can be a program name with args. 6228set dummy mv; ac_word=$2 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6230$as_echo_n "checking for $ac_word... " >&6; } 6231if ${ac_cv_path_MV+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 case $MV in 6235 [\\/]* | ?:[\\/]*) 6236 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6237 ;; 6238 *) 6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6240for as_dir in $PATH 6241do 6242 IFS=$as_save_IFS 6243 test -z "$as_dir" && as_dir=. 6244 for ac_exec_ext in '' $ac_executable_extensions; do 6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6246 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6248 break 2 6249 fi 6250done 6251 done 6252IFS=$as_save_IFS 6253 6254 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6255 ;; 6256esac 6257fi 6258MV=$ac_cv_path_MV 6259if test -n "$MV"; then 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 6261$as_echo "$MV" >&6; } 6262else 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6264$as_echo "no" >&6; } 6265fi 6266 6267 6268if test -n "$ac_tool_prefix"; then 6269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6270set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6272$as_echo_n "checking for $ac_word... " >&6; } 6273if ${ac_cv_prog_RANLIB+:} false; then : 6274 $as_echo_n "(cached) " >&6 6275else 6276 if test -n "$RANLIB"; then 6277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6278else 6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280for as_dir in $PATH 6281do 6282 IFS=$as_save_IFS 6283 test -z "$as_dir" && as_dir=. 6284 for ac_exec_ext in '' $ac_executable_extensions; do 6285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6288 break 2 6289 fi 6290done 6291 done 6292IFS=$as_save_IFS 6293 6294fi 6295fi 6296RANLIB=$ac_cv_prog_RANLIB 6297if test -n "$RANLIB"; then 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6299$as_echo "$RANLIB" >&6; } 6300else 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6302$as_echo "no" >&6; } 6303fi 6304 6305 6306fi 6307if test -z "$ac_cv_prog_RANLIB"; then 6308 ac_ct_RANLIB=$RANLIB 6309 # Extract the first word of "ranlib", so it can be a program name with args. 6310set dummy ranlib; ac_word=$2 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6312$as_echo_n "checking for $ac_word... " >&6; } 6313if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 if test -n "$ac_ct_RANLIB"; then 6317 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6318else 6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320for as_dir in $PATH 6321do 6322 IFS=$as_save_IFS 6323 test -z "$as_dir" && as_dir=. 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6326 ac_cv_prog_ac_ct_RANLIB="ranlib" 6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331 done 6332IFS=$as_save_IFS 6333 6334fi 6335fi 6336ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6337if test -n "$ac_ct_RANLIB"; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6339$as_echo "$ac_ct_RANLIB" >&6; } 6340else 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6342$as_echo "no" >&6; } 6343fi 6344 6345 if test "x$ac_ct_RANLIB" = x; then 6346 RANLIB=":" 6347 else 6348 case $cross_compiling:$ac_tool_warned in 6349yes:) 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6352ac_tool_warned=yes ;; 6353esac 6354 RANLIB=$ac_ct_RANLIB 6355 fi 6356else 6357 RANLIB="$ac_cv_prog_RANLIB" 6358fi 6359 6360if test -n "$ac_tool_prefix"; then 6361 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6362set dummy ${ac_tool_prefix}ar; ac_word=$2 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6364$as_echo_n "checking for $ac_word... " >&6; } 6365if ${ac_cv_prog_AR+:} false; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 if test -n "$AR"; then 6369 ac_cv_prog_AR="$AR" # Let the user override the test. 6370else 6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6372for as_dir in $PATH 6373do 6374 IFS=$as_save_IFS 6375 test -z "$as_dir" && as_dir=. 6376 for ac_exec_ext in '' $ac_executable_extensions; do 6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6378 ac_cv_prog_AR="${ac_tool_prefix}ar" 6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6380 break 2 6381 fi 6382done 6383 done 6384IFS=$as_save_IFS 6385 6386fi 6387fi 6388AR=$ac_cv_prog_AR 6389if test -n "$AR"; then 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6391$as_echo "$AR" >&6; } 6392else 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6394$as_echo "no" >&6; } 6395fi 6396 6397 6398fi 6399if test -z "$ac_cv_prog_AR"; then 6400 ac_ct_AR=$AR 6401 # Extract the first word of "ar", so it can be a program name with args. 6402set dummy ar; ac_word=$2 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6404$as_echo_n "checking for $ac_word... " >&6; } 6405if ${ac_cv_prog_ac_ct_AR+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 if test -n "$ac_ct_AR"; then 6409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6410else 6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6412for as_dir in $PATH 6413do 6414 IFS=$as_save_IFS 6415 test -z "$as_dir" && as_dir=. 6416 for ac_exec_ext in '' $ac_executable_extensions; do 6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6418 ac_cv_prog_ac_ct_AR="ar" 6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6420 break 2 6421 fi 6422done 6423 done 6424IFS=$as_save_IFS 6425 6426fi 6427fi 6428ac_ct_AR=$ac_cv_prog_ac_ct_AR 6429if test -n "$ac_ct_AR"; then 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6431$as_echo "$ac_ct_AR" >&6; } 6432else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434$as_echo "no" >&6; } 6435fi 6436 6437 if test "x$ac_ct_AR" = x; then 6438 AR="false" 6439 else 6440 case $cross_compiling:$ac_tool_warned in 6441yes:) 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6444ac_tool_warned=yes ;; 6445esac 6446 AR=$ac_ct_AR 6447 fi 6448else 6449 AR="$ac_cv_prog_AR" 6450fi 6451 6452# Extract the first word of "rm", so it can be a program name with args. 6453set dummy rm; ac_word=$2 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6455$as_echo_n "checking for $ac_word... " >&6; } 6456if ${ac_cv_path_RM+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 case $RM in 6460 [\\/]* | ?:[\\/]*) 6461 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6462 ;; 6463 *) 6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6465for as_dir in $PATH 6466do 6467 IFS=$as_save_IFS 6468 test -z "$as_dir" && as_dir=. 6469 for ac_exec_ext in '' $ac_executable_extensions; do 6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6471 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6473 break 2 6474 fi 6475done 6476 done 6477IFS=$as_save_IFS 6478 6479 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6480 ;; 6481esac 6482fi 6483RM=$ac_cv_path_RM 6484if test -n "$RM"; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 6486$as_echo "$RM" >&6; } 6487else 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6489$as_echo "no" >&6; } 6490fi 6491 6492 6493# Extract the first word of "sed", so it can be a program name with args. 6494set dummy sed; ac_word=$2 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6496$as_echo_n "checking for $ac_word... " >&6; } 6497if ${ac_cv_path_SED+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 case $SED in 6501 [\\/]* | ?:[\\/]*) 6502 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6503 ;; 6504 *) 6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506for as_dir in $PATH 6507do 6508 IFS=$as_save_IFS 6509 test -z "$as_dir" && as_dir=. 6510 for ac_exec_ext in '' $ac_executable_extensions; do 6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6512 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6514 break 2 6515 fi 6516done 6517 done 6518IFS=$as_save_IFS 6519 6520 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6521 ;; 6522esac 6523fi 6524SED=$ac_cv_path_SED 6525if test -n "$SED"; then 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 6527$as_echo "$SED" >&6; } 6528else 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530$as_echo "no" >&6; } 6531fi 6532 6533 6534# Extract the first word of "tar", so it can be a program name with args. 6535set dummy tar; ac_word=$2 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6537$as_echo_n "checking for $ac_word... " >&6; } 6538if ${ac_cv_path_TAR+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 case $TAR in 6542 [\\/]* | ?:[\\/]*) 6543 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6544 ;; 6545 *) 6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6553 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6562 ;; 6563esac 6564fi 6565TAR=$ac_cv_path_TAR 6566if test -n "$TAR"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 6568$as_echo "$TAR" >&6; } 6569else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571$as_echo "no" >&6; } 6572fi 6573 6574 6575# Extract the first word of "pwd", so it can be a program name with args. 6576set dummy pwd; ac_word=$2 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6578$as_echo_n "checking for $ac_word... " >&6; } 6579if ${ac_cv_path_BINPWD+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581else 6582 case $BINPWD in 6583 [\\/]* | ?:[\\/]*) 6584 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6585 ;; 6586 *) 6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588for as_dir in $PATH 6589do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598done 6599 done 6600IFS=$as_save_IFS 6601 6602 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6603 ;; 6604esac 6605fi 6606BINPWD=$ac_cv_path_BINPWD 6607if test -n "$BINPWD"; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5 6609$as_echo "$BINPWD" >&6; } 6610else 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6612$as_echo "no" >&6; } 6613fi 6614 6615 6616 6617# Extract the first word of "dot", so it can be a program name with args. 6618set dummy dot; ac_word=$2 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6620$as_echo_n "checking for $ac_word... " >&6; } 6621if ${ac_cv_path_DOT+:} false; then : 6622 $as_echo_n "(cached) " >&6 6623else 6624 case $DOT in 6625 [\\/]* | ?:[\\/]*) 6626 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6627 ;; 6628 *) 6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6630for as_dir in $PATH 6631do 6632 IFS=$as_save_IFS 6633 test -z "$as_dir" && as_dir=. 6634 for ac_exec_ext in '' $ac_executable_extensions; do 6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6636 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6638 break 2 6639 fi 6640done 6641 done 6642IFS=$as_save_IFS 6643 6644 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6645 ;; 6646esac 6647fi 6648DOT=$ac_cv_path_DOT 6649if test -n "$DOT"; then 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 6651$as_echo "$DOT" >&6; } 6652else 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6654$as_echo "no" >&6; } 6655fi 6656 6657 6658if test "$DOT" != "echo dot" ; then 6659 if test "$llvm_cv_os_type" = "MingW" ; then 6660 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6661 fi 6662fi 6663 6664# Find a good install program. We prefer a C program (faster), 6665# so one script is as good as another. But avoid the broken or 6666# incompatible versions: 6667# SysV /etc/install, /usr/sbin/install 6668# SunOS /usr/etc/install 6669# IRIX /sbin/install 6670# AIX /bin/install 6671# AmigaOS /C/install, which installs bootblocks on floppy discs 6672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6673# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6675# OS/2's system install, which has a completely different semantic 6676# ./install, which can be erroneously created by make from ./install.sh. 6677# Reject install programs that cannot install multiple files. 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6679$as_echo_n "checking for a BSD-compatible install... " >&6; } 6680if test -z "$INSTALL"; then 6681if ${ac_cv_path_install+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6685for as_dir in $PATH 6686do 6687 IFS=$as_save_IFS 6688 test -z "$as_dir" && as_dir=. 6689 # Account for people who put trailing slashes in PATH elements. 6690case $as_dir/ in #(( 6691 ./ | .// | /[cC]/* | \ 6692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6694 /usr/ucb/* ) ;; 6695 *) 6696 # OSF1 and SCO ODT 3.0 have their own names for install. 6697 # Don't use installbsd from OSF since it installs stuff as root 6698 # by default. 6699 for ac_prog in ginstall scoinst install; do 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6702 if test $ac_prog = install && 6703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6704 # AIX install. It has an incompatible calling convention. 6705 : 6706 elif test $ac_prog = install && 6707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6708 # program-specific install script used by HP pwplus--don't use. 6709 : 6710 else 6711 rm -rf conftest.one conftest.two conftest.dir 6712 echo one > conftest.one 6713 echo two > conftest.two 6714 mkdir conftest.dir 6715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6716 test -s conftest.one && test -s conftest.two && 6717 test -s conftest.dir/conftest.one && 6718 test -s conftest.dir/conftest.two 6719 then 6720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6721 break 3 6722 fi 6723 fi 6724 fi 6725 done 6726 done 6727 ;; 6728esac 6729 6730 done 6731IFS=$as_save_IFS 6732 6733rm -rf conftest.one conftest.two conftest.dir 6734 6735fi 6736 if test "${ac_cv_path_install+set}" = set; then 6737 INSTALL=$ac_cv_path_install 6738 else 6739 # As a last resort, use the slow shell script. Don't cache a 6740 # value for INSTALL within a source directory, because that will 6741 # break other packages using the cache if that directory is 6742 # removed, or if the value is a relative name. 6743 INSTALL=$ac_install_sh 6744 fi 6745fi 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6747$as_echo "$INSTALL" >&6; } 6748 6749# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6750# It thinks the first close brace ends the variable substitution. 6751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6752 6753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6754 6755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6756 6757case "$INSTALL" in 6758 [\\/$]* | ?:[\\/]* ) ;; 6759 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6760esac 6761 6762# Extract the first word of "bzip2", so it can be a program name with args. 6763set dummy bzip2; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if ${ac_cv_path_BZIP2+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 case $BZIP2 in 6770 [\\/]* | ?:[\\/]*) 6771 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6772 ;; 6773 *) 6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_exec_ext in '' $ac_executable_extensions; do 6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6781 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6783 break 2 6784 fi 6785done 6786 done 6787IFS=$as_save_IFS 6788 6789 ;; 6790esac 6791fi 6792BZIP2=$ac_cv_path_BZIP2 6793if test -n "$BZIP2"; then 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5 6795$as_echo "$BZIP2" >&6; } 6796else 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6798$as_echo "no" >&6; } 6799fi 6800 6801 6802# Extract the first word of "cat", so it can be a program name with args. 6803set dummy cat; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if ${ac_cv_path_CAT+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 case $CAT in 6810 [\\/]* | ?:[\\/]*) 6811 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 6812 ;; 6813 *) 6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6815for as_dir in $PATH 6816do 6817 IFS=$as_save_IFS 6818 test -z "$as_dir" && as_dir=. 6819 for ac_exec_ext in '' $ac_executable_extensions; do 6820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6821 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6823 break 2 6824 fi 6825done 6826 done 6827IFS=$as_save_IFS 6828 6829 ;; 6830esac 6831fi 6832CAT=$ac_cv_path_CAT 6833if test -n "$CAT"; then 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 6835$as_echo "$CAT" >&6; } 6836else 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838$as_echo "no" >&6; } 6839fi 6840 6841 6842# Extract the first word of "doxygen", so it can be a program name with args. 6843set dummy doxygen; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if ${ac_cv_path_DOXYGEN+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 case $DOXYGEN in 6850 [\\/]* | ?:[\\/]*) 6851 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 6852 ;; 6853 *) 6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6861 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866 done 6867IFS=$as_save_IFS 6868 6869 ;; 6870esac 6871fi 6872DOXYGEN=$ac_cv_path_DOXYGEN 6873if test -n "$DOXYGEN"; then 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 6875$as_echo "$DOXYGEN" >&6; } 6876else 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6878$as_echo "no" >&6; } 6879fi 6880 6881 6882# Extract the first word of "groff", so it can be a program name with args. 6883set dummy groff; ac_word=$2 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885$as_echo_n "checking for $ac_word... " >&6; } 6886if ${ac_cv_path_GROFF+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 case $GROFF in 6890 [\\/]* | ?:[\\/]*) 6891 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 6892 ;; 6893 *) 6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909 ;; 6910esac 6911fi 6912GROFF=$ac_cv_path_GROFF 6913if test -n "$GROFF"; then 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 6915$as_echo "$GROFF" >&6; } 6916else 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6918$as_echo "no" >&6; } 6919fi 6920 6921 6922# Extract the first word of "gzip", so it can be a program name with args. 6923set dummy gzip; ac_word=$2 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6925$as_echo_n "checking for $ac_word... " >&6; } 6926if ${ac_cv_path_GZIPBIN+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 case $GZIPBIN in 6930 [\\/]* | ?:[\\/]*) 6931 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 6932 ;; 6933 *) 6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6935for as_dir in $PATH 6936do 6937 IFS=$as_save_IFS 6938 test -z "$as_dir" && as_dir=. 6939 for ac_exec_ext in '' $ac_executable_extensions; do 6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6941 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6943 break 2 6944 fi 6945done 6946 done 6947IFS=$as_save_IFS 6948 6949 ;; 6950esac 6951fi 6952GZIPBIN=$ac_cv_path_GZIPBIN 6953if test -n "$GZIPBIN"; then 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPBIN" >&5 6955$as_echo "$GZIPBIN" >&6; } 6956else 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6958$as_echo "no" >&6; } 6959fi 6960 6961 6962# Extract the first word of "pdfroff", so it can be a program name with args. 6963set dummy pdfroff; ac_word=$2 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6965$as_echo_n "checking for $ac_word... " >&6; } 6966if ${ac_cv_path_PDFROFF+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 case $PDFROFF in 6970 [\\/]* | ?:[\\/]*) 6971 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 6972 ;; 6973 *) 6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6975for as_dir in $PATH 6976do 6977 IFS=$as_save_IFS 6978 test -z "$as_dir" && as_dir=. 6979 for ac_exec_ext in '' $ac_executable_extensions; do 6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6981 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6983 break 2 6984 fi 6985done 6986 done 6987IFS=$as_save_IFS 6988 6989 ;; 6990esac 6991fi 6992PDFROFF=$ac_cv_path_PDFROFF 6993if test -n "$PDFROFF"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5 6995$as_echo "$PDFROFF" >&6; } 6996else 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6998$as_echo "no" >&6; } 6999fi 7000 7001 7002# Extract the first word of "zip", so it can be a program name with args. 7003set dummy zip; ac_word=$2 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005$as_echo_n "checking for $ac_word... " >&6; } 7006if ${ac_cv_path_ZIP+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008else 7009 case $ZIP in 7010 [\\/]* | ?:[\\/]*) 7011 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7012 ;; 7013 *) 7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015for as_dir in $PATH 7016do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7021 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026 done 7027IFS=$as_save_IFS 7028 7029 ;; 7030esac 7031fi 7032ZIP=$ac_cv_path_ZIP 7033if test -n "$ZIP"; then 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 7035$as_echo "$ZIP" >&6; } 7036else 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038$as_echo "no" >&6; } 7039fi 7040 7041 7042# Extract the first word of "go", so it can be a program name with args. 7043set dummy go; ac_word=$2 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045$as_echo_n "checking for $ac_word... " >&6; } 7046if ${ac_cv_path_GO+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 case $GO in 7050 [\\/]* | ?:[\\/]*) 7051 ac_cv_path_GO="$GO" # Let the user override the test with a path. 7052 ;; 7053 *) 7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055for as_dir in $PATH 7056do 7057 IFS=$as_save_IFS 7058 test -z "$as_dir" && as_dir=. 7059 for ac_exec_ext in '' $ac_executable_extensions; do 7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7061 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext" 7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7063 break 2 7064 fi 7065done 7066 done 7067IFS=$as_save_IFS 7068 7069 ;; 7070esac 7071fi 7072GO=$ac_cv_path_GO 7073if test -n "$GO"; then 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5 7075$as_echo "$GO" >&6; } 7076else 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7078$as_echo "no" >&6; } 7079fi 7080 7081 7082for ac_prog in ocamlfind 7083do 7084 # Extract the first word of "$ac_prog", so it can be a program name with args. 7085set dummy $ac_prog; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_path_OCAMLFIND+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 case $OCAMLFIND in 7092 [\\/]* | ?:[\\/]*) 7093 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. 7094 ;; 7095 *) 7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7097for as_dir in $PATH 7098do 7099 IFS=$as_save_IFS 7100 test -z "$as_dir" && as_dir=. 7101 for ac_exec_ext in '' $ac_executable_extensions; do 7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7103 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" 7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7105 break 2 7106 fi 7107done 7108 done 7109IFS=$as_save_IFS 7110 7111 ;; 7112esac 7113fi 7114OCAMLFIND=$ac_cv_path_OCAMLFIND 7115if test -n "$OCAMLFIND"; then 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 7117$as_echo "$OCAMLFIND" >&6; } 7118else 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7120$as_echo "no" >&6; } 7121fi 7122 7123 7124 test -n "$OCAMLFIND" && break 7125done 7126 7127for ac_prog in gas as 7128do 7129 # Extract the first word of "$ac_prog", so it can be a program name with args. 7130set dummy $ac_prog; ac_word=$2 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7132$as_echo_n "checking for $ac_word... " >&6; } 7133if ${ac_cv_path_GAS+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 case $GAS in 7137 [\\/]* | ?:[\\/]*) 7138 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7139 ;; 7140 *) 7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7142for as_dir in $PATH 7143do 7144 IFS=$as_save_IFS 7145 test -z "$as_dir" && as_dir=. 7146 for ac_exec_ext in '' $ac_executable_extensions; do 7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7148 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7150 break 2 7151 fi 7152done 7153 done 7154IFS=$as_save_IFS 7155 7156 ;; 7157esac 7158fi 7159GAS=$ac_cv_path_GAS 7160if test -n "$GAS"; then 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5 7162$as_echo "$GAS" >&6; } 7163else 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7165$as_echo "no" >&6; } 7166fi 7167 7168 7169 test -n "$GAS" && break 7170done 7171 7172 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5 7174$as_echo_n "checking for linker version... " >&6; } 7175if ${llvm_cv_link_version+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 7179 version_string="$(${LD:-ld} -v 2>&1 | head -1)" 7180 7181 # Check for ld64. 7182 if (echo "$version_string" | grep -q "ld64"); then 7183 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7184 else 7185 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7186 fi 7187 7188fi 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5 7190$as_echo "$llvm_cv_link_version" >&6; } 7191 7192cat >>confdefs.h <<_ACEOF 7193#define HOST_LINK_VERSION "$llvm_cv_link_version" 7194_ACEOF 7195 7196 7197 7198 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5 7200$as_echo_n "checking for compiler -Wl,--version-script option... " >&6; } 7201if ${llvm_cv_link_use_version_script+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 ac_ext=c 7205ac_cpp='$CPP $CPPFLAGS' 7206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7208ac_compiler_gnu=$ac_cv_c_compiler_gnu 7209 7210 oldcflags="$CFLAGS" 7211 7212 # The following code is from the autoconf manual, 7213 # "11.13: Limitations of Usual Tools". 7214 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7215 # Use mktemp if possible; otherwise fall back on mkdir, 7216 # with $RANDOM to make collisions less likely. 7217 : ${TMPDIR=/tmp} 7218 { 7219 tmp=` 7220 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7221 ` && 7222 test -n "$tmp" && test -d "$tmp" 7223 } || { 7224 tmp=$TMPDIR/foo$$-$RANDOM 7225 (umask 077 && mkdir "$tmp") 7226 } || exit $? 7227 7228 echo "{" > "$tmp/export.map" 7229 echo " global: main;" >> "$tmp/export.map" 7230 echo " local: *;" >> "$tmp/export.map" 7231 echo "};" >> "$tmp/export.map" 7232 7233 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236 7237int 7238main () 7239{ 7240 7241 ; 7242 return 0; 7243} 7244_ACEOF 7245if ac_fn_c_try_link "$LINENO"; then : 7246 llvm_cv_link_use_version_script=yes 7247else 7248 llvm_cv_link_use_version_script=no 7249fi 7250rm -f core conftest.err conftest.$ac_objext \ 7251 conftest$ac_exeext conftest.$ac_ext 7252 rm "$tmp/export.map" 7253 rmdir "$tmp" 7254 CFLAGS="$oldcflags" 7255 ac_ext=c 7256ac_cpp='$CPP $CPPFLAGS' 7257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7259ac_compiler_gnu=$ac_cv_c_compiler_gnu 7260 7261 7262fi 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5 7264$as_echo "$llvm_cv_link_use_version_script" >&6; } 7265if test "$llvm_cv_link_use_version_script" = yes ; then 7266 HAVE_LINK_VERSION_SCRIPT=1 7267 7268 fi 7269 7270 7271 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7273$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7274if ${ac_cv_path_GREP+:} false; then : 7275 $as_echo_n "(cached) " >&6 7276else 7277 if test -z "$GREP"; then 7278 ac_path_GREP_found=false 7279 # Loop through the user's path and test for each of PROGNAME-LIST 7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7282do 7283 IFS=$as_save_IFS 7284 test -z "$as_dir" && as_dir=. 7285 for ac_prog in grep ggrep; do 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7288 as_fn_executable_p "$ac_path_GREP" || continue 7289# Check for GNU ac_path_GREP and select it if it is found. 7290 # Check for GNU $ac_path_GREP 7291case `"$ac_path_GREP" --version 2>&1` in 7292*GNU*) 7293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7294*) 7295 ac_count=0 7296 $as_echo_n 0123456789 >"conftest.in" 7297 while : 7298 do 7299 cat "conftest.in" "conftest.in" >"conftest.tmp" 7300 mv "conftest.tmp" "conftest.in" 7301 cp "conftest.in" "conftest.nl" 7302 $as_echo 'GREP' >> "conftest.nl" 7303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7305 as_fn_arith $ac_count + 1 && ac_count=$as_val 7306 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7307 # Best one so far, save it but keep looking for a better one 7308 ac_cv_path_GREP="$ac_path_GREP" 7309 ac_path_GREP_max=$ac_count 7310 fi 7311 # 10*(2^10) chars as input seems more than enough 7312 test $ac_count -gt 10 && break 7313 done 7314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7315esac 7316 7317 $ac_path_GREP_found && break 3 7318 done 7319 done 7320 done 7321IFS=$as_save_IFS 7322 if test -z "$ac_cv_path_GREP"; then 7323 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7324 fi 7325else 7326 ac_cv_path_GREP=$GREP 7327fi 7328 7329fi 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7331$as_echo "$ac_cv_path_GREP" >&6; } 7332 GREP="$ac_cv_path_GREP" 7333 7334 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7336$as_echo_n "checking for egrep... " >&6; } 7337if ${ac_cv_path_EGREP+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7341 then ac_cv_path_EGREP="$GREP -E" 7342 else 7343 if test -z "$EGREP"; then 7344 ac_path_EGREP_found=false 7345 # Loop through the user's path and test for each of PROGNAME-LIST 7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_prog in egrep; do 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7354 as_fn_executable_p "$ac_path_EGREP" || continue 7355# Check for GNU ac_path_EGREP and select it if it is found. 7356 # Check for GNU $ac_path_EGREP 7357case `"$ac_path_EGREP" --version 2>&1` in 7358*GNU*) 7359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7360*) 7361 ac_count=0 7362 $as_echo_n 0123456789 >"conftest.in" 7363 while : 7364 do 7365 cat "conftest.in" "conftest.in" >"conftest.tmp" 7366 mv "conftest.tmp" "conftest.in" 7367 cp "conftest.in" "conftest.nl" 7368 $as_echo 'EGREP' >> "conftest.nl" 7369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7371 as_fn_arith $ac_count + 1 && ac_count=$as_val 7372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7373 # Best one so far, save it but keep looking for a better one 7374 ac_cv_path_EGREP="$ac_path_EGREP" 7375 ac_path_EGREP_max=$ac_count 7376 fi 7377 # 10*(2^10) chars as input seems more than enough 7378 test $ac_count -gt 10 && break 7379 done 7380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7381esac 7382 7383 $ac_path_EGREP_found && break 3 7384 done 7385 done 7386 done 7387IFS=$as_save_IFS 7388 if test -z "$ac_cv_path_EGREP"; then 7389 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7390 fi 7391else 7392 ac_cv_path_EGREP=$EGREP 7393fi 7394 7395 fi 7396fi 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7398$as_echo "$ac_cv_path_EGREP" >&6; } 7399 EGREP="$ac_cv_path_EGREP" 7400 7401 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7403$as_echo_n "checking for ANSI C header files... " >&6; } 7404if ${ac_cv_header_stdc+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409#include <stdlib.h> 7410#include <stdarg.h> 7411#include <string.h> 7412#include <float.h> 7413 7414int 7415main () 7416{ 7417 7418 ; 7419 return 0; 7420} 7421_ACEOF 7422if ac_fn_c_try_compile "$LINENO"; then : 7423 ac_cv_header_stdc=yes 7424else 7425 ac_cv_header_stdc=no 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7428 7429if test $ac_cv_header_stdc = yes; then 7430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433#include <string.h> 7434 7435_ACEOF 7436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7437 $EGREP "memchr" >/dev/null 2>&1; then : 7438 7439else 7440 ac_cv_header_stdc=no 7441fi 7442rm -f conftest* 7443 7444fi 7445 7446if test $ac_cv_header_stdc = yes; then 7447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450#include <stdlib.h> 7451 7452_ACEOF 7453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7454 $EGREP "free" >/dev/null 2>&1; then : 7455 7456else 7457 ac_cv_header_stdc=no 7458fi 7459rm -f conftest* 7460 7461fi 7462 7463if test $ac_cv_header_stdc = yes; then 7464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7465 if test "$cross_compiling" = yes; then : 7466 : 7467else 7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470#include <ctype.h> 7471#include <stdlib.h> 7472#if ((' ' & 0x0FF) == 0x020) 7473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7475#else 7476# define ISLOWER(c) \ 7477 (('a' <= (c) && (c) <= 'i') \ 7478 || ('j' <= (c) && (c) <= 'r') \ 7479 || ('s' <= (c) && (c) <= 'z')) 7480# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7481#endif 7482 7483#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7484int 7485main () 7486{ 7487 int i; 7488 for (i = 0; i < 256; i++) 7489 if (XOR (islower (i), ISLOWER (i)) 7490 || toupper (i) != TOUPPER (i)) 7491 return 2; 7492 return 0; 7493} 7494_ACEOF 7495if ac_fn_c_try_run "$LINENO"; then : 7496 7497else 7498 ac_cv_header_stdc=no 7499fi 7500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7501 conftest.$ac_objext conftest.beam conftest.$ac_ext 7502fi 7503 7504fi 7505fi 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7507$as_echo "$ac_cv_header_stdc" >&6; } 7508if test $ac_cv_header_stdc = yes; then 7509 7510$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7511 7512fi 7513 7514# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7516 inttypes.h stdint.h unistd.h 7517do : 7518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7520" 7521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7522 cat >>confdefs.h <<_ACEOF 7523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7524_ACEOF 7525 7526fi 7527 7528done 7529 7530 7531for ac_header in errno.h 7532do : 7533 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 7534if test "x$ac_cv_header_errno_h" = xyes; then : 7535 cat >>confdefs.h <<_ACEOF 7536#define HAVE_ERRNO_H 1 7537_ACEOF 7538 7539fi 7540 7541done 7542 7543 7544case "$llvm_cv_os_type" in 7545 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;; 7546 Darwin) llvm_shlib_ext=.dylib ;; 7547 *) llvm_shlib_ext=.so ;; 7548esac 7549 7550 7551cat >>confdefs.h <<_ACEOF 7552#define LTDL_SHLIB_EXT "$llvm_shlib_ext" 7553_ACEOF 7554 7555 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5 7557$as_echo_n "checking tool compatibility... " >&6; } 7558 7559ICC=no 7560IXX=no 7561case $CC in 7562 icc*|icpc*) 7563 ICC=yes 7564 IXX=yes 7565 ;; 7566 *) 7567 ;; 7568esac 7569 7570if test "$GCC" != "yes" && test "$ICC" != "yes" 7571then 7572 as_fn_error $? "gcc|icc required but not found" "$LINENO" 5 7573fi 7574 7575if test "$GXX" != "yes" && test "$IXX" != "yes" 7576then 7577 as_fn_error $? "g++|clang++|icc required but not found" "$LINENO" 5 7578fi 7579 7580if test "$GCC" = "yes" 7581then 7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7583/* end confdefs.h. */ 7584 7585 7586 #if !defined(__GNUC__) || __GNUC__ < 3 7587 #error Unsupported GCC version 7588 #endif 7589 7590 7591_ACEOF 7592if ac_fn_c_try_compile "$LINENO"; then : 7593 7594else 7595 as_fn_error $? "gcc 3.x required, but you have a lower version" "$LINENO" 5 7596fi 7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598fi 7599 7600if test -z "$llvm_cv_gnu_make_command" 7601then 7602 as_fn_error $? "GNU Make required but not found" "$LINENO" 5 7603fi 7604 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7606$as_echo "ok" >&6; } 7607 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5 7609$as_echo_n "checking optional compiler flags... " >&6; } 7610case "$llvm_cv_cxx_compiler" in 7611 clang) 7612 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 7613 7614 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers` 7615 7616 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 7617 7618 ;; 7619 gcc) 7620 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 7621 7622 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 7623 7624 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 7625 7626 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 7627 7628 if test -z "$NO_MAYBE_UNINITIALIZED" 7629 then 7630 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 7631 7632 fi 7633 ;; 7634 unknown) 7635 ;; 7636esac 7637 7638no_comment= 7639llvm_cv_old_cxxflags="$CXXFLAGS" 7640CXXFLAGS="$CXXFLAGS -Wcomment -Werror" 7641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643 7644 // Comment \o\ 7645// Another comment 7646int main() { return 0; } 7647 7648 7649_ACEOF 7650if ac_fn_c_try_compile "$LINENO"; then : 7651 7652 no_comment=-Wno-comment 7653 7654fi 7655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7656NO_COMMENT=$no_comment 7657 7658CXXFLAGS="$llvm_cv_old_cxxflags" 7659 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5 7661$as_echo "$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; } 7662 7663 7664if test "$llvm_cv_os_type" = "MingW" ; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5 7666$as_echo_n "checking for main in -lpsapi... " >&6; } 7667if ${ac_cv_lib_psapi_main+:} false; then : 7668 $as_echo_n "(cached) " >&6 7669else 7670 ac_check_lib_save_LIBS=$LIBS 7671LIBS="-lpsapi $LIBS" 7672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674 7675 7676int 7677main () 7678{ 7679return main (); 7680 ; 7681 return 0; 7682} 7683_ACEOF 7684if ac_fn_c_try_link "$LINENO"; then : 7685 ac_cv_lib_psapi_main=yes 7686else 7687 ac_cv_lib_psapi_main=no 7688fi 7689rm -f core conftest.err conftest.$ac_objext \ 7690 conftest$ac_exeext conftest.$ac_ext 7691LIBS=$ac_check_lib_save_LIBS 7692fi 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5 7694$as_echo "$ac_cv_lib_psapi_main" >&6; } 7695if test "x$ac_cv_lib_psapi_main" = xyes; then : 7696 cat >>confdefs.h <<_ACEOF 7697#define HAVE_LIBPSAPI 1 7698_ACEOF 7699 7700 LIBS="-lpsapi $LIBS" 7701 7702fi 7703 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lshell32" >&5 7705$as_echo_n "checking for main in -lshell32... " >&6; } 7706if ${ac_cv_lib_shell32_main+:} false; then : 7707 $as_echo_n "(cached) " >&6 7708else 7709 ac_check_lib_save_LIBS=$LIBS 7710LIBS="-lshell32 $LIBS" 7711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712/* end confdefs.h. */ 7713 7714 7715int 7716main () 7717{ 7718return main (); 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723if ac_fn_c_try_link "$LINENO"; then : 7724 ac_cv_lib_shell32_main=yes 7725else 7726 ac_cv_lib_shell32_main=no 7727fi 7728rm -f core conftest.err conftest.$ac_objext \ 7729 conftest$ac_exeext conftest.$ac_ext 7730LIBS=$ac_check_lib_save_LIBS 7731fi 7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shell32_main" >&5 7733$as_echo "$ac_cv_lib_shell32_main" >&6; } 7734if test "x$ac_cv_lib_shell32_main" = xyes; then : 7735 cat >>confdefs.h <<_ACEOF 7736#define HAVE_LIBSHELL32 1 7737_ACEOF 7738 7739 LIBS="-lshell32 $LIBS" 7740 7741fi 7742 7743fi 7744 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 7746$as_echo_n "checking for library containing dlopen... " >&6; } 7747if ${ac_cv_search_dlopen+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 ac_func_search_save_LIBS=$LIBS 7751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753 7754/* Override any GCC internal prototype to avoid an error. 7755 Use char because int might match the return type of a GCC 7756 builtin and then its argument prototype would still apply. */ 7757#ifdef __cplusplus 7758extern "C" 7759#endif 7760char dlopen (); 7761int 7762main () 7763{ 7764return dlopen (); 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769for ac_lib in '' dl; do 7770 if test -z "$ac_lib"; then 7771 ac_res="none required" 7772 else 7773 ac_res=-l$ac_lib 7774 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7775 fi 7776 if ac_fn_c_try_link "$LINENO"; then : 7777 ac_cv_search_dlopen=$ac_res 7778fi 7779rm -f core conftest.err conftest.$ac_objext \ 7780 conftest$ac_exeext 7781 if ${ac_cv_search_dlopen+:} false; then : 7782 break 7783fi 7784done 7785if ${ac_cv_search_dlopen+:} false; then : 7786 7787else 7788 ac_cv_search_dlopen=no 7789fi 7790rm conftest.$ac_ext 7791LIBS=$ac_func_search_save_LIBS 7792fi 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 7794$as_echo "$ac_cv_search_dlopen" >&6; } 7795ac_res=$ac_cv_search_dlopen 7796if test "$ac_res" != no; then : 7797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7798 7799 7800$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 7801 7802HAVE_DLOPEN='1' 7803 7804 7805else 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5 7807$as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 7808fi 7809 7810 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 7812$as_echo_n "checking for library containing clock_gettime... " >&6; } 7813if ${ac_cv_search_clock_gettime+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 ac_func_search_save_LIBS=$LIBS 7817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819 7820/* Override any GCC internal prototype to avoid an error. 7821 Use char because int might match the return type of a GCC 7822 builtin and then its argument prototype would still apply. */ 7823#ifdef __cplusplus 7824extern "C" 7825#endif 7826char clock_gettime (); 7827int 7828main () 7829{ 7830return clock_gettime (); 7831 ; 7832 return 0; 7833} 7834_ACEOF 7835for ac_lib in '' rt; do 7836 if test -z "$ac_lib"; then 7837 ac_res="none required" 7838 else 7839 ac_res=-l$ac_lib 7840 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7841 fi 7842 if ac_fn_c_try_link "$LINENO"; then : 7843 ac_cv_search_clock_gettime=$ac_res 7844fi 7845rm -f core conftest.err conftest.$ac_objext \ 7846 conftest$ac_exeext 7847 if ${ac_cv_search_clock_gettime+:} false; then : 7848 break 7849fi 7850done 7851if ${ac_cv_search_clock_gettime+:} false; then : 7852 7853else 7854 ac_cv_search_clock_gettime=no 7855fi 7856rm conftest.$ac_ext 7857LIBS=$ac_func_search_save_LIBS 7858fi 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 7860$as_echo "$ac_cv_search_clock_gettime" >&6; } 7861ac_res=$ac_cv_search_clock_gettime 7862if test "$ac_res" != no; then : 7863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7864 7865fi 7866 7867 7868if test "$llvm_cv_enable_terminfo" = "yes" ; then 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5 7870$as_echo_n "checking for library containing setupterm... " >&6; } 7871if ${ac_cv_search_setupterm+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 ac_func_search_save_LIBS=$LIBS 7875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7876/* end confdefs.h. */ 7877 7878/* Override any GCC internal prototype to avoid an error. 7879 Use char because int might match the return type of a GCC 7880 builtin and then its argument prototype would still apply. */ 7881#ifdef __cplusplus 7882extern "C" 7883#endif 7884char setupterm (); 7885int 7886main () 7887{ 7888return setupterm (); 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do 7894 if test -z "$ac_lib"; then 7895 ac_res="none required" 7896 else 7897 ac_res=-l$ac_lib 7898 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7899 fi 7900 if ac_fn_c_try_link "$LINENO"; then : 7901 ac_cv_search_setupterm=$ac_res 7902fi 7903rm -f core conftest.err conftest.$ac_objext \ 7904 conftest$ac_exeext 7905 if ${ac_cv_search_setupterm+:} false; then : 7906 break 7907fi 7908done 7909if ${ac_cv_search_setupterm+:} false; then : 7910 7911else 7912 ac_cv_search_setupterm=no 7913fi 7914rm conftest.$ac_ext 7915LIBS=$ac_func_search_save_LIBS 7916fi 7917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5 7918$as_echo "$ac_cv_search_setupterm" >&6; } 7919ac_res=$ac_cv_search_setupterm 7920if test "$ac_res" != no; then : 7921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7922 7923 7924$as_echo "#define HAVE_TERMINFO 1" >>confdefs.h 7925 7926HAVE_TERMINFO='1' 7927 7928 7929fi 7930 7931fi 7932 7933if test "$llvm_cv_enable_libedit" = "yes" ; then 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing el_init" >&5 7935$as_echo_n "checking for library containing el_init... " >&6; } 7936if ${ac_cv_search_el_init+:} false; then : 7937 $as_echo_n "(cached) " >&6 7938else 7939 ac_func_search_save_LIBS=$LIBS 7940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942 7943/* Override any GCC internal prototype to avoid an error. 7944 Use char because int might match the return type of a GCC 7945 builtin and then its argument prototype would still apply. */ 7946#ifdef __cplusplus 7947extern "C" 7948#endif 7949char el_init (); 7950int 7951main () 7952{ 7953return el_init (); 7954 ; 7955 return 0; 7956} 7957_ACEOF 7958for ac_lib in '' edit; do 7959 if test -z "$ac_lib"; then 7960 ac_res="none required" 7961 else 7962 ac_res=-l$ac_lib 7963 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7964 fi 7965 if ac_fn_c_try_link "$LINENO"; then : 7966 ac_cv_search_el_init=$ac_res 7967fi 7968rm -f core conftest.err conftest.$ac_objext \ 7969 conftest$ac_exeext 7970 if ${ac_cv_search_el_init+:} false; then : 7971 break 7972fi 7973done 7974if ${ac_cv_search_el_init+:} false; then : 7975 7976else 7977 ac_cv_search_el_init=no 7978fi 7979rm conftest.$ac_ext 7980LIBS=$ac_func_search_save_LIBS 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_el_init" >&5 7983$as_echo "$ac_cv_search_el_init" >&6; } 7984ac_res=$ac_cv_search_el_init 7985if test "$ac_res" != no; then : 7986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7987 7988$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h 7989 7990fi 7991 7992fi 7993 7994if test "$llvm_cv_enable_libffi" = "yes" ; then 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 7996$as_echo_n "checking for library containing ffi_call... " >&6; } 7997if ${ac_cv_search_ffi_call+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 ac_func_search_save_LIBS=$LIBS 8001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003 8004/* Override any GCC internal prototype to avoid an error. 8005 Use char because int might match the return type of a GCC 8006 builtin and then its argument prototype would still apply. */ 8007#ifdef __cplusplus 8008extern "C" 8009#endif 8010char ffi_call (); 8011int 8012main () 8013{ 8014return ffi_call (); 8015 ; 8016 return 0; 8017} 8018_ACEOF 8019for ac_lib in '' ffi; do 8020 if test -z "$ac_lib"; then 8021 ac_res="none required" 8022 else 8023 ac_res=-l$ac_lib 8024 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8025 fi 8026 if ac_fn_c_try_link "$LINENO"; then : 8027 ac_cv_search_ffi_call=$ac_res 8028fi 8029rm -f core conftest.err conftest.$ac_objext \ 8030 conftest$ac_exeext 8031 if ${ac_cv_search_ffi_call+:} false; then : 8032 break 8033fi 8034done 8035if ${ac_cv_search_ffi_call+:} false; then : 8036 8037else 8038 ac_cv_search_ffi_call=no 8039fi 8040rm conftest.$ac_ext 8041LIBS=$ac_func_search_save_LIBS 8042fi 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 8044$as_echo "$ac_cv_search_ffi_call" >&6; } 8045ac_res=$ac_cv_search_ffi_call 8046if test "$ac_res" != no; then : 8047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8048 8049$as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h 8050 8051else 8052 as_fn_error $? "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5 8053fi 8054 8055fi 8056 8057for ac_func in mallinfo mallctl 8058do : 8059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8060ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8061if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8062 cat >>confdefs.h <<_ACEOF 8063#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8064_ACEOF 8065 8066fi 8067done 8068 8069 8070if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 8072$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 8073if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 ac_check_lib_save_LIBS=$LIBS 8077LIBS="-lpthread $LIBS" 8078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079/* end confdefs.h. */ 8080 8081/* Override any GCC internal prototype to avoid an error. 8082 Use char because int might match the return type of a GCC 8083 builtin and then its argument prototype would still apply. */ 8084#ifdef __cplusplus 8085extern "C" 8086#endif 8087char pthread_mutex_init (); 8088int 8089main () 8090{ 8091return pthread_mutex_init (); 8092 ; 8093 return 0; 8094} 8095_ACEOF 8096if ac_fn_c_try_link "$LINENO"; then : 8097 ac_cv_lib_pthread_pthread_mutex_init=yes 8098else 8099 ac_cv_lib_pthread_pthread_mutex_init=no 8100fi 8101rm -f core conftest.err conftest.$ac_objext \ 8102 conftest$ac_exeext conftest.$ac_ext 8103LIBS=$ac_check_lib_save_LIBS 8104fi 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 8106$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 8107if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 8108 cat >>confdefs.h <<_ACEOF 8109#define HAVE_LIBPTHREAD 1 8110_ACEOF 8111 8112 LIBS="-lpthread $LIBS" 8113 8114fi 8115 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5 8117$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } 8118if ${ac_cv_search_pthread_mutex_lock+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120else 8121 ac_func_search_save_LIBS=$LIBS 8122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124 8125/* Override any GCC internal prototype to avoid an error. 8126 Use char because int might match the return type of a GCC 8127 builtin and then its argument prototype would still apply. */ 8128#ifdef __cplusplus 8129extern "C" 8130#endif 8131char pthread_mutex_lock (); 8132int 8133main () 8134{ 8135return pthread_mutex_lock (); 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140for ac_lib in '' pthread; do 8141 if test -z "$ac_lib"; then 8142 ac_res="none required" 8143 else 8144 ac_res=-l$ac_lib 8145 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8146 fi 8147 if ac_fn_c_try_link "$LINENO"; then : 8148 ac_cv_search_pthread_mutex_lock=$ac_res 8149fi 8150rm -f core conftest.err conftest.$ac_objext \ 8151 conftest$ac_exeext 8152 if ${ac_cv_search_pthread_mutex_lock+:} false; then : 8153 break 8154fi 8155done 8156if ${ac_cv_search_pthread_mutex_lock+:} false; then : 8157 8158else 8159 ac_cv_search_pthread_mutex_lock=no 8160fi 8161rm conftest.$ac_ext 8162LIBS=$ac_func_search_save_LIBS 8163fi 8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5 8165$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } 8166ac_res=$ac_cv_search_pthread_mutex_lock 8167if test "$ac_res" != no; then : 8168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8169 8170$as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h 8171 8172fi 8173 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5 8175$as_echo_n "checking for library containing pthread_rwlock_init... " >&6; } 8176if ${ac_cv_search_pthread_rwlock_init+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 ac_func_search_save_LIBS=$LIBS 8180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 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 8187extern "C" 8188#endif 8189char pthread_rwlock_init (); 8190int 8191main () 8192{ 8193return pthread_rwlock_init (); 8194 ; 8195 return 0; 8196} 8197_ACEOF 8198for ac_lib in '' pthread; 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 8205 if ac_fn_c_try_link "$LINENO"; then : 8206 ac_cv_search_pthread_rwlock_init=$ac_res 8207fi 8208rm -f core conftest.err conftest.$ac_objext \ 8209 conftest$ac_exeext 8210 if ${ac_cv_search_pthread_rwlock_init+:} false; then : 8211 break 8212fi 8213done 8214if ${ac_cv_search_pthread_rwlock_init+:} false; then : 8215 8216else 8217 ac_cv_search_pthread_rwlock_init=no 8218fi 8219rm conftest.$ac_ext 8220LIBS=$ac_func_search_save_LIBS 8221fi 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5 8223$as_echo "$ac_cv_search_pthread_rwlock_init" >&6; } 8224ac_res=$ac_cv_search_pthread_rwlock_init 8225if test "$ac_res" != no; then : 8226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8227 8228$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h 8229 8230fi 8231 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5 8233$as_echo_n "checking for library containing pthread_getspecific... " >&6; } 8234if ${ac_cv_search_pthread_getspecific+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 ac_func_search_save_LIBS=$LIBS 8238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239/* end confdefs.h. */ 8240 8241/* Override any GCC internal prototype to avoid an error. 8242 Use char because int might match the return type of a GCC 8243 builtin and then its argument prototype would still apply. */ 8244#ifdef __cplusplus 8245extern "C" 8246#endif 8247char pthread_getspecific (); 8248int 8249main () 8250{ 8251return pthread_getspecific (); 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256for ac_lib in '' pthread; do 8257 if test -z "$ac_lib"; then 8258 ac_res="none required" 8259 else 8260 ac_res=-l$ac_lib 8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8262 fi 8263 if ac_fn_c_try_link "$LINENO"; then : 8264 ac_cv_search_pthread_getspecific=$ac_res 8265fi 8266rm -f core conftest.err conftest.$ac_objext \ 8267 conftest$ac_exeext 8268 if ${ac_cv_search_pthread_getspecific+:} false; then : 8269 break 8270fi 8271done 8272if ${ac_cv_search_pthread_getspecific+:} false; then : 8273 8274else 8275 ac_cv_search_pthread_getspecific=no 8276fi 8277rm conftest.$ac_ext 8278LIBS=$ac_func_search_save_LIBS 8279fi 8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5 8281$as_echo "$ac_cv_search_pthread_getspecific" >&6; } 8282ac_res=$ac_cv_search_pthread_getspecific 8283if test "$ac_res" != no; then : 8284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8285 8286$as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h 8287 8288fi 8289 8290fi 8291 8292if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 8294$as_echo_n "checking for compress2 in -lz... " >&6; } 8295if ${ac_cv_lib_z_compress2+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 ac_check_lib_save_LIBS=$LIBS 8299LIBS="-lz $LIBS" 8300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302 8303/* Override any GCC internal prototype to avoid an error. 8304 Use char because int might match the return type of a GCC 8305 builtin and then its argument prototype would still apply. */ 8306#ifdef __cplusplus 8307extern "C" 8308#endif 8309char compress2 (); 8310int 8311main () 8312{ 8313return compress2 (); 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_link "$LINENO"; then : 8319 ac_cv_lib_z_compress2=yes 8320else 8321 ac_cv_lib_z_compress2=no 8322fi 8323rm -f core conftest.err conftest.$ac_objext \ 8324 conftest$ac_exeext conftest.$ac_ext 8325LIBS=$ac_check_lib_save_LIBS 8326fi 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 8328$as_echo "$ac_cv_lib_z_compress2" >&6; } 8329if test "x$ac_cv_lib_z_compress2" = xyes; then : 8330 cat >>confdefs.h <<_ACEOF 8331#define HAVE_LIBZ 1 8332_ACEOF 8333 8334 LIBS="-lz $LIBS" 8335 8336fi 8337 8338fi 8339 8340USE_OPROFILE=0 8341 8342# Check whether --with-oprofile was given. 8343if test "${with_oprofile+set}" = set; then : 8344 withval=$with_oprofile; 8345 case "$withval" in 8346 no) ;; 8347 *) 8348 USE_OPROFILE=1 8349 ;; 8350 esac 8351 case "$withval" in 8352 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 8353 no) llvm_cv_oppath= ;; 8354 *) llvm_cv_oppath="${withval}/lib/oprofile" 8355 CPPFLAGS="-I${withval}/include";; 8356 esac 8357 case $llvm_cv_os_type in 8358 Linux) 8359 if test -n "$llvm_cv_oppath" ; then 8360 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5 8362$as_echo_n "checking for library containing bfd_init... " >&6; } 8363if ${ac_cv_search_bfd_init+:} false; then : 8364 $as_echo_n "(cached) " >&6 8365else 8366 ac_func_search_save_LIBS=$LIBS 8367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369 8370/* Override any GCC internal prototype to avoid an error. 8371 Use char because int might match the return type of a GCC 8372 builtin and then its argument prototype would still apply. */ 8373#ifdef __cplusplus 8374extern "C" 8375#endif 8376char bfd_init (); 8377int 8378main () 8379{ 8380return bfd_init (); 8381 ; 8382 return 0; 8383} 8384_ACEOF 8385for ac_lib in '' bfd; do 8386 if test -z "$ac_lib"; then 8387 ac_res="none required" 8388 else 8389 ac_res=-l$ac_lib 8390 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8391 fi 8392 if ac_fn_c_try_link "$LINENO"; then : 8393 ac_cv_search_bfd_init=$ac_res 8394fi 8395rm -f core conftest.err conftest.$ac_objext \ 8396 conftest$ac_exeext 8397 if ${ac_cv_search_bfd_init+:} false; then : 8398 break 8399fi 8400done 8401if ${ac_cv_search_bfd_init+:} false; then : 8402 8403else 8404 ac_cv_search_bfd_init=no 8405fi 8406rm conftest.$ac_ext 8407LIBS=$ac_func_search_save_LIBS 8408fi 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5 8410$as_echo "$ac_cv_search_bfd_init" >&6; } 8411ac_res=$ac_cv_search_bfd_init 8412if test "$ac_res" != no; then : 8413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8414 8415fi 8416 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5 8418$as_echo_n "checking for library containing op_open_agent... " >&6; } 8419if ${ac_cv_search_op_open_agent+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 ac_func_search_save_LIBS=$LIBS 8423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424/* end confdefs.h. */ 8425 8426/* Override any GCC internal prototype to avoid an error. 8427 Use char because int might match the return type of a GCC 8428 builtin and then its argument prototype would still apply. */ 8429#ifdef __cplusplus 8430extern "C" 8431#endif 8432char op_open_agent (); 8433int 8434main () 8435{ 8436return op_open_agent (); 8437 ; 8438 return 0; 8439} 8440_ACEOF 8441for ac_lib in '' opagent; do 8442 if test -z "$ac_lib"; then 8443 ac_res="none required" 8444 else 8445 ac_res=-l$ac_lib 8446 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8447 fi 8448 if ac_fn_c_try_link "$LINENO"; then : 8449 ac_cv_search_op_open_agent=$ac_res 8450fi 8451rm -f core conftest.err conftest.$ac_objext \ 8452 conftest$ac_exeext 8453 if ${ac_cv_search_op_open_agent+:} false; then : 8454 break 8455fi 8456done 8457if ${ac_cv_search_op_open_agent+:} false; then : 8458 8459else 8460 ac_cv_search_op_open_agent=no 8461fi 8462rm conftest.$ac_ext 8463LIBS=$ac_func_search_save_LIBS 8464fi 8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5 8466$as_echo "$ac_cv_search_op_open_agent" >&6; } 8467ac_res=$ac_cv_search_op_open_agent 8468if test "$ac_res" != no; then : 8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8470 8471else 8472 8473 echo "Error! You need to have libopagent around." 8474 exit 1 8475 8476fi 8477 8478 ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default" 8479if test "x$ac_cv_header_opagent_h" = xyes; then : 8480 8481else 8482 8483 echo "Error! You need to have opagent.h around." 8484 exit 1 8485 8486fi 8487 8488 8489 fi ;; 8490 *) 8491 as_fn_error $? "OProfile support is available on Linux only." "$LINENO" 5 ;; 8492 esac 8493 8494fi 8495 8496USE_OPROFILE=$USE_OPROFILE 8497 8498 8499cat >>confdefs.h <<_ACEOF 8500#define LLVM_USE_OPROFILE $USE_OPROFILE 8501_ACEOF 8502 8503 8504 8505# Check whether --with-intel-jitevents was given. 8506if test "${with_intel_jitevents+set}" = set; then : 8507 withval=$with_intel_jitevents; 8508 case "$withval" in 8509 yes) USE_INTEL_JITEVENTS=1 8510;; 8511 no) USE_INTEL_JITEVENTS=0 8512;; 8513 *) as_fn_error $? "Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" "$LINENO" 5;; 8514 esac 8515 8516 case $llvm_cv_os_type in 8517 Linux|Win32|Cygwin|MingW) ;; 8518 *) as_fn_error $? "Intel JIT API support is available on Linux and Windows only." "$LINENO" 5;; 8519 esac 8520 8521 case "$llvm_cv_target_arch" in 8522 x86|x86_64) ;; 8523 *) as_fn_error $? "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." "$LINENO" 5;; 8524 esac 8525 8526else 8527 8528 USE_INTEL_JITEVENTS=0 8529 8530 8531fi 8532 8533 8534cat >>confdefs.h <<_ACEOF 8535#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 8536_ACEOF 8537 8538 8539 8540ac_header_dirent=no 8541for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8542 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8544$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8545if eval \${$as_ac_Header+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8549/* end confdefs.h. */ 8550#include <sys/types.h> 8551#include <$ac_hdr> 8552 8553int 8554main () 8555{ 8556if ((DIR *) 0) 8557return 0; 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_compile "$LINENO"; then : 8563 eval "$as_ac_Header=yes" 8564else 8565 eval "$as_ac_Header=no" 8566fi 8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8568fi 8569eval ac_res=\$$as_ac_Header 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8571$as_echo "$ac_res" >&6; } 8572if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8573 cat >>confdefs.h <<_ACEOF 8574#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8575_ACEOF 8576 8577ac_header_dirent=$ac_hdr; break 8578fi 8579 8580done 8581# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8582if test $ac_header_dirent = dirent.h; then 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8584$as_echo_n "checking for library containing opendir... " >&6; } 8585if ${ac_cv_search_opendir+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587else 8588 ac_func_search_save_LIBS=$LIBS 8589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8590/* end confdefs.h. */ 8591 8592/* Override any GCC internal prototype to avoid an error. 8593 Use char because int might match the return type of a GCC 8594 builtin and then its argument prototype would still apply. */ 8595#ifdef __cplusplus 8596extern "C" 8597#endif 8598char opendir (); 8599int 8600main () 8601{ 8602return opendir (); 8603 ; 8604 return 0; 8605} 8606_ACEOF 8607for ac_lib in '' dir; do 8608 if test -z "$ac_lib"; then 8609 ac_res="none required" 8610 else 8611 ac_res=-l$ac_lib 8612 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8613 fi 8614 if ac_fn_c_try_link "$LINENO"; then : 8615 ac_cv_search_opendir=$ac_res 8616fi 8617rm -f core conftest.err conftest.$ac_objext \ 8618 conftest$ac_exeext 8619 if ${ac_cv_search_opendir+:} false; then : 8620 break 8621fi 8622done 8623if ${ac_cv_search_opendir+:} false; then : 8624 8625else 8626 ac_cv_search_opendir=no 8627fi 8628rm conftest.$ac_ext 8629LIBS=$ac_func_search_save_LIBS 8630fi 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8632$as_echo "$ac_cv_search_opendir" >&6; } 8633ac_res=$ac_cv_search_opendir 8634if test "$ac_res" != no; then : 8635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8636 8637fi 8638 8639else 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8641$as_echo_n "checking for library containing opendir... " >&6; } 8642if ${ac_cv_search_opendir+:} false; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 ac_func_search_save_LIBS=$LIBS 8646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648 8649/* Override any GCC internal prototype to avoid an error. 8650 Use char because int might match the return type of a GCC 8651 builtin and then its argument prototype would still apply. */ 8652#ifdef __cplusplus 8653extern "C" 8654#endif 8655char opendir (); 8656int 8657main () 8658{ 8659return opendir (); 8660 ; 8661 return 0; 8662} 8663_ACEOF 8664for ac_lib in '' x; do 8665 if test -z "$ac_lib"; then 8666 ac_res="none required" 8667 else 8668 ac_res=-l$ac_lib 8669 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8670 fi 8671 if ac_fn_c_try_link "$LINENO"; then : 8672 ac_cv_search_opendir=$ac_res 8673fi 8674rm -f core conftest.err conftest.$ac_objext \ 8675 conftest$ac_exeext 8676 if ${ac_cv_search_opendir+:} false; then : 8677 break 8678fi 8679done 8680if ${ac_cv_search_opendir+:} false; then : 8681 8682else 8683 ac_cv_search_opendir=no 8684fi 8685rm conftest.$ac_ext 8686LIBS=$ac_func_search_save_LIBS 8687fi 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8689$as_echo "$ac_cv_search_opendir" >&6; } 8690ac_res=$ac_cv_search_opendir 8691if test "$ac_res" != no; then : 8692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8693 8694fi 8695 8696fi 8697 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 8699$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 8700if ${ac_cv_header_stat_broken+:} false; then : 8701 $as_echo_n "(cached) " >&6 8702else 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705#include <sys/types.h> 8706#include <sys/stat.h> 8707 8708#if defined S_ISBLK && defined S_IFDIR 8709extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 8710#endif 8711 8712#if defined S_ISBLK && defined S_IFCHR 8713extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 8714#endif 8715 8716#if defined S_ISLNK && defined S_IFREG 8717extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 8718#endif 8719 8720#if defined S_ISSOCK && defined S_IFREG 8721extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 8722#endif 8723 8724_ACEOF 8725if ac_fn_c_try_compile "$LINENO"; then : 8726 ac_cv_header_stat_broken=no 8727else 8728 ac_cv_header_stat_broken=yes 8729fi 8730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8731fi 8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 8733$as_echo "$ac_cv_header_stat_broken" >&6; } 8734if test $ac_cv_header_stat_broken = yes; then 8735 8736$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 8737 8738fi 8739 8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 8741$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8742if ${ac_cv_header_time+:} false; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8746/* end confdefs.h. */ 8747#include <sys/types.h> 8748#include <sys/time.h> 8749#include <time.h> 8750 8751int 8752main () 8753{ 8754if ((struct tm *) 0) 8755return 0; 8756 ; 8757 return 0; 8758} 8759_ACEOF 8760if ac_fn_c_try_compile "$LINENO"; then : 8761 ac_cv_header_time=yes 8762else 8763 ac_cv_header_time=no 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8768$as_echo "$ac_cv_header_time" >&6; } 8769if test $ac_cv_header_time = yes; then 8770 8771$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8772 8773fi 8774 8775 8776for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h 8777do : 8778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8781 cat >>confdefs.h <<_ACEOF 8782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8783_ACEOF 8784 8785fi 8786 8787done 8788 8789for ac_header in signal.h stdint.h sysexits.h termios.h unistd.h 8790do : 8791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8794 cat >>confdefs.h <<_ACEOF 8795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8796_ACEOF 8797 8798fi 8799 8800done 8801 8802for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 8803do : 8804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8807 cat >>confdefs.h <<_ACEOF 8808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8809_ACEOF 8810 8811fi 8812 8813done 8814 8815for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h 8816do : 8817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8820 cat >>confdefs.h <<_ACEOF 8821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8822_ACEOF 8823 8824fi 8825 8826done 8827 8828for ac_header in valgrind/valgrind.h 8829do : 8830 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 8831if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 8832 cat >>confdefs.h <<_ACEOF 8833#define HAVE_VALGRIND_VALGRIND_H 1 8834_ACEOF 8835 8836fi 8837 8838done 8839 8840for ac_header in fenv.h 8841do : 8842 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" 8843if test "x$ac_cv_header_fenv_h" = xyes; then : 8844 cat >>confdefs.h <<_ACEOF 8845#define HAVE_FENV_H 1 8846_ACEOF 8847 8848fi 8849 8850done 8851 8852ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "#include <stdlib.h> 8853" 8854if test "x$ac_cv_have_decl_arc4random" = xyes; then : 8855 ac_have_decl=1 8856else 8857 ac_have_decl=0 8858fi 8859 8860cat >>confdefs.h <<_ACEOF 8861#define HAVE_DECL_ARC4RANDOM $ac_have_decl 8862_ACEOF 8863 8864ac_fn_c_check_decl "$LINENO" "FE_ALL_EXCEPT" "ac_cv_have_decl_FE_ALL_EXCEPT" "#include <fenv.h> 8865" 8866if test "x$ac_cv_have_decl_FE_ALL_EXCEPT" = xyes; then : 8867 ac_have_decl=1 8868else 8869 ac_have_decl=0 8870fi 8871 8872cat >>confdefs.h <<_ACEOF 8873#define HAVE_DECL_FE_ALL_EXCEPT $ac_have_decl 8874_ACEOF 8875ac_fn_c_check_decl "$LINENO" "FE_INEXACT" "ac_cv_have_decl_FE_INEXACT" "#include <fenv.h> 8876" 8877if test "x$ac_cv_have_decl_FE_INEXACT" = xyes; then : 8878 ac_have_decl=1 8879else 8880 ac_have_decl=0 8881fi 8882 8883cat >>confdefs.h <<_ACEOF 8884#define HAVE_DECL_FE_INEXACT $ac_have_decl 8885_ACEOF 8886 8887if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 8888 for ac_header in pthread.h 8889do : 8890 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 8891if test "x$ac_cv_header_pthread_h" = xyes; then : 8892 cat >>confdefs.h <<_ACEOF 8893#define HAVE_PTHREAD_H 1 8894_ACEOF 8895 HAVE_PTHREAD=1 8896 8897else 8898 HAVE_PTHREAD=0 8899 8900fi 8901 8902done 8903 8904else 8905 HAVE_PTHREAD=0 8906 8907fi 8908if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 8909 for ac_header in zlib.h 8910do : 8911 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 8912if test "x$ac_cv_header_zlib_h" = xyes; then : 8913 cat >>confdefs.h <<_ACEOF 8914#define HAVE_ZLIB_H 1 8915_ACEOF 8916 HAVE_LIBZ=1 8917 8918else 8919 HAVE_LIBZ=0 8920 8921fi 8922 8923done 8924 8925else 8926 HAVE_LIBZ=0 8927 8928fi 8929 8930if test "$llvm_cv_enable_libffi" = "yes" ; then 8931 for ac_header in ffi.h ffi/ffi.h 8932do : 8933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8934ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8935if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8936 cat >>confdefs.h <<_ACEOF 8937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8938_ACEOF 8939 8940fi 8941 8942done 8943 8944fi 8945 8946for ac_header in CrashReporterClient.h 8947do : 8948 ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default" 8949if test "x$ac_cv_header_CrashReporterClient_h" = xyes; then : 8950 cat >>confdefs.h <<_ACEOF 8951#define HAVE_CRASHREPORTERCLIENT_H 1 8952_ACEOF 8953 8954fi 8955 8956done 8957 8958 8959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __crashreporter_info__" >&5 8960$as_echo_n "checking __crashreporter_info__... " >&6; } 8961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963 8964 8965 extern const char *__crashreporter_info__; 8966 int main() { 8967 __crashreporter_info__ = "test"; 8968 return 0; 8969 } 8970 8971 8972_ACEOF 8973if ac_fn_c_try_link "$LINENO"; then : 8974 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8976$as_echo "yes" >&6; } 8977 8978$as_echo "#define HAVE_CRASHREPORTER_INFO 1" >>confdefs.h 8979 8980 8981else 8982 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8984$as_echo "no" >&6; } 8985 8986$as_echo "#define HAVE_CRASHREPORTER_INFO 0" >>confdefs.h 8987 8988 8989fi 8990rm -f core conftest.err conftest.$ac_objext \ 8991 conftest$ac_exeext conftest.$ac_ext 8992 8993 8994$as_echo "#define HAVE_DIA_SDK 0" >>confdefs.h 8995 8996 8997 8998 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5 9000$as_echo_n "checking for HUGE_VAL sanity... " >&6; } 9001if ${ac_cv_huge_val_sanity+:} false; then : 9002 $as_echo_n "(cached) " >&6 9003else 9004 9005 ac_ext=cpp 9006ac_cpp='$CXXCPP $CPPFLAGS' 9007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9010 9011 ac_save_CXXFLAGS=$CXXFLAGS 9012 CXXFLAGS="$CXXFLAGS -pedantic" 9013 if test "$cross_compiling" = yes; then : 9014 ac_cv_huge_val_sanity=yes 9015else 9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9017/* end confdefs.h. */ 9018#include <math.h> 9019int 9020main () 9021{ 9022double x = HUGE_VAL; return x != x; 9023 ; 9024 return 0; 9025} 9026_ACEOF 9027if ac_fn_cxx_try_run "$LINENO"; then : 9028 ac_cv_huge_val_sanity=yes 9029else 9030 ac_cv_huge_val_sanity=no 9031fi 9032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9033 conftest.$ac_objext conftest.beam conftest.$ac_ext 9034fi 9035 9036 CXXFLAGS=$ac_save_CXXFLAGS 9037 ac_ext=c 9038ac_cpp='$CPP $CPPFLAGS' 9039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9041ac_compiler_gnu=$ac_cv_c_compiler_gnu 9042 9043 9044fi 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5 9046$as_echo "$ac_cv_huge_val_sanity" >&6; } 9047 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 9048 9049 9050ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 9051if test "x$ac_cv_type_pid_t" = xyes; then : 9052 9053else 9054 9055cat >>confdefs.h <<_ACEOF 9056#define pid_t int 9057_ACEOF 9058 9059fi 9060 9061ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 9062if test "x$ac_cv_type_size_t" = xyes; then : 9063 9064else 9065 9066cat >>confdefs.h <<_ACEOF 9067#define size_t unsigned int 9068_ACEOF 9069 9070fi 9071 9072 9073cat >>confdefs.h <<_ACEOF 9074#define RETSIGTYPE void 9075_ACEOF 9076 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 9078$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 9079if ${ac_cv_struct_tm+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083/* end confdefs.h. */ 9084#include <sys/types.h> 9085#include <time.h> 9086 9087int 9088main () 9089{ 9090struct tm tm; 9091 int *p = &tm.tm_sec; 9092 return !p; 9093 ; 9094 return 0; 9095} 9096_ACEOF 9097if ac_fn_c_try_compile "$LINENO"; then : 9098 ac_cv_struct_tm=time.h 9099else 9100 ac_cv_struct_tm=sys/time.h 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9103fi 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 9105$as_echo "$ac_cv_struct_tm" >&6; } 9106if test $ac_cv_struct_tm = sys/time.h; then 9107 9108$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 9109 9110fi 9111 9112ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 9113if test "x$ac_cv_type_int64_t" = xyes; then : 9114 9115cat >>confdefs.h <<_ACEOF 9116#define HAVE_INT64_T 1 9117_ACEOF 9118 9119 9120else 9121 as_fn_error $? "Type int64_t required but not found" "$LINENO" 5 9122fi 9123 9124ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 9125if test "x$ac_cv_type_uint64_t" = xyes; then : 9126 9127cat >>confdefs.h <<_ACEOF 9128#define HAVE_UINT64_T 1 9129_ACEOF 9130 9131 9132else 9133 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" 9134if test "x$ac_cv_type_u_int64_t" = xyes; then : 9135 9136cat >>confdefs.h <<_ACEOF 9137#define HAVE_U_INT64_T 1 9138_ACEOF 9139 9140 9141else 9142 as_fn_error $? "Type uint64_t or u_int64_t required but not found" "$LINENO" 5 9143fi 9144 9145fi 9146 9147 9148ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec.tv_nsec" "ac_cv_member_struct_stat_st_mtimensec_tv_nsec" "#include <sys/stat.h> 9149" 9150if test "x$ac_cv_member_struct_stat_st_mtimensec_tv_nsec" = xyes; then : 9151 9152cat >>confdefs.h <<_ACEOF 9153#define HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC 1 9154_ACEOF 9155 9156 9157fi 9158ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h> 9159" 9160if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : 9161 9162cat >>confdefs.h <<_ACEOF 9163#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 9164_ACEOF 9165 9166 9167fi 9168 9169 9170 9171for ac_func in _Unwind_Backtrace backtrace getcwd 9172do : 9173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9174ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9175if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9176 cat >>confdefs.h <<_ACEOF 9177#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9178_ACEOF 9179 9180fi 9181done 9182 9183for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 9184do : 9185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9186ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9187if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9188 cat >>confdefs.h <<_ACEOF 9189#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9190_ACEOF 9191 9192fi 9193done 9194 9195for ac_func in isatty mkdtemp mkstemp 9196do : 9197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9198ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9199if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9200 cat >>confdefs.h <<_ACEOF 9201#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9202_ACEOF 9203 9204fi 9205done 9206 9207for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit 9208do : 9209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9210ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9211if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9212 cat >>confdefs.h <<_ACEOF 9213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9214_ACEOF 9215 9216fi 9217done 9218 9219for ac_func in strerror strerror_r setenv 9220do : 9221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9223if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9224 cat >>confdefs.h <<_ACEOF 9225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9226_ACEOF 9227 9228fi 9229done 9230 9231for ac_func in strtoll sysconf malloc_zone_statistics 9232do : 9233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9234ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9235if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9236 cat >>confdefs.h <<_ACEOF 9237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9238_ACEOF 9239 9240fi 9241done 9242 9243for ac_func in sigaltstack writev posix_fallocate 9244do : 9245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9246ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9247if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9248 cat >>confdefs.h <<_ACEOF 9249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9250_ACEOF 9251 9252fi 9253done 9254 9255for ac_func in futimes futimens _chsize_s 9256do : 9257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9258ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9259if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9260 cat >>confdefs.h <<_ACEOF 9261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9262_ACEOF 9263 9264fi 9265done 9266 9267 9268ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" 9269if test "x$ac_cv_have_decl_arc4random" = xyes; then : 9270 ac_have_decl=1 9271else 9272 ac_have_decl=0 9273fi 9274 9275cat >>confdefs.h <<_ACEOF 9276#define HAVE_DECL_ARC4RANDOM $ac_have_decl 9277_ACEOF 9278 9279 9280ac_fn_c_check_decl "$LINENO" "strerror_s" "ac_cv_have_decl_strerror_s" "$ac_includes_default" 9281if test "x$ac_cv_have_decl_strerror_s" = xyes; then : 9282 ac_have_decl=1 9283else 9284 ac_have_decl=0 9285fi 9286 9287cat >>confdefs.h <<_ACEOF 9288#define HAVE_DECL_STRERROR_S $ac_have_decl 9289_ACEOF 9290 9291 9292if test "$llvm_cv_os_type" = "MingW" ; then 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _alloca in -lgcc" >&5 9294$as_echo_n "checking for _alloca in -lgcc... " >&6; } 9295if ${ac_cv_lib_gcc__alloca+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 ac_check_lib_save_LIBS=$LIBS 9299LIBS="-lgcc $LIBS" 9300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301/* end confdefs.h. */ 9302 9303/* Override any GCC internal prototype to avoid an error. 9304 Use char because int might match the return type of a GCC 9305 builtin and then its argument prototype would still apply. */ 9306#ifdef __cplusplus 9307extern "C" 9308#endif 9309char _alloca (); 9310int 9311main () 9312{ 9313return _alloca (); 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318if ac_fn_c_try_link "$LINENO"; then : 9319 ac_cv_lib_gcc__alloca=yes 9320else 9321 ac_cv_lib_gcc__alloca=no 9322fi 9323rm -f core conftest.err conftest.$ac_objext \ 9324 conftest$ac_exeext conftest.$ac_ext 9325LIBS=$ac_check_lib_save_LIBS 9326fi 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__alloca" >&5 9328$as_echo "$ac_cv_lib_gcc__alloca" >&6; } 9329if test "x$ac_cv_lib_gcc__alloca" = xyes; then : 9330 9331$as_echo "#define HAVE__ALLOCA 1" >>confdefs.h 9332 9333fi 9334 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alloca in -lgcc" >&5 9336$as_echo_n "checking for __alloca in -lgcc... " >&6; } 9337if ${ac_cv_lib_gcc___alloca+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 ac_check_lib_save_LIBS=$LIBS 9341LIBS="-lgcc $LIBS" 9342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344 9345/* Override any GCC internal prototype to avoid an error. 9346 Use char because int might match the return type of a GCC 9347 builtin and then its argument prototype would still apply. */ 9348#ifdef __cplusplus 9349extern "C" 9350#endif 9351char __alloca (); 9352int 9353main () 9354{ 9355return __alloca (); 9356 ; 9357 return 0; 9358} 9359_ACEOF 9360if ac_fn_c_try_link "$LINENO"; then : 9361 ac_cv_lib_gcc___alloca=yes 9362else 9363 ac_cv_lib_gcc___alloca=no 9364fi 9365rm -f core conftest.err conftest.$ac_objext \ 9366 conftest$ac_exeext conftest.$ac_ext 9367LIBS=$ac_check_lib_save_LIBS 9368fi 9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___alloca" >&5 9370$as_echo "$ac_cv_lib_gcc___alloca" >&6; } 9371if test "x$ac_cv_lib_gcc___alloca" = xyes; then : 9372 9373$as_echo "#define HAVE___ALLOCA 1" >>confdefs.h 9374 9375fi 9376 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk in -lgcc" >&5 9378$as_echo_n "checking for __chkstk in -lgcc... " >&6; } 9379if ${ac_cv_lib_gcc___chkstk+:} false; then : 9380 $as_echo_n "(cached) " >&6 9381else 9382 ac_check_lib_save_LIBS=$LIBS 9383LIBS="-lgcc $LIBS" 9384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386 9387/* Override any GCC internal prototype to avoid an error. 9388 Use char because int might match the return type of a GCC 9389 builtin and then its argument prototype would still apply. */ 9390#ifdef __cplusplus 9391extern "C" 9392#endif 9393char __chkstk (); 9394int 9395main () 9396{ 9397return __chkstk (); 9398 ; 9399 return 0; 9400} 9401_ACEOF 9402if ac_fn_c_try_link "$LINENO"; then : 9403 ac_cv_lib_gcc___chkstk=yes 9404else 9405 ac_cv_lib_gcc___chkstk=no 9406fi 9407rm -f core conftest.err conftest.$ac_objext \ 9408 conftest$ac_exeext conftest.$ac_ext 9409LIBS=$ac_check_lib_save_LIBS 9410fi 9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk" >&5 9412$as_echo "$ac_cv_lib_gcc___chkstk" >&6; } 9413if test "x$ac_cv_lib_gcc___chkstk" = xyes; then : 9414 9415$as_echo "#define HAVE___CHKSTK 1" >>confdefs.h 9416 9417fi 9418 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk_ms in -lgcc" >&5 9420$as_echo_n "checking for __chkstk_ms in -lgcc... " >&6; } 9421if ${ac_cv_lib_gcc___chkstk_ms+:} false; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 ac_check_lib_save_LIBS=$LIBS 9425LIBS="-lgcc $LIBS" 9426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428 9429/* Override any GCC internal prototype to avoid an error. 9430 Use char because int might match the return type of a GCC 9431 builtin and then its argument prototype would still apply. */ 9432#ifdef __cplusplus 9433extern "C" 9434#endif 9435char __chkstk_ms (); 9436int 9437main () 9438{ 9439return __chkstk_ms (); 9440 ; 9441 return 0; 9442} 9443_ACEOF 9444if ac_fn_c_try_link "$LINENO"; then : 9445 ac_cv_lib_gcc___chkstk_ms=yes 9446else 9447 ac_cv_lib_gcc___chkstk_ms=no 9448fi 9449rm -f core conftest.err conftest.$ac_objext \ 9450 conftest$ac_exeext conftest.$ac_ext 9451LIBS=$ac_check_lib_save_LIBS 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk_ms" >&5 9454$as_echo "$ac_cv_lib_gcc___chkstk_ms" >&6; } 9455if test "x$ac_cv_lib_gcc___chkstk_ms" = xyes; then : 9456 9457$as_echo "#define HAVE___CHKSTK_MS 1" >>confdefs.h 9458 9459fi 9460 9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk in -lgcc" >&5 9462$as_echo_n "checking for ___chkstk in -lgcc... " >&6; } 9463if ${ac_cv_lib_gcc____chkstk+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 ac_check_lib_save_LIBS=$LIBS 9467LIBS="-lgcc $LIBS" 9468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469/* end confdefs.h. */ 9470 9471/* Override any GCC internal prototype to avoid an error. 9472 Use char because int might match the return type of a GCC 9473 builtin and then its argument prototype would still apply. */ 9474#ifdef __cplusplus 9475extern "C" 9476#endif 9477char ___chkstk (); 9478int 9479main () 9480{ 9481return ___chkstk (); 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO"; then : 9487 ac_cv_lib_gcc____chkstk=yes 9488else 9489 ac_cv_lib_gcc____chkstk=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext \ 9492 conftest$ac_exeext conftest.$ac_ext 9493LIBS=$ac_check_lib_save_LIBS 9494fi 9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk" >&5 9496$as_echo "$ac_cv_lib_gcc____chkstk" >&6; } 9497if test "x$ac_cv_lib_gcc____chkstk" = xyes; then : 9498 9499$as_echo "#define HAVE____CHKSTK 1" >>confdefs.h 9500 9501fi 9502 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk_ms in -lgcc" >&5 9504$as_echo_n "checking for ___chkstk_ms in -lgcc... " >&6; } 9505if ${ac_cv_lib_gcc____chkstk_ms+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507else 9508 ac_check_lib_save_LIBS=$LIBS 9509LIBS="-lgcc $LIBS" 9510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512 9513/* Override any GCC internal prototype to avoid an error. 9514 Use char because int might match the return type of a GCC 9515 builtin and then its argument prototype would still apply. */ 9516#ifdef __cplusplus 9517extern "C" 9518#endif 9519char ___chkstk_ms (); 9520int 9521main () 9522{ 9523return ___chkstk_ms (); 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_link "$LINENO"; then : 9529 ac_cv_lib_gcc____chkstk_ms=yes 9530else 9531 ac_cv_lib_gcc____chkstk_ms=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext \ 9534 conftest$ac_exeext conftest.$ac_ext 9535LIBS=$ac_check_lib_save_LIBS 9536fi 9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk_ms" >&5 9538$as_echo "$ac_cv_lib_gcc____chkstk_ms" >&6; } 9539if test "x$ac_cv_lib_gcc____chkstk_ms" = xyes; then : 9540 9541$as_echo "#define HAVE____CHKSTK_MS 1" >>confdefs.h 9542 9543fi 9544 9545 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashldi3 in -lgcc" >&5 9547$as_echo_n "checking for __ashldi3 in -lgcc... " >&6; } 9548if ${ac_cv_lib_gcc___ashldi3+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 ac_check_lib_save_LIBS=$LIBS 9552LIBS="-lgcc $LIBS" 9553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9554/* end confdefs.h. */ 9555 9556/* Override any GCC internal prototype to avoid an error. 9557 Use char because int might match the return type of a GCC 9558 builtin and then its argument prototype would still apply. */ 9559#ifdef __cplusplus 9560extern "C" 9561#endif 9562char __ashldi3 (); 9563int 9564main () 9565{ 9566return __ashldi3 (); 9567 ; 9568 return 0; 9569} 9570_ACEOF 9571if ac_fn_c_try_link "$LINENO"; then : 9572 ac_cv_lib_gcc___ashldi3=yes 9573else 9574 ac_cv_lib_gcc___ashldi3=no 9575fi 9576rm -f core conftest.err conftest.$ac_objext \ 9577 conftest$ac_exeext conftest.$ac_ext 9578LIBS=$ac_check_lib_save_LIBS 9579fi 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashldi3" >&5 9581$as_echo "$ac_cv_lib_gcc___ashldi3" >&6; } 9582if test "x$ac_cv_lib_gcc___ashldi3" = xyes; then : 9583 9584$as_echo "#define HAVE___ASHLDI3 1" >>confdefs.h 9585 9586fi 9587 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashrdi3 in -lgcc" >&5 9589$as_echo_n "checking for __ashrdi3 in -lgcc... " >&6; } 9590if ${ac_cv_lib_gcc___ashrdi3+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 ac_check_lib_save_LIBS=$LIBS 9594LIBS="-lgcc $LIBS" 9595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597 9598/* Override any GCC internal prototype to avoid an error. 9599 Use char because int might match the return type of a GCC 9600 builtin and then its argument prototype would still apply. */ 9601#ifdef __cplusplus 9602extern "C" 9603#endif 9604char __ashrdi3 (); 9605int 9606main () 9607{ 9608return __ashrdi3 (); 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613if ac_fn_c_try_link "$LINENO"; then : 9614 ac_cv_lib_gcc___ashrdi3=yes 9615else 9616 ac_cv_lib_gcc___ashrdi3=no 9617fi 9618rm -f core conftest.err conftest.$ac_objext \ 9619 conftest$ac_exeext conftest.$ac_ext 9620LIBS=$ac_check_lib_save_LIBS 9621fi 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashrdi3" >&5 9623$as_echo "$ac_cv_lib_gcc___ashrdi3" >&6; } 9624if test "x$ac_cv_lib_gcc___ashrdi3" = xyes; then : 9625 9626$as_echo "#define HAVE___ASHRDI3 1" >>confdefs.h 9627 9628fi 9629 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __divdi3 in -lgcc" >&5 9631$as_echo_n "checking for __divdi3 in -lgcc... " >&6; } 9632if ${ac_cv_lib_gcc___divdi3+:} false; then : 9633 $as_echo_n "(cached) " >&6 9634else 9635 ac_check_lib_save_LIBS=$LIBS 9636LIBS="-lgcc $LIBS" 9637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9638/* end confdefs.h. */ 9639 9640/* Override any GCC internal prototype to avoid an error. 9641 Use char because int might match the return type of a GCC 9642 builtin and then its argument prototype would still apply. */ 9643#ifdef __cplusplus 9644extern "C" 9645#endif 9646char __divdi3 (); 9647int 9648main () 9649{ 9650return __divdi3 (); 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655if ac_fn_c_try_link "$LINENO"; then : 9656 ac_cv_lib_gcc___divdi3=yes 9657else 9658 ac_cv_lib_gcc___divdi3=no 9659fi 9660rm -f core conftest.err conftest.$ac_objext \ 9661 conftest$ac_exeext conftest.$ac_ext 9662LIBS=$ac_check_lib_save_LIBS 9663fi 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___divdi3" >&5 9665$as_echo "$ac_cv_lib_gcc___divdi3" >&6; } 9666if test "x$ac_cv_lib_gcc___divdi3" = xyes; then : 9667 9668$as_echo "#define HAVE___DIVDI3 1" >>confdefs.h 9669 9670fi 9671 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixdfdi in -lgcc" >&5 9673$as_echo_n "checking for __fixdfdi in -lgcc... " >&6; } 9674if ${ac_cv_lib_gcc___fixdfdi+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 ac_check_lib_save_LIBS=$LIBS 9678LIBS="-lgcc $LIBS" 9679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681 9682/* Override any GCC internal prototype to avoid an error. 9683 Use char because int might match the return type of a GCC 9684 builtin and then its argument prototype would still apply. */ 9685#ifdef __cplusplus 9686extern "C" 9687#endif 9688char __fixdfdi (); 9689int 9690main () 9691{ 9692return __fixdfdi (); 9693 ; 9694 return 0; 9695} 9696_ACEOF 9697if ac_fn_c_try_link "$LINENO"; then : 9698 ac_cv_lib_gcc___fixdfdi=yes 9699else 9700 ac_cv_lib_gcc___fixdfdi=no 9701fi 9702rm -f core conftest.err conftest.$ac_objext \ 9703 conftest$ac_exeext conftest.$ac_ext 9704LIBS=$ac_check_lib_save_LIBS 9705fi 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixdfdi" >&5 9707$as_echo "$ac_cv_lib_gcc___fixdfdi" >&6; } 9708if test "x$ac_cv_lib_gcc___fixdfdi" = xyes; then : 9709 9710$as_echo "#define HAVE___FIXDFDI 1" >>confdefs.h 9711 9712fi 9713 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixsfdi in -lgcc" >&5 9715$as_echo_n "checking for __fixsfdi in -lgcc... " >&6; } 9716if ${ac_cv_lib_gcc___fixsfdi+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 ac_check_lib_save_LIBS=$LIBS 9720LIBS="-lgcc $LIBS" 9721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723 9724/* Override any GCC internal prototype to avoid an error. 9725 Use char because int might match the return type of a GCC 9726 builtin and then its argument prototype would still apply. */ 9727#ifdef __cplusplus 9728extern "C" 9729#endif 9730char __fixsfdi (); 9731int 9732main () 9733{ 9734return __fixsfdi (); 9735 ; 9736 return 0; 9737} 9738_ACEOF 9739if ac_fn_c_try_link "$LINENO"; then : 9740 ac_cv_lib_gcc___fixsfdi=yes 9741else 9742 ac_cv_lib_gcc___fixsfdi=no 9743fi 9744rm -f core conftest.err conftest.$ac_objext \ 9745 conftest$ac_exeext conftest.$ac_ext 9746LIBS=$ac_check_lib_save_LIBS 9747fi 9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixsfdi" >&5 9749$as_echo "$ac_cv_lib_gcc___fixsfdi" >&6; } 9750if test "x$ac_cv_lib_gcc___fixsfdi" = xyes; then : 9751 9752$as_echo "#define HAVE___FIXSFDI 1" >>confdefs.h 9753 9754fi 9755 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __floatdidf in -lgcc" >&5 9757$as_echo_n "checking for __floatdidf in -lgcc... " >&6; } 9758if ${ac_cv_lib_gcc___floatdidf+:} false; then : 9759 $as_echo_n "(cached) " >&6 9760else 9761 ac_check_lib_save_LIBS=$LIBS 9762LIBS="-lgcc $LIBS" 9763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764/* end confdefs.h. */ 9765 9766/* Override any GCC internal prototype to avoid an error. 9767 Use char because int might match the return type of a GCC 9768 builtin and then its argument prototype would still apply. */ 9769#ifdef __cplusplus 9770extern "C" 9771#endif 9772char __floatdidf (); 9773int 9774main () 9775{ 9776return __floatdidf (); 9777 ; 9778 return 0; 9779} 9780_ACEOF 9781if ac_fn_c_try_link "$LINENO"; then : 9782 ac_cv_lib_gcc___floatdidf=yes 9783else 9784 ac_cv_lib_gcc___floatdidf=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext \ 9787 conftest$ac_exeext conftest.$ac_ext 9788LIBS=$ac_check_lib_save_LIBS 9789fi 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___floatdidf" >&5 9791$as_echo "$ac_cv_lib_gcc___floatdidf" >&6; } 9792if test "x$ac_cv_lib_gcc___floatdidf" = xyes; then : 9793 9794$as_echo "#define HAVE___FLOATDIDF 1" >>confdefs.h 9795 9796fi 9797 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __lshrdi3 in -lgcc" >&5 9799$as_echo_n "checking for __lshrdi3 in -lgcc... " >&6; } 9800if ${ac_cv_lib_gcc___lshrdi3+:} false; then : 9801 $as_echo_n "(cached) " >&6 9802else 9803 ac_check_lib_save_LIBS=$LIBS 9804LIBS="-lgcc $LIBS" 9805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9806/* end confdefs.h. */ 9807 9808/* Override any GCC internal prototype to avoid an error. 9809 Use char because int might match the return type of a GCC 9810 builtin and then its argument prototype would still apply. */ 9811#ifdef __cplusplus 9812extern "C" 9813#endif 9814char __lshrdi3 (); 9815int 9816main () 9817{ 9818return __lshrdi3 (); 9819 ; 9820 return 0; 9821} 9822_ACEOF 9823if ac_fn_c_try_link "$LINENO"; then : 9824 ac_cv_lib_gcc___lshrdi3=yes 9825else 9826 ac_cv_lib_gcc___lshrdi3=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext \ 9829 conftest$ac_exeext conftest.$ac_ext 9830LIBS=$ac_check_lib_save_LIBS 9831fi 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___lshrdi3" >&5 9833$as_echo "$ac_cv_lib_gcc___lshrdi3" >&6; } 9834if test "x$ac_cv_lib_gcc___lshrdi3" = xyes; then : 9835 9836$as_echo "#define HAVE___LSHRDI3 1" >>confdefs.h 9837 9838fi 9839 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __moddi3 in -lgcc" >&5 9841$as_echo_n "checking for __moddi3 in -lgcc... " >&6; } 9842if ${ac_cv_lib_gcc___moddi3+:} false; then : 9843 $as_echo_n "(cached) " >&6 9844else 9845 ac_check_lib_save_LIBS=$LIBS 9846LIBS="-lgcc $LIBS" 9847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848/* end confdefs.h. */ 9849 9850/* Override any GCC internal prototype to avoid an error. 9851 Use char because int might match the return type of a GCC 9852 builtin and then its argument prototype would still apply. */ 9853#ifdef __cplusplus 9854extern "C" 9855#endif 9856char __moddi3 (); 9857int 9858main () 9859{ 9860return __moddi3 (); 9861 ; 9862 return 0; 9863} 9864_ACEOF 9865if ac_fn_c_try_link "$LINENO"; then : 9866 ac_cv_lib_gcc___moddi3=yes 9867else 9868 ac_cv_lib_gcc___moddi3=no 9869fi 9870rm -f core conftest.err conftest.$ac_objext \ 9871 conftest$ac_exeext conftest.$ac_ext 9872LIBS=$ac_check_lib_save_LIBS 9873fi 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___moddi3" >&5 9875$as_echo "$ac_cv_lib_gcc___moddi3" >&6; } 9876if test "x$ac_cv_lib_gcc___moddi3" = xyes; then : 9877 9878$as_echo "#define HAVE___MODDI3 1" >>confdefs.h 9879 9880fi 9881 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __udivdi3 in -lgcc" >&5 9883$as_echo_n "checking for __udivdi3 in -lgcc... " >&6; } 9884if ${ac_cv_lib_gcc___udivdi3+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886else 9887 ac_check_lib_save_LIBS=$LIBS 9888LIBS="-lgcc $LIBS" 9889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890/* end confdefs.h. */ 9891 9892/* Override any GCC internal prototype to avoid an error. 9893 Use char because int might match the return type of a GCC 9894 builtin and then its argument prototype would still apply. */ 9895#ifdef __cplusplus 9896extern "C" 9897#endif 9898char __udivdi3 (); 9899int 9900main () 9901{ 9902return __udivdi3 (); 9903 ; 9904 return 0; 9905} 9906_ACEOF 9907if ac_fn_c_try_link "$LINENO"; then : 9908 ac_cv_lib_gcc___udivdi3=yes 9909else 9910 ac_cv_lib_gcc___udivdi3=no 9911fi 9912rm -f core conftest.err conftest.$ac_objext \ 9913 conftest$ac_exeext conftest.$ac_ext 9914LIBS=$ac_check_lib_save_LIBS 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___udivdi3" >&5 9917$as_echo "$ac_cv_lib_gcc___udivdi3" >&6; } 9918if test "x$ac_cv_lib_gcc___udivdi3" = xyes; then : 9919 9920$as_echo "#define HAVE___UDIVDI3 1" >>confdefs.h 9921 9922fi 9923 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __umoddi3 in -lgcc" >&5 9925$as_echo_n "checking for __umoddi3 in -lgcc... " >&6; } 9926if ${ac_cv_lib_gcc___umoddi3+:} false; then : 9927 $as_echo_n "(cached) " >&6 9928else 9929 ac_check_lib_save_LIBS=$LIBS 9930LIBS="-lgcc $LIBS" 9931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932/* end confdefs.h. */ 9933 9934/* Override any GCC internal prototype to avoid an error. 9935 Use char because int might match the return type of a GCC 9936 builtin and then its argument prototype would still apply. */ 9937#ifdef __cplusplus 9938extern "C" 9939#endif 9940char __umoddi3 (); 9941int 9942main () 9943{ 9944return __umoddi3 (); 9945 ; 9946 return 0; 9947} 9948_ACEOF 9949if ac_fn_c_try_link "$LINENO"; then : 9950 ac_cv_lib_gcc___umoddi3=yes 9951else 9952 ac_cv_lib_gcc___umoddi3=no 9953fi 9954rm -f core conftest.err conftest.$ac_objext \ 9955 conftest$ac_exeext conftest.$ac_ext 9956LIBS=$ac_check_lib_save_LIBS 9957fi 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___umoddi3" >&5 9959$as_echo "$ac_cv_lib_gcc___umoddi3" >&6; } 9960if test "x$ac_cv_lib_gcc___umoddi3" = xyes; then : 9961 9962$as_echo "#define HAVE___UMODDI3 1" >>confdefs.h 9963 9964fi 9965 9966 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __main in -lgcc" >&5 9968$as_echo_n "checking for __main in -lgcc... " >&6; } 9969if ${ac_cv_lib_gcc___main+:} false; then : 9970 $as_echo_n "(cached) " >&6 9971else 9972 ac_check_lib_save_LIBS=$LIBS 9973LIBS="-lgcc $LIBS" 9974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9975/* end confdefs.h. */ 9976 9977/* Override any GCC internal prototype to avoid an error. 9978 Use char because int might match the return type of a GCC 9979 builtin and then its argument prototype would still apply. */ 9980#ifdef __cplusplus 9981extern "C" 9982#endif 9983char __main (); 9984int 9985main () 9986{ 9987return __main (); 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992if ac_fn_c_try_link "$LINENO"; then : 9993 ac_cv_lib_gcc___main=yes 9994else 9995 ac_cv_lib_gcc___main=no 9996fi 9997rm -f core conftest.err conftest.$ac_objext \ 9998 conftest$ac_exeext conftest.$ac_ext 9999LIBS=$ac_check_lib_save_LIBS 10000fi 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___main" >&5 10002$as_echo "$ac_cv_lib_gcc___main" >&6; } 10003if test "x$ac_cv_lib_gcc___main" = xyes; then : 10004 10005$as_echo "#define HAVE___MAIN 1" >>confdefs.h 10006 10007fi 10008 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cmpdi2 in -lgcc" >&5 10010$as_echo_n "checking for __cmpdi2 in -lgcc... " >&6; } 10011if ${ac_cv_lib_gcc___cmpdi2+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 ac_check_lib_save_LIBS=$LIBS 10015LIBS="-lgcc $LIBS" 10016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018 10019/* Override any GCC internal prototype to avoid an error. 10020 Use char because int might match the return type of a GCC 10021 builtin and then its argument prototype would still apply. */ 10022#ifdef __cplusplus 10023extern "C" 10024#endif 10025char __cmpdi2 (); 10026int 10027main () 10028{ 10029return __cmpdi2 (); 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034if ac_fn_c_try_link "$LINENO"; then : 10035 ac_cv_lib_gcc___cmpdi2=yes 10036else 10037 ac_cv_lib_gcc___cmpdi2=no 10038fi 10039rm -f core conftest.err conftest.$ac_objext \ 10040 conftest$ac_exeext conftest.$ac_ext 10041LIBS=$ac_check_lib_save_LIBS 10042fi 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___cmpdi2" >&5 10044$as_echo "$ac_cv_lib_gcc___cmpdi2" >&6; } 10045if test "x$ac_cv_lib_gcc___cmpdi2" = xyes; then : 10046 10047$as_echo "#define HAVE___CMPDI2 1" >>confdefs.h 10048 10049fi 10050 10051fi 10052 10053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5 10054$as_echo_n "checking for GCC atomic builtins... " >&6; } 10055ac_ext=cpp 10056ac_cpp='$CXXCPP $CPPFLAGS' 10057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10060 10061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063 10064 10065 int main() { 10066 volatile unsigned long val = 1; 10067 __sync_synchronize(); 10068 __sync_val_compare_and_swap(&val, 1, 0); 10069 __sync_add_and_fetch(&val, 1); 10070 __sync_sub_and_fetch(&val, 1); 10071 return 0; 10072 } 10073 10074 10075_ACEOF 10076if ac_fn_cxx_try_link "$LINENO"; then : 10077 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10079$as_echo "yes" >&6; } 10080 10081$as_echo "#define LLVM_HAS_ATOMICS 1" >>confdefs.h 10082 10083 10084else 10085 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10087$as_echo "no" >&6; } 10088 10089$as_echo "#define LLVM_HAS_ATOMICS 0" >>confdefs.h 10090 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 10092$as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 10093 10094fi 10095rm -f core conftest.err conftest.$ac_objext \ 10096 conftest$ac_exeext conftest.$ac_ext 10097ac_ext=c 10098ac_cpp='$CPP $CPPFLAGS' 10099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10101ac_compiler_gnu=$ac_cv_c_compiler_gnu 10102 10103 10104ac_ext=cpp 10105ac_cpp='$CXXCPP $CPPFLAGS' 10106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10109 10110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10111/* end confdefs.h. */ 10112 10113 10114#include <type_traits> 10115struct T { int val; }; 10116static_assert(std::is_trivially_copyable<T>::value, "ok"); 10117int main() { return 0; } 10118 10119 10120_ACEOF 10121if ac_fn_cxx_try_link "$LINENO"; then : 10122 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10124$as_echo "yes" >&6; } 10125 10126$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1" >>confdefs.h 10127 10128 10129else 10130 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10132$as_echo "no" >&6; } 10133 10134$as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 0" >>confdefs.h 10135 10136 10137fi 10138rm -f core conftest.err conftest.$ac_objext \ 10139 conftest$ac_exeext conftest.$ac_ext 10140ac_ext=c 10141ac_cpp='$CPP $CPPFLAGS' 10142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10144ac_compiler_gnu=$ac_cv_c_compiler_gnu 10145 10146 10147 10148if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5 10150$as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; } 10151if ${llvm_cv_linux_mixed+:} false; then : 10152 $as_echo_n "(cached) " >&6 10153else 10154 ac_ext=c 10155ac_cpp='$CPP $CPPFLAGS' 10156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10158ac_compiler_gnu=$ac_cv_c_compiler_gnu 10159 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162#ifndef __x86_64__ 10163 error: Not x86-64 even if uname says so! 10164 #endif 10165 10166int 10167main () 10168{ 10169 10170 ; 10171 return 0; 10172} 10173_ACEOF 10174if ac_fn_c_try_compile "$LINENO"; then : 10175 llvm_cv_linux_mixed=no 10176else 10177 llvm_cv_linux_mixed=yes 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10180 ac_ext=c 10181ac_cpp='$CPP $CPPFLAGS' 10182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10184ac_compiler_gnu=$ac_cv_c_compiler_gnu 10185 10186 10187fi 10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5 10189$as_echo "$llvm_cv_linux_mixed" >&6; } 10190 10191 if test "$llvm_cv_linux_mixed" = "yes"; then 10192 llvm_cv_target_arch="x86" 10193 ARCH="x86" 10194 fi 10195fi 10196 10197SHLIBEXT=$llvm_shlib_ext 10198 10199 10200if test "${prefix}" = "NONE" ; then 10201 prefix="/usr/local" 10202fi 10203eval LLVM_PREFIX="${prefix}"; 10204 10205 10206cat >>confdefs.h <<_ACEOF 10207#define LLVM_PREFIX "$LLVM_PREFIX" 10208_ACEOF 10209 10210 10211cat >>confdefs.h <<_ACEOF 10212#define LLVM_HOST_TRIPLE "$host" 10213_ACEOF 10214 10215 10216cat >>confdefs.h <<_ACEOF 10217#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 10218_ACEOF 10219 10220 10221if test "$BINDINGS_TO_BUILD" = auto ; then 10222 BINDINGS_TO_BUILD="" 10223 if test "x$OCAMLFIND" != x ; then 10224 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 10225 fi 10226 if test "x$GO" != x ; then 10227 if $GO run ${srcdir}/bindings/go/conftest.go ; then 10228 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD" 10229 fi 10230 fi 10231fi 10232BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 10233 10234 10235binding_prereqs_failed=0 10236for a_binding in $BINDINGS_TO_BUILD ; do 10237 case "$a_binding" in 10238 ocaml) 10239 if test "x$OCAMLFIND" = x ; then 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5 10241$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;} 10242 binding_prereqs_failed=1 10243 fi 10244 10245 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then 10246 HAVE_OCAMLOPT=1 10247 else 10248 HAVE_OCAMLOPT=0 10249 fi 10250 10251 10252 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5 10254$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;} 10255 binding_prereqs_failed=1 10256 fi 10257 10258 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then 10259 HAVE_OCAML_OUNIT=1 10260 else 10261 HAVE_OCAML_OUNIT=0 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5 10263$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;} 10264 fi 10265 10266 10267 if test "x$with_ocaml_libdir" != xauto ; then 10268 OCAML_LIBDIR=$with_ocaml_libdir 10269 10270 else 10271 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`" 10272 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 10273 then 10274 # ocaml stdlib is beneath our prefix; use stdlib 10275 OCAML_LIBDIR=$ocaml_stdlib 10276 10277 else 10278 # ocaml stdlib is outside our prefix; use libdir/ocaml 10279 OCAML_LIBDIR=${prefix}/lib/ocaml 10280 10281 fi 10282 fi 10283 ;; 10284 go) 10285 if test "x$GO" = x ; then 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5 10287$as_echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;} 10288 binding_prereqs_failed=1 10289 else 10290 if $GO run ${srcdir}/bindings/go/conftest.go ; then 10291 : 10292 else 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5 10294$as_echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;} 10295 binding_prereqs_failed=1 10296 fi 10297 fi 10298 ;; 10299 esac 10300done 10301if test "$binding_prereqs_failed" = 1 ; then 10302 as_fn_error $? "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5 10303fi 10304 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5 10306$as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; } 10307if ${llvm_cv_cxx_visibility_inlines_hidden+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 ac_ext=cpp 10311ac_cpp='$CXXCPP $CPPFLAGS' 10312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10315 10316 oldcxxflags="$CXXFLAGS" 10317 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320template <typename T> struct X { void __attribute__((noinline)) f() {} }; 10321int 10322main () 10323{ 10324X<int>().f(); 10325 ; 10326 return 0; 10327} 10328_ACEOF 10329if ac_fn_cxx_try_compile "$LINENO"; then : 10330 llvm_cv_cxx_visibility_inlines_hidden=yes 10331else 10332 llvm_cv_cxx_visibility_inlines_hidden=no 10333fi 10334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10335 CXXFLAGS="$oldcxxflags" 10336 ac_ext=c 10337ac_cpp='$CPP $CPPFLAGS' 10338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10340ac_compiler_gnu=$ac_cv_c_compiler_gnu 10341 10342 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 10345$as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 10346if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 10347 ENABLE_VISIBILITY_INLINES_HIDDEN=1 10348 10349else 10350 ENABLE_VISIBILITY_INLINES_HIDDEN=0 10351 10352fi 10353 10354 10355if test "$llvm_cv_link_use_r" = "yes" ; then 10356 RPATH="-Wl,-R" 10357else 10358 RPATH="-Wl,-rpath" 10359fi 10360 10361 10362if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 10363 RDYNAMIC="-rdynamic" 10364else 10365 RDYNAMIC="" 10366fi 10367 10368 10369 10370$as_echo "#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0" >>confdefs.h 10371 10372 10373cat >>confdefs.h <<_ACEOF 10374#define BACKTRACE_HEADER <execinfo.h> 10375_ACEOF 10376 10377 10378 10379$as_echo "#define LLVM_ENABLE_CRASH_DUMPS 0" >>confdefs.h 10380 10381 10382$as_echo "#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0" >>confdefs.h 10383 10384 10385 10386ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h include/llvm/Config/abi-breaking.h" 10387 10388 10389 10390 10391ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 10392 10393ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 10394 10395ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 10396 10397ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 10398 10399ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 10400 10401 10402if test "${clang_src_root}" = ""; then 10403 clang_src_root="$srcdir/tools/clang" 10404fi 10405if test -f ${clang_src_root}/README.txt; then 10406 ac_config_headers="$ac_config_headers include/clang/Config/config.h" 10407 10408fi 10409 10410cat >confcache <<\_ACEOF 10411# This file is a shell script that caches the results of configure 10412# tests run on this system so they can be shared between configure 10413# scripts and configure runs, see configure's option --config-cache. 10414# It is not useful on other systems. If it contains results you don't 10415# want to keep, you may remove or edit it. 10416# 10417# config.status only pays attention to the cache file if you give it 10418# the --recheck option to rerun configure. 10419# 10420# `ac_cv_env_foo' variables (set or unset) will be overridden when 10421# loading this file, other *unset* `ac_cv_foo' will be assigned the 10422# following values. 10423 10424_ACEOF 10425 10426# The following way of writing the cache mishandles newlines in values, 10427# but we know of no workaround that is simple, portable, and efficient. 10428# So, we kill variables containing newlines. 10429# Ultrix sh set writes to stderr and can't be redirected directly, 10430# and sets the high bit in the cache file unless we assign to the vars. 10431( 10432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10433 eval ac_val=\$$ac_var 10434 case $ac_val in #( 10435 *${as_nl}*) 10436 case $ac_var in #( 10437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10438$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10439 esac 10440 case $ac_var in #( 10441 _ | IFS | as_nl) ;; #( 10442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10443 *) { eval $ac_var=; unset $ac_var;} ;; 10444 esac ;; 10445 esac 10446 done 10447 10448 (set) 2>&1 | 10449 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10450 *${as_nl}ac_space=\ *) 10451 # `set' does not quote correctly, so add quotes: double-quote 10452 # substitution turns \\\\ into \\, and sed turns \\ into \. 10453 sed -n \ 10454 "s/'/'\\\\''/g; 10455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10456 ;; #( 10457 *) 10458 # `set' quotes correctly as required by POSIX, so do not add quotes. 10459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10460 ;; 10461 esac | 10462 sort 10463) | 10464 sed ' 10465 /^ac_cv_env_/b end 10466 t clear 10467 :clear 10468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10469 t end 10470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10471 :end' >>confcache 10472if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10473 if test -w "$cache_file"; then 10474 if test "x$cache_file" != "x/dev/null"; then 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10476$as_echo "$as_me: updating cache $cache_file" >&6;} 10477 if test ! -f "$cache_file" || test -h "$cache_file"; then 10478 cat confcache >"$cache_file" 10479 else 10480 case $cache_file in #( 10481 */* | ?:*) 10482 mv -f confcache "$cache_file"$$ && 10483 mv -f "$cache_file"$$ "$cache_file" ;; #( 10484 *) 10485 mv -f confcache "$cache_file" ;; 10486 esac 10487 fi 10488 fi 10489 else 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10491$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10492 fi 10493fi 10494rm -f confcache 10495 10496test "x$prefix" = xNONE && prefix=$ac_default_prefix 10497# Let make expand exec_prefix. 10498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10499 10500DEFS=-DHAVE_CONFIG_H 10501 10502ac_libobjs= 10503ac_ltlibobjs= 10504U= 10505for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10506 # 1. Remove the extension, and $U if already installed. 10507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10510 # will be set to the directory where LIBOBJS objects are built. 10511 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10512 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10513done 10514LIBOBJS=$ac_libobjs 10515 10516LTLIBOBJS=$ac_ltlibobjs 10517 10518 10519 10520: "${CONFIG_STATUS=./config.status}" 10521ac_write_fail=0 10522ac_clean_files_save=$ac_clean_files 10523ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10524{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10525$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10526as_write_fail=0 10527cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10528#! $SHELL 10529# Generated by $as_me. 10530# Run this file to recreate the current configuration. 10531# Compiler output produced by configure, useful for debugging 10532# configure, is in config.log if it exists. 10533 10534debug=false 10535ac_cs_recheck=false 10536ac_cs_silent=false 10537 10538SHELL=\${CONFIG_SHELL-$SHELL} 10539export SHELL 10540_ASEOF 10541cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10542## -------------------- ## 10543## M4sh Initialization. ## 10544## -------------------- ## 10545 10546# Be more Bourne compatible 10547DUALCASE=1; export DUALCASE # for MKS sh 10548if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10549 emulate sh 10550 NULLCMD=: 10551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10552 # is contrary to our usage. Disable this feature. 10553 alias -g '${1+"$@"}'='"$@"' 10554 setopt NO_GLOB_SUBST 10555else 10556 case `(set -o) 2>/dev/null` in #( 10557 *posix*) : 10558 set -o posix ;; #( 10559 *) : 10560 ;; 10561esac 10562fi 10563 10564 10565as_nl=' 10566' 10567export as_nl 10568# Printing a long string crashes Solaris 7 /usr/bin/printf. 10569as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10570as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10572# Prefer a ksh shell builtin over an external printf program on Solaris, 10573# but without wasting forks for bash or zsh. 10574if test -z "$BASH_VERSION$ZSH_VERSION" \ 10575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10576 as_echo='print -r --' 10577 as_echo_n='print -rn --' 10578elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10579 as_echo='printf %s\n' 10580 as_echo_n='printf %s' 10581else 10582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10584 as_echo_n='/usr/ucb/echo -n' 10585 else 10586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10587 as_echo_n_body='eval 10588 arg=$1; 10589 case $arg in #( 10590 *"$as_nl"*) 10591 expr "X$arg" : "X\\(.*\\)$as_nl"; 10592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10593 esac; 10594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10595 ' 10596 export as_echo_n_body 10597 as_echo_n='sh -c $as_echo_n_body as_echo' 10598 fi 10599 export as_echo_body 10600 as_echo='sh -c $as_echo_body as_echo' 10601fi 10602 10603# The user is always right. 10604if test "${PATH_SEPARATOR+set}" != set; then 10605 PATH_SEPARATOR=: 10606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10608 PATH_SEPARATOR=';' 10609 } 10610fi 10611 10612 10613# IFS 10614# We need space, tab and new line, in precisely that order. Quoting is 10615# there to prevent editors from complaining about space-tab. 10616# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10617# splitting by setting IFS to empty value.) 10618IFS=" "" $as_nl" 10619 10620# Find who we are. Look in the path if we contain no directory separator. 10621as_myself= 10622case $0 in #(( 10623 *[\\/]* ) as_myself=$0 ;; 10624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10625for as_dir in $PATH 10626do 10627 IFS=$as_save_IFS 10628 test -z "$as_dir" && as_dir=. 10629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10630 done 10631IFS=$as_save_IFS 10632 10633 ;; 10634esac 10635# We did not find ourselves, most probably we were run as `sh COMMAND' 10636# in which case we are not to be found in the path. 10637if test "x$as_myself" = x; then 10638 as_myself=$0 10639fi 10640if test ! -f "$as_myself"; then 10641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10642 exit 1 10643fi 10644 10645# Unset variables that we do not need and which cause bugs (e.g. in 10646# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10647# suppresses any "Segmentation fault" message there. '((' could 10648# trigger a bug in pdksh 5.2.14. 10649for as_var in BASH_ENV ENV MAIL MAILPATH 10650do eval test x\${$as_var+set} = xset \ 10651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10652done 10653PS1='$ ' 10654PS2='> ' 10655PS4='+ ' 10656 10657# NLS nuisances. 10658LC_ALL=C 10659export LC_ALL 10660LANGUAGE=C 10661export LANGUAGE 10662 10663# CDPATH. 10664(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10665 10666 10667# as_fn_error STATUS ERROR [LINENO LOG_FD] 10668# ---------------------------------------- 10669# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10670# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10671# script with STATUS, using 1 if that was 0. 10672as_fn_error () 10673{ 10674 as_status=$1; test $as_status -eq 0 && as_status=1 10675 if test "$4"; then 10676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10678 fi 10679 $as_echo "$as_me: error: $2" >&2 10680 as_fn_exit $as_status 10681} # as_fn_error 10682 10683 10684# as_fn_set_status STATUS 10685# ----------------------- 10686# Set $? to STATUS, without forking. 10687as_fn_set_status () 10688{ 10689 return $1 10690} # as_fn_set_status 10691 10692# as_fn_exit STATUS 10693# ----------------- 10694# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10695as_fn_exit () 10696{ 10697 set +e 10698 as_fn_set_status $1 10699 exit $1 10700} # as_fn_exit 10701 10702# as_fn_unset VAR 10703# --------------- 10704# Portably unset VAR. 10705as_fn_unset () 10706{ 10707 { eval $1=; unset $1;} 10708} 10709as_unset=as_fn_unset 10710# as_fn_append VAR VALUE 10711# ---------------------- 10712# Append the text in VALUE to the end of the definition contained in VAR. Take 10713# advantage of any shell optimizations that allow amortized linear growth over 10714# repeated appends, instead of the typical quadratic growth present in naive 10715# implementations. 10716if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10717 eval 'as_fn_append () 10718 { 10719 eval $1+=\$2 10720 }' 10721else 10722 as_fn_append () 10723 { 10724 eval $1=\$$1\$2 10725 } 10726fi # as_fn_append 10727 10728# as_fn_arith ARG... 10729# ------------------ 10730# Perform arithmetic evaluation on the ARGs, and store the result in the 10731# global $as_val. Take advantage of shells that can avoid forks. The arguments 10732# must be portable across $(()) and expr. 10733if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10734 eval 'as_fn_arith () 10735 { 10736 as_val=$(( $* )) 10737 }' 10738else 10739 as_fn_arith () 10740 { 10741 as_val=`expr "$@" || test $? -eq 1` 10742 } 10743fi # as_fn_arith 10744 10745 10746if expr a : '\(a\)' >/dev/null 2>&1 && 10747 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10748 as_expr=expr 10749else 10750 as_expr=false 10751fi 10752 10753if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10754 as_basename=basename 10755else 10756 as_basename=false 10757fi 10758 10759if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10760 as_dirname=dirname 10761else 10762 as_dirname=false 10763fi 10764 10765as_me=`$as_basename -- "$0" || 10766$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10767 X"$0" : 'X\(//\)$' \| \ 10768 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10769$as_echo X/"$0" | 10770 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10771 s//\1/ 10772 q 10773 } 10774 /^X\/\(\/\/\)$/{ 10775 s//\1/ 10776 q 10777 } 10778 /^X\/\(\/\).*/{ 10779 s//\1/ 10780 q 10781 } 10782 s/.*/./; q'` 10783 10784# Avoid depending upon Character Ranges. 10785as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10786as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10787as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10788as_cr_digits='0123456789' 10789as_cr_alnum=$as_cr_Letters$as_cr_digits 10790 10791ECHO_C= ECHO_N= ECHO_T= 10792case `echo -n x` in #((((( 10793-n*) 10794 case `echo 'xy\c'` in 10795 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10796 xy) ECHO_C='\c';; 10797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10798 ECHO_T=' ';; 10799 esac;; 10800*) 10801 ECHO_N='-n';; 10802esac 10803 10804rm -f conf$$ conf$$.exe conf$$.file 10805if test -d conf$$.dir; then 10806 rm -f conf$$.dir/conf$$.file 10807else 10808 rm -f conf$$.dir 10809 mkdir conf$$.dir 2>/dev/null 10810fi 10811if (echo >conf$$.file) 2>/dev/null; then 10812 if ln -s conf$$.file conf$$ 2>/dev/null; then 10813 as_ln_s='ln -s' 10814 # ... but there are two gotchas: 10815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10817 # In both cases, we have to default to `cp -pR'. 10818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10819 as_ln_s='cp -pR' 10820 elif ln conf$$.file conf$$ 2>/dev/null; then 10821 as_ln_s=ln 10822 else 10823 as_ln_s='cp -pR' 10824 fi 10825else 10826 as_ln_s='cp -pR' 10827fi 10828rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10829rmdir conf$$.dir 2>/dev/null 10830 10831 10832# as_fn_mkdir_p 10833# ------------- 10834# Create "$as_dir" as a directory, including parents if necessary. 10835as_fn_mkdir_p () 10836{ 10837 10838 case $as_dir in #( 10839 -*) as_dir=./$as_dir;; 10840 esac 10841 test -d "$as_dir" || eval $as_mkdir_p || { 10842 as_dirs= 10843 while :; do 10844 case $as_dir in #( 10845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10846 *) as_qdir=$as_dir;; 10847 esac 10848 as_dirs="'$as_qdir' $as_dirs" 10849 as_dir=`$as_dirname -- "$as_dir" || 10850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10851 X"$as_dir" : 'X\(//\)[^/]' \| \ 10852 X"$as_dir" : 'X\(//\)$' \| \ 10853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10854$as_echo X"$as_dir" | 10855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10856 s//\1/ 10857 q 10858 } 10859 /^X\(\/\/\)[^/].*/{ 10860 s//\1/ 10861 q 10862 } 10863 /^X\(\/\/\)$/{ 10864 s//\1/ 10865 q 10866 } 10867 /^X\(\/\).*/{ 10868 s//\1/ 10869 q 10870 } 10871 s/.*/./; q'` 10872 test -d "$as_dir" && break 10873 done 10874 test -z "$as_dirs" || eval "mkdir $as_dirs" 10875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10876 10877 10878} # as_fn_mkdir_p 10879if mkdir -p . 2>/dev/null; then 10880 as_mkdir_p='mkdir -p "$as_dir"' 10881else 10882 test -d ./-p && rmdir ./-p 10883 as_mkdir_p=false 10884fi 10885 10886 10887# as_fn_executable_p FILE 10888# ----------------------- 10889# Test if FILE is an executable regular file. 10890as_fn_executable_p () 10891{ 10892 test -f "$1" && test -x "$1" 10893} # as_fn_executable_p 10894as_test_x='test -x' 10895as_executable_p=as_fn_executable_p 10896 10897# Sed expression to map a string onto a valid CPP name. 10898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10899 10900# Sed expression to map a string onto a valid variable name. 10901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10902 10903 10904exec 6>&1 10905## ----------------------------------- ## 10906## Main body of $CONFIG_STATUS script. ## 10907## ----------------------------------- ## 10908_ASEOF 10909test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10910 10911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10912# Save the log message, to keep $0 and so on meaningful, and to 10913# report actual input values of CONFIG_FILES etc. instead of their 10914# values after options handling. 10915ac_log=" 10916This file was extended by LLVM $as_me 4.0.0svn, which was 10917generated by GNU Autoconf 2.69. Invocation command line was 10918 10919 CONFIG_FILES = $CONFIG_FILES 10920 CONFIG_HEADERS = $CONFIG_HEADERS 10921 CONFIG_LINKS = $CONFIG_LINKS 10922 CONFIG_COMMANDS = $CONFIG_COMMANDS 10923 $ $0 $@ 10924 10925on `(hostname || uname -n) 2>/dev/null | sed 1q` 10926" 10927 10928_ACEOF 10929 10930case $ac_config_files in *" 10931"*) set x $ac_config_files; shift; ac_config_files=$*;; 10932esac 10933 10934case $ac_config_headers in *" 10935"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10936esac 10937 10938 10939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10940# Files that config.status was made for. 10941config_files="$ac_config_files" 10942config_headers="$ac_config_headers" 10943 10944_ACEOF 10945 10946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10947ac_cs_usage="\ 10948\`$as_me' instantiates files and other configuration actions 10949from templates according to the current configuration. Unless the files 10950and actions are specified as TAGs, all are instantiated by default. 10951 10952Usage: $0 [OPTION]... [TAG]... 10953 10954 -h, --help print this help, then exit 10955 -V, --version print version number and configuration settings, then exit 10956 --config print configuration, then exit 10957 -q, --quiet, --silent 10958 do not print progress messages 10959 -d, --debug don't remove temporary files 10960 --recheck update $as_me by reconfiguring in the same conditions 10961 --file=FILE[:TEMPLATE] 10962 instantiate the configuration file FILE 10963 --header=FILE[:TEMPLATE] 10964 instantiate the configuration header FILE 10965 10966Configuration files: 10967$config_files 10968 10969Configuration headers: 10970$config_headers 10971 10972Report bugs to <http://llvm.org/bugs/>." 10973 10974_ACEOF 10975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10976ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10977ac_cs_version="\\ 10978LLVM config.status 4.0.0svn 10979configured by $0, generated by GNU Autoconf 2.69, 10980 with options \\"\$ac_cs_config\\" 10981 10982Copyright (C) 2012 Free Software Foundation, Inc. 10983This config.status script is free software; the Free Software Foundation 10984gives unlimited permission to copy, distribute and modify it." 10985 10986ac_pwd='$ac_pwd' 10987srcdir='$srcdir' 10988INSTALL='$INSTALL' 10989test -n "\$AWK" || AWK=awk 10990_ACEOF 10991 10992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10993# The default lists apply if the user does not specify any file. 10994ac_need_defaults=: 10995while test $# != 0 10996do 10997 case $1 in 10998 --*=?*) 10999 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11001 ac_shift=: 11002 ;; 11003 --*=) 11004 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11005 ac_optarg= 11006 ac_shift=: 11007 ;; 11008 *) 11009 ac_option=$1 11010 ac_optarg=$2 11011 ac_shift=shift 11012 ;; 11013 esac 11014 11015 case $ac_option in 11016 # Handling of the options. 11017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11018 ac_cs_recheck=: ;; 11019 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11020 $as_echo "$ac_cs_version"; exit ;; 11021 --config | --confi | --conf | --con | --co | --c ) 11022 $as_echo "$ac_cs_config"; exit ;; 11023 --debug | --debu | --deb | --de | --d | -d ) 11024 debug=: ;; 11025 --file | --fil | --fi | --f ) 11026 $ac_shift 11027 case $ac_optarg in 11028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11029 '') as_fn_error $? "missing file argument" ;; 11030 esac 11031 as_fn_append CONFIG_FILES " '$ac_optarg'" 11032 ac_need_defaults=false;; 11033 --header | --heade | --head | --hea ) 11034 $ac_shift 11035 case $ac_optarg in 11036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11037 esac 11038 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11039 ac_need_defaults=false;; 11040 --he | --h) 11041 # Conflict between --help and --header 11042 as_fn_error $? "ambiguous option: \`$1' 11043Try \`$0 --help' for more information.";; 11044 --help | --hel | -h ) 11045 $as_echo "$ac_cs_usage"; exit ;; 11046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11047 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11048 ac_cs_silent=: ;; 11049 11050 # This is an error. 11051 -*) as_fn_error $? "unrecognized option: \`$1' 11052Try \`$0 --help' for more information." ;; 11053 11054 *) as_fn_append ac_config_targets " $1" 11055 ac_need_defaults=false ;; 11056 11057 esac 11058 shift 11059done 11060 11061ac_configure_extra_args= 11062 11063if $ac_cs_silent; then 11064 exec 6>/dev/null 11065 ac_configure_extra_args="$ac_configure_extra_args --silent" 11066fi 11067 11068_ACEOF 11069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11070if \$ac_cs_recheck; then 11071 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11072 shift 11073 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11074 CONFIG_SHELL='$SHELL' 11075 export CONFIG_SHELL 11076 exec "\$@" 11077fi 11078 11079_ACEOF 11080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11081exec 5>>config.log 11082{ 11083 echo 11084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11085## Running $as_me. ## 11086_ASBOX 11087 $as_echo "$ac_log" 11088} >&5 11089 11090_ACEOF 11091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11092_ACEOF 11093 11094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11095 11096# Handling of arguments. 11097for ac_config_target in $ac_config_targets 11098do 11099 case $ac_config_target in 11100 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 11101 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 11102 "include/llvm/Config/abi-breaking.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/abi-breaking.h" ;; 11103 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 11104 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 11105 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 11106 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 11107 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 11108 "include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/clang/Config/config.h" ;; 11109 11110 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11111 esac 11112done 11113 11114 11115# If the user did not use the arguments to specify the items to instantiate, 11116# then the envvar interface is used. Set only those that are not. 11117# We use the long form for the default assignment because of an extremely 11118# bizarre bug on SunOS 4.1.3. 11119if $ac_need_defaults; then 11120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11122fi 11123 11124# Have a temporary directory for convenience. Make it in the build tree 11125# simply because there is no reason against having it here, and in addition, 11126# creating and moving files from /tmp can sometimes cause problems. 11127# Hook for its removal unless debugging. 11128# Note that there is a small window in which the directory will not be cleaned: 11129# after its creation but before its name has been assigned to `$tmp'. 11130$debug || 11131{ 11132 tmp= ac_tmp= 11133 trap 'exit_status=$? 11134 : "${ac_tmp:=$tmp}" 11135 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11136' 0 11137 trap 'as_fn_exit 1' 1 2 13 15 11138} 11139# Create a (secure) tmp directory for tmp files. 11140 11141{ 11142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11143 test -d "$tmp" 11144} || 11145{ 11146 tmp=./conf$$-$RANDOM 11147 (umask 077 && mkdir "$tmp") 11148} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11149ac_tmp=$tmp 11150 11151# Set up the scripts for CONFIG_FILES section. 11152# No need to generate them if there are no CONFIG_FILES. 11153# This happens for instance with `./config.status config.h'. 11154if test -n "$CONFIG_FILES"; then 11155 11156 11157ac_cr=`echo X | tr X '\015'` 11158# On cygwin, bash can eat \r inside `` if the user requested igncr. 11159# But we know of no other shell where ac_cr would be empty at this 11160# point, so we can use a bashism as a fallback. 11161if test "x$ac_cr" = x; then 11162 eval ac_cr=\$\'\\r\' 11163fi 11164ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11165if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11166 ac_cs_awk_cr='\\r' 11167else 11168 ac_cs_awk_cr=$ac_cr 11169fi 11170 11171echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11172_ACEOF 11173 11174 11175{ 11176 echo "cat >conf$$subs.awk <<_ACEOF" && 11177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11178 echo "_ACEOF" 11179} >conf$$subs.sh || 11180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11181ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11182ac_delim='%!_!# ' 11183for ac_last_try in false false false false false :; do 11184 . ./conf$$subs.sh || 11185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11186 11187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11188 if test $ac_delim_n = $ac_delim_num; then 11189 break 11190 elif $ac_last_try; then 11191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11192 else 11193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11194 fi 11195done 11196rm -f conf$$subs.sh 11197 11198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11199cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11200_ACEOF 11201sed -n ' 11202h 11203s/^/S["/; s/!.*/"]=/ 11204p 11205g 11206s/^[^!]*!// 11207:repl 11208t repl 11209s/'"$ac_delim"'$// 11210t delim 11211:nl 11212h 11213s/\(.\{148\}\)..*/\1/ 11214t more1 11215s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11216p 11217n 11218b repl 11219:more1 11220s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11221p 11222g 11223s/.\{148\}// 11224t nl 11225:delim 11226h 11227s/\(.\{148\}\)..*/\1/ 11228t more2 11229s/["\\]/\\&/g; s/^/"/; s/$/"/ 11230p 11231b 11232:more2 11233s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11234p 11235g 11236s/.\{148\}// 11237t delim 11238' <conf$$subs.awk | sed ' 11239/^[^""]/{ 11240 N 11241 s/\n// 11242} 11243' >>$CONFIG_STATUS || ac_write_fail=1 11244rm -f conf$$subs.awk 11245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11246_ACAWK 11247cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11248 for (key in S) S_is_set[key] = 1 11249 FS = "" 11250 11251} 11252{ 11253 line = $ 0 11254 nfields = split(line, field, "@") 11255 substed = 0 11256 len = length(field[1]) 11257 for (i = 2; i < nfields; i++) { 11258 key = field[i] 11259 keylen = length(key) 11260 if (S_is_set[key]) { 11261 value = S[key] 11262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11263 len += length(value) + length(field[++i]) 11264 substed = 1 11265 } else 11266 len += 1 + keylen 11267 } 11268 11269 print line 11270} 11271 11272_ACAWK 11273_ACEOF 11274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11275if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11277else 11278 cat 11279fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11280 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11281_ACEOF 11282 11283# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11284# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11285# trailing colons and then remove the whole line if VPATH becomes empty 11286# (actually we leave an empty line to preserve line numbers). 11287if test "x$srcdir" = x.; then 11288 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11289h 11290s/// 11291s/^/:/ 11292s/[ ]*$/:/ 11293s/:\$(srcdir):/:/g 11294s/:\${srcdir}:/:/g 11295s/:@srcdir@:/:/g 11296s/^:*// 11297s/:*$// 11298x 11299s/\(=[ ]*\).*/\1/ 11300G 11301s/\n// 11302s/^[^=]*=[ ]*$// 11303}' 11304fi 11305 11306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11307fi # test -n "$CONFIG_FILES" 11308 11309# Set up the scripts for CONFIG_HEADERS section. 11310# No need to generate them if there are no CONFIG_HEADERS. 11311# This happens for instance with `./config.status Makefile'. 11312if test -n "$CONFIG_HEADERS"; then 11313cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11314BEGIN { 11315_ACEOF 11316 11317# Transform confdefs.h into an awk script `defines.awk', embedded as 11318# here-document in config.status, that substitutes the proper values into 11319# config.h.in to produce config.h. 11320 11321# Create a delimiter string that does not exist in confdefs.h, to ease 11322# handling of long lines. 11323ac_delim='%!_!# ' 11324for ac_last_try in false false :; do 11325 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11326 if test -z "$ac_tt"; then 11327 break 11328 elif $ac_last_try; then 11329 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11330 else 11331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11332 fi 11333done 11334 11335# For the awk script, D is an array of macro values keyed by name, 11336# likewise P contains macro parameters if any. Preserve backslash 11337# newline sequences. 11338 11339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11340sed -n ' 11341s/.\{148\}/&'"$ac_delim"'/g 11342t rset 11343:rset 11344s/^[ ]*#[ ]*define[ ][ ]*/ / 11345t def 11346d 11347:def 11348s/\\$// 11349t bsnl 11350s/["\\]/\\&/g 11351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11352D["\1"]=" \3"/p 11353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11354d 11355:bsnl 11356s/["\\]/\\&/g 11357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11358D["\1"]=" \3\\\\\\n"\\/p 11359t cont 11360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11361t cont 11362d 11363:cont 11364n 11365s/.\{148\}/&'"$ac_delim"'/g 11366t clear 11367:clear 11368s/\\$// 11369t bsnlc 11370s/["\\]/\\&/g; s/^/"/; s/$/"/p 11371d 11372:bsnlc 11373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11374b cont 11375' <confdefs.h | sed ' 11376s/'"$ac_delim"'/"\\\ 11377"/g' >>$CONFIG_STATUS || ac_write_fail=1 11378 11379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11380 for (key in D) D_is_set[key] = 1 11381 FS = "" 11382} 11383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11384 line = \$ 0 11385 split(line, arg, " ") 11386 if (arg[1] == "#") { 11387 defundef = arg[2] 11388 mac1 = arg[3] 11389 } else { 11390 defundef = substr(arg[1], 2) 11391 mac1 = arg[2] 11392 } 11393 split(mac1, mac2, "(") #) 11394 macro = mac2[1] 11395 prefix = substr(line, 1, index(line, defundef) - 1) 11396 if (D_is_set[macro]) { 11397 # Preserve the white space surrounding the "#". 11398 print prefix "define", macro P[macro] D[macro] 11399 next 11400 } else { 11401 # Replace #undef with comments. This is necessary, for example, 11402 # in the case of _POSIX_SOURCE, which is predefined and required 11403 # on some systems where configure will not decide to define it. 11404 if (defundef == "undef") { 11405 print "/*", prefix defundef, macro, "*/" 11406 next 11407 } 11408 } 11409} 11410{ print } 11411_ACAWK 11412_ACEOF 11413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11414 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11415fi # test -n "$CONFIG_HEADERS" 11416 11417 11418eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 11419shift 11420for ac_tag 11421do 11422 case $ac_tag in 11423 :[FHLC]) ac_mode=$ac_tag; continue;; 11424 esac 11425 case $ac_mode$ac_tag in 11426 :[FHL]*:*);; 11427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11428 :[FH]-) ac_tag=-:-;; 11429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11430 esac 11431 ac_save_IFS=$IFS 11432 IFS=: 11433 set x $ac_tag 11434 IFS=$ac_save_IFS 11435 shift 11436 ac_file=$1 11437 shift 11438 11439 case $ac_mode in 11440 :L) ac_source=$1;; 11441 :[FH]) 11442 ac_file_inputs= 11443 for ac_f 11444 do 11445 case $ac_f in 11446 -) ac_f="$ac_tmp/stdin";; 11447 *) # Look for the file first in the build tree, then in the source tree 11448 # (if the path is not absolute). The absolute path cannot be DOS-style, 11449 # because $ac_f cannot contain `:'. 11450 test -f "$ac_f" || 11451 case $ac_f in 11452 [\\/$]*) false;; 11453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11454 esac || 11455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11456 esac 11457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11458 as_fn_append ac_file_inputs " '$ac_f'" 11459 done 11460 11461 # Let's still pretend it is `configure' which instantiates (i.e., don't 11462 # use $as_me), people would be surprised to read: 11463 # /* config.h. Generated by config.status. */ 11464 configure_input='Generated from '` 11465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11466 `' by configure.' 11467 if test x"$ac_file" != x-; then 11468 configure_input="$ac_file. $configure_input" 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11470$as_echo "$as_me: creating $ac_file" >&6;} 11471 fi 11472 # Neutralize special characters interpreted by sed in replacement strings. 11473 case $configure_input in #( 11474 *\&* | *\|* | *\\* ) 11475 ac_sed_conf_input=`$as_echo "$configure_input" | 11476 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11477 *) ac_sed_conf_input=$configure_input;; 11478 esac 11479 11480 case $ac_tag in 11481 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11483 esac 11484 ;; 11485 esac 11486 11487 ac_dir=`$as_dirname -- "$ac_file" || 11488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11489 X"$ac_file" : 'X\(//\)[^/]' \| \ 11490 X"$ac_file" : 'X\(//\)$' \| \ 11491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11492$as_echo X"$ac_file" | 11493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11494 s//\1/ 11495 q 11496 } 11497 /^X\(\/\/\)[^/].*/{ 11498 s//\1/ 11499 q 11500 } 11501 /^X\(\/\/\)$/{ 11502 s//\1/ 11503 q 11504 } 11505 /^X\(\/\).*/{ 11506 s//\1/ 11507 q 11508 } 11509 s/.*/./; q'` 11510 as_dir="$ac_dir"; as_fn_mkdir_p 11511 ac_builddir=. 11512 11513case "$ac_dir" in 11514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11515*) 11516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11517 # A ".." for each directory in $ac_dir_suffix. 11518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11519 case $ac_top_builddir_sub in 11520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11522 esac ;; 11523esac 11524ac_abs_top_builddir=$ac_pwd 11525ac_abs_builddir=$ac_pwd$ac_dir_suffix 11526# for backward compatibility: 11527ac_top_builddir=$ac_top_build_prefix 11528 11529case $srcdir in 11530 .) # We are building in place. 11531 ac_srcdir=. 11532 ac_top_srcdir=$ac_top_builddir_sub 11533 ac_abs_top_srcdir=$ac_pwd ;; 11534 [\\/]* | ?:[\\/]* ) # Absolute name. 11535 ac_srcdir=$srcdir$ac_dir_suffix; 11536 ac_top_srcdir=$srcdir 11537 ac_abs_top_srcdir=$srcdir ;; 11538 *) # Relative name. 11539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11540 ac_top_srcdir=$ac_top_build_prefix$srcdir 11541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11542esac 11543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11544 11545 11546 case $ac_mode in 11547 :F) 11548 # 11549 # CONFIG_FILE 11550 # 11551 11552 case $INSTALL in 11553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11555 esac 11556_ACEOF 11557 11558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11559# If the template does not know about datarootdir, expand it. 11560# FIXME: This hack should be removed a few years after 2.60. 11561ac_datarootdir_hack=; ac_datarootdir_seen= 11562ac_sed_dataroot=' 11563/datarootdir/ { 11564 p 11565 q 11566} 11567/@datadir@/p 11568/@docdir@/p 11569/@infodir@/p 11570/@localedir@/p 11571/@mandir@/p' 11572case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11573*datarootdir*) ac_datarootdir_seen=yes;; 11574*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11576$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11577_ACEOF 11578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11579 ac_datarootdir_hack=' 11580 s&@datadir@&$datadir&g 11581 s&@docdir@&$docdir&g 11582 s&@infodir@&$infodir&g 11583 s&@localedir@&$localedir&g 11584 s&@mandir@&$mandir&g 11585 s&\\\${datarootdir}&$datarootdir&g' ;; 11586esac 11587_ACEOF 11588 11589# Neutralize VPATH when `$srcdir' = `.'. 11590# Shell code in configure.ac might set extrasub. 11591# FIXME: do we really want to maintain this feature? 11592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11593ac_sed_extra="$ac_vpsub 11594$extrasub 11595_ACEOF 11596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11597:t 11598/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11599s|@configure_input@|$ac_sed_conf_input|;t t 11600s&@top_builddir@&$ac_top_builddir_sub&;t t 11601s&@top_build_prefix@&$ac_top_build_prefix&;t t 11602s&@srcdir@&$ac_srcdir&;t t 11603s&@abs_srcdir@&$ac_abs_srcdir&;t t 11604s&@top_srcdir@&$ac_top_srcdir&;t t 11605s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11606s&@builddir@&$ac_builddir&;t t 11607s&@abs_builddir@&$ac_abs_builddir&;t t 11608s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11609s&@INSTALL@&$ac_INSTALL&;t t 11610$ac_datarootdir_hack 11611" 11612eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11613 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11614 11615test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11616 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11618 "$ac_tmp/out"`; test -z "$ac_out"; } && 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11620which seems to be undefined. Please make sure it is defined" >&5 11621$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11622which seems to be undefined. Please make sure it is defined" >&2;} 11623 11624 rm -f "$ac_tmp/stdin" 11625 case $ac_file in 11626 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11627 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11628 esac \ 11629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11630 ;; 11631 :H) 11632 # 11633 # CONFIG_HEADER 11634 # 11635 if test x"$ac_file" != x-; then 11636 { 11637 $as_echo "/* $configure_input */" \ 11638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11639 } >"$ac_tmp/config.h" \ 11640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11641 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11643$as_echo "$as_me: $ac_file is unchanged" >&6;} 11644 else 11645 rm -f "$ac_file" 11646 mv "$ac_tmp/config.h" "$ac_file" \ 11647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11648 fi 11649 else 11650 $as_echo "/* $configure_input */" \ 11651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11652 || as_fn_error $? "could not create -" "$LINENO" 5 11653 fi 11654 ;; 11655 11656 11657 esac 11658 11659done # for ac_tag 11660 11661 11662as_fn_exit 0 11663_ACEOF 11664ac_clean_files=$ac_clean_files_save 11665 11666test $ac_write_fail = 0 || 11667 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11668 11669 11670# configure is writing to config.log, and then calls config.status. 11671# config.status does its own redirection, appending to config.log. 11672# Unfortunately, on DOS this fails, as config.log is still kept open 11673# by configure, so config.status won't be able to write to it; its 11674# output is simply discarded. So we exec the FD to /dev/null, 11675# effectively closing config.log, so it can be properly (re)opened and 11676# appended to by config.status. When coming back to configure, we 11677# need to make the FD available again. 11678if test "$no_create" != yes; then 11679 ac_cs_success=: 11680 ac_config_status_args= 11681 test "$silent" = yes && 11682 ac_config_status_args="$ac_config_status_args --quiet" 11683 exec 5>/dev/null 11684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11685 exec 5>>config.log 11686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11687 # would make configure fail if this is the last instruction. 11688 $ac_cs_success || as_fn_exit 1 11689fi 11690 11691# 11692# CONFIG_SUBDIRS section. 11693# 11694if test "$no_recursion" != yes; then 11695 11696 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 11697 # so they do not pile up. 11698 ac_sub_configure_args= 11699 ac_prev= 11700 eval "set x $ac_configure_args" 11701 shift 11702 for ac_arg 11703 do 11704 if test -n "$ac_prev"; then 11705 ac_prev= 11706 continue 11707 fi 11708 case $ac_arg in 11709 -cache-file | --cache-file | --cache-fil | --cache-fi \ 11710 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11711 ac_prev=cache_file ;; 11712 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 11713 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 11714 | --c=*) 11715 ;; 11716 --config-cache | -C) 11717 ;; 11718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11719 ac_prev=srcdir ;; 11720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11721 ;; 11722 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 11723 ac_prev=prefix ;; 11724 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 11725 ;; 11726 --disable-option-checking) 11727 ;; 11728 *) 11729 case $ac_arg in 11730 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 11731 esac 11732 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 11733 esac 11734 done 11735 11736 # Always prepend --prefix to ensure using the same prefix 11737 # in subdir configurations. 11738 ac_arg="--prefix=$prefix" 11739 case $ac_arg in 11740 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 11741 esac 11742 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 11743 11744 # Pass --silent 11745 if test "$silent" = yes; then 11746 ac_sub_configure_args="--silent $ac_sub_configure_args" 11747 fi 11748 11749 # Always prepend --disable-option-checking to silence warnings, since 11750 # different subdirs can have different --enable and --with options. 11751 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 11752 11753 ac_popdir=`pwd` 11754 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 11755 11756 # Do not complain, so a configure script can configure whichever 11757 # parts of a large source tree are present. 11758 test -d "$srcdir/$ac_dir" || continue 11759 11760 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 11761 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 11762 $as_echo "$ac_msg" >&6 11763 as_dir="$ac_dir"; as_fn_mkdir_p 11764 ac_builddir=. 11765 11766case "$ac_dir" in 11767.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11768*) 11769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11770 # A ".." for each directory in $ac_dir_suffix. 11771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11772 case $ac_top_builddir_sub in 11773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11775 esac ;; 11776esac 11777ac_abs_top_builddir=$ac_pwd 11778ac_abs_builddir=$ac_pwd$ac_dir_suffix 11779# for backward compatibility: 11780ac_top_builddir=$ac_top_build_prefix 11781 11782case $srcdir in 11783 .) # We are building in place. 11784 ac_srcdir=. 11785 ac_top_srcdir=$ac_top_builddir_sub 11786 ac_abs_top_srcdir=$ac_pwd ;; 11787 [\\/]* | ?:[\\/]* ) # Absolute name. 11788 ac_srcdir=$srcdir$ac_dir_suffix; 11789 ac_top_srcdir=$srcdir 11790 ac_abs_top_srcdir=$srcdir ;; 11791 *) # Relative name. 11792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11793 ac_top_srcdir=$ac_top_build_prefix$srcdir 11794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11795esac 11796ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11797 11798 11799 cd "$ac_dir" 11800 11801 # Check for guested configure; otherwise get Cygnus style configure. 11802 if test -f "$ac_srcdir/configure.gnu"; then 11803 ac_sub_configure=$ac_srcdir/configure.gnu 11804 elif test -f "$ac_srcdir/configure"; then 11805 ac_sub_configure=$ac_srcdir/configure 11806 elif test -f "$ac_srcdir/configure.in"; then 11807 # This should be Cygnus configure. 11808 ac_sub_configure=$ac_aux_dir/configure 11809 else 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 11811$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 11812 ac_sub_configure= 11813 fi 11814 11815 # The recursion is here. 11816 if test -n "$ac_sub_configure"; then 11817 # Make the cache file name correct relative to the subdirectory. 11818 case $cache_file in 11819 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 11820 *) # Relative name. 11821 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 11822 esac 11823 11824 { $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 11825$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 11826 # The eval makes quoting arguments work. 11827 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 11828 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 11829 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 11830 fi 11831 11832 cd "$ac_popdir" 11833 done 11834fi 11835if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11837$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11838fi 11839 11840