Belatedly document r85295 and r85330.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for llvm 2.7svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 #
16 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24   emulate sh
25   NULLCMD=:
26   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27   # is contrary to our usage.  Disable this feature.
28   alias -g '${1+"$@"}'='"$@"'
29   setopt NO_GLOB_SUBST
30 else
31   case `(set -o) 2>/dev/null` in #(
32   *posix*) :
33     set -o posix ;; #(
34   *) :
35      ;;
36 esac
37 fi
38
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='print -r --'
52   as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54   as_echo='printf %s\n'
55   as_echo_n='printf %s'
56 else
57   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59     as_echo_n='/usr/ucb/echo -n'
60   else
61     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62     as_echo_n_body='eval
63       arg=$1;
64       case $arg in #(
65       *"$as_nl"*)
66         expr "X$arg" : "X\\(.*\\)$as_nl";
67         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68       esac;
69       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70     '
71     export as_echo_n_body
72     as_echo_n='sh -c $as_echo_n_body as_echo'
73   fi
74   export as_echo_body
75   as_echo='sh -c $as_echo_body as_echo'
76 fi
77
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80   PATH_SEPARATOR=:
81   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83       PATH_SEPARATOR=';'
84   }
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order.  Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" ""        $as_nl"
94
95 # Find who we are.  Look in the path if we contain no directory separator.
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in #(
150   *posix*) :
151     set -o posix ;; #(
152   *) :
153      ;;
154 esac
155 fi
156 "
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171   exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179   if (eval "$as_required") 2>/dev/null; then :
180   as_have_required=yes
181 else
182   as_have_required=no
183 fi
184   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186 else
187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 do
191   IFS=$as_save_IFS
192   test -z "$as_dir" && as_dir=.
193   as_found=:
194   case $as_dir in #(
195          /*)
196            for as_base in sh bash ksh sh5; do
197              # Try only shells that exist, to save several forks.
198              as_shell=$as_dir/$as_base
199              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   CONFIG_SHELL=$as_shell as_have_required=yes
202                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   break 2
204 fi
205 fi
206            done;;
207        esac
208   as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212   CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
215
216
217       if test "x$CONFIG_SHELL" != x; then :
218   # We cannot yet assume a decent shell, so we have to provide a
219         # neutralization value for shells without unset; and this also
220         # works around shells that cannot unset nonexistent variables.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 fi
227
228     if test x$as_have_required = xno; then :
229   $as_echo "$0: This script requires a shell more modern than all"
230   $as_echo "$0: the shells that I found on your system."
231   if test x${ZSH_VERSION+set} = xset ; then
232     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234   else
235     $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: llvmbugs@cs.uiuc.edu about your system, including any
237 $0: error possibly output before this message. Then install
238 $0: a modern shell, or manually run the script under such a
239 $0: shell if you do have one."
240   fi
241   exit 1
242 fi
243 fi
244 fi
245 SHELL=${CONFIG_SHELL-/bin/sh}
246 export SHELL
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
250
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
254 # as_fn_unset VAR
255 # ---------------
256 # Portably unset VAR.
257 as_fn_unset ()
258 {
259   { eval $1=; unset $1;}
260 }
261 as_unset=as_fn_unset
262
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
266 as_fn_set_status ()
267 {
268   return $1
269 } # as_fn_set_status
270
271 # as_fn_exit STATUS
272 # -----------------
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274 as_fn_exit ()
275 {
276   set +e
277   as_fn_set_status $1
278   exit $1
279 } # as_fn_exit
280
281 # as_fn_mkdir_p
282 # -------------
283 # Create "$as_dir" as a directory, including parents if necessary.
284 as_fn_mkdir_p ()
285 {
286
287   case $as_dir in #(
288   -*) as_dir=./$as_dir;;
289   esac
290   test -d "$as_dir" || eval $as_mkdir_p || {
291     as_dirs=
292     while :; do
293       case $as_dir in #(
294       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295       *) as_qdir=$as_dir;;
296       esac
297       as_dirs="'$as_qdir' $as_dirs"
298       as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300          X"$as_dir" : 'X\(//\)[^/]' \| \
301          X"$as_dir" : 'X\(//\)$' \| \
302          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)[^/].*/{
309             s//\1/
310             q
311           }
312           /^X\(\/\/\)$/{
313             s//\1/
314             q
315           }
316           /^X\(\/\).*/{
317             s//\1/
318             q
319           }
320           s/.*/./; q'`
321       test -d "$as_dir" && break
322     done
323     test -z "$as_dirs" || eval "mkdir $as_dirs"
324   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325
326
327 } # as_fn_mkdir_p
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
333 # implementations.
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335   eval 'as_fn_append ()
336   {
337     eval $1+=\$2
338   }'
339 else
340   as_fn_append ()
341   {
342     eval $1=\$$1\$2
343   }
344 fi # as_fn_append
345
346 # as_fn_arith ARG...
347 # ------------------
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352   eval 'as_fn_arith ()
353   {
354     as_val=$(( $* ))
355   }'
356 else
357   as_fn_arith ()
358   {
359     as_val=`expr "$@" || test $? -eq 1`
360   }
361 fi # as_fn_arith
362
363
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
369 as_fn_error ()
370 {
371   as_status=$?; test $as_status -eq 0 && as_status=1
372   if test "$3"; then
373     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375   fi
376   $as_echo "$as_me: error: $1" >&2
377   as_fn_exit $as_status
378 } # as_fn_error
379
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381    test "X`expr 00001 : '.*\(...\)'`" = X001; then
382   as_expr=expr
383 else
384   as_expr=false
385 fi
386
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388   as_basename=basename
389 else
390   as_basename=false
391 fi
392
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394   as_dirname=dirname
395 else
396   as_dirname=false
397 fi
398
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401          X"$0" : 'X\(//\)$' \| \
402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 $as_echo X/"$0" |
404     sed '/^.*\/\([^/][^/]*\)\/*$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\/\)$/{
409             s//\1/
410             q
411           }
412           /^X\/\(\/\).*/{
413             s//\1/
414             q
415           }
416           s/.*/./; q'`
417
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
424
425
426   as_lineno_1=$LINENO as_lineno_1a=$LINENO
427   as_lineno_2=$LINENO as_lineno_2a=$LINENO
428   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
431   sed -n '
432     p
433     /[$]LINENO/=
434   ' <$as_myself |
435     sed '
436       s/[$]LINENO.*/&-/
437       t lineno
438       b
439       :lineno
440       N
441       :loop
442       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443       t loop
444       s/-\n.*//
445     ' >$as_me.lineno &&
446   chmod +x "$as_me.lineno" ||
447     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448
449   # Don't try to exec as it changes $[0], causing all sort of problems
450   # (the dirname of $[0] is not the place where we might find the
451   # original and so on.  Autoconf is especially sensitive to this).
452   . "./$as_me.lineno"
453   # Exit status is that of the last command.
454   exit
455 }
456
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
459 -n*)
460   case `echo 'xy\c'` in
461   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
462   xy)  ECHO_C='\c';;
463   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
464        ECHO_T=' ';;
465   esac;;
466 *)
467   ECHO_N='-n';;
468 esac
469
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472   rm -f conf$$.dir/conf$$.file
473 else
474   rm -f conf$$.dir
475   mkdir conf$$.dir 2>/dev/null
476 fi
477 if (echo >conf$$.file) 2>/dev/null; then
478   if ln -s conf$$.file conf$$ 2>/dev/null; then
479     as_ln_s='ln -s'
480     # ... but there are two gotchas:
481     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483     # In both cases, we have to default to `cp -p'.
484     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485       as_ln_s='cp -p'
486   elif ln conf$$.file conf$$ 2>/dev/null; then
487     as_ln_s=ln
488   else
489     as_ln_s='cp -p'
490   fi
491 else
492   as_ln_s='cp -p'
493 fi
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
496
497 if mkdir -p . 2>/dev/null; then
498   as_mkdir_p='mkdir -p "$as_dir"'
499 else
500   test -d ./-p && rmdir ./-p
501   as_mkdir_p=false
502 fi
503
504 if test -x / >/dev/null 2>&1; then
505   as_test_x='test -x'
506 else
507   if ls -dL / >/dev/null 2>&1; then
508     as_ls_L_option=L
509   else
510     as_ls_L_option=
511   fi
512   as_test_x='
513     eval sh -c '\''
514       if test -d "$1"; then
515         test -d "$1/.";
516       else
517         case $1 in #(
518         -*)set "./$1";;
519         esac;
520         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521         ???[sx]*):;;*)false;;esac;fi
522     '\'' sh
523   '
524 fi
525 as_executable_p=$as_test_x
526
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
533
534 test -n "$DJDIR" || exec 7<&0 </dev/null
535 exec 6>&1
536
537 # Name of the host.
538 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
539 # so uname gets run too.
540 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541
542 #
543 # Initializations.
544 #
545 ac_default_prefix=/usr/local
546 ac_clean_files=
547 ac_config_libobj_dir=.
548 LIBOBJS=
549 cross_compiling=no
550 subdirs=
551 MFLAGS=
552 MAKEFLAGS=
553
554 # Identity of this package.
555 PACKAGE_NAME='llvm'
556 PACKAGE_TARNAME='-llvm-'
557 PACKAGE_VERSION='2.7svn'
558 PACKAGE_STRING='llvm 2.7svn'
559 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
560 PACKAGE_URL=''
561
562 ac_unique_file="lib/VMCore/Module.cpp"
563 enable_option_checking=no
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 #  include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #  include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_header_list=
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 RDYNAMIC
604 RPATH
605 ENABLE_VISIBILITY_INLINES_HIDDEN
606 OCAML_LIBDIR
607 ALL_BINDINGS
608 BINDINGS_TO_BUILD
609 LLVM_CONFIGTIME
610 LLVM_MANDIR
611 LLVM_INFODIR
612 LLVM_INCLUDEDIR
613 LLVM_ETCDIR
614 LLVM_DOCSDIR
615 LLVM_DATADIR
616 LLVM_LIBDIR
617 LLVM_BINDIR
618 LLVM_PREFIX
619 SHLIBEXT
620 LLVMGCC_LANGS
621 LLVMGCC_MAJVERS
622 LLVMGCC_VERSION
623 LLVMGCCLIBEXEC
624 LLVMGCCDIR
625 LLVMCC1PLUS
626 LLVMCC1
627 MMAP_FILE
628 HUGE_VAL_SANITY
629 HAVE_PTHREAD
630 USE_OPROFILE
631 USE_UDIS86
632 NO_MISSING_FIELD_INITIALIZERS
633 NO_VARIADIC_MACROS
634 LLVMGXX
635 LLVMGCC
636 LLVMGXXCOMMAND
637 LLVMGCCCOMMAND
638 LIBADD_DL
639 CONVENIENCE_LTDL_FALSE
640 CONVENIENCE_LTDL_TRUE
641 INSTALL_LTDL_FALSE
642 INSTALL_LTDL_TRUE
643 GAS
644 OCAMLDOC
645 OCAMLDEP
646 OCAMLOPT
647 OCAMLC
648 ZIP
649 TCLSH
650 RUNTEST
651 POD2MAN
652 POD2HTML
653 GZIP
654 GROFF
655 DOXYGEN
656 BZIP2
657 INSTALL_DATA
658 INSTALL_SCRIPT
659 INSTALL_PROGRAM
660 HAVE_PERL
661 PERL
662 DOTTY
663 GV
664 CIRCO
665 TWOPI
666 NEATO
667 FDP
668 DOT
669 GRAPHVIZ
670 BINPWD
671 TAR
672 SED
673 RM
674 AR
675 RANLIB
676 MV
677 MKDIR
678 FIND
679 DATE
680 CP
681 CMP
682 LN_S
683 ifGNUmake
684 NM
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 ENABLE_LLVMC_DYNAMIC_PLUGINS
689 ENABLE_LLVMC_DYNAMIC
690 BINUTILS_INCDIR
691 EXTRA_OPTIONS
692 OPTIMIZE_OPTION
693 ENABLE_CBE_PRINTF_A
694 LLVM_ENUM_DISASSEMBLERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_TARGETS
698 TARGETS_TO_BUILD
699 ENABLE_PIC
700 ENABLE_THREADS
701 ENABLE_DOXYGEN
702 TARGET_HAS_JIT
703 JIT
704 DEBUG_SYMBOLS
705 DEBUG_RUNTIME
706 EXPENSIVE_CHECKS
707 ENABLE_EXPENSIVE_CHECKS
708 DISABLE_ASSERTIONS
709 ENABLE_PROFILING
710 ENABLE_OPTIMIZED
711 CVSBUILD
712 BUILD_CXX
713 BUILD_EXEEXT
714 BUILD_CC
715 LLVM_CROSS_COMPILING
716 EGREP
717 GREP
718 CPP
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 ENDIAN
727 ARCH
728 LLVM_ON_WIN32
729 LLVM_ON_UNIX
730 NOLINKALL
731 LINKALL
732 TARGET_OS
733 HOST_OS
734 OS
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 subdirs
748 LLVM_COPYRIGHT
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_optimized
791 enable_profiling
792 enable_assertions
793 enable_expensive_checks
794 enable_debug_runtime
795 enable_debug_symbols
796 enable_jit
797 enable_doxygen
798 enable_threads
799 enable_pic
800 enable_targets
801 enable_cbe_printf_a
802 with_llvmgccdir
803 with_llvmgcc
804 with_llvmgxx
805 with_optimize_option
806 with_extra_options
807 enable_bindings
808 with_ocaml_libdir
809 with_c_include_dirs
810 with_cxx_include_root
811 with_cxx_include_arch
812 with_cxx_include_32bit_dir
813 with_cxx_include_64bit_dir
814 with_binutils_include
815 enable_libffi
816 enable_llvmc_dynamic
817 enable_llvmc_dynamic_plugins
818 with_tclinclude
819 enable_ltdl_install
820 with_udis86
821 with_oprofile
822 '
823       ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CPP
832 CXX
833 CXXFLAGS
834 CCC'
835 ac_subdirs_all='projects/sample
836 projects/privbracket
837 projects/llvm-stacker
838 projects/llvm-test
839 projects/test-suite
840 projects/llvm-reopt
841 projects/llvm-gcc
842 projects/llvm-java
843 projects/llvm-tv
844 projects/llvm-poolalloc
845 projects/poolalloc
846 projects/llvm-kernel'
847
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
869
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900   # If the previous option needs an argument, assign it.
901   if test -n "$ac_prev"; then
902     eval $ac_prev=\$ac_option
903     ac_prev=
904     continue
905   fi
906
907   case $ac_option in
908   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909   *)    ac_optarg=yes ;;
910   esac
911
912   # Accept the important Cygnus configure options, so we can diagnose typos.
913
914   case $ac_dashdash$ac_option in
915   --)
916     ac_dashdash=yes ;;
917
918   -bindir | --bindir | --bindi | --bind | --bin | --bi)
919     ac_prev=bindir ;;
920   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921     bindir=$ac_optarg ;;
922
923   -build | --build | --buil | --bui | --bu)
924     ac_prev=build_alias ;;
925   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926     build_alias=$ac_optarg ;;
927
928   -cache-file | --cache-file | --cache-fil | --cache-fi \
929   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930     ac_prev=cache_file ;;
931   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933     cache_file=$ac_optarg ;;
934
935   --config-cache | -C)
936     cache_file=config.cache ;;
937
938   -datadir | --datadir | --datadi | --datad)
939     ac_prev=datadir ;;
940   -datadir=* | --datadir=* | --datadi=* | --datad=*)
941     datadir=$ac_optarg ;;
942
943   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944   | --dataroo | --dataro | --datar)
945     ac_prev=datarootdir ;;
946   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948     datarootdir=$ac_optarg ;;
949
950   -disable-* | --disable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=\$ac_optarg ;;
991
992   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994   | --exec | --exe | --ex)
995     ac_prev=exec_prefix ;;
996   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998   | --exec=* | --exe=* | --ex=*)
999     exec_prefix=$ac_optarg ;;
1000
1001   -gas | --gas | --ga | --g)
1002     # Obsolete; use --with-gas.
1003     with_gas=yes ;;
1004
1005   -help | --help | --hel | --he | -h)
1006     ac_init_help=long ;;
1007   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008     ac_init_help=recursive ;;
1009   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010     ac_init_help=short ;;
1011
1012   -host | --host | --hos | --ho)
1013     ac_prev=host_alias ;;
1014   -host=* | --host=* | --hos=* | --ho=*)
1015     host_alias=$ac_optarg ;;
1016
1017   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018     ac_prev=htmldir ;;
1019   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020   | --ht=*)
1021     htmldir=$ac_optarg ;;
1022
1023   -includedir | --includedir | --includedi | --included | --include \
1024   | --includ | --inclu | --incl | --inc)
1025     ac_prev=includedir ;;
1026   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027   | --includ=* | --inclu=* | --incl=* | --inc=*)
1028     includedir=$ac_optarg ;;
1029
1030   -infodir | --infodir | --infodi | --infod | --info | --inf)
1031     ac_prev=infodir ;;
1032   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033     infodir=$ac_optarg ;;
1034
1035   -libdir | --libdir | --libdi | --libd)
1036     ac_prev=libdir ;;
1037   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038     libdir=$ac_optarg ;;
1039
1040   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041   | --libexe | --libex | --libe)
1042     ac_prev=libexecdir ;;
1043   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044   | --libexe=* | --libex=* | --libe=*)
1045     libexecdir=$ac_optarg ;;
1046
1047   -localedir | --localedir | --localedi | --localed | --locale)
1048     ac_prev=localedir ;;
1049   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050     localedir=$ac_optarg ;;
1051
1052   -localstatedir | --localstatedir | --localstatedi | --localstated \
1053   | --localstate | --localstat | --localsta | --localst | --locals)
1054     ac_prev=localstatedir ;;
1055   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057     localstatedir=$ac_optarg ;;
1058
1059   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060     ac_prev=mandir ;;
1061   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062     mandir=$ac_optarg ;;
1063
1064   -nfp | --nfp | --nf)
1065     # Obsolete; use --without-fp.
1066     with_fp=no ;;
1067
1068   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069   | --no-cr | --no-c | -n)
1070     no_create=yes ;;
1071
1072   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074     no_recursion=yes ;;
1075
1076   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078   | --oldin | --oldi | --old | --ol | --o)
1079     ac_prev=oldincludedir ;;
1080   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083     oldincludedir=$ac_optarg ;;
1084
1085   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086     ac_prev=prefix ;;
1087   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088     prefix=$ac_optarg ;;
1089
1090   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091   | --program-pre | --program-pr | --program-p)
1092     ac_prev=program_prefix ;;
1093   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095     program_prefix=$ac_optarg ;;
1096
1097   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098   | --program-suf | --program-su | --program-s)
1099     ac_prev=program_suffix ;;
1100   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102     program_suffix=$ac_optarg ;;
1103
1104   -program-transform-name | --program-transform-name \
1105   | --program-transform-nam | --program-transform-na \
1106   | --program-transform-n | --program-transform- \
1107   | --program-transform | --program-transfor \
1108   | --program-transfo | --program-transf \
1109   | --program-trans | --program-tran \
1110   | --progr-tra | --program-tr | --program-t)
1111     ac_prev=program_transform_name ;;
1112   -program-transform-name=* | --program-transform-name=* \
1113   | --program-transform-nam=* | --program-transform-na=* \
1114   | --program-transform-n=* | --program-transform-=* \
1115   | --program-transform=* | --program-transfor=* \
1116   | --program-transfo=* | --program-transf=* \
1117   | --program-trans=* | --program-tran=* \
1118   | --progr-tra=* | --program-tr=* | --program-t=*)
1119     program_transform_name=$ac_optarg ;;
1120
1121   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122     ac_prev=pdfdir ;;
1123   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124     pdfdir=$ac_optarg ;;
1125
1126   -psdir | --psdir | --psdi | --psd | --ps)
1127     ac_prev=psdir ;;
1128   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129     psdir=$ac_optarg ;;
1130
1131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132   | -silent | --silent | --silen | --sile | --sil)
1133     silent=yes ;;
1134
1135   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136     ac_prev=sbindir ;;
1137   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138   | --sbi=* | --sb=*)
1139     sbindir=$ac_optarg ;;
1140
1141   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143   | --sharedst | --shareds | --shared | --share | --shar \
1144   | --sha | --sh)
1145     ac_prev=sharedstatedir ;;
1146   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149   | --sha=* | --sh=*)
1150     sharedstatedir=$ac_optarg ;;
1151
1152   -site | --site | --sit)
1153     ac_prev=site ;;
1154   -site=* | --site=* | --sit=*)
1155     site=$ac_optarg ;;
1156
1157   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158     ac_prev=srcdir ;;
1159   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160     srcdir=$ac_optarg ;;
1161
1162   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163   | --syscon | --sysco | --sysc | --sys | --sy)
1164     ac_prev=sysconfdir ;;
1165   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167     sysconfdir=$ac_optarg ;;
1168
1169   -target | --target | --targe | --targ | --tar | --ta | --t)
1170     ac_prev=target_alias ;;
1171   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172     target_alias=$ac_optarg ;;
1173
1174   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175     verbose=yes ;;
1176
1177   -version | --version | --versio | --versi | --vers | -V)
1178     ac_init_version=: ;;
1179
1180   -with-* | --with-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=\$ac_optarg ;;
1195
1196   -without-* | --without-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     case $ac_envvar in #(
1238       '' | [0-9]* | *[!_$as_cr_alnum]* )
1239       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240     esac
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   as_fn_error "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261   case $enable_option_checking in
1262     no) ;;
1263     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265   esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270                 datadir sysconfdir sharedstatedir localstatedir includedir \
1271                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272                 libdir localedir mandir
1273 do
1274   eval ac_val=\$$ac_var
1275   # Remove trailing slashes.
1276   case $ac_val in
1277     */ )
1278       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279       eval $ac_var=\$ac_val;;
1280   esac
1281   # Be sure to have absolute directory names.
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   as_fn_error "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$as_myself" : 'X\(//\)[^/]' \| \
1328          X"$as_myself" : 'X\(//\)$' \| \
1329          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_env_${ac_var}_value=\$${ac_var}
1376   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384   # Omit some internal or obsolete options to make the list less imposing.
1385   # This message is too long to be a string in the A/UX 3.1 sh.
1386   cat <<_ACEOF
1387 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397   -h, --help              display this help and exit
1398       --help=short        display options specific to this package
1399       --help=recursive    display the short help of all the included packages
1400   -V, --version           display version information and exit
1401   -q, --quiet, --silent   do not print \`checking...' messages
1402       --cache-file=FILE   cache test results in FILE [disabled]
1403   -C, --config-cache      alias for \`--cache-file=config.cache'
1404   -n, --no-create         do not create output files
1405       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408   --prefix=PREFIX         install architecture-independent files in PREFIX
1409                           [$ac_default_prefix]
1410   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                           [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421   --bindir=DIR            user executables [EPREFIX/bin]
1422   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423   --libexecdir=DIR        program executables [EPREFIX/libexec]
1424   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427   --libdir=DIR            object code libraries [EPREFIX/lib]
1428   --includedir=DIR        C header files [PREFIX/include]
1429   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1430   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1431   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1432   --infodir=DIR           info documentation [DATAROOTDIR/info]
1433   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1434   --mandir=DIR            man documentation [DATAROOTDIR/man]
1435   --docdir=DIR            documentation root [DATAROOTDIR/doc/-llvm-]
1436   --htmldir=DIR           html documentation [DOCDIR]
1437   --dvidir=DIR            dvi documentation [DOCDIR]
1438   --pdfdir=DIR            pdf documentation [DOCDIR]
1439   --psdir=DIR             ps documentation [DOCDIR]
1440 _ACEOF
1441
1442   cat <<\_ACEOF
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447   --target=TARGET   configure for building compilers for TARGET [HOST]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452   case $ac_init_help in
1453      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1454    esac
1455   cat <<\_ACEOF
1456
1457 Optional Features:
1458   --disable-option-checking  ignore unrecognized --enable/--with options
1459   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1460   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1461   --enable-optimized      Compile with optimizations enabled (default is NO)
1462   --enable-profiling      Compile with profiling enabled (default is NO)
1463   --enable-assertions     Compile with assertion checks enabled (default is
1464                           YES)
1465   --enable-expensive-checks
1466                           Compile with expensive debug checks enabled (default
1467                           is NO)
1468   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1469                           NO)
1470   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1471                           optimization is on and YES if it's off)
1472   --enable-jit            Enable Just In Time Compiling (default is YES)
1473   --enable-doxygen        Build doxygen documentation (default is NO)
1474   --enable-threads        Use threads if available (default is YES)
1475   --enable-pic            Build LLVM with Position Independent Code (default
1476                           is YES)
1477   --enable-targets        Build specific host targets: all or
1478                           target1,target2,... Valid targets are: host, x86,
1479                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1480                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1481                           and cpp (default=all)
1482   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1483                           %a (default is YES)
1484   --enable-bindings       Build specific language bindings:
1485                           all,auto,none,{binding-name} (default=auto)
1486   --enable-libffi         Check for the presence of libffi (default is YES)
1487   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1488                           Win32)
1489   --enable-llvmc-dynamic-plugins
1490                           Enable dynamic LLVMC plugins (default is YES)
1491   --enable-ltdl-install   install libltdl
1492
1493 Optional Packages:
1494   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1495   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1496   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1497                           searches PATH)
1498   --with-llvmgcc          Specify location of llvm-gcc driver (default
1499                           searches PATH)
1500   --with-llvmgxx          Specify location of llvm-g++ driver (default
1501                           searches PATH)
1502   --with-optimize-option  Select the compiler options to use for optimized
1503                           builds
1504   --with-extra-options    Specify additional options to compile LLVM with
1505   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1506                           is stdlib)
1507   --with-c-include-dirs   Colon separated list of directories clang will
1508                           search for headers
1509   --with-cxx-include-root Directory with the libstdc++ headers.
1510   --with-cxx-include-arch Architecture of the libstdc++ headers.
1511   --with-cxx-include-32bit-dir
1512                           32 bit multilib dir.
1513   --with-cxx-include-64bit-dir
1514                           64 bit multilib directory.
1515   --with-binutils-include Specify path to binutils/include/ containing
1516                           plugin-api.h file for gold plugin.
1517   --with-tclinclude       directory where tcl headers are
1518   --with-udis86=<path>    Use udis86 external x86 disassembler library
1519   --with-oprofile=<prefix>
1520                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1521
1522 Some influential environment variables:
1523   CC          C compiler command
1524   CFLAGS      C compiler flags
1525   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526               nonstandard directory <lib dir>
1527   LIBS        libraries to pass to the linker, e.g. -l<library>
1528   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529               you have headers in a nonstandard directory <include dir>
1530   CPP         C preprocessor
1531   CXX         C++ compiler command
1532   CXXFLAGS    C++ compiler flags
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <llvmbugs@cs.uiuc.edu>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543   # If there are subdirs, report their specific --help.
1544   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545     test -d "$ac_dir" ||
1546       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547       continue
1548     ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554   # A ".." for each directory in $ac_dir_suffix.
1555   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556   case $ac_top_builddir_sub in
1557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559   esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567   .)  # We are building in place.
1568     ac_srcdir=.
1569     ac_top_srcdir=$ac_top_builddir_sub
1570     ac_abs_top_srcdir=$ac_pwd ;;
1571   [\\/]* | ?:[\\/]* )  # Absolute name.
1572     ac_srcdir=$srcdir$ac_dir_suffix;
1573     ac_top_srcdir=$srcdir
1574     ac_abs_top_srcdir=$srcdir ;;
1575   *) # Relative name.
1576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577     ac_top_srcdir=$ac_top_build_prefix$srcdir
1578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582     cd "$ac_dir" || { ac_status=$?; continue; }
1583     # Check for guested configure.
1584     if test -f "$ac_srcdir/configure.gnu"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587     elif test -f "$ac_srcdir/configure"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure" --help=recursive
1590     else
1591       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592     fi || ac_status=$?
1593     cd "$ac_pwd" || { ac_status=$?; break; }
1594   done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599   cat <<\_ACEOF
1600 llvm configure 2.7svn
1601 generated by GNU Autoconf 2.65
1602
1603 Copyright (C) 2009 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606
1607 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1608 _ACEOF
1609   exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   rm -f conftest.$ac_objext
1623   if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_compile") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } && {
1639          test -z "$ac_c_werror_flag" ||
1640          test ! -s conftest.err
1641        } && test -s conftest.$ac_objext; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647         ac_retval=1
1648 fi
1649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1658 ac_fn_c_try_run ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_link") 2>&5
1669   ac_status=$?
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672   { { case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_try") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; }; }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: program exited with status $ac_status" >&5
1685        $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688        ac_retval=$ac_status
1689 fi
1690   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_run
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } >/dev/null && {
1718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        }; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726     ac_retval=1
1727 fi
1728   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_cpp
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743   $as_echo_n "(cached) " >&6
1744 else
1745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h.  */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751   eval "$3=yes"
1752 else
1753   eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   rm -f conftest.$ac_objext
1771   if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_compile") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && {
1787          test -z "$ac_cxx_werror_flag" ||
1788          test ! -s conftest.err
1789        } && test -s conftest.$ac_objext; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795         ac_retval=1
1796 fi
1797   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798   as_fn_set_status $ac_retval
1799
1800 } # ac_fn_cxx_try_compile
1801
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_link ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   rm -f conftest.$ac_objext conftest$ac_exeext
1809   if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_link") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } && {
1825          test -z "$ac_c_werror_flag" ||
1826          test ! -s conftest.err
1827        } && test -s conftest$ac_exeext && {
1828          test "$cross_compiling" = yes ||
1829          $as_test_x conftest$ac_exeext
1830        }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836         ac_retval=1
1837 fi
1838   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840   # interfere with the next link command; also delete a directory that is
1841   # left behind by Apple's compiler.  We do this before executing the actions.
1842   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844   as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_link
1847
1848 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1849 # -------------------------------------------------------
1850 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1851 # the include files in INCLUDES and setting the cache variable VAR
1852 # accordingly.
1853 ac_fn_c_check_header_mongrel ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860   $as_echo_n "(cached) " >&6
1861 fi
1862 eval ac_res=\$$3
1863                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 else
1866   # Is the header compilable?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1868 $as_echo_n "checking $2 usability... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h.  */
1871 $4
1872 #include <$2>
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875   ac_header_compiler=yes
1876 else
1877   ac_header_compiler=no
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1881 $as_echo "$ac_header_compiler" >&6; }
1882
1883 # Is the header present?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1885 $as_echo_n "checking $2 presence... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_cpp "$LINENO"; then :
1891   ac_header_preproc=yes
1892 else
1893   ac_header_preproc=no
1894 fi
1895 rm -f conftest.err conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1897 $as_echo "$ac_header_preproc" >&6; }
1898
1899 # So?  What about this header?
1900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1901   yes:no: )
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1903 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906     ;;
1907   no:yes:* )
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1909 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1911 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1913 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1915 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 ( cat <<\_ASBOX
1919 ## ----------------------------------- ##
1920 ## Report this to llvmbugs@cs.uiuc.edu ##
1921 ## ----------------------------------- ##
1922 _ASBOX
1923      ) | sed "s/^/$as_me: WARNING:     /" >&2
1924     ;;
1925 esac
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929   $as_echo_n "(cached) " >&6
1930 else
1931   eval "$3=\$ac_header_compiler"
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 fi
1937   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939 } # ac_fn_c_check_header_mongrel
1940
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h.  */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1956 #define $2 innocuous_$2
1957
1958 /* System header to define __stub macros and hopefully few prototypes,
1959     which can conflict with char $2 (); below.
1960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961     <limits.h> exists even on freestanding compilers.  */
1962
1963 #ifdef __STDC__
1964 # include <limits.h>
1965 #else
1966 # include <assert.h>
1967 #endif
1968
1969 #undef $2
1970
1971 /* Override any GCC internal prototype to avoid an error.
1972    Use char because int might match the return type of a GCC
1973    builtin and then its argument prototype would still apply.  */
1974 #ifdef __cplusplus
1975 extern "C"
1976 #endif
1977 char $2 ();
1978 /* The GNU C library defines this for functions which it implements
1979     to always fail with ENOSYS.  Some functions are actually named
1980     something starting with __ and the normal name is an alias.  */
1981 #if defined __stub_$2 || defined __stub___$2
1982 choke me
1983 #endif
1984
1985 int
1986 main ()
1987 {
1988 return $2 ();
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_link "$LINENO"; then :
1994   eval "$3=yes"
1995 else
1996   eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext \
1999     conftest$ac_exeext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006 } # ac_fn_c_check_func
2007
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 else
2020   eval "$3=no"
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 if (sizeof ($2))
2028          return 0;
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 int
2038 main ()
2039 {
2040 if (sizeof (($2)))
2041             return 0;
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047
2048 else
2049   eval "$3=yes"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
2060 } # ac_fn_c_check_type
2061
2062 # ac_fn_cxx_try_run LINENO
2063 # ------------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_cxx_try_run ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069   if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076   (eval "$ac_link") 2>&5
2077   ac_status=$?
2078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080   { { case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_try") 2>&5
2087   ac_status=$?
2088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089   test $ac_status = 0; }; }; then :
2090   ac_retval=0
2091 else
2092   $as_echo "$as_me: program exited with status $ac_status" >&5
2093        $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096        ac_retval=$ac_status
2097 fi
2098   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100   as_fn_set_status $ac_retval
2101
2102 } # ac_fn_cxx_try_run
2103 cat >config.log <<_ACEOF
2104 This file contains any messages produced by compilers while
2105 running configure, to aid debugging if configure makes a mistake.
2106
2107 It was created by llvm $as_me 2.7svn, which was
2108 generated by GNU Autoconf 2.65.  Invocation command line was
2109
2110   $ $0 $@
2111
2112 _ACEOF
2113 exec 5>>config.log
2114 {
2115 cat <<_ASUNAME
2116 ## --------- ##
2117 ## Platform. ##
2118 ## --------- ##
2119
2120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125
2126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2127 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2128
2129 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2130 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2132 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2133 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2134 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2135 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2136
2137 _ASUNAME
2138
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144     $as_echo "PATH: $as_dir"
2145   done
2146 IFS=$as_save_IFS
2147
2148 } >&5
2149
2150 cat >&5 <<_ACEOF
2151
2152
2153 ## ----------- ##
2154 ## Core tests. ##
2155 ## ----------- ##
2156
2157 _ACEOF
2158
2159
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_configure_args=
2166 ac_configure_args0=
2167 ac_configure_args1=
2168 ac_must_keep_next=false
2169 for ac_pass in 1 2
2170 do
2171   for ac_arg
2172   do
2173     case $ac_arg in
2174     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176     | -silent | --silent | --silen | --sile | --sil)
2177       continue ;;
2178     *\'*)
2179       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2180     esac
2181     case $ac_pass in
2182     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183     2)
2184       as_fn_append ac_configure_args1 " '$ac_arg'"
2185       if test $ac_must_keep_next = true; then
2186         ac_must_keep_next=false # Got value, back to normal.
2187       else
2188         case $ac_arg in
2189           *=* | --config-cache | -C | -disable-* | --disable-* \
2190           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192           | -with-* | --with-* | -without-* | --without-* | --x)
2193             case "$ac_configure_args0 " in
2194               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195             esac
2196             ;;
2197           -* ) ac_must_keep_next=true ;;
2198         esac
2199       fi
2200       as_fn_append ac_configure_args " '$ac_arg'"
2201       ;;
2202     esac
2203   done
2204 done
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2207
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log.  We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2214   # Save into config.log some information that might help in debugging.
2215   {
2216     echo
2217
2218     cat <<\_ASBOX
2219 ## ---------------- ##
2220 ## Cache variables. ##
2221 ## ---------------- ##
2222 _ASBOX
2223     echo
2224     # The following way of writing the cache mishandles newlines in values,
2225 (
2226   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227     eval ac_val=\$$ac_var
2228     case $ac_val in #(
2229     *${as_nl}*)
2230       case $ac_var in #(
2231       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233       esac
2234       case $ac_var in #(
2235       _ | IFS | as_nl) ;; #(
2236       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237       *) { eval $ac_var=; unset $ac_var;} ;;
2238       esac ;;
2239     esac
2240   done
2241   (set) 2>&1 |
2242     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243     *${as_nl}ac_space=\ *)
2244       sed -n \
2245         "s/'\''/'\''\\\\'\'''\''/g;
2246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247       ;; #(
2248     *)
2249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250       ;;
2251     esac |
2252     sort
2253 )
2254     echo
2255
2256     cat <<\_ASBOX
2257 ## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##
2260 _ASBOX
2261     echo
2262     for ac_var in $ac_subst_vars
2263     do
2264       eval ac_val=\$$ac_var
2265       case $ac_val in
2266       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267       esac
2268       $as_echo "$ac_var='\''$ac_val'\''"
2269     done | sort
2270     echo
2271
2272     if test -n "$ac_subst_files"; then
2273       cat <<\_ASBOX
2274 ## ------------------- ##
2275 ## File substitutions. ##
2276 ## ------------------- ##
2277 _ASBOX
2278       echo
2279       for ac_var in $ac_subst_files
2280       do
2281         eval ac_val=\$$ac_var
2282         case $ac_val in
2283         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284         esac
2285         $as_echo "$ac_var='\''$ac_val'\''"
2286       done | sort
2287       echo
2288     fi
2289
2290     if test -s confdefs.h; then
2291       cat <<\_ASBOX
2292 ## ----------- ##
2293 ## confdefs.h. ##
2294 ## ----------- ##
2295 _ASBOX
2296       echo
2297       cat confdefs.h
2298       echo
2299     fi
2300     test "$ac_signal" != 0 &&
2301       $as_echo "$as_me: caught signal $ac_signal"
2302     $as_echo "$as_me: exit $exit_status"
2303   } >&5
2304   rm -f core *.core core.conftest.* &&
2305     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306     exit $exit_status
2307 ' 0
2308 for ac_signal in 1 2 13 15; do
2309   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2312
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2315
2316 $as_echo "/* confdefs.h */" > confdefs.h
2317
2318 # Predefined preprocessor variables.
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2342 _ACEOF
2343
2344
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2347 ac_site_file1=NONE
2348 ac_site_file2=NONE
2349 if test -n "$CONFIG_SITE"; then
2350   ac_site_file1=$CONFIG_SITE
2351 elif test "x$prefix" != xNONE; then
2352   ac_site_file1=$prefix/share/config.site
2353   ac_site_file2=$prefix/etc/config.site
2354 else
2355   ac_site_file1=$ac_default_prefix/share/config.site
2356   ac_site_file2=$ac_default_prefix/etc/config.site
2357 fi
2358 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 do
2360   test "x$ac_site_file" = xNONE && continue
2361   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364     sed 's/^/| /' "$ac_site_file" >&5
2365     . "$ac_site_file"
2366   fi
2367 done
2368
2369 if test -r "$cache_file"; then
2370   # Some versions of bash will fail to source /dev/null (special files
2371   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2372   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2375     case $cache_file in
2376       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377       *)                      . "./$cache_file";;
2378     esac
2379   fi
2380 else
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2383   >$cache_file
2384 fi
2385
2386 as_fn_append ac_header_list " stdlib.h"
2387 as_fn_append ac_header_list " unistd.h"
2388 as_fn_append ac_header_list " sys/param.h"
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394   eval ac_new_set=\$ac_env_${ac_var}_set
2395   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396   eval ac_new_val=\$ac_env_${ac_var}_value
2397   case $ac_old_set,$ac_new_set in
2398     set,)
2399       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,set)
2403       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405       ac_cache_corrupted=: ;;
2406     ,);;
2407     *)
2408       if test "x$ac_old_val" != "x$ac_new_val"; then
2409         # differences in whitespace do not lead to failure.
2410         ac_old_val_w=`echo x $ac_old_val`
2411         ac_new_val_w=`echo x $ac_new_val`
2412         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415           ac_cache_corrupted=:
2416         else
2417           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419           eval $ac_var=\$ac_old_val
2420         fi
2421         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2422 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2423         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2425       fi;;
2426   esac
2427   # Pass precious variables to config.status.
2428   if test "$ac_new_set" = set; then
2429     case $ac_new_val in
2430     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431     *) ac_arg=$ac_var=$ac_new_val ;;
2432     esac
2433     case " $ac_configure_args " in
2434       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2435       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436     esac
2437   fi
2438 done
2439 if $ac_cache_corrupted; then
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457
2458 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2459
2460
2461
2462
2463
2464
2465
2466 ac_aux_dir=
2467 for ac_dir in autoconf "$srcdir"/autoconf; do
2468   for ac_t in install-sh install.sh shtool; do
2469     if test -f "$ac_dir/$ac_t"; then
2470       ac_aux_dir=$ac_dir
2471       ac_install_sh="$ac_aux_dir/$ac_t -c"
2472       break 2
2473     fi
2474   done
2475 done
2476 if test -z "$ac_aux_dir"; then
2477   as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2478 fi
2479
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2487
2488
2489
2490
2491 if test ${srcdir} != "." ; then
2492   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2493     as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
2494   fi
2495 fi
2496
2497 for i in `ls ${srcdir}/projects`
2498 do
2499   if test -d ${srcdir}/projects/${i} ; then
2500     case ${i} in
2501       CVS) ;;
2502       sample)
2503
2504 subdirs="$subdirs projects/sample"
2505     ;;
2506       privbracket)  subdirs="$subdirs projects/privbracket"
2507  ;;
2508       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2509  ;;
2510       # llvm-test is the old name of the test-suite, kept here for backwards
2511       # compatibility
2512       llvm-test)    subdirs="$subdirs projects/llvm-test"
2513  ;;
2514       test-suite)   subdirs="$subdirs projects/test-suite"
2515  ;;
2516       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2517 ;;
2518       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2519   ;;
2520       llvm-java)    subdirs="$subdirs projects/llvm-java"
2521  ;;
2522       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2523    ;;
2524       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2525  ;;
2526       poolalloc)    subdirs="$subdirs projects/poolalloc"
2527  ;;
2528       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2529  ;;
2530       *)
2531         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2532 $as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2533         ;;
2534     esac
2535   fi
2536 done
2537
2538
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if test "${ac_cv_build+set}" = set; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2555
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2560 *-*-*) ;;
2561 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2562 esac
2563 build=$ac_cv_build
2564 ac_save_IFS=$IFS; IFS='-'
2565 set x $ac_cv_build
2566 shift
2567 build_cpu=$1
2568 build_vendor=$2
2569 shift; shift
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2572 build_os=$*
2573 IFS=$ac_save_IFS
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2575
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if test "${ac_cv_host+set}" = set; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   if test "x$host_alias" = x; then
2583   ac_cv_host=$ac_cv_build
2584 else
2585   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 fi
2588
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2592 case $ac_cv_host in
2593 *-*-*) ;;
2594 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2595 esac
2596 host=$ac_cv_host
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_host
2599 shift
2600 host_cpu=$1
2601 host_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 host_os=$*
2606 IFS=$ac_save_IFS
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608
2609
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if test "${ac_cv_target+set}" = set; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   if test "x$target_alias" = x; then
2616   ac_cv_target=$ac_cv_host
2617 else
2618   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2620 fi
2621
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2626 *-*-*) ;;
2627 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2628 esac
2629 target=$ac_cv_target
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_target
2632 shift
2633 target_cpu=$1
2634 target_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 target_os=$*
2639 IFS=$ac_save_IFS
2640 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2641
2642
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646   test "$program_prefix$program_suffix$program_transform_name" = \
2647     NONENONEs,x,x, &&
2648   program_prefix=${target_alias}-
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
2651 $as_echo_n "checking type of operating system we're going to host on... " >&6; }
2652 if test "${llvm_cv_os_type+set}" = set; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   case $host in
2656   *-*-aix*)
2657     llvm_cv_link_all_option="-Wl,--whole-archive"
2658     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2659     llvm_cv_os_type="AIX"
2660     llvm_cv_platform_type="Unix" ;;
2661   *-*-irix*)
2662     llvm_cv_link_all_option="-Wl,--whole-archive"
2663     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2664     llvm_cv_os_type="IRIX"
2665     llvm_cv_platform_type="Unix" ;;
2666   *-*-cygwin*)
2667     llvm_cv_link_all_option="-Wl,--whole-archive"
2668     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2669     llvm_cv_os_type="Cygwin"
2670     llvm_cv_platform_type="Unix" ;;
2671   *-*-darwin*)
2672     llvm_cv_link_all_option="-Wl,-all_load"
2673     llvm_cv_no_link_all_option="-Wl,-noall_load"
2674     llvm_cv_os_type="Darwin"
2675     llvm_cv_platform_type="Unix" ;;
2676   *-*-freebsd*)
2677     llvm_cv_link_all_option="-Wl,--whole-archive"
2678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2679     llvm_cv_os_type="FreeBSD"
2680     llvm_cv_platform_type="Unix" ;;
2681   *-*-openbsd*)
2682     llvm_cv_link_all_option="-Wl,--whole-archive"
2683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2684     llvm_cv_os_type="OpenBSD"
2685     llvm_cv_platform_type="Unix" ;;
2686   *-*-netbsd*)
2687     llvm_cv_link_all_option="-Wl,--whole-archive"
2688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2689     llvm_cv_os_type="NetBSD"
2690     llvm_cv_platform_type="Unix" ;;
2691   *-*-dragonfly*)
2692     llvm_cv_link_all_option="-Wl,--whole-archive"
2693     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2694     llvm_cv_os_type="DragonFly"
2695     llvm_cv_platform_type="Unix" ;;
2696   *-*-hpux*)
2697     llvm_cv_link_all_option="-Wl,--whole-archive"
2698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2699     llvm_cv_os_type="HP-UX"
2700     llvm_cv_platform_type="Unix" ;;
2701   *-*-interix*)
2702     llvm_cv_link_all_option="-Wl,--whole-archive"
2703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2704     llvm_cv_os_type="Interix"
2705     llvm_cv_platform_type="Unix" ;;
2706   *-*-linux*)
2707     llvm_cv_link_all_option="-Wl,--whole-archive"
2708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2709     llvm_cv_os_type="Linux"
2710     llvm_cv_platform_type="Unix" ;;
2711   *-*-solaris*)
2712     llvm_cv_link_all_option="-Wl,-z,allextract"
2713     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2714     llvm_cv_os_type="SunOS"
2715     llvm_cv_platform_type="Unix" ;;
2716   *-*-auroraux*)
2717     llvm_cv_link_all_option="-Wl,-z,allextract"
2718     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2719     llvm_cv_os_type="AuroraUX"
2720     llvm_cv_platform_type="Unix" ;;
2721   *-*-win32*)
2722     llvm_cv_link_all_option="-Wl,--whole-archive"
2723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2724     llvm_cv_os_type="Win32"
2725     llvm_cv_platform_type="Win32" ;;
2726   *-*-mingw*)
2727     llvm_cv_link_all_option="-Wl,--whole-archive"
2728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2729     llvm_cv_os_type="MingW"
2730     llvm_cv_platform_type="Win32" ;;
2731   *-*-haiku*)
2732     llvm_cv_link_all_option="-Wl,--whole-archive"
2733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2734     llvm_cv_os_type="Haiku"
2735     llvm_cv_platform_type="Unix" ;;
2736   *-unknown-eabi*)
2737     llvm_cv_link_all_option="-Wl,--whole-archive"
2738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2739     llvm_cv_os_type="Freestanding"
2740     llvm_cv_platform_type="Unix" ;;
2741   *-unknown-elf*)
2742     llvm_cv_link_all_option="-Wl,--whole-archive"
2743     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2744     llvm_cv_os_type="Freestanding"
2745     llvm_cv_platform_type="Unix" ;;
2746   *)
2747     llvm_cv_link_all_option=""
2748     llvm_cv_no_link_all_option=""
2749     llvm_cv_os_type="Unknown"
2750     llvm_cv_platform_type="Unknown" ;;
2751 esac
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
2754 $as_echo "$llvm_cv_os_type" >&6; }
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
2757 $as_echo_n "checking type of operating system we're going to target... " >&6; }
2758 if test "${llvm_cv_target_os_type+set}" = set; then :
2759   $as_echo_n "(cached) " >&6
2760 else
2761   case $target in
2762   *-*-aix*)
2763     llvm_cv_target_os_type="AIX" ;;
2764   *-*-irix*)
2765     llvm_cv_target_os_type="IRIX" ;;
2766   *-*-cygwin*)
2767     llvm_cv_target_os_type="Cygwin" ;;
2768   *-*-darwin*)
2769     llvm_cv_target_os_type="Darwin" ;;
2770   *-*-freebsd*)
2771     llvm_cv_target_os_type="FreeBSD" ;;
2772   *-*-openbsd*)
2773     llvm_cv_target_os_type="OpenBSD" ;;
2774   *-*-netbsd*)
2775     llvm_cv_target_os_type="NetBSD" ;;
2776   *-*-dragonfly*)
2777     llvm_cv_target_os_type="DragonFly" ;;
2778   *-*-hpux*)
2779     llvm_cv_target_os_type="HP-UX" ;;
2780   *-*-interix*)
2781     llvm_cv_target_os_type="Interix" ;;
2782   *-*-linux*)
2783     llvm_cv_target_os_type="Linux" ;;
2784   *-*-solaris*)
2785     llvm_cv_target_os_type="SunOS" ;;
2786   *-*-auroraux*)
2787     llvm_cv_target_os_type="AuroraUX" ;;
2788   *-*-win32*)
2789     llvm_cv_target_os_type="Win32" ;;
2790   *-*-mingw*)
2791     llvm_cv_target_os_type="MingW" ;;
2792   *-*-haiku*)
2793     llvm_cv_target_os_type="Haiku" ;;
2794   *-unknown-eabi*)
2795     llvm_cv_target_os_type="Freestanding" ;;
2796   *)
2797     llvm_cv_target_os_type="Unknown" ;;
2798 esac
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
2801 $as_echo "$llvm_cv_target_os_type" >&6; }
2802
2803 if test "$llvm_cv_os_type" = "Unknown" ; then
2804   as_fn_error "Operating system is unknown, configure can't continue" "$LINENO" 5
2805 fi
2806
2807 OS=$llvm_cv_os_type
2808
2809 HOST_OS=$llvm_cv_os_type
2810
2811 TARGET_OS=$llvm_cv_target_os_type
2812
2813
2814 LINKALL=$llvm_cv_link_all_option
2815
2816 NOLINKALL=$llvm_cv_no_link_all_option
2817
2818
2819 case $llvm_cv_platform_type in
2820   Unix)
2821
2822 $as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
2823
2824     LLVM_ON_UNIX=1
2825
2826     LLVM_ON_WIN32=0
2827
2828     ;;
2829   Win32)
2830
2831 $as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
2832
2833     LLVM_ON_UNIX=0
2834
2835     LLVM_ON_WIN32=1
2836
2837     ;;
2838 esac
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
2841 $as_echo_n "checking target architecture... " >&6; }
2842 if test "${llvm_cv_target_arch+set}" = set; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   case $target in
2846   i?86-*)                 llvm_cv_target_arch="x86" ;;
2847   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2848   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2849   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2850   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2851   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2852   mips-*)                 llvm_cv_target_arch="Mips" ;;
2853   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2854   xcore-*)                llvm_cv_target_arch="XCore" ;;
2855   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2856   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2857   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2858   *)                      llvm_cv_target_arch="Unknown" ;;
2859 esac
2860 fi
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
2862 $as_echo "$llvm_cv_target_arch" >&6; }
2863
2864 if test "$llvm_cv_target_arch" = "Unknown" ; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
2866 $as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2867 fi
2868
2869 # Determine the LLVM native architecture for the target
2870 case "$llvm_cv_target_arch" in
2871     x86)     LLVM_NATIVE_ARCH="X86" ;;
2872     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2873     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2874 esac
2875
2876 ARCH=$llvm_cv_target_arch
2877
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 if test -n "$ac_tool_prefix"; then
2885   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   if test -n "$CC"; then
2893   ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898   IFS=$as_save_IFS
2899   test -z "$as_dir" && as_dir=.
2900     for ac_exec_ext in '' $ac_executable_extensions; do
2901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904     break 2
2905   fi
2906 done
2907   done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 if test -z "$ac_cv_prog_CC"; then
2924   ac_ct_CC=$CC
2925   # Extract the first word of "gcc", so it can be a program name with args.
2926 set dummy gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2930   $as_echo_n "(cached) " >&6
2931 else
2932   if test -n "$ac_ct_CC"; then
2933   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938   IFS=$as_save_IFS
2939   test -z "$as_dir" && as_dir=.
2940     for ac_exec_ext in '' $ac_executable_extensions; do
2941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942     ac_cv_prog_ac_ct_CC="gcc"
2943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944     break 2
2945   fi
2946 done
2947   done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953 if test -n "$ac_ct_CC"; then
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2955 $as_echo "$ac_ct_CC" >&6; }
2956 else
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961   if test "x$ac_ct_CC" = x; then
2962     CC=""
2963   else
2964     case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970     CC=$ac_ct_CC
2971   fi
2972 else
2973   CC="$ac_cv_prog_CC"
2974 fi
2975
2976 if test -z "$CC"; then
2977           if test -n "$ac_tool_prefix"; then
2978     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then :
2983   $as_echo_n "(cached) " >&6
2984 else
2985   if test -n "$CC"; then
2986   ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991   IFS=$as_save_IFS
2992   test -z "$as_dir" && as_dir=.
2993     for ac_exec_ext in '' $ac_executable_extensions; do
2994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995     ac_cv_prog_CC="${ac_tool_prefix}cc"
2996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997     break 2
2998   fi
2999 done
3000   done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015   fi
3016 fi
3017 if test -z "$CC"; then
3018   # Extract the first word of "cc", so it can be a program name with args.
3019 set dummy cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$CC"; then
3026   ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028   ac_prog_rejected=no
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037        ac_prog_rejected=yes
3038        continue
3039      fi
3040     ac_cv_prog_CC="cc"
3041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045   done
3046 IFS=$as_save_IFS
3047
3048 if test $ac_prog_rejected = yes; then
3049   # We found a bogon in the path, so make sure we never use it.
3050   set dummy $ac_cv_prog_CC
3051   shift
3052   if test $# != 0; then
3053     # We chose a different compiler from the bogus one.
3054     # However, it has the same basename, so the bogon will be chosen
3055     # first if we set CC to just the basename; use the full file name.
3056     shift
3057     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058   fi
3059 fi
3060 fi
3061 fi
3062 CC=$ac_cv_prog_CC
3063 if test -n "$CC"; then
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3066 else
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$CC"; then
3074   if test -n "$ac_tool_prefix"; then
3075   for ac_prog in cl.exe
3076   do
3077     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then :
3082   $as_echo_n "(cached) " >&6
3083 else
3084   if test -n "$CC"; then
3085   ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092     for ac_exec_ext in '' $ac_executable_extensions; do
3093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099   done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114     test -n "$CC" && break
3115   done
3116 fi
3117 if test -z "$CC"; then
3118   ac_ct_CC=$CC
3119   for ac_prog in cl.exe
3120 do
3121   # Extract the first word of "$ac_prog", so it can be a program name with args.
3122 set dummy $ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test -n "$ac_ct_CC"; then
3129   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     for ac_exec_ext in '' $ac_executable_extensions; do
3137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138     ac_cv_prog_ac_ct_CC="$ac_prog"
3139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143   done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158   test -n "$ac_ct_CC" && break
3159 done
3160
3161   if test "x$ac_ct_CC" = x; then
3162     CC=""
3163   else
3164     case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170     CC=$ac_ct_CC
3171   fi
3172 fi
3173
3174 fi
3175
3176
3177 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error "no acceptable C compiler found in \$PATH
3180 See \`config.log' for more details." "$LINENO" 5; }
3181
3182 # Provide some information about the compiler.
3183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3184 set X $ac_compile
3185 ac_compiler=$2
3186 for ac_option in --version -v -V -qversion; do
3187   { { ac_try="$ac_compiler $ac_option >&5"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195   ac_status=$?
3196   if test -s conftest.err; then
3197     sed '10a\
3198 ... rest of stderr output deleted ...
3199          10q' conftest.err >conftest.er1
3200     cat conftest.er1 >&5
3201   fi
3202   rm -f conftest.er1 conftest.err
3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204   test $ac_status = 0; }
3205 done
3206
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h.  */
3209
3210 int
3211 main ()
3212 {
3213
3214   ;
3215   return 0;
3216 }
3217 _ACEOF
3218 ac_clean_files_save=$ac_clean_files
3219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220 # Try to create an executable without -o first, disregard a.out.
3221 # It will help us diagnose broken compilers, and finding out an intuition
3222 # of exeext.
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227 # The possible output files:
3228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
3230 ac_rmfiles=
3231 for ac_file in $ac_files
3232 do
3233   case $ac_file in
3234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236   esac
3237 done
3238 rm -f $ac_rmfiles
3239
3240 if { { ac_try="$ac_link_default"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247   (eval "$ac_link_default") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250   test $ac_status = 0; }; then :
3251   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3254 # so that the user can short-circuit this test for compilers unknown to
3255 # Autoconf.
3256 for ac_file in $ac_files ''
3257 do
3258   test -f "$ac_file" || continue
3259   case $ac_file in
3260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3261         ;;
3262     [ab].out )
3263         # We found the default executable, but exeext='' is most
3264         # certainly right.
3265         break;;
3266     *.* )
3267         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3268         then :; else
3269            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270         fi
3271         # We set ac_cv_exeext here because the later test for it is not
3272         # safe: cross compilers may not add the suffix if given an `-o'
3273         # argument, so we may need to know it at that point already.
3274         # Even if this section looks crufty: it has the advantage of
3275         # actually working.
3276         break;;
3277     * )
3278         break;;
3279   esac
3280 done
3281 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
3283 else
3284   ac_file=''
3285 fi
3286 if test -z "$ac_file"; then :
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 $as_echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 { as_fn_set_status 77
3295 as_fn_error "C compiler cannot create executables
3296 See \`config.log' for more details." "$LINENO" 5; }; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304 $as_echo "$ac_file" >&6; }
3305 ac_exeext=$ac_cv_exeext
3306
3307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310 $as_echo_n "checking for suffix of executables... " >&6; }
3311 if { { ac_try="$ac_link"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_link") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }; then :
3322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3325 # `rm'.
3326 for ac_file in conftest.exe conftest conftest.*; do
3327   test -f "$ac_file" || continue
3328   case $ac_file in
3329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331           break;;
3332     * ) break;;
3333   esac
3334 done
3335 else
3336   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error "cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details." "$LINENO" 5; }
3340 fi
3341 rm -f conftest conftest$ac_cv_exeext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343 $as_echo "$ac_cv_exeext" >&6; }
3344
3345 rm -f conftest.$ac_ext
3346 EXEEXT=$ac_cv_exeext
3347 ac_exeext=$EXEEXT
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h.  */
3350 #include <stdio.h>
3351 int
3352 main ()
3353 {
3354 FILE *f = fopen ("conftest.out", "w");
3355  return ferror (f) || fclose (f) != 0;
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 ac_clean_files="$ac_clean_files conftest.out"
3362 # Check that the compiler produces executables we can run.  If not, either
3363 # the compiler is broken, or we cross compile.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3365 $as_echo_n "checking whether we are cross compiling... " >&6; }
3366 if test "$cross_compiling" != yes; then
3367   { { ac_try="$ac_link"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374   (eval "$ac_link") 2>&5
3375   ac_status=$?
3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377   test $ac_status = 0; }
3378   if { ac_try='./conftest$ac_cv_exeext'
3379   { { case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385   (eval "$ac_try") 2>&5
3386   ac_status=$?
3387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388   test $ac_status = 0; }; }; then
3389     cross_compiling=no
3390   else
3391     if test "$cross_compiling" = maybe; then
3392         cross_compiling=yes
3393     else
3394         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error "cannot run C compiled programs.
3397 If you meant to cross compile, use \`--host'.
3398 See \`config.log' for more details." "$LINENO" 5; }
3399     fi
3400   fi
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403 $as_echo "$cross_compiling" >&6; }
3404
3405 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408 $as_echo_n "checking for suffix of object files... " >&6; }
3409 if test "${ac_cv_objext+set}" = set; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.o conftest.obj
3424 if { { ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_compile") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; }; then :
3435   for ac_file in conftest.o conftest.obj conftest.*; do
3436   test -f "$ac_file" || continue;
3437   case $ac_file in
3438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440        break;;
3441   esac
3442 done
3443 else
3444   $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error "cannot compute suffix of object files: cannot compile
3450 See \`config.log' for more details." "$LINENO" 5; }
3451 fi
3452 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455 $as_echo "$ac_cv_objext" >&6; }
3456 OBJEXT=$ac_cv_objext
3457 ac_objext=$OBJEXT
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3460 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469 #ifndef __GNUC__
3470        choke me
3471 #endif
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478   ac_compiler_gnu=yes
3479 else
3480   ac_compiler_gnu=no
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3484
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3489   GCC=yes
3490 else
3491   GCC=
3492 fi
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if test "${ac_cv_prog_cc_g+set}" = set; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   ac_save_c_werror_flag=$ac_c_werror_flag
3501    ac_c_werror_flag=yes
3502    ac_cv_prog_cc_g=no
3503    CFLAGS="-g"
3504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516   ac_cv_prog_cc_g=yes
3517 else
3518   CFLAGS=""
3519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531
3532 else
3533   ac_c_werror_flag=$ac_save_c_werror_flag
3534          CFLAGS="-g"
3535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547   ac_cv_prog_cc_g=yes
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554    ac_c_werror_flag=$ac_save_c_werror_flag
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3557 $as_echo "$ac_cv_prog_cc_g" >&6; }
3558 if test "$ac_test_CFLAGS" = set; then
3559   CFLAGS=$ac_save_CFLAGS
3560 elif test $ac_cv_prog_cc_g = yes; then
3561   if test "$GCC" = yes; then
3562     CFLAGS="-g -O2"
3563   else
3564     CFLAGS="-g"
3565   fi
3566 else
3567   if test "$GCC" = yes; then
3568     CFLAGS="-O2"
3569   else
3570     CFLAGS=
3571   fi
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3574 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3575 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   ac_cv_prog_cc_c89=no
3579 ac_save_CC=$CC
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582 #include <stdarg.h>
3583 #include <stdio.h>
3584 #include <sys/types.h>
3585 #include <sys/stat.h>
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590      char **p;
3591      int i;
3592 {
3593   return p[i];
3594 }
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3596 {
3597   char *s;
3598   va_list v;
3599   va_start (v,p);
3600   s = g (p, va_arg (v,int));
3601   va_end (v);
3602   return s;
3603 }
3604
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3606    function prototypes and stuff, but not '\xHH' hex character constants.
3607    These don't provoke an error unfortunately, instead are silently treated
3608    as 'x'.  The following induces an error, until -std is added to get
3609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3610    array size at least.  It's necessary to write '\x00'==0 to get something
3611    that's true only with -std.  */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615    inside strings and character constants.  */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 do
3636   CC="$ac_save_CC $ac_arg"
3637   if ac_fn_c_try_compile "$LINENO"; then :
3638   ac_cv_prog_cc_c89=$ac_arg
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext
3641   test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3645
3646 fi
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3649   x)
3650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652   xno)
3653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3655   *)
3656     CC="$CC $ac_cv_prog_cc_c89"
3657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3677 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3678 # On Suns, sometimes $CPP names a directory.
3679 if test -n "$CPP" && test -d "$CPP"; then
3680   CPP=
3681 fi
3682 if test -z "$CPP"; then
3683   if test "${ac_cv_prog_CPP+set}" = set; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686       # Double quotes because CPP needs to be expanded
3687     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688     do
3689       ac_preproc_ok=false
3690 for ac_c_preproc_warn_flag in '' yes
3691 do
3692   # Use a header file that comes with gcc, so configuring glibc
3693   # with a fresh cross-compiler works.
3694   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3695   # <limits.h> exists even on freestanding compilers.
3696   # On the NeXT, cc -E runs the code through the compiler's parser,
3697   # not just through cpp. "Syntax error" is here to catch this case.
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h.  */
3700 #ifdef __STDC__
3701 # include <limits.h>
3702 #else
3703 # include <assert.h>
3704 #endif
3705                      Syntax error
3706 _ACEOF
3707 if ac_fn_c_try_cpp "$LINENO"; then :
3708
3709 else
3710   # Broken: fails on valid input.
3711 continue
3712 fi
3713 rm -f conftest.err conftest.$ac_ext
3714
3715   # OK, works on sane cases.  Now check whether nonexistent headers
3716   # can be detected and how.
3717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719 #include <ac_nonexistent.h>
3720 _ACEOF
3721 if ac_fn_c_try_cpp "$LINENO"; then :
3722   # Broken: success on invalid input.
3723 continue
3724 else
3725   # Passes both tests.
3726 ac_preproc_ok=:
3727 break
3728 fi
3729 rm -f conftest.err conftest.$ac_ext
3730
3731 done
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.$ac_ext
3734 if $ac_preproc_ok; then :
3735   break
3736 fi
3737
3738     done
3739     ac_cv_prog_CPP=$CPP
3740
3741 fi
3742   CPP=$ac_cv_prog_CPP
3743 else
3744   ac_cv_prog_CPP=$CPP
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3747 $as_echo "$CPP" >&6; }
3748 ac_preproc_ok=false
3749 for ac_c_preproc_warn_flag in '' yes
3750 do
3751   # Use a header file that comes with gcc, so configuring glibc
3752   # with a fresh cross-compiler works.
3753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754   # <limits.h> exists even on freestanding compilers.
3755   # On the NeXT, cc -E runs the code through the compiler's parser,
3756   # not just through cpp. "Syntax error" is here to catch this case.
3757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759 #ifdef __STDC__
3760 # include <limits.h>
3761 #else
3762 # include <assert.h>
3763 #endif
3764                      Syntax error
3765 _ACEOF
3766 if ac_fn_c_try_cpp "$LINENO"; then :
3767
3768 else
3769   # Broken: fails on valid input.
3770 continue
3771 fi
3772 rm -f conftest.err conftest.$ac_ext
3773
3774   # OK, works on sane cases.  Now check whether nonexistent headers
3775   # can be detected and how.
3776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #include <ac_nonexistent.h>
3779 _ACEOF
3780 if ac_fn_c_try_cpp "$LINENO"; then :
3781   # Broken: success on invalid input.
3782 continue
3783 else
3784   # Passes both tests.
3785 ac_preproc_ok=:
3786 break
3787 fi
3788 rm -f conftest.err conftest.$ac_ext
3789
3790 done
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.$ac_ext
3793 if $ac_preproc_ok; then :
3794
3795 else
3796   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3799 See \`config.log' for more details." "$LINENO" 5; }
3800 fi
3801
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3810 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3811 if test "${ac_cv_path_GREP+set}" = set; then :
3812   $as_echo_n "(cached) " >&6
3813 else
3814   if test -z "$GREP"; then
3815   ac_path_GREP_found=false
3816   # Loop through the user's path and test for each of PROGNAME-LIST
3817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822     for ac_prog in grep ggrep; do
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3825       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3826 # Check for GNU ac_path_GREP and select it if it is found.
3827   # Check for GNU $ac_path_GREP
3828 case `"$ac_path_GREP" --version 2>&1` in
3829 *GNU*)
3830   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3831 *)
3832   ac_count=0
3833   $as_echo_n 0123456789 >"conftest.in"
3834   while :
3835   do
3836     cat "conftest.in" "conftest.in" >"conftest.tmp"
3837     mv "conftest.tmp" "conftest.in"
3838     cp "conftest.in" "conftest.nl"
3839     $as_echo 'GREP' >> "conftest.nl"
3840     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842     as_fn_arith $ac_count + 1 && ac_count=$as_val
3843     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3844       # Best one so far, save it but keep looking for a better one
3845       ac_cv_path_GREP="$ac_path_GREP"
3846       ac_path_GREP_max=$ac_count
3847     fi
3848     # 10*(2^10) chars as input seems more than enough
3849     test $ac_count -gt 10 && break
3850   done
3851   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852 esac
3853
3854       $ac_path_GREP_found && break 3
3855     done
3856   done
3857   done
3858 IFS=$as_save_IFS
3859   if test -z "$ac_cv_path_GREP"; then
3860     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3861   fi
3862 else
3863   ac_cv_path_GREP=$GREP
3864 fi
3865
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3868 $as_echo "$ac_cv_path_GREP" >&6; }
3869  GREP="$ac_cv_path_GREP"
3870
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3873 $as_echo_n "checking for egrep... " >&6; }
3874 if test "${ac_cv_path_EGREP+set}" = set; then :
3875   $as_echo_n "(cached) " >&6
3876 else
3877   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3878    then ac_cv_path_EGREP="$GREP -E"
3879    else
3880      if test -z "$EGREP"; then
3881   ac_path_EGREP_found=false
3882   # Loop through the user's path and test for each of PROGNAME-LIST
3883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3885 do
3886   IFS=$as_save_IFS
3887   test -z "$as_dir" && as_dir=.
3888     for ac_prog in egrep; do
3889     for ac_exec_ext in '' $ac_executable_extensions; do
3890       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3891       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3892 # Check for GNU ac_path_EGREP and select it if it is found.
3893   # Check for GNU $ac_path_EGREP
3894 case `"$ac_path_EGREP" --version 2>&1` in
3895 *GNU*)
3896   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3897 *)
3898   ac_count=0
3899   $as_echo_n 0123456789 >"conftest.in"
3900   while :
3901   do
3902     cat "conftest.in" "conftest.in" >"conftest.tmp"
3903     mv "conftest.tmp" "conftest.in"
3904     cp "conftest.in" "conftest.nl"
3905     $as_echo 'EGREP' >> "conftest.nl"
3906     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3908     as_fn_arith $ac_count + 1 && ac_count=$as_val
3909     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3910       # Best one so far, save it but keep looking for a better one
3911       ac_cv_path_EGREP="$ac_path_EGREP"
3912       ac_path_EGREP_max=$ac_count
3913     fi
3914     # 10*(2^10) chars as input seems more than enough
3915     test $ac_count -gt 10 && break
3916   done
3917   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918 esac
3919
3920       $ac_path_EGREP_found && break 3
3921     done
3922   done
3923   done
3924 IFS=$as_save_IFS
3925   if test -z "$ac_cv_path_EGREP"; then
3926     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3927   fi
3928 else
3929   ac_cv_path_EGREP=$EGREP
3930 fi
3931
3932    fi
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3935 $as_echo "$ac_cv_path_EGREP" >&6; }
3936  EGREP="$ac_cv_path_EGREP"
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3940 $as_echo_n "checking for ANSI C header files... " >&6; }
3941 if test "${ac_cv_header_stdc+set}" = set; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946 #include <stdlib.h>
3947 #include <stdarg.h>
3948 #include <string.h>
3949 #include <float.h>
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960   ac_cv_header_stdc=yes
3961 else
3962   ac_cv_header_stdc=no
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965
3966 if test $ac_cv_header_stdc = yes; then
3967   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h.  */
3970 #include <string.h>
3971
3972 _ACEOF
3973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3974   $EGREP "memchr" >/dev/null 2>&1; then :
3975
3976 else
3977   ac_cv_header_stdc=no
3978 fi
3979 rm -f conftest*
3980
3981 fi
3982
3983 if test $ac_cv_header_stdc = yes; then
3984   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987 #include <stdlib.h>
3988
3989 _ACEOF
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991   $EGREP "free" >/dev/null 2>&1; then :
3992
3993 else
3994   ac_cv_header_stdc=no
3995 fi
3996 rm -f conftest*
3997
3998 fi
3999
4000 if test $ac_cv_header_stdc = yes; then
4001   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4002   if test "$cross_compiling" = yes; then :
4003   :
4004 else
4005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #include <ctype.h>
4008 #include <stdlib.h>
4009 #if ((' ' & 0x0FF) == 0x020)
4010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4012 #else
4013 # define ISLOWER(c) \
4014                    (('a' <= (c) && (c) <= 'i') \
4015                      || ('j' <= (c) && (c) <= 'r') \
4016                      || ('s' <= (c) && (c) <= 'z'))
4017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4018 #endif
4019
4020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4021 int
4022 main ()
4023 {
4024   int i;
4025   for (i = 0; i < 256; i++)
4026     if (XOR (islower (i), ISLOWER (i))
4027         || toupper (i) != TOUPPER (i))
4028       return 2;
4029   return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_run "$LINENO"; then :
4033
4034 else
4035   ac_cv_header_stdc=no
4036 fi
4037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4038   conftest.$ac_objext conftest.beam conftest.$ac_ext
4039 fi
4040
4041 fi
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4044 $as_echo "$ac_cv_header_stdc" >&6; }
4045 if test $ac_cv_header_stdc = yes; then
4046
4047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4048
4049 fi
4050
4051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053                   inttypes.h stdint.h unistd.h
4054 do :
4055   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4057 "
4058 eval as_val=\$$as_ac_Header
4059    if test "x$as_val" = x""yes; then :
4060   cat >>confdefs.h <<_ACEOF
4061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062 _ACEOF
4063
4064 fi
4065
4066 done
4067
4068
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4070 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4071 if test "${ac_cv_c_bigendian+set}" = set; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   ac_cv_c_bigendian=unknown
4075     # See if we're dealing with a universal compiler.
4076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #ifndef __APPLE_CC__
4079                not a universal capable compiler
4080              #endif
4081              typedef int dummy;
4082
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085
4086         # Check for potential -arch flags.  It is not universal unless
4087         # there are at least two -arch flags with different values.
4088         ac_arch=
4089         ac_prev=
4090         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4091          if test -n "$ac_prev"; then
4092            case $ac_word in
4093              i?86 | x86_64 | ppc | ppc64)
4094                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4095                  ac_arch=$ac_word
4096                else
4097                  ac_cv_c_bigendian=universal
4098                  break
4099                fi
4100                ;;
4101            esac
4102            ac_prev=
4103          elif test "x$ac_word" = "x-arch"; then
4104            ac_prev=arch
4105          fi
4106        done
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109     if test $ac_cv_c_bigendian = unknown; then
4110       # See if sys/param.h defines the BYTE_ORDER macro.
4111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113 #include <sys/types.h>
4114              #include <sys/param.h>
4115
4116 int
4117 main ()
4118 {
4119 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4120                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4121                      && LITTLE_ENDIAN)
4122               bogus endian macros
4123              #endif
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130   # It does; now see whether it defined to BIG_ENDIAN or not.
4131          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h.  */
4133 #include <sys/types.h>
4134                 #include <sys/param.h>
4135
4136 int
4137 main ()
4138 {
4139 #if BYTE_ORDER != BIG_ENDIAN
4140                  not big endian
4141                 #endif
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148   ac_cv_c_bigendian=yes
4149 else
4150   ac_cv_c_bigendian=no
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155     fi
4156     if test $ac_cv_c_bigendian = unknown; then
4157       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160 #include <limits.h>
4161
4162 int
4163 main ()
4164 {
4165 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4166               bogus endian macros
4167              #endif
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174   # It does; now see whether it defined to _BIG_ENDIAN or not.
4175          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h.  */
4177 #include <limits.h>
4178
4179 int
4180 main ()
4181 {
4182 #ifndef _BIG_ENDIAN
4183                  not big endian
4184                 #endif
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_cv_c_bigendian=yes
4192 else
4193   ac_cv_c_bigendian=no
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198     fi
4199     if test $ac_cv_c_bigendian = unknown; then
4200       # Compile a test program.
4201       if test "$cross_compiling" = yes; then :
4202   # Try to guess by grepping values from an object file.
4203          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205 short int ascii_mm[] =
4206                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4207                 short int ascii_ii[] =
4208                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209                 int use_ascii (int i) {
4210                   return ascii_mm[i] + ascii_ii[i];
4211                 }
4212                 short int ebcdic_ii[] =
4213                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4214                 short int ebcdic_mm[] =
4215                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216                 int use_ebcdic (int i) {
4217                   return ebcdic_mm[i] + ebcdic_ii[i];
4218                 }
4219                 extern int foo;
4220
4221 int
4222 main ()
4223 {
4224 return use_ascii (foo) == use_ebcdic (foo);
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4231               ac_cv_c_bigendian=yes
4232             fi
4233             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4234               if test "$ac_cv_c_bigendian" = unknown; then
4235                 ac_cv_c_bigendian=no
4236               else
4237                 # finding both strings is unlikely to happen, but who knows?
4238                 ac_cv_c_bigendian=unknown
4239               fi
4240             fi
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 else
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 $ac_includes_default
4247 int
4248 main ()
4249 {
4250
4251              /* Are we little or big endian?  From Harbison&Steele.  */
4252              union
4253              {
4254                long int l;
4255                char c[sizeof (long int)];
4256              } u;
4257              u.l = 1;
4258              return u.c[sizeof (long int) - 1] == 1;
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_run "$LINENO"; then :
4265   ac_cv_c_bigendian=no
4266 else
4267   ac_cv_c_bigendian=yes
4268 fi
4269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4270   conftest.$ac_objext conftest.beam conftest.$ac_ext
4271 fi
4272
4273     fi
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4276 $as_echo "$ac_cv_c_bigendian" >&6; }
4277  case $ac_cv_c_bigendian in #(
4278    yes)
4279      ENDIAN=big
4280 ;; #(
4281    no)
4282      ENDIAN=little
4283  ;; #(
4284    universal)
4285
4286 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4287
4288      ;; #(
4289    *)
4290      as_fn_error "unknown endianness
4291  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4292  esac
4293
4294
4295 if test "$cross_compiling" = yes; then
4296   LLVM_CROSS_COMPILING=1
4297
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
4300 $as_echo_n "checking for executable suffix on build platform... " >&6; }
4301 if test "${ac_cv_build_exeext+set}" = set; then :
4302   $as_echo_n "(cached) " >&6
4303 else
4304   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4305   ac_cv_build_exeext=.exe
4306 else
4307   ac_build_prefix=${build_alias}-
4308
4309   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4310 set dummy ${ac_build_prefix}gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -n "$BUILD_CC"; then
4317   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331   done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4339 $as_echo "$BUILD_CC" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346   if test -z "$BUILD_CC"; then
4347      # Extract the first word of "gcc", so it can be a program name with args.
4348 set dummy gcc; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   if test -n "$BUILD_CC"; then
4355   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360   IFS=$as_save_IFS
4361   test -z "$as_dir" && as_dir=.
4362     for ac_exec_ext in '' $ac_executable_extensions; do
4363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364     ac_cv_prog_BUILD_CC="gcc"
4365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366     break 2
4367   fi
4368 done
4369   done
4370 IFS=$as_save_IFS
4371
4372 fi
4373 fi
4374 BUILD_CC=$ac_cv_prog_BUILD_CC
4375 if test -n "$BUILD_CC"; then
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4377 $as_echo "$BUILD_CC" >&6; }
4378 else
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 fi
4382
4383
4384      if test -z "$BUILD_CC"; then
4385        # Extract the first word of "cc", so it can be a program name with args.
4386 set dummy cc; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   if test -n "$BUILD_CC"; then
4393   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 else
4395   ac_prog_rejected=no
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401     for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4404        ac_prog_rejected=yes
4405        continue
4406      fi
4407     ac_cv_prog_BUILD_CC="cc"
4408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412   done
4413 IFS=$as_save_IFS
4414
4415 if test $ac_prog_rejected = yes; then
4416   # We found a bogon in the path, so make sure we never use it.
4417   set dummy $ac_cv_prog_BUILD_CC
4418   shift
4419   if test $# != 0; then
4420     # We chose a different compiler from the bogus one.
4421     # However, it has the same basename, so the bogon will be chosen
4422     # first if we set BUILD_CC to just the basename; use the full file name.
4423     shift
4424     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4425   fi
4426 fi
4427 fi
4428 fi
4429 BUILD_CC=$ac_cv_prog_BUILD_CC
4430 if test -n "$BUILD_CC"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4432 $as_echo "$BUILD_CC" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439      fi
4440   fi
4441   test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
4442   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4443   rm -f conftest*
4444   echo 'int main () { return 0; }' > conftest.$ac_ext
4445   ac_cv_build_exeext=
4446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
4447   (eval $ac_build_link) 2>&5
4448   ac_status=$?
4449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450   test $ac_status = 0; }; then
4451     for file in conftest.*; do
4452       case $file in
4453       *.c | *.o | *.obj | *.dSYM) ;;
4454       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4455       esac
4456     done
4457   else
4458     as_fn_error "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
4459   fi
4460   rm -f conftest*
4461   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4462 fi
4463 fi
4464
4465 BUILD_EXEEXT=""
4466 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
4468 $as_echo "${ac_cv_build_exeext}" >&6; }
4469 ac_build_exeext=$BUILD_EXEEXT
4470
4471   ac_build_prefix=${build_alias}-
4472   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4473 set dummy ${ac_build_prefix}g++; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4477   $as_echo_n "(cached) " >&6
4478 else
4479   if test -n "$BUILD_CXX"; then
4480   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487     for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494   done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4500 if test -n "$BUILD_CXX"; then
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4502 $as_echo "$BUILD_CXX" >&6; }
4503 else
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4506 fi
4507
4508
4509   if test -z "$BUILD_CXX"; then
4510      # Extract the first word of "g++", so it can be a program name with args.
4511 set dummy g++; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   if test -n "$BUILD_CXX"; then
4518   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525     for ac_exec_ext in '' $ac_executable_extensions; do
4526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527     ac_cv_prog_BUILD_CXX="g++"
4528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532   done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4538 if test -n "$BUILD_CXX"; then
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4540 $as_echo "$BUILD_CXX" >&6; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546
4547      if test -z "$BUILD_CXX"; then
4548        # Extract the first word of "c++", so it can be a program name with args.
4549 set dummy c++; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   if test -n "$BUILD_CXX"; then
4556   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4557 else
4558   ac_prog_rejected=no
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4567        ac_prog_rejected=yes
4568        continue
4569      fi
4570     ac_cv_prog_BUILD_CXX="c++"
4571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575   done
4576 IFS=$as_save_IFS
4577
4578 if test $ac_prog_rejected = yes; then
4579   # We found a bogon in the path, so make sure we never use it.
4580   set dummy $ac_cv_prog_BUILD_CXX
4581   shift
4582   if test $# != 0; then
4583     # We chose a different compiler from the bogus one.
4584     # However, it has the same basename, so the bogon will be chosen
4585     # first if we set BUILD_CXX to just the basename; use the full file name.
4586     shift
4587     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4588   fi
4589 fi
4590 fi
4591 fi
4592 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4593 if test -n "$BUILD_CXX"; then
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4595 $as_echo "$BUILD_CXX" >&6; }
4596 else
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 fi
4600
4601
4602      fi
4603   fi
4604 else
4605   LLVM_CROSS_COMPILING=0
4606
4607 fi
4608
4609 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4610   cvsbuild="yes"
4611   optimize="no"
4612   CVSBUILD=CVSBUILD=1
4613
4614 else
4615   cvsbuild="no"
4616   optimize="yes"
4617 fi
4618
4619
4620 # Check whether --enable-optimized was given.
4621 if test "${enable_optimized+set}" = set; then :
4622   enableval=$enable_optimized;
4623 else
4624   enableval=$optimize
4625 fi
4626
4627 if test ${enableval} = "no" ; then
4628   ENABLE_OPTIMIZED=
4629
4630 else
4631   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4632
4633 fi
4634
4635 # Check whether --enable-profiling was given.
4636 if test "${enable_profiling+set}" = set; then :
4637   enableval=$enable_profiling;
4638 else
4639   enableval="no"
4640 fi
4641
4642 if test ${enableval} = "no" ; then
4643   ENABLE_PROFILING=
4644
4645 else
4646   ENABLE_PROFILING=ENABLE_PROFILING=1
4647
4648 fi
4649
4650 # Check whether --enable-assertions was given.
4651 if test "${enable_assertions+set}" = set; then :
4652   enableval=$enable_assertions;
4653 else
4654   enableval="yes"
4655 fi
4656
4657 if test ${enableval} = "yes" ; then
4658   DISABLE_ASSERTIONS=
4659
4660 else
4661   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4662
4663 fi
4664
4665 # Check whether --enable-expensive-checks was given.
4666 if test "${enable_expensive_checks+set}" = set; then :
4667   enableval=$enable_expensive_checks;
4668 else
4669   enableval="no"
4670 fi
4671
4672 if test ${enableval} = "yes" ; then
4673   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4674
4675   EXPENSIVE_CHECKS=yes
4676
4677 else
4678   ENABLE_EXPENSIVE_CHECKS=
4679
4680   EXPENSIVE_CHECKS=no
4681
4682 fi
4683
4684 # Check whether --enable-debug-runtime was given.
4685 if test "${enable_debug_runtime+set}" = set; then :
4686   enableval=$enable_debug_runtime;
4687 else
4688   enableval=no
4689 fi
4690
4691 if test ${enableval} = "no" ; then
4692   DEBUG_RUNTIME=
4693
4694 else
4695   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4696
4697 fi
4698
4699 # Check whether --enable-debug-symbols was given.
4700 if test "${enable_debug_symbols+set}" = set; then :
4701   enableval=$enable_debug_symbols;
4702 else
4703   enableval=no
4704 fi
4705
4706 if test ${enableval} = "no" ; then
4707   DEBUG_SYMBOLS=
4708
4709 else
4710   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4711
4712 fi
4713
4714 # Check whether --enable-jit was given.
4715 if test "${enable_jit+set}" = set; then :
4716   enableval=$enable_jit;
4717 else
4718   enableval=default
4719 fi
4720
4721 if test ${enableval} = "no"
4722 then
4723   JIT=
4724
4725 else
4726   case "$llvm_cv_target_arch" in
4727     x86)         TARGET_HAS_JIT=1
4728  ;;
4729     Sparc)       TARGET_HAS_JIT=0
4730  ;;
4731     PowerPC)     TARGET_HAS_JIT=1
4732  ;;
4733     x86_64)      TARGET_HAS_JIT=1
4734  ;;
4735     Alpha)       TARGET_HAS_JIT=1
4736  ;;
4737     ARM)         TARGET_HAS_JIT=1
4738  ;;
4739     Mips)        TARGET_HAS_JIT=0
4740  ;;
4741     PIC16)       TARGET_HAS_JIT=0
4742  ;;
4743     XCore)       TARGET_HAS_JIT=0
4744  ;;
4745     MSP430)      TARGET_HAS_JIT=0
4746  ;;
4747     SystemZ)     TARGET_HAS_JIT=0
4748  ;;
4749     Blackfin)    TARGET_HAS_JIT=0
4750  ;;
4751     *)           TARGET_HAS_JIT=0
4752  ;;
4753   esac
4754 fi
4755
4756 # Check whether --enable-doxygen was given.
4757 if test "${enable_doxygen+set}" = set; then :
4758   enableval=$enable_doxygen;
4759 else
4760   enableval=default
4761 fi
4762
4763 case "$enableval" in
4764   yes) ENABLE_DOXYGEN=1
4765  ;;
4766   no)  ENABLE_DOXYGEN=0
4767  ;;
4768   default) ENABLE_DOXYGEN=0
4769  ;;
4770   *) as_fn_error "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4771 esac
4772
4773 # Check whether --enable-threads was given.
4774 if test "${enable_threads+set}" = set; then :
4775   enableval=$enable_threads;
4776 else
4777   enableval=default
4778 fi
4779
4780 case "$enableval" in
4781   yes) ENABLE_THREADS=1
4782  ;;
4783   no)  ENABLE_THREADS=0
4784  ;;
4785   default) ENABLE_THREADS=1
4786  ;;
4787   *) as_fn_error "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4788 esac
4789
4790 cat >>confdefs.h <<_ACEOF
4791 #define ENABLE_THREADS $ENABLE_THREADS
4792 _ACEOF
4793
4794
4795 # Check whether --enable-pic was given.
4796 if test "${enable_pic+set}" = set; then :
4797   enableval=$enable_pic;
4798 else
4799   enableval=default
4800 fi
4801
4802 case "$enableval" in
4803   yes) ENABLE_PIC=1
4804  ;;
4805   no)  ENABLE_PIC=0
4806  ;;
4807   default) ENABLE_PIC=1
4808  ;;
4809   *) as_fn_error "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4810 esac
4811
4812 cat >>confdefs.h <<_ACEOF
4813 #define ENABLE_PIC $ENABLE_PIC
4814 _ACEOF
4815
4816
4817 TARGETS_TO_BUILD=""
4818 # Check whether --enable-targets was given.
4819 if test "${enable_targets+set}" = set; then :
4820   enableval=$enable_targets;
4821 else
4822   enableval=all
4823 fi
4824
4825 if test "$enableval" = host-only ; then
4826   enableval=host
4827 fi
4828 case "$enableval" in
4829   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4830   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4831       case "$a_target" in
4832         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4833         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4834         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4835         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4836         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4837         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4838         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4839         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4840         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4841         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4842         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4843         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4844         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4845         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4846         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4847         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4848         host) case "$llvm_cv_target_arch" in
4849             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4850             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4851             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4852             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4853             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4854             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4855             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4856             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4857             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4858             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4859             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4860             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4861             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4862             *)       as_fn_error "Can not set target to build" "$LINENO" 5 ;;
4863           esac ;;
4864         *) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;;
4865       esac
4866   done
4867   ;;
4868 esac
4869 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4870
4871
4872 # Determine whether we are building LLVM support for the native architecture.
4873 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4874 for a_target in $TARGETS_TO_BUILD; do
4875   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4876     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4877
4878 cat >>confdefs.h <<_ACEOF
4879 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4880 _ACEOF
4881
4882   fi
4883 done
4884
4885 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4886 # target feature def files.
4887 LLVM_ENUM_TARGETS=""
4888 LLVM_ENUM_ASM_PRINTERS=""
4889 LLVM_ENUM_ASM_PARSERS=""
4890 LLVM_ENUM_DISASSEMBLERS=""
4891 for target_to_build in $TARGETS_TO_BUILD; do
4892   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4893   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4894     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4895   fi
4896   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4897     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4898   fi
4899   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4900     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4901   fi
4902 done
4903
4904
4905
4906
4907
4908 # Check whether --enable-cbe-printf-a was given.
4909 if test "${enable_cbe_printf_a+set}" = set; then :
4910   enableval=$enable_cbe_printf_a;
4911 else
4912   enableval=default
4913 fi
4914
4915 case "$enableval" in
4916   yes) ENABLE_CBE_PRINTF_A=1
4917  ;;
4918   no)  ENABLE_CBE_PRINTF_A=0
4919  ;;
4920   default)  ENABLE_CBE_PRINTF_A=1
4921  ;;
4922   *) as_fn_error "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4923 esac
4924
4925 cat >>confdefs.h <<_ACEOF
4926 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4927 _ACEOF
4928
4929
4930
4931 # Check whether --with-llvmgccdir was given.
4932 if test "${with_llvmgccdir+set}" = set; then :
4933   withval=$with_llvmgccdir;
4934 else
4935   withval=default
4936 fi
4937
4938 case "$withval" in
4939   default) WITH_LLVMGCCDIR=default ;;
4940   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4941   *) as_fn_error "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
4942 esac
4943
4944
4945 # Check whether --with-llvmgcc was given.
4946 if test "${with_llvmgcc+set}" = set; then :
4947   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4948       WITH_LLVMGCCDIR=""
4949 fi
4950
4951
4952
4953 # Check whether --with-llvmgxx was given.
4954 if test "${with_llvmgxx+set}" = set; then :
4955   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4956     WITH_LLVMGCCDIR=""
4957 fi
4958
4959
4960 if test -n "$LLVMGCC"; then
4961    LLVMGCCCOMMAND="$LLVMGCC"
4962 fi
4963
4964 if test -n "$LLVMGXX"; then
4965    LLVMGXXCOMMAND="$LLVMGXX"
4966 fi
4967
4968 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4969    as_fn_error "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5;
4970 fi
4971
4972 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4973    as_fn_error "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5;
4974 fi
4975
4976
4977 # Check whether --with-optimize-option was given.
4978 if test "${with_optimize_option+set}" = set; then :
4979   withval=$with_optimize_option;
4980 else
4981   withval=default
4982 fi
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
4985 $as_echo_n "checking optimization flags... " >&6; }
4986 case "$withval" in
4987   default)
4988     case "$llvm_cv_os_type" in
4989     MingW) optimize_option=-O3 ;;
4990     *)     optimize_option=-O2 ;;
4991     esac ;;
4992   *) optimize_option="$withval" ;;
4993 esac
4994 OPTIMIZE_OPTION=$optimize_option
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
4997 $as_echo "$optimize_option" >&6; }
4998
4999
5000 # Check whether --with-extra-options was given.
5001 if test "${with_extra_options+set}" = set; then :
5002   withval=$with_extra_options;
5003 else
5004   withval=default
5005 fi
5006
5007 case "$withval" in
5008   default) EXTRA_OPTIONS= ;;
5009   *) EXTRA_OPTIONS=$withval ;;
5010 esac
5011 EXTRA_OPTIONS=$EXTRA_OPTIONS
5012
5013
5014 # Check whether --enable-bindings was given.
5015 if test "${enable_bindings+set}" = set; then :
5016   enableval=$enable_bindings;
5017 else
5018   enableval=default
5019 fi
5020
5021 BINDINGS_TO_BUILD=""
5022 case "$enableval" in
5023   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5024   all ) BINDINGS_TO_BUILD="ocaml" ;;
5025   none | no) BINDINGS_TO_BUILD="" ;;
5026   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5027       case "$a_binding" in
5028         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5029         *) as_fn_error "Unrecognized binding $a_binding" "$LINENO" 5 ;;
5030       esac
5031   done
5032   ;;
5033 esac
5034
5035
5036 # Check whether --with-ocaml-libdir was given.
5037 if test "${with_ocaml_libdir+set}" = set; then :
5038   withval=$with_ocaml_libdir;
5039 else
5040   withval=auto
5041 fi
5042
5043 case "$withval" in
5044   auto) with_ocaml_libdir="$withval" ;;
5045   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5046   *) as_fn_error "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5047 esac
5048
5049
5050 # Check whether --with-c-include-dirs was given.
5051 if test "${with_c_include_dirs+set}" = set; then :
5052   withval=$with_c_include_dirs;
5053 else
5054   withval=""
5055 fi
5056
5057
5058 cat >>confdefs.h <<_ACEOF
5059 #define C_INCLUDE_DIRS "$withval"
5060 _ACEOF
5061
5062
5063
5064 # Check whether --with-cxx-include-root was given.
5065 if test "${with_cxx_include_root+set}" = set; then :
5066   withval=$with_cxx_include_root;
5067 else
5068   withval=""
5069 fi
5070
5071
5072 cat >>confdefs.h <<_ACEOF
5073 #define CXX_INCLUDE_ROOT "$withval"
5074 _ACEOF
5075
5076
5077
5078 # Check whether --with-cxx-include-arch was given.
5079 if test "${with_cxx_include_arch+set}" = set; then :
5080   withval=$with_cxx_include_arch;
5081 else
5082   withval=""
5083 fi
5084
5085
5086 cat >>confdefs.h <<_ACEOF
5087 #define CXX_INCLUDE_ARCH "$withval"
5088 _ACEOF
5089
5090
5091
5092 # Check whether --with-cxx-include-32bit-dir was given.
5093 if test "${with_cxx_include_32bit_dir+set}" = set; then :
5094   withval=$with_cxx_include_32bit_dir;
5095 else
5096   withval=""
5097 fi
5098
5099
5100 cat >>confdefs.h <<_ACEOF
5101 #define CXX_INCLUDE_32BIT_DIR "$withval"
5102 _ACEOF
5103
5104
5105
5106 # Check whether --with-cxx-include-64bit-dir was given.
5107 if test "${with_cxx_include_64bit_dir+set}" = set; then :
5108   withval=$with_cxx_include_64bit_dir;
5109 else
5110   withval=""
5111 fi
5112
5113
5114 cat >>confdefs.h <<_ACEOF
5115 #define CXX_INCLUDE_64BIT_DIR "$withval"
5116 _ACEOF
5117
5118
5119
5120 # Check whether --with-binutils-include was given.
5121 if test "${with_binutils_include+set}" = set; then :
5122   withval=$with_binutils_include;
5123 else
5124   withval=default
5125 fi
5126
5127 case "$withval" in
5128   default) WITH_BINUTILS_INCDIR=default ;;
5129   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5130   *) as_fn_error "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5131 esac
5132 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5133   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5134
5135   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5136      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5137      as_fn_error "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
5138   fi
5139 fi
5140
5141 # Check whether --enable-libffi was given.
5142 if test "${enable_libffi+set}" = set; then :
5143   enableval=$enable_libffi;
5144 else
5145   enableval=yes
5146 fi
5147
5148 case "$enableval" in
5149   yes) llvm_cv_enable_libffi="yes" ;;
5150   no)  llvm_cv_enable_libffi="no"  ;;
5151   *) as_fn_error "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5152 esac
5153
5154 if test "$llvm_cv_os_type" = "Win32" ; then
5155    llvmc_dynamic="yes"
5156 else
5157    llvmc_dynamic="no"
5158 fi
5159
5160 # Check whether --enable-llvmc-dynamic was given.
5161 if test "${enable_llvmc_dynamic+set}" = set; then :
5162   enableval=$enable_llvmc_dynamic;
5163 else
5164   enableval=$llvmc_dynamic
5165 fi
5166
5167 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5168    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5169
5170 else
5171    ENABLE_LLVMC_DYNAMIC=
5172
5173 fi
5174
5175 # Check whether --enable-llvmc-dynamic-plugins was given.
5176 if test "${enable_llvmc_dynamic_plugins+set}" = set; then :
5177   enableval=$enable_llvmc_dynamic_plugins;
5178 else
5179   enableval=yes
5180 fi
5181
5182 if test ${enableval} = "yes" ; then
5183    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5184
5185 else
5186    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5187
5188 fi
5189
5190
5191 ac_ext=c
5192 ac_cpp='$CPP $CPPFLAGS'
5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5198 # On Suns, sometimes $CPP names a directory.
5199 if test -n "$CPP" && test -d "$CPP"; then
5200   CPP=
5201 fi
5202 if test -z "$CPP"; then
5203   if test "${ac_cv_prog_CPP+set}" = set; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206       # Double quotes because CPP needs to be expanded
5207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5208     do
5209       ac_preproc_ok=false
5210 for ac_c_preproc_warn_flag in '' yes
5211 do
5212   # Use a header file that comes with gcc, so configuring glibc
5213   # with a fresh cross-compiler works.
5214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5215   # <limits.h> exists even on freestanding compilers.
5216   # On the NeXT, cc -E runs the code through the compiler's parser,
5217   # not just through cpp. "Syntax error" is here to catch this case.
5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220 #ifdef __STDC__
5221 # include <limits.h>
5222 #else
5223 # include <assert.h>
5224 #endif
5225                      Syntax error
5226 _ACEOF
5227 if ac_fn_c_try_cpp "$LINENO"; then :
5228
5229 else
5230   # Broken: fails on valid input.
5231 continue
5232 fi
5233 rm -f conftest.err conftest.$ac_ext
5234
5235   # OK, works on sane cases.  Now check whether nonexistent headers
5236   # can be detected and how.
5237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239 #include <ac_nonexistent.h>
5240 _ACEOF
5241 if ac_fn_c_try_cpp "$LINENO"; then :
5242   # Broken: success on invalid input.
5243 continue
5244 else
5245   # Passes both tests.
5246 ac_preproc_ok=:
5247 break
5248 fi
5249 rm -f conftest.err conftest.$ac_ext
5250
5251 done
5252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253 rm -f conftest.err conftest.$ac_ext
5254 if $ac_preproc_ok; then :
5255   break
5256 fi
5257
5258     done
5259     ac_cv_prog_CPP=$CPP
5260
5261 fi
5262   CPP=$ac_cv_prog_CPP
5263 else
5264   ac_cv_prog_CPP=$CPP
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5267 $as_echo "$CPP" >&6; }
5268 ac_preproc_ok=false
5269 for ac_c_preproc_warn_flag in '' yes
5270 do
5271   # Use a header file that comes with gcc, so configuring glibc
5272   # with a fresh cross-compiler works.
5273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274   # <limits.h> exists even on freestanding compilers.
5275   # On the NeXT, cc -E runs the code through the compiler's parser,
5276   # not just through cpp. "Syntax error" is here to catch this case.
5277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 #ifdef __STDC__
5280 # include <limits.h>
5281 #else
5282 # include <assert.h>
5283 #endif
5284                      Syntax error
5285 _ACEOF
5286 if ac_fn_c_try_cpp "$LINENO"; then :
5287
5288 else
5289   # Broken: fails on valid input.
5290 continue
5291 fi
5292 rm -f conftest.err conftest.$ac_ext
5293
5294   # OK, works on sane cases.  Now check whether nonexistent headers
5295   # can be detected and how.
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #include <ac_nonexistent.h>
5299 _ACEOF
5300 if ac_fn_c_try_cpp "$LINENO"; then :
5301   # Broken: success on invalid input.
5302 continue
5303 else
5304   # Passes both tests.
5305 ac_preproc_ok=:
5306 break
5307 fi
5308 rm -f conftest.err conftest.$ac_ext
5309
5310 done
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then :
5314
5315 else
5316   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5319 See \`config.log' for more details." "$LINENO" 5; }
5320 fi
5321
5322 ac_ext=c
5323 ac_cpp='$CPP $CPPFLAGS'
5324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5327
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333 if test -n "$ac_tool_prefix"; then
5334   for ac_prog in gcc
5335   do
5336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if test "${ac_cv_prog_CC+set}" = set; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   if test -n "$CC"; then
5344   ac_cv_prog_CC="$CC" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351     for ac_exec_ext in '' $ac_executable_extensions; do
5352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358   done
5359 IFS=$as_save_IFS
5360
5361 fi
5362 fi
5363 CC=$ac_cv_prog_CC
5364 if test -n "$CC"; then
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5366 $as_echo "$CC" >&6; }
5367 else
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371
5372
5373     test -n "$CC" && break
5374   done
5375 fi
5376 if test -z "$CC"; then
5377   ac_ct_CC=$CC
5378   for ac_prog in gcc
5379 do
5380   # Extract the first word of "$ac_prog", so it can be a program name with args.
5381 set dummy $ac_prog; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   if test -n "$ac_ct_CC"; then
5388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395     for ac_exec_ext in '' $ac_executable_extensions; do
5396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397     ac_cv_prog_ac_ct_CC="$ac_prog"
5398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402   done
5403 IFS=$as_save_IFS
5404
5405 fi
5406 fi
5407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5408 if test -n "$ac_ct_CC"; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5410 $as_echo "$ac_ct_CC" >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417   test -n "$ac_ct_CC" && break
5418 done
5419
5420   if test "x$ac_ct_CC" = x; then
5421     CC=""
5422   else
5423     case $cross_compiling:$ac_tool_warned in
5424 yes:)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429     CC=$ac_ct_CC
5430   fi
5431 fi
5432
5433
5434 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5436 as_fn_error "no acceptable C compiler found in \$PATH
5437 See \`config.log' for more details." "$LINENO" 5; }
5438
5439 # Provide some information about the compiler.
5440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5441 set X $ac_compile
5442 ac_compiler=$2
5443 for ac_option in --version -v -V -qversion; do
5444   { { ac_try="$ac_compiler $ac_option >&5"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5450 $as_echo "$ac_try_echo"; } >&5
5451   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5452   ac_status=$?
5453   if test -s conftest.err; then
5454     sed '10a\
5455 ... rest of stderr output deleted ...
5456          10q' conftest.err >conftest.er1
5457     cat conftest.er1 >&5
5458   fi
5459   rm -f conftest.er1 conftest.err
5460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461   test $ac_status = 0; }
5462 done
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5466 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h.  */
5471
5472 int
5473 main ()
5474 {
5475 #ifndef __GNUC__
5476        choke me
5477 #endif
5478
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484   ac_compiler_gnu=yes
5485 else
5486   ac_compiler_gnu=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5490
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5494 if test $ac_compiler_gnu = yes; then
5495   GCC=yes
5496 else
5497   GCC=
5498 fi
5499 ac_test_CFLAGS=${CFLAGS+set}
5500 ac_save_CFLAGS=$CFLAGS
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5503 if test "${ac_cv_prog_cc_g+set}" = set; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506   ac_save_c_werror_flag=$ac_c_werror_flag
5507    ac_c_werror_flag=yes
5508    ac_cv_prog_cc_g=no
5509    CFLAGS="-g"
5510    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h.  */
5512
5513 int
5514 main ()
5515 {
5516
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522   ac_cv_prog_cc_g=yes
5523 else
5524   CFLAGS=""
5525       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h.  */
5527
5528 int
5529 main ()
5530 {
5531
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537
5538 else
5539   ac_c_werror_flag=$ac_save_c_werror_flag
5540          CFLAGS="-g"
5541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h.  */
5543
5544 int
5545 main ()
5546 {
5547
5548   ;
5549   return 0;
5550 }
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553   ac_cv_prog_cc_g=yes
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560    ac_c_werror_flag=$ac_save_c_werror_flag
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5563 $as_echo "$ac_cv_prog_cc_g" >&6; }
5564 if test "$ac_test_CFLAGS" = set; then
5565   CFLAGS=$ac_save_CFLAGS
5566 elif test $ac_cv_prog_cc_g = yes; then
5567   if test "$GCC" = yes; then
5568     CFLAGS="-g -O2"
5569   else
5570     CFLAGS="-g"
5571   fi
5572 else
5573   if test "$GCC" = yes; then
5574     CFLAGS="-O2"
5575   else
5576     CFLAGS=
5577   fi
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5581 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   ac_cv_prog_cc_c89=no
5585 ac_save_CC=$CC
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h.  */
5588 #include <stdarg.h>
5589 #include <stdio.h>
5590 #include <sys/types.h>
5591 #include <sys/stat.h>
5592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5593 struct buf { int x; };
5594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5595 static char *e (p, i)
5596      char **p;
5597      int i;
5598 {
5599   return p[i];
5600 }
5601 static char *f (char * (*g) (char **, int), char **p, ...)
5602 {
5603   char *s;
5604   va_list v;
5605   va_start (v,p);
5606   s = g (p, va_arg (v,int));
5607   va_end (v);
5608   return s;
5609 }
5610
5611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5612    function prototypes and stuff, but not '\xHH' hex character constants.
5613    These don't provoke an error unfortunately, instead are silently treated
5614    as 'x'.  The following induces an error, until -std is added to get
5615    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5616    array size at least.  It's necessary to write '\x00'==0 to get something
5617    that's true only with -std.  */
5618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5619
5620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5621    inside strings and character constants.  */
5622 #define FOO(x) 'x'
5623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5624
5625 int test (int i, double x);
5626 struct s1 {int (*f) (int a);};
5627 struct s2 {int (*f) (double a);};
5628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5629 int argc;
5630 char **argv;
5631 int
5632 main ()
5633 {
5634 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5640         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5641 do
5642   CC="$ac_save_CC $ac_arg"
5643   if ac_fn_c_try_compile "$LINENO"; then :
5644   ac_cv_prog_cc_c89=$ac_arg
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext
5647   test "x$ac_cv_prog_cc_c89" != "xno" && break
5648 done
5649 rm -f conftest.$ac_ext
5650 CC=$ac_save_CC
5651
5652 fi
5653 # AC_CACHE_VAL
5654 case "x$ac_cv_prog_cc_c89" in
5655   x)
5656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5657 $as_echo "none needed" >&6; } ;;
5658   xno)
5659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5660 $as_echo "unsupported" >&6; } ;;
5661   *)
5662     CC="$CC $ac_cv_prog_cc_c89"
5663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5665 esac
5666 if test "x$ac_cv_prog_cc_c89" != xno; then :
5667
5668 fi
5669
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676 ac_ext=cpp
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681 if test -z "$CXX"; then
5682   if test -n "$CCC"; then
5683     CXX=$CCC
5684   else
5685     if test -n "$ac_tool_prefix"; then
5686   for ac_prog in g++
5687   do
5688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_CXX+set}" = set; then :
5693   $as_echo_n "(cached) " >&6
5694 else
5695   if test -n "$CXX"; then
5696   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703     for ac_exec_ext in '' $ac_executable_extensions; do
5704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710   done
5711 IFS=$as_save_IFS
5712
5713 fi
5714 fi
5715 CXX=$ac_cv_prog_CXX
5716 if test -n "$CXX"; then
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5718 $as_echo "$CXX" >&6; }
5719 else
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724
5725     test -n "$CXX" && break
5726   done
5727 fi
5728 if test -z "$CXX"; then
5729   ac_ct_CXX=$CXX
5730   for ac_prog in g++
5731 do
5732   # Extract the first word of "$ac_prog", so it can be a program name with args.
5733 set dummy $ac_prog; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   if test -n "$ac_ct_CXX"; then
5740   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_prog_ac_ct_CXX="$ac_prog"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5760 if test -n "$ac_ct_CXX"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5762 $as_echo "$ac_ct_CXX" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768
5769   test -n "$ac_ct_CXX" && break
5770 done
5771
5772   if test "x$ac_ct_CXX" = x; then
5773     CXX="g++"
5774   else
5775     case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781     CXX=$ac_ct_CXX
5782   fi
5783 fi
5784
5785   fi
5786 fi
5787 # Provide some information about the compiler.
5788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5789 set X $ac_compile
5790 ac_compiler=$2
5791 for ac_option in --version -v -V -qversion; do
5792   { { ac_try="$ac_compiler $ac_option >&5"
5793 case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5798 $as_echo "$ac_try_echo"; } >&5
5799   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5800   ac_status=$?
5801   if test -s conftest.err; then
5802     sed '10a\
5803 ... rest of stderr output deleted ...
5804          10q' conftest.err >conftest.er1
5805     cat conftest.er1 >&5
5806   fi
5807   rm -f conftest.er1 conftest.err
5808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809   test $ac_status = 0; }
5810 done
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5813 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5814 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h.  */
5819
5820 int
5821 main ()
5822 {
5823 #ifndef __GNUC__
5824        choke me
5825 #endif
5826
5827   ;
5828   return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_cxx_try_compile "$LINENO"; then :
5832   ac_compiler_gnu=yes
5833 else
5834   ac_compiler_gnu=no
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5838
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5841 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5842 if test $ac_compiler_gnu = yes; then
5843   GXX=yes
5844 else
5845   GXX=
5846 fi
5847 ac_test_CXXFLAGS=${CXXFLAGS+set}
5848 ac_save_CXXFLAGS=$CXXFLAGS
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5850 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5851 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5855    ac_cxx_werror_flag=yes
5856    ac_cv_prog_cxx_g=no
5857    CXXFLAGS="-g"
5858    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860
5861 int
5862 main ()
5863 {
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_cxx_try_compile "$LINENO"; then :
5870   ac_cv_prog_cxx_g=yes
5871 else
5872   CXXFLAGS=""
5873       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h.  */
5875
5876 int
5877 main ()
5878 {
5879
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 if ac_fn_cxx_try_compile "$LINENO"; then :
5885
5886 else
5887   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5888          CXXFLAGS="-g"
5889          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_cxx_try_compile "$LINENO"; then :
5901   ac_cv_prog_cxx_g=yes
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5911 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5912 if test "$ac_test_CXXFLAGS" = set; then
5913   CXXFLAGS=$ac_save_CXXFLAGS
5914 elif test $ac_cv_prog_cxx_g = yes; then
5915   if test "$GXX" = yes; then
5916     CXXFLAGS="-g -O2"
5917   else
5918     CXXFLAGS="-g"
5919   fi
5920 else
5921   if test "$GXX" = yes; then
5922     CXXFLAGS="-O2"
5923   else
5924     CXXFLAGS=
5925   fi
5926 fi
5927 ac_ext=c
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5935 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5936 if test "${lt_cv_path_NM+set}" = set; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -n "$NM"; then
5940   # Let the user override the test.
5941   lt_cv_path_NM="$NM"
5942 else
5943   lt_nm_to_check="${ac_tool_prefix}nm"
5944   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5945     lt_nm_to_check="$lt_nm_to_check nm"
5946   fi
5947   for lt_tmp_nm in $lt_nm_to_check; do
5948     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5950       IFS="$lt_save_ifs"
5951       test -z "$ac_dir" && ac_dir=.
5952       tmp_nm="$ac_dir/$lt_tmp_nm"
5953       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5954         # Check to see if the nm accepts a BSD-compat flag.
5955         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956         #   nm: unknown option "B" ignored
5957         # Tru64's nm complains that /dev/null is an invalid object file
5958         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5959         */dev/null* | *'Invalid file or object type'*)
5960           lt_cv_path_NM="$tmp_nm -B"
5961           break
5962           ;;
5963         *)
5964           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5965           */dev/null*)
5966             lt_cv_path_NM="$tmp_nm -p"
5967             break
5968             ;;
5969           *)
5970             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5971             continue # so that we can try to find one that supports BSD flags
5972             ;;
5973           esac
5974           ;;
5975         esac
5976       fi
5977     done
5978     IFS="$lt_save_ifs"
5979   done
5980   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5981 fi
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5984 $as_echo "$lt_cv_path_NM" >&6; }
5985 NM="$lt_cv_path_NM"
5986
5987
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
5990 $as_echo_n "checking for GNU make... " >&6; }
5991 if test "${llvm_cv_gnu_make_command+set}" = set; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   llvm_cv_gnu_make_command=''
5995  for a in "$MAKE" make gmake gnumake ; do
5996   if test -z "$a" ; then continue ; fi ;
5997   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5998   then
5999    llvm_cv_gnu_make_command=$a ;
6000    break;
6001   fi
6002  done
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
6005 $as_echo "$llvm_cv_gnu_make_command" >&6; }
6006  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6007    ifGNUmake='' ;
6008  else
6009    ifGNUmake='#' ;
6010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
6011 $as_echo "\"Not found\"" >&6; };
6012  fi
6013
6014
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6016 $as_echo_n "checking whether ln -s works... " >&6; }
6017 LN_S=$as_ln_s
6018 if test "$LN_S" = "ln -s"; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020 $as_echo "yes" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6023 $as_echo "no, using $LN_S" >&6; }
6024 fi
6025
6026 # Extract the first word of "cmp", so it can be a program name with args.
6027 set dummy cmp; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_path_CMP+set}" = set; then :
6031   $as_echo_n "(cached) " >&6
6032 else
6033   case $CMP in
6034   [\\/]* | ?:[\\/]*)
6035   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6036   ;;
6037   *)
6038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043     for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050   done
6051 IFS=$as_save_IFS
6052
6053   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6054   ;;
6055 esac
6056 fi
6057 CMP=$ac_cv_path_CMP
6058 if test -n "$CMP"; then
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6060 $as_echo "$CMP" >&6; }
6061 else
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 fi
6065
6066
6067 # Extract the first word of "cp", so it can be a program name with args.
6068 set dummy cp; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if test "${ac_cv_path_CP+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   case $CP in
6075   [\\/]* | ?:[\\/]*)
6076   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6077   ;;
6078   *)
6079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6095   ;;
6096 esac
6097 fi
6098 CP=$ac_cv_path_CP
6099 if test -n "$CP"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6101 $as_echo "$CP" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108 # Extract the first word of "date", so it can be a program name with args.
6109 set dummy date; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_path_DATE+set}" = set; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   case $DATE in
6116   [\\/]* | ?:[\\/]*)
6117   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6118   ;;
6119   *)
6120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125     for ac_exec_ext in '' $ac_executable_extensions; do
6126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129     break 2
6130   fi
6131 done
6132   done
6133 IFS=$as_save_IFS
6134
6135   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6136   ;;
6137 esac
6138 fi
6139 DATE=$ac_cv_path_DATE
6140 if test -n "$DATE"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6142 $as_echo "$DATE" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148
6149 # Extract the first word of "find", so it can be a program name with args.
6150 set dummy find; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_path_FIND+set}" = set; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   case $FIND in
6157   [\\/]* | ?:[\\/]*)
6158   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6159   ;;
6160   *)
6161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6177   ;;
6178 esac
6179 fi
6180 FIND=$ac_cv_path_FIND
6181 if test -n "$FIND"; then
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
6183 $as_echo "$FIND" >&6; }
6184 else
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189
6190 # Extract the first word of "grep", so it can be a program name with args.
6191 set dummy grep; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if test "${ac_cv_path_GREP+set}" = set; then :
6195   $as_echo_n "(cached) " >&6
6196 else
6197   case $GREP in
6198   [\\/]* | ?:[\\/]*)
6199   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6200   ;;
6201   *)
6202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207     for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214   done
6215 IFS=$as_save_IFS
6216
6217   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6218   ;;
6219 esac
6220 fi
6221 GREP=$ac_cv_path_GREP
6222 if test -n "$GREP"; then
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
6224 $as_echo "$GREP" >&6; }
6225 else
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230
6231 # Extract the first word of "mkdir", so it can be a program name with args.
6232 set dummy mkdir; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if test "${ac_cv_path_MKDIR+set}" = set; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   case $MKDIR in
6239   [\\/]* | ?:[\\/]*)
6240   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6241   ;;
6242   *)
6243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248     for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255   done
6256 IFS=$as_save_IFS
6257
6258   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6259   ;;
6260 esac
6261 fi
6262 MKDIR=$ac_cv_path_MKDIR
6263 if test -n "$MKDIR"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
6265 $as_echo "$MKDIR" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271
6272 # Extract the first word of "mv", so it can be a program name with args.
6273 set dummy mv; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_path_MV+set}" = set; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   case $MV in
6280   [\\/]* | ?:[\\/]*)
6281   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6282   ;;
6283   *)
6284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6300   ;;
6301 esac
6302 fi
6303 MV=$ac_cv_path_MV
6304 if test -n "$MV"; then
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6306 $as_echo "$MV" >&6; }
6307 else
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312
6313 if test -n "$ac_tool_prefix"; then
6314   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$RANLIB"; then
6322   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329     for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336   done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 RANLIB=$ac_cv_prog_RANLIB
6342 if test -n "$RANLIB"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6344 $as_echo "$RANLIB" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350
6351 fi
6352 if test -z "$ac_cv_prog_RANLIB"; then
6353   ac_ct_RANLIB=$RANLIB
6354   # Extract the first word of "ranlib", so it can be a program name with args.
6355 set dummy ranlib; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   if test -n "$ac_ct_RANLIB"; then
6362   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369     for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_prog_ac_ct_RANLIB="ranlib"
6372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376   done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382 if test -n "$ac_ct_RANLIB"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6384 $as_echo "$ac_ct_RANLIB" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390   if test "x$ac_ct_RANLIB" = x; then
6391     RANLIB=":"
6392   else
6393     case $cross_compiling:$ac_tool_warned in
6394 yes:)
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6398 esac
6399     RANLIB=$ac_ct_RANLIB
6400   fi
6401 else
6402   RANLIB="$ac_cv_prog_RANLIB"
6403 fi
6404
6405 if test -n "$ac_tool_prefix"; then
6406   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}ar; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_AR+set}" = set; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$AR"; then
6414   ac_cv_prog_AR="$AR" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_AR="${ac_tool_prefix}ar"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 AR=$ac_cv_prog_AR
6434 if test -n "$AR"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6436 $as_echo "$AR" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443 fi
6444 if test -z "$ac_cv_prog_AR"; then
6445   ac_ct_AR=$AR
6446   # Extract the first word of "ar", so it can be a program name with args.
6447 set dummy ar; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$ac_ct_AR"; then
6454   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_ac_ct_AR="ar"
6464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468   done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6474 if test -n "$ac_ct_AR"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6476 $as_echo "$ac_ct_AR" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482   if test "x$ac_ct_AR" = x; then
6483     AR="false"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     AR=$ac_ct_AR
6492   fi
6493 else
6494   AR="$ac_cv_prog_AR"
6495 fi
6496
6497 # Extract the first word of "rm", so it can be a program name with args.
6498 set dummy rm; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_path_RM+set}" = set; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   case $RM in
6505   [\\/]* | ?:[\\/]*)
6506   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6507   ;;
6508   *)
6509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6525   ;;
6526 esac
6527 fi
6528 RM=$ac_cv_path_RM
6529 if test -n "$RM"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6531 $as_echo "$RM" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 # Extract the first word of "sed", so it can be a program name with args.
6539 set dummy sed; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_path_SED+set}" = set; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   case $SED in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564
6565   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6566   ;;
6567 esac
6568 fi
6569 SED=$ac_cv_path_SED
6570 if test -n "$SED"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6572 $as_echo "$SED" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579 # Extract the first word of "tar", so it can be a program name with args.
6580 set dummy tar; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_path_TAR+set}" = set; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   case $TAR in
6587   [\\/]* | ?:[\\/]*)
6588   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6589   ;;
6590   *)
6591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6607   ;;
6608 esac
6609 fi
6610 TAR=$ac_cv_path_TAR
6611 if test -n "$TAR"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6613 $as_echo "$TAR" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619
6620 # Extract the first word of "pwd", so it can be a program name with args.
6621 set dummy pwd; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_path_BINPWD+set}" = set; then :
6625   $as_echo_n "(cached) " >&6
6626 else
6627   case $BINPWD in
6628   [\\/]* | ?:[\\/]*)
6629   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6630   ;;
6631   *)
6632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637     for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644   done
6645 IFS=$as_save_IFS
6646
6647   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6648   ;;
6649 esac
6650 fi
6651 BINPWD=$ac_cv_path_BINPWD
6652 if test -n "$BINPWD"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
6654 $as_echo "$BINPWD" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661
6662 # Extract the first word of "Graphviz", so it can be a program name with args.
6663 set dummy Graphviz; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   case $GRAPHVIZ in
6670   [\\/]* | ?:[\\/]*)
6671   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6672   ;;
6673   *)
6674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6690   ;;
6691 esac
6692 fi
6693 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6694 if test -n "$GRAPHVIZ"; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
6696 $as_echo "$GRAPHVIZ" >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6704
6705 $as_echo "#define HAVE_GRAPHVIZ 1" >>confdefs.h
6706
6707     if test "$llvm_cv_os_type" = "MingW" ; then
6708     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709   fi
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6713 _ACEOF
6714
6715 fi
6716 # Extract the first word of "dot", so it can be a program name with args.
6717 set dummy dot; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_path_DOT+set}" = set; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   case $DOT in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733     for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740   done
6741 IFS=$as_save_IFS
6742
6743   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6744   ;;
6745 esac
6746 fi
6747 DOT=$ac_cv_path_DOT
6748 if test -n "$DOT"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6750 $as_echo "$DOT" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757 if test "$DOT" != "echo dot" ; then
6758
6759 $as_echo "#define HAVE_DOT 1" >>confdefs.h
6760
6761     if test "$llvm_cv_os_type" = "MingW" ; then
6762     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6763   fi
6764
6765 cat >>confdefs.h <<_ACEOF
6766 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6767 _ACEOF
6768
6769 fi
6770 # Extract the first word of "fdp", so it can be a program name with args.
6771 set dummy fdp; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_path_FDP+set}" = set; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   case $FDP in
6778   [\\/]* | ?:[\\/]*)
6779   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6780   ;;
6781   *)
6782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796
6797   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6798   ;;
6799 esac
6800 fi
6801 FDP=$ac_cv_path_FDP
6802 if test -n "$FDP"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FDP" >&5
6804 $as_echo "$FDP" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810
6811 if test "$FDP" != "echo fdp" ; then
6812
6813 $as_echo "#define HAVE_FDP 1" >>confdefs.h
6814
6815     if test "$llvm_cv_os_type" = "MingW" ; then
6816     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6817   fi
6818
6819 cat >>confdefs.h <<_ACEOF
6820 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6821 _ACEOF
6822
6823 fi
6824 # Extract the first word of "neato", so it can be a program name with args.
6825 set dummy neato; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_path_NEATO+set}" = set; then :
6829   $as_echo_n "(cached) " >&6
6830 else
6831   case $NEATO in
6832   [\\/]* | ?:[\\/]*)
6833   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6834   ;;
6835   *)
6836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841     for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848   done
6849 IFS=$as_save_IFS
6850
6851   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6852   ;;
6853 esac
6854 fi
6855 NEATO=$ac_cv_path_NEATO
6856 if test -n "$NEATO"; then
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEATO" >&5
6858 $as_echo "$NEATO" >&6; }
6859 else
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864
6865 if test "$NEATO" != "echo neato" ; then
6866
6867 $as_echo "#define HAVE_NEATO 1" >>confdefs.h
6868
6869     if test "$llvm_cv_os_type" = "MingW" ; then
6870     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6871   fi
6872
6873 cat >>confdefs.h <<_ACEOF
6874 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6875 _ACEOF
6876
6877 fi
6878 # Extract the first word of "twopi", so it can be a program name with args.
6879 set dummy twopi; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_path_TWOPI+set}" = set; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   case $TWOPI in
6886   [\\/]* | ?:[\\/]*)
6887   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6888   ;;
6889   *)
6890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895     for ac_exec_ext in '' $ac_executable_extensions; do
6896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899     break 2
6900   fi
6901 done
6902   done
6903 IFS=$as_save_IFS
6904
6905   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6906   ;;
6907 esac
6908 fi
6909 TWOPI=$ac_cv_path_TWOPI
6910 if test -n "$TWOPI"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOPI" >&5
6912 $as_echo "$TWOPI" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919 if test "$TWOPI" != "echo twopi" ; then
6920
6921 $as_echo "#define HAVE_TWOPI 1" >>confdefs.h
6922
6923     if test "$llvm_cv_os_type" = "MingW" ; then
6924     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925   fi
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6929 _ACEOF
6930
6931 fi
6932 # Extract the first word of "circo", so it can be a program name with args.
6933 set dummy circo; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_path_CIRCO+set}" = set; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   case $CIRCO in
6940   [\\/]* | ?:[\\/]*)
6941   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6942   ;;
6943   *)
6944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949     for ac_exec_ext in '' $ac_executable_extensions; do
6950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954   fi
6955 done
6956   done
6957 IFS=$as_save_IFS
6958
6959   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6960   ;;
6961 esac
6962 fi
6963 CIRCO=$ac_cv_path_CIRCO
6964 if test -n "$CIRCO"; then
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CIRCO" >&5
6966 $as_echo "$CIRCO" >&6; }
6967 else
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972
6973 if test "$CIRCO" != "echo circo" ; then
6974
6975 $as_echo "#define HAVE_CIRCO 1" >>confdefs.h
6976
6977     if test "$llvm_cv_os_type" = "MingW" ; then
6978     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6979   fi
6980
6981 cat >>confdefs.h <<_ACEOF
6982 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6983 _ACEOF
6984
6985 fi
6986 for ac_prog in gv gsview32
6987 do
6988   # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_path_GV+set}" = set; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   case $GV in
6996   [\\/]* | ?:[\\/]*)
6997   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6998   ;;
6999   *)
7000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015   ;;
7016 esac
7017 fi
7018 GV=$ac_cv_path_GV
7019 if test -n "$GV"; then
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
7021 $as_echo "$GV" >&6; }
7022 else
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028   test -n "$GV" && break
7029 done
7030 test -n "$GV" || GV="echo gv"
7031
7032 if test "$GV" != "echo gv" ; then
7033
7034 $as_echo "#define HAVE_GV 1" >>confdefs.h
7035
7036     if test "$llvm_cv_os_type" = "MingW" ; then
7037     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7038   fi
7039
7040 cat >>confdefs.h <<_ACEOF
7041 #define LLVM_PATH_GV "$GV${EXEEXT}"
7042 _ACEOF
7043
7044 fi
7045 # Extract the first word of "dotty", so it can be a program name with args.
7046 set dummy dotty; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_DOTTY+set}" = set; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   case $DOTTY in
7053   [\\/]* | ?:[\\/]*)
7054   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7055   ;;
7056   *)
7057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071
7072   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7073   ;;
7074 esac
7075 fi
7076 DOTTY=$ac_cv_path_DOTTY
7077 if test -n "$DOTTY"; then
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTY" >&5
7079 $as_echo "$DOTTY" >&6; }
7080 else
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7083 fi
7084
7085
7086 if test "$DOTTY" != "echo dotty" ; then
7087
7088 $as_echo "#define HAVE_DOTTY 1" >>confdefs.h
7089
7090     if test "$llvm_cv_os_type" = "MingW" ; then
7091     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7092   fi
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7096 _ACEOF
7097
7098 fi
7099
7100
7101 # Extract the first word of "perl", so it can be a program name with args.
7102 set dummy perl; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_path_PERL+set}" = set; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   case $PERL in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127
7128   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7129   ;;
7130 esac
7131 fi
7132 PERL=$ac_cv_path_PERL
7133 if test -n "$PERL"; then
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7135 $as_echo "$PERL" >&6; }
7136 else
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141
7142 if test "$PERL" != "none"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl 5.006 or newer" >&5
7144 $as_echo_n "checking for Perl 5.006 or newer... " >&6; }
7145   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7147 $as_echo "yes" >&6; }
7148   else
7149     PERL=none
7150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7151 $as_echo "not found" >&6; }
7152   fi
7153 fi
7154
7155
7156 if test x"$PERL" = xnone; then
7157    HAVE_PERL=0
7158
7159    as_fn_error "perl is required but was not found, please install it" "$LINENO" 5
7160 else
7161    HAVE_PERL=1
7162
7163 fi
7164
7165 # Find a good install program.  We prefer a C program (faster),
7166 # so one script is as good as another.  But avoid the broken or
7167 # incompatible versions:
7168 # SysV /etc/install, /usr/sbin/install
7169 # SunOS /usr/etc/install
7170 # IRIX /sbin/install
7171 # AIX /bin/install
7172 # AmigaOS /C/install, which installs bootblocks on floppy discs
7173 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7174 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7175 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7176 # OS/2's system install, which has a completely different semantic
7177 # ./install, which can be erroneously created by make from ./install.sh.
7178 # Reject install programs that cannot install multiple files.
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7180 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7181 if test -z "$INSTALL"; then
7182 if test "${ac_cv_path_install+set}" = set; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     # Account for people who put trailing slashes in PATH elements.
7191 case $as_dir/ in #((
7192   ./ | .// | /[cC]/* | \
7193   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7194   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7195   /usr/ucb/* ) ;;
7196   *)
7197     # OSF1 and SCO ODT 3.0 have their own names for install.
7198     # Don't use installbsd from OSF since it installs stuff as root
7199     # by default.
7200     for ac_prog in ginstall scoinst install; do
7201       for ac_exec_ext in '' $ac_executable_extensions; do
7202         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7203           if test $ac_prog = install &&
7204             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7205             # AIX install.  It has an incompatible calling convention.
7206             :
7207           elif test $ac_prog = install &&
7208             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7209             # program-specific install script used by HP pwplus--don't use.
7210             :
7211           else
7212             rm -rf conftest.one conftest.two conftest.dir
7213             echo one > conftest.one
7214             echo two > conftest.two
7215             mkdir conftest.dir
7216             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7217               test -s conftest.one && test -s conftest.two &&
7218               test -s conftest.dir/conftest.one &&
7219               test -s conftest.dir/conftest.two
7220             then
7221               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7222               break 3
7223             fi
7224           fi
7225         fi
7226       done
7227     done
7228     ;;
7229 esac
7230
7231   done
7232 IFS=$as_save_IFS
7233
7234 rm -rf conftest.one conftest.two conftest.dir
7235
7236 fi
7237   if test "${ac_cv_path_install+set}" = set; then
7238     INSTALL=$ac_cv_path_install
7239   else
7240     # As a last resort, use the slow shell script.  Don't cache a
7241     # value for INSTALL within a source directory, because that will
7242     # break other packages using the cache if that directory is
7243     # removed, or if the value is a relative name.
7244     INSTALL=$ac_install_sh
7245   fi
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7248 $as_echo "$INSTALL" >&6; }
7249
7250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7251 # It thinks the first close brace ends the variable substitution.
7252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7253
7254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7255
7256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7257
7258
7259 # Extract the first word of "bzip2", so it can be a program name with args.
7260 set dummy bzip2; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_path_BZIP2+set}" = set; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   case $BZIP2 in
7267   [\\/]* | ?:[\\/]*)
7268   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7269   ;;
7270   *)
7271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283   done
7284 IFS=$as_save_IFS
7285
7286   ;;
7287 esac
7288 fi
7289 BZIP2=$ac_cv_path_BZIP2
7290 if test -n "$BZIP2"; then
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7292 $as_echo "$BZIP2" >&6; }
7293 else
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298
7299 # Extract the first word of "doxygen", so it can be a program name with args.
7300 set dummy doxygen; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   case $DOXYGEN in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 DOXYGEN=$ac_cv_path_DOXYGEN
7330 if test -n "$DOXYGEN"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
7332 $as_echo "$DOXYGEN" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 # Extract the first word of "groff", so it can be a program name with args.
7340 set dummy groff; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_path_GROFF+set}" = set; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   case $GROFF in
7347   [\\/]* | ?:[\\/]*)
7348   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7349   ;;
7350   *)
7351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366   ;;
7367 esac
7368 fi
7369 GROFF=$ac_cv_path_GROFF
7370 if test -n "$GROFF"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
7372 $as_echo "$GROFF" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378
7379 # Extract the first word of "gzip", so it can be a program name with args.
7380 set dummy gzip; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if test "${ac_cv_path_GZIP+set}" = set; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   case $GZIP in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406   ;;
7407 esac
7408 fi
7409 GZIP=$ac_cv_path_GZIP
7410 if test -n "$GZIP"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
7412 $as_echo "$GZIP" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418
7419 # Extract the first word of "pod2html", so it can be a program name with args.
7420 set dummy pod2html; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_path_POD2HTML+set}" = set; then :
7424   $as_echo_n "(cached) " >&6
7425 else
7426   case $POD2HTML in
7427   [\\/]* | ?:[\\/]*)
7428   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7429   ;;
7430   *)
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436     for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443   done
7444 IFS=$as_save_IFS
7445
7446   ;;
7447 esac
7448 fi
7449 POD2HTML=$ac_cv_path_POD2HTML
7450 if test -n "$POD2HTML"; then
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
7452 $as_echo "$POD2HTML" >&6; }
7453 else
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458
7459 # Extract the first word of "pod2man", so it can be a program name with args.
7460 set dummy pod2man; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_path_POD2MAN+set}" = set; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   case $POD2MAN in
7467   [\\/]* | ?:[\\/]*)
7468   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7469   ;;
7470   *)
7471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476     for ac_exec_ext in '' $ac_executable_extensions; do
7477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483   done
7484 IFS=$as_save_IFS
7485
7486   ;;
7487 esac
7488 fi
7489 POD2MAN=$ac_cv_path_POD2MAN
7490 if test -n "$POD2MAN"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
7492 $as_echo "$POD2MAN" >&6; }
7493 else
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498
7499 # Extract the first word of "runtest", so it can be a program name with args.
7500 set dummy runtest; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if test "${ac_cv_path_RUNTEST+set}" = set; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   case $RUNTEST in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516     for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523   done
7524 IFS=$as_save_IFS
7525
7526   ;;
7527 esac
7528 fi
7529 RUNTEST=$ac_cv_path_RUNTEST
7530 if test -n "$RUNTEST"; then
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7532 $as_echo "$RUNTEST" >&6; }
7533 else
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538
7539
7540 no_itcl=true
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the tclsh program in tclinclude directory" >&5
7542 $as_echo_n "checking for the tclsh program in tclinclude directory... " >&6; }
7543
7544 # Check whether --with-tclinclude was given.
7545 if test "${with_tclinclude+set}" = set; then :
7546   withval=$with_tclinclude; with_tclinclude=${withval}
7547 else
7548   with_tclinclude=''
7549 fi
7550
7551 if test "${ac_cv_path_tclsh+set}" = set; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554
7555 if test x"${with_tclinclude}" != x ; then
7556   if test -f ${with_tclinclude}/tclsh ; then
7557     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7558   elif test -f ${with_tclinclude}/src/tclsh ; then
7559     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7560   else
7561     as_fn_error "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
7562   fi
7563 fi
7564 fi
7565
7566
7567 if test x"${ac_cv_path_tclsh}" = x ; then
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7569 $as_echo "none" >&6; }
7570   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7571 do
7572   # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if test "${ac_cv_path_TCLSH+set}" = set; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   case $TCLSH in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599   ;;
7600 esac
7601 fi
7602 TCLSH=$ac_cv_path_TCLSH
7603 if test -n "$TCLSH"; then
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
7605 $as_echo "$TCLSH" >&6; }
7606 else
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612   test -n "$TCLSH" && break
7613 done
7614
7615   if test x"${TCLSH}" = x ; then
7616     ac_cv_path_tclsh='';
7617   else
7618     ac_cv_path_tclsh="${TCLSH}";
7619   fi
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_tclsh}" >&5
7622 $as_echo "${ac_cv_path_tclsh}" >&6; }
7623   TCLSH="${ac_cv_path_tclsh}"
7624
7625 fi
7626
7627 # Extract the first word of "zip", so it can be a program name with args.
7628 set dummy zip; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_path_ZIP+set}" = set; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   case $ZIP in
7635   [\\/]* | ?:[\\/]*)
7636   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7637   ;;
7638   *)
7639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654   ;;
7655 esac
7656 fi
7657 ZIP=$ac_cv_path_ZIP
7658 if test -n "$ZIP"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7660 $as_echo "$ZIP" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667 for ac_prog in ocamlc
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_path_OCAMLC+set}" = set; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   case $OCAMLC in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686     for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693   done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 OCAMLC=$ac_cv_path_OCAMLC
7700 if test -n "$OCAMLC"; then
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
7702 $as_echo "$OCAMLC" >&6; }
7703 else
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707
7708
7709   test -n "$OCAMLC" && break
7710 done
7711
7712 for ac_prog in ocamlopt
7713 do
7714   # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_path_OCAMLOPT+set}" = set; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   case $OCAMLOPT in
7722   [\\/]* | ?:[\\/]*)
7723   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7724   ;;
7725   *)
7726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731     for ac_exec_ext in '' $ac_executable_extensions; do
7732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738   done
7739 IFS=$as_save_IFS
7740
7741   ;;
7742 esac
7743 fi
7744 OCAMLOPT=$ac_cv_path_OCAMLOPT
7745 if test -n "$OCAMLOPT"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
7747 $as_echo "$OCAMLOPT" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   test -n "$OCAMLOPT" && break
7755 done
7756
7757 for ac_prog in ocamldep
7758 do
7759   # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_path_OCAMLDEP+set}" = set; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   case $OCAMLDEP in
7767   [\\/]* | ?:[\\/]*)
7768   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7769   ;;
7770   *)
7771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785
7786   ;;
7787 esac
7788 fi
7789 OCAMLDEP=$ac_cv_path_OCAMLDEP
7790 if test -n "$OCAMLDEP"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
7792 $as_echo "$OCAMLDEP" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799   test -n "$OCAMLDEP" && break
7800 done
7801
7802 for ac_prog in ocamldoc
7803 do
7804   # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_path_OCAMLDOC+set}" = set; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   case $OCAMLDOC in
7812   [\\/]* | ?:[\\/]*)
7813   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7814   ;;
7815   *)
7816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819   IFS=$as_save_IFS
7820   test -z "$as_dir" && as_dir=.
7821     for ac_exec_ext in '' $ac_executable_extensions; do
7822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825     break 2
7826   fi
7827 done
7828   done
7829 IFS=$as_save_IFS
7830
7831   ;;
7832 esac
7833 fi
7834 OCAMLDOC=$ac_cv_path_OCAMLDOC
7835 if test -n "$OCAMLDOC"; then
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
7837 $as_echo "$OCAMLDOC" >&6; }
7838 else
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844   test -n "$OCAMLDOC" && break
7845 done
7846
7847 for ac_prog in gas as
7848 do
7849   # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_path_GAS+set}" = set; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   case $GAS in
7857   [\\/]* | ?:[\\/]*)
7858   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7859   ;;
7860   *)
7861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866     for ac_exec_ext in '' $ac_executable_extensions; do
7867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873   done
7874 IFS=$as_save_IFS
7875
7876   ;;
7877 esac
7878 fi
7879 GAS=$ac_cv_path_GAS
7880 if test -n "$GAS"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
7882 $as_echo "$GAS" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889   test -n "$GAS" && break
7890 done
7891
7892
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5
7894 $as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; }
7895 if test "${llvm_cv_link_use_r+set}" = set; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898    ac_ext=c
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904   oldcflags="$CFLAGS"
7905   CFLAGS="$CFLAGS -Wl,-R."
7906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h.  */
7908
7909 int
7910 main ()
7911 {
7912 int main() { return 0; }
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918   llvm_cv_link_use_r=yes
7919 else
7920   llvm_cv_link_use_r=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923     conftest$ac_exeext conftest.$ac_ext
7924   CFLAGS="$oldcflags"
7925   ac_ext=c
7926 ac_cpp='$CPP $CPPFLAGS'
7927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_r" >&5
7934 $as_echo "$llvm_cv_link_use_r" >&6; }
7935 if test "$llvm_cv_link_use_r" = yes ; then
7936
7937 $as_echo "#define HAVE_LINK_R 1" >>confdefs.h
7938
7939   fi
7940
7941
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-export-dynamic option" >&5
7943 $as_echo_n "checking for compiler -Wl,-export-dynamic option... " >&6; }
7944 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947    ac_ext=c
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953   oldcflags="$CFLAGS"
7954   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957
7958 int
7959 main ()
7960 {
7961 int main() { return 0; }
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 if ac_fn_c_try_link "$LINENO"; then :
7967   llvm_cv_link_use_export_dynamic=yes
7968 else
7969   llvm_cv_link_use_export_dynamic=no
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext \
7972     conftest$ac_exeext conftest.$ac_ext
7973   CFLAGS="$oldcflags"
7974   ac_ext=c
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979
7980
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_export_dynamic" >&5
7983 $as_echo "$llvm_cv_link_use_export_dynamic" >&6; }
7984 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7985
7986 $as_echo "#define HAVE_LINK_EXPORT_DYNAMIC 1" >>confdefs.h
7987
7988   fi
7989
7990
7991
7992
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7994 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7995 if test "${ac_cv_c_const+set}" = set; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h.  */
8000
8001 int
8002 main ()
8003 {
8004 /* FIXME: Include the comments suggested by Paul. */
8005 #ifndef __cplusplus
8006   /* Ultrix mips cc rejects this.  */
8007   typedef int charset[2];
8008   const charset cs;
8009   /* SunOS 4.1.1 cc rejects this.  */
8010   char const *const *pcpcc;
8011   char **ppc;
8012   /* NEC SVR4.0.2 mips cc rejects this.  */
8013   struct point {int x, y;};
8014   static struct point const zero = {0,0};
8015   /* AIX XL C 1.02.0.0 rejects this.
8016      It does not let you subtract one const X* pointer from another in
8017      an arm of an if-expression whose if-part is not a constant
8018      expression */
8019   const char *g = "string";
8020   pcpcc = &g + (g ? g-g : 0);
8021   /* HPUX 7.0 cc rejects these. */
8022   ++pcpcc;
8023   ppc = (char**) pcpcc;
8024   pcpcc = (char const *const *) ppc;
8025   { /* SCO 3.2v4 cc rejects this.  */
8026     char *t;
8027     char const *s = 0 ? (char *) 0 : (char const *) 0;
8028
8029     *t++ = 0;
8030     if (s) return 0;
8031   }
8032   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8033     int x[] = {25, 17};
8034     const int *foo = &x[0];
8035     ++foo;
8036   }
8037   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038     typedef const int *iptr;
8039     iptr p = 0;
8040     ++p;
8041   }
8042   { /* AIX XL C 1.02.0.0 rejects this saying
8043        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044     struct s { int j; const int *ap[3]; };
8045     struct s *b; b->j = 5;
8046   }
8047   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8048     const int foo = 10;
8049     if (!foo) return 0;
8050   }
8051   return !cs[0] && !zero.x;
8052 #endif
8053
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_compile "$LINENO"; then :
8059   ac_cv_c_const=yes
8060 else
8061   ac_cv_c_const=no
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8066 $as_echo "$ac_cv_c_const" >&6; }
8067 if test $ac_cv_c_const = no; then
8068
8069 $as_echo "#define const /**/" >>confdefs.h
8070
8071 fi
8072
8073 ac_header_dirent=no
8074 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8075   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8077 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h.  */
8083 #include <sys/types.h>
8084 #include <$ac_hdr>
8085
8086 int
8087 main ()
8088 {
8089 if ((DIR *) 0)
8090 return 0;
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096   eval "$as_ac_Header=yes"
8097 else
8098   eval "$as_ac_Header=no"
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 eval ac_res=\$$as_ac_Header
8103                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8104 $as_echo "$ac_res" >&6; }
8105 eval as_val=\$$as_ac_Header
8106    if test "x$as_val" = x""yes; then :
8107   cat >>confdefs.h <<_ACEOF
8108 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8109 _ACEOF
8110
8111 ac_header_dirent=$ac_hdr; break
8112 fi
8113
8114 done
8115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116 if test $ac_header_dirent = dirent.h; then
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8118 $as_echo_n "checking for library containing opendir... " >&6; }
8119 if test "${ac_cv_search_opendir+set}" = set; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   ac_func_search_save_LIBS=$LIBS
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h.  */
8125
8126 /* Override any GCC internal prototype to avoid an error.
8127    Use char because int might match the return type of a GCC
8128    builtin and then its argument prototype would still apply.  */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 char opendir ();
8133 int
8134 main ()
8135 {
8136 return opendir ();
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 for ac_lib in '' dir; do
8142   if test -z "$ac_lib"; then
8143     ac_res="none required"
8144   else
8145     ac_res=-l$ac_lib
8146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8147   fi
8148   if ac_fn_c_try_link "$LINENO"; then :
8149   ac_cv_search_opendir=$ac_res
8150 fi
8151 rm -f core conftest.err conftest.$ac_objext \
8152     conftest$ac_exeext
8153   if test "${ac_cv_search_opendir+set}" = set; then :
8154   break
8155 fi
8156 done
8157 if test "${ac_cv_search_opendir+set}" = set; then :
8158
8159 else
8160   ac_cv_search_opendir=no
8161 fi
8162 rm conftest.$ac_ext
8163 LIBS=$ac_func_search_save_LIBS
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8166 $as_echo "$ac_cv_search_opendir" >&6; }
8167 ac_res=$ac_cv_search_opendir
8168 if test "$ac_res" != no; then :
8169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8170
8171 fi
8172
8173 else
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8175 $as_echo_n "checking for library containing opendir... " >&6; }
8176 if test "${ac_cv_search_opendir+set}" = set; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   ac_func_search_save_LIBS=$LIBS
8180 cat 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
8187 extern "C"
8188 #endif
8189 char opendir ();
8190 int
8191 main ()
8192 {
8193 return opendir ();
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 for ac_lib in '' x; do
8199   if test -z "$ac_lib"; then
8200     ac_res="none required"
8201   else
8202     ac_res=-l$ac_lib
8203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8204   fi
8205   if ac_fn_c_try_link "$LINENO"; then :
8206   ac_cv_search_opendir=$ac_res
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext \
8209     conftest$ac_exeext
8210   if test "${ac_cv_search_opendir+set}" = set; then :
8211   break
8212 fi
8213 done
8214 if test "${ac_cv_search_opendir+set}" = set; then :
8215
8216 else
8217   ac_cv_search_opendir=no
8218 fi
8219 rm conftest.$ac_ext
8220 LIBS=$ac_func_search_save_LIBS
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8223 $as_echo "$ac_cv_search_opendir" >&6; }
8224 ac_res=$ac_cv_search_opendir
8225 if test "$ac_res" != no; then :
8226   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8227
8228 fi
8229
8230 fi
8231
8232 for ac_header in dlfcn.h
8233 do :
8234   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8235 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8236   cat >>confdefs.h <<_ACEOF
8237 #define HAVE_DLFCN_H 1
8238 _ACEOF
8239
8240 fi
8241
8242 done
8243
8244 # Check whether --enable-ltdl-install was given.
8245 if test "${enable_ltdl_install+set}" = set; then :
8246   enableval=$enable_ltdl_install;
8247 fi
8248
8249
8250  if test x"${enable_ltdl_install-no}" != xno; then
8251   INSTALL_LTDL_TRUE=
8252   INSTALL_LTDL_FALSE='#'
8253 else
8254   INSTALL_LTDL_TRUE='#'
8255   INSTALL_LTDL_FALSE=
8256 fi
8257
8258  if test x"${enable_ltdl_convenience-no}" != xno; then
8259   CONVENIENCE_LTDL_TRUE=
8260   CONVENIENCE_LTDL_FALSE='#'
8261 else
8262   CONVENIENCE_LTDL_TRUE='#'
8263   CONVENIENCE_LTDL_FALSE=
8264 fi
8265
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8269 library_names_spec=
8270 libname_spec='lib$name'
8271 soname_spec=
8272 shrext_cmds=".so"
8273 postinstall_cmds=
8274 postuninstall_cmds=
8275 finish_cmds=
8276 finish_eval=
8277 shlibpath_var=
8278 shlibpath_overrides_runpath=unknown
8279 version_type=none
8280 dynamic_linker="$host_os ld.so"
8281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8282 if test "$GCC" = yes; then
8283   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8284   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8285     # if the path contains ";" then we assume it to be the separator
8286     # otherwise default to the standard path separator (i.e. ":") - it is
8287     # assumed that no part of a normal pathname contains ";" but that should
8288     # okay in the real world where ";" in dirpaths is itself problematic.
8289     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8290   else
8291     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8292   fi
8293 else
8294   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8295 fi
8296 need_lib_prefix=unknown
8297 hardcode_into_libs=no
8298
8299 # when you set need_version to no, make sure it does not cause -set_version
8300 # flags to be left without arguments
8301 need_version=unknown
8302
8303 case $host_os in
8304 aix3*)
8305   version_type=linux
8306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8307   shlibpath_var=LIBPATH
8308
8309   # AIX 3 has no versioning support, so we append a major version to the name.
8310   soname_spec='${libname}${release}${shared_ext}$major'
8311   ;;
8312
8313 aix4* | aix5*)
8314   version_type=linux
8315   need_lib_prefix=no
8316   need_version=no
8317   hardcode_into_libs=yes
8318   if test "$host_cpu" = ia64; then
8319     # AIX 5 supports IA64
8320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8321     shlibpath_var=LD_LIBRARY_PATH
8322   else
8323     # With GCC up to 2.95.x, collect2 would create an import file
8324     # for dependence libraries.  The import file would start with
8325     # the line `#! .'.  This would cause the generated library to
8326     # depend on `.', always an invalid library.  This was fixed in
8327     # development snapshots of GCC prior to 3.0.
8328     case $host_os in
8329       aix4 | aix4.[01] | aix4.[01].*)
8330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8331            echo ' yes '
8332            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8333         :
8334       else
8335         can_build_shared=no
8336       fi
8337       ;;
8338     esac
8339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8340     # soname into executable. Probably we can add versioning support to
8341     # collect2, so additional links can be useful in future.
8342     if test "$aix_use_runtimelinking" = yes; then
8343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8344       # instead of lib<name>.a to let people know that these are not
8345       # typical AIX shared libraries.
8346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347     else
8348       # We preserve .a as extension for shared libraries through AIX4.2
8349       # and later when we are not doing run time linking.
8350       library_names_spec='${libname}${release}.a $libname.a'
8351       soname_spec='${libname}${release}${shared_ext}$major'
8352     fi
8353     shlibpath_var=LIBPATH
8354   fi
8355   ;;
8356
8357 amigaos*)
8358   library_names_spec='$libname.ixlibrary $libname.a'
8359   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8360   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8361   ;;
8362
8363 beos*)
8364   library_names_spec='${libname}${shared_ext}'
8365   dynamic_linker="$host_os ld.so"
8366   shlibpath_var=LIBRARY_PATH
8367   ;;
8368
8369 bsdi[45]*)
8370   version_type=linux
8371   need_version=no
8372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373   soname_spec='${libname}${release}${shared_ext}$major'
8374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8375   shlibpath_var=LD_LIBRARY_PATH
8376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8378   # the default ld.so.conf also contains /usr/contrib/lib and
8379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8380   # libtool to hard-code these into programs
8381   ;;
8382
8383 cygwin* | mingw* | pw32*)
8384   version_type=windows
8385   shrext_cmds=".dll"
8386   need_version=no
8387   need_lib_prefix=no
8388
8389   case $GCC,$host_os in
8390   yes,cygwin* | yes,mingw* | yes,pw32*)
8391     library_names_spec='$libname.dll.a'
8392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8393     postinstall_cmds='base_file=`basename \${file}`~
8394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8395       dldir=$destdir/`dirname \$dlpath`~
8396       test -d \$dldir || mkdir -p \$dldir~
8397       $install_prog $dir/$dlname \$dldir/$dlname~
8398       chmod a+x \$dldir/$dlname'
8399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8400       dlpath=$dir/\$dldll~
8401        $rm \$dlpath'
8402     shlibpath_overrides_runpath=yes
8403
8404     case $host_os in
8405     cygwin*)
8406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8409       ;;
8410     mingw*)
8411       # MinGW DLLs use traditional 'lib' prefix
8412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8413       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8414       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8415         # It is most probably a Windows format PATH printed by
8416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8417         # path with ; separators, and with drive letters. We can handle the
8418         # drive letters (cygwin fileutils understands them), so leave them,
8419         # especially as we might pass files found there to a mingw objdump,
8420         # which wouldn't understand a cygwinified path. Ahh.
8421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8422       else
8423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8424       fi
8425       ;;
8426     pw32*)
8427       # pw32 DLLs use 'pw' prefix rather than 'lib'
8428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8429       ;;
8430     esac
8431     ;;
8432
8433   *)
8434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8435     ;;
8436   esac
8437   dynamic_linker='Win32 ld.exe'
8438   # FIXME: first we should search . and the directory the executable is in
8439   shlibpath_var=PATH
8440   ;;
8441
8442 darwin* | rhapsody*)
8443   dynamic_linker="$host_os dyld"
8444   version_type=darwin
8445   need_lib_prefix=no
8446   need_version=no
8447   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8448   soname_spec='${libname}${release}${major}$shared_ext'
8449   shlibpath_overrides_runpath=yes
8450   shlibpath_var=DYLD_LIBRARY_PATH
8451   shrext_cmds='.dylib'
8452   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8453   if test "$GCC" = yes; then
8454     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8455   else
8456     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8457   fi
8458   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8459   ;;
8460
8461 dgux*)
8462   version_type=linux
8463   need_lib_prefix=no
8464   need_version=no
8465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8466   soname_spec='${libname}${release}${shared_ext}$major'
8467   shlibpath_var=LD_LIBRARY_PATH
8468   ;;
8469
8470 freebsd1*)
8471   dynamic_linker=no
8472   ;;
8473
8474 kfreebsd*-gnu)
8475   version_type=linux
8476   need_lib_prefix=no
8477   need_version=no
8478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8479   soname_spec='${libname}${release}${shared_ext}$major'
8480   shlibpath_var=LD_LIBRARY_PATH
8481   shlibpath_overrides_runpath=no
8482   hardcode_into_libs=yes
8483   dynamic_linker='GNU ld.so'
8484   ;;
8485
8486 freebsd* | dragonfly*)
8487   # DragonFly does not have aout.  When/if they implement a new
8488   # versioning mechanism, adjust this.
8489   if test -x /usr/bin/objformat; then
8490     objformat=`/usr/bin/objformat`
8491   else
8492     case $host_os in
8493     freebsd[123]*) objformat=aout ;;
8494     *) objformat=elf ;;
8495     esac
8496   fi
8497   version_type=freebsd-$objformat
8498   case $version_type in
8499     freebsd-elf*)
8500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8501       need_version=no
8502       need_lib_prefix=no
8503       ;;
8504     freebsd-*)
8505       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8506       need_version=yes
8507       ;;
8508   esac
8509   shlibpath_var=LD_LIBRARY_PATH
8510   case $host_os in
8511   freebsd2*)
8512     shlibpath_overrides_runpath=yes
8513     ;;
8514   freebsd3.[01]* | freebsdelf3.[01]*)
8515     shlibpath_overrides_runpath=yes
8516     hardcode_into_libs=yes
8517     ;;
8518   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8519   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8520     shlibpath_overrides_runpath=no
8521     hardcode_into_libs=yes
8522     ;;
8523   freebsd*) # from 4.6 on
8524     shlibpath_overrides_runpath=yes
8525     hardcode_into_libs=yes
8526     ;;
8527   esac
8528   ;;
8529
8530 gnu*)
8531   version_type=linux
8532   need_lib_prefix=no
8533   need_version=no
8534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8535   soname_spec='${libname}${release}${shared_ext}$major'
8536   shlibpath_var=LD_LIBRARY_PATH
8537   hardcode_into_libs=yes
8538   ;;
8539
8540 hpux9* | hpux10* | hpux11*)
8541   # Give a soname corresponding to the major version so that dld.sl refuses to
8542   # link against other versions.
8543   version_type=sunos
8544   need_lib_prefix=no
8545   need_version=no
8546   case $host_cpu in
8547   ia64*)
8548     shrext_cmds='.so'
8549     hardcode_into_libs=yes
8550     dynamic_linker="$host_os dld.so"
8551     shlibpath_var=LD_LIBRARY_PATH
8552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8554     soname_spec='${libname}${release}${shared_ext}$major'
8555     if test "X$HPUX_IA64_MODE" = X32; then
8556       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8557     else
8558       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8559     fi
8560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8561     ;;
8562    hppa*64*)
8563      shrext_cmds='.sl'
8564      hardcode_into_libs=yes
8565      dynamic_linker="$host_os dld.sl"
8566      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8567      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8569      soname_spec='${libname}${release}${shared_ext}$major'
8570      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8571      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8572      ;;
8573    *)
8574     shrext_cmds='.sl'
8575     dynamic_linker="$host_os dld.sl"
8576     shlibpath_var=SHLIB_PATH
8577     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579     soname_spec='${libname}${release}${shared_ext}$major'
8580     ;;
8581   esac
8582   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8583   postinstall_cmds='chmod 555 $lib'
8584   ;;
8585
8586 interix3*)
8587   version_type=linux
8588   need_lib_prefix=no
8589   need_version=no
8590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8591   soname_spec='${libname}${release}${shared_ext}$major'
8592   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8593   shlibpath_var=LD_LIBRARY_PATH
8594   shlibpath_overrides_runpath=no
8595   hardcode_into_libs=yes
8596   ;;
8597
8598 irix5* | irix6* | nonstopux*)
8599   case $host_os in
8600     nonstopux*) version_type=nonstopux ;;
8601     *)
8602         if test "$lt_cv_prog_gnu_ld" = yes; then
8603                 version_type=linux
8604         else
8605                 version_type=irix
8606         fi ;;
8607   esac
8608   need_lib_prefix=no
8609   need_version=no
8610   soname_spec='${libname}${release}${shared_ext}$major'
8611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8612   case $host_os in
8613   irix5* | nonstopux*)
8614     libsuff= shlibsuff=
8615     ;;
8616   *)
8617     case $LD in # libtool.m4 will add one of these switches to LD
8618     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8619       libsuff= shlibsuff= libmagic=32-bit;;
8620     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8621       libsuff=32 shlibsuff=N32 libmagic=N32;;
8622     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8623       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8624     *) libsuff= shlibsuff= libmagic=never-match;;
8625     esac
8626     ;;
8627   esac
8628   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8629   shlibpath_overrides_runpath=no
8630   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8631   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8632   hardcode_into_libs=yes
8633   ;;
8634
8635 # No shared lib support for Linux oldld, aout, or coff.
8636 linux*oldld* | linux*aout* | linux*coff*)
8637   dynamic_linker=no
8638   ;;
8639
8640 # This must be Linux ELF.
8641 linux*)
8642   version_type=linux
8643   need_lib_prefix=no
8644   need_version=no
8645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646   soname_spec='${libname}${release}${shared_ext}$major'
8647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8648   shlibpath_var=LD_LIBRARY_PATH
8649   shlibpath_overrides_runpath=no
8650   # This implies no fast_install, which is unacceptable.
8651   # Some rework will be needed to allow for fast_install
8652   # before this can be enabled.
8653   hardcode_into_libs=yes
8654
8655   # Append ld.so.conf contents to the search path
8656   if test -f /etc/ld.so.conf; then
8657     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8658     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8659   fi
8660
8661   # We used to test for /lib/ld.so.1 and disable shared libraries on
8662   # powerpc, because MkLinux only supported shared libraries with the
8663   # GNU dynamic linker.  Since this was broken with cross compilers,
8664   # most powerpc-linux boxes support dynamic linking these days and
8665   # people can always --disable-shared, the test was removed, and we
8666   # assume the GNU/Linux dynamic linker is in use.
8667   dynamic_linker='GNU/Linux ld.so'
8668   ;;
8669
8670 knetbsd*-gnu)
8671   version_type=linux
8672   need_lib_prefix=no
8673   need_version=no
8674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8675   soname_spec='${libname}${release}${shared_ext}$major'
8676   shlibpath_var=LD_LIBRARY_PATH
8677   shlibpath_overrides_runpath=no
8678   hardcode_into_libs=yes
8679   dynamic_linker='GNU ld.so'
8680   ;;
8681
8682 netbsd*)
8683   version_type=sunos
8684   need_lib_prefix=no
8685   need_version=no
8686   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8688     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8689     dynamic_linker='NetBSD (a.out) ld.so'
8690   else
8691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8692     soname_spec='${libname}${release}${shared_ext}$major'
8693     dynamic_linker='NetBSD ld.elf_so'
8694   fi
8695   shlibpath_var=LD_LIBRARY_PATH
8696   shlibpath_overrides_runpath=yes
8697   hardcode_into_libs=yes
8698   ;;
8699
8700 newsos6)
8701   version_type=linux
8702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703   shlibpath_var=LD_LIBRARY_PATH
8704   shlibpath_overrides_runpath=yes
8705   ;;
8706
8707 nto-qnx*)
8708   version_type=linux
8709   need_lib_prefix=no
8710   need_version=no
8711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712   soname_spec='${libname}${release}${shared_ext}$major'
8713   shlibpath_var=LD_LIBRARY_PATH
8714   shlibpath_overrides_runpath=yes
8715   ;;
8716
8717 openbsd*)
8718   version_type=sunos
8719   sys_lib_dlsearch_path_spec="/usr/lib"
8720   need_lib_prefix=no
8721   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8722   case $host_os in
8723     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8724     *)                         need_version=no  ;;
8725   esac
8726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8728   shlibpath_var=LD_LIBRARY_PATH
8729   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8730     case $host_os in
8731       openbsd2.[89] | openbsd2.[89].*)
8732         shlibpath_overrides_runpath=no
8733         ;;
8734       *)
8735         shlibpath_overrides_runpath=yes
8736         ;;
8737       esac
8738   else
8739     shlibpath_overrides_runpath=yes
8740   fi
8741   ;;
8742
8743 os2*)
8744   libname_spec='$name'
8745   shrext_cmds=".dll"
8746   need_lib_prefix=no
8747   library_names_spec='$libname${shared_ext} $libname.a'
8748   dynamic_linker='OS/2 ld.exe'
8749   shlibpath_var=LIBPATH
8750   ;;
8751
8752 osf3* | osf4* | osf5*)
8753   version_type=osf
8754   need_lib_prefix=no
8755   need_version=no
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758   shlibpath_var=LD_LIBRARY_PATH
8759   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8760   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8761   ;;
8762
8763 solaris*)
8764   version_type=linux
8765   need_lib_prefix=no
8766   need_version=no
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   shlibpath_var=LD_LIBRARY_PATH
8770   shlibpath_overrides_runpath=yes
8771   hardcode_into_libs=yes
8772   # ldd complains unless libraries are executable
8773   postinstall_cmds='chmod +x $lib'
8774   ;;
8775
8776 sunos4*)
8777   version_type=sunos
8778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8780   shlibpath_var=LD_LIBRARY_PATH
8781   shlibpath_overrides_runpath=yes
8782   if test "$with_gnu_ld" = yes; then
8783     need_lib_prefix=no
8784   fi
8785   need_version=yes
8786   ;;
8787
8788 sysv4 | sysv4.3*)
8789   version_type=linux
8790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791   soname_spec='${libname}${release}${shared_ext}$major'
8792   shlibpath_var=LD_LIBRARY_PATH
8793   case $host_vendor in
8794     sni)
8795       shlibpath_overrides_runpath=no
8796       need_lib_prefix=no
8797       export_dynamic_flag_spec='${wl}-Blargedynsym'
8798       runpath_var=LD_RUN_PATH
8799       ;;
8800     siemens)
8801       need_lib_prefix=no
8802       ;;
8803     motorola)
8804       need_lib_prefix=no
8805       need_version=no
8806       shlibpath_overrides_runpath=no
8807       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8808       ;;
8809   esac
8810   ;;
8811
8812 sysv4*MP*)
8813   if test -d /usr/nec ;then
8814     version_type=linux
8815     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8816     soname_spec='$libname${shared_ext}.$major'
8817     shlibpath_var=LD_LIBRARY_PATH
8818   fi
8819   ;;
8820
8821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8822   version_type=freebsd-elf
8823   need_lib_prefix=no
8824   need_version=no
8825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8826   soname_spec='${libname}${release}${shared_ext}$major'
8827   shlibpath_var=LD_LIBRARY_PATH
8828   hardcode_into_libs=yes
8829   if test "$with_gnu_ld" = yes; then
8830     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8831     shlibpath_overrides_runpath=no
8832   else
8833     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8834     shlibpath_overrides_runpath=yes
8835     case $host_os in
8836       sco3.2v5*)
8837         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8838         ;;
8839     esac
8840   fi
8841   sys_lib_dlsearch_path_spec='/usr/lib'
8842   ;;
8843
8844 uts4*)
8845   version_type=linux
8846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847   soname_spec='${libname}${release}${shared_ext}$major'
8848   shlibpath_var=LD_LIBRARY_PATH
8849   ;;
8850
8851 *)
8852   dynamic_linker=no
8853   ;;
8854 esac
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8856 $as_echo "$dynamic_linker" >&6; }
8857 test "$dynamic_linker" = no && can_build_shared=no
8858
8859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8860 if test "$GCC" = yes; then
8861   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8862 fi
8863
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
8866 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
8867 if test "${libltdl_cv_shlibext+set}" = set; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870
8871 module=yes
8872 eval libltdl_cv_shlibext=$shrext_cmds
8873
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
8876 $as_echo "$libltdl_cv_shlibext" >&6; }
8877 if test -n "$libltdl_cv_shlibext"; then
8878
8879 cat >>confdefs.h <<_ACEOF
8880 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8881 _ACEOF
8882
8883 fi
8884
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
8887 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
8888 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
8889   $as_echo_n "(cached) " >&6
8890 else
8891   libltdl_cv_shlibpath_var="$shlibpath_var"
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
8894 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
8895 if test -n "$libltdl_cv_shlibpath_var"; then
8896
8897 cat >>confdefs.h <<_ACEOF
8898 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8899 _ACEOF
8900
8901 fi
8902
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
8905 $as_echo_n "checking for the default library search path... " >&6; }
8906 if test "${libltdl_cv_sys_search_path+set}" = set; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
8912 $as_echo "$libltdl_cv_sys_search_path" >&6; }
8913 if test -n "$libltdl_cv_sys_search_path"; then
8914   sys_search_path=
8915   for dir in $libltdl_cv_sys_search_path; do
8916     if test -z "$sys_search_path"; then
8917       sys_search_path="$dir"
8918     else
8919       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8920     fi
8921   done
8922
8923 cat >>confdefs.h <<_ACEOF
8924 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8925 _ACEOF
8926
8927 fi
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8930 $as_echo_n "checking for objdir... " >&6; }
8931 if test "${libltdl_cv_objdir+set}" = set; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   libltdl_cv_objdir="$objdir"
8935   if test -n "$objdir"; then
8936     :
8937   else
8938     rm -f .libs 2>/dev/null
8939     mkdir .libs 2>/dev/null
8940     if test -d .libs; then
8941       libltdl_cv_objdir=.libs
8942     else
8943       # MS-DOS does not allow filenames that begin with a dot.
8944       libltdl_cv_objdir=_libs
8945     fi
8946   rmdir .libs 2>/dev/null
8947   fi
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
8951 $as_echo "$libltdl_cv_objdir" >&6; }
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8955 _ACEOF
8956
8957
8958
8959
8960
8961
8962 # Check for command to grab the raw symbol name followed by C symbol from nm.
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8964 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8965 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968
8969 # These are sane defaults that work on at least a few old systems.
8970 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8971
8972 # Character class describing NM global symbol codes.
8973 symcode='[BCDEGRST]'
8974
8975 # Regexp to match symbols that can be accessed directly from C.
8976 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8977
8978 # Transform an extracted symbol line into a proper C declaration
8979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8980
8981 # Transform an extracted symbol line into symbol name and symbol address
8982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8983
8984 # Define system-specific variables.
8985 case $host_os in
8986 aix*)
8987   symcode='[BCDT]'
8988   ;;
8989 cygwin* | mingw* | pw32*)
8990   symcode='[ABCDGISTW]'
8991   ;;
8992 hpux*) # Its linker distinguishes data from code symbols
8993   if test "$host_cpu" = ia64; then
8994     symcode='[ABCDEGRST]'
8995   fi
8996   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8997   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8998   ;;
8999 linux*)
9000   if test "$host_cpu" = ia64; then
9001     symcode='[ABCDGIRSTW]'
9002     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9003     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9004   fi
9005   ;;
9006 irix* | nonstopux*)
9007   symcode='[BCDEGRST]'
9008   ;;
9009 osf*)
9010   symcode='[BCDEGQRST]'
9011   ;;
9012 solaris*)
9013   symcode='[BDRT]'
9014   ;;
9015 sco3.2v5*)
9016   symcode='[DT]'
9017   ;;
9018 sysv4.2uw2*)
9019   symcode='[DT]'
9020   ;;
9021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9022   symcode='[ABDT]'
9023   ;;
9024 sysv4)
9025   symcode='[DFNSTU]'
9026   ;;
9027 esac
9028
9029 # Handle CRLF in mingw tool chain
9030 opt_cr=
9031 case $build_os in
9032 mingw*)
9033   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9034   ;;
9035 esac
9036
9037 # If we're using GNU nm, then use its standard symbol codes.
9038 case `$NM -V 2>&1` in
9039 *GNU* | *'with BFD'*)
9040   symcode='[ABCDGIRSTW]' ;;
9041 esac
9042
9043 # Try without a prefix undercore, then with it.
9044 for ac_symprfx in "" "_"; do
9045
9046   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9047   symxfrm="\\1 $ac_symprfx\\2 \\2"
9048
9049   # Write the raw and C identifiers.
9050   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9051
9052   # Check to see that the pipe works correctly.
9053   pipe_works=no
9054
9055   rm -f conftest*
9056   cat > conftest.$ac_ext <<EOF
9057 #ifdef __cplusplus
9058 extern "C" {
9059 #endif
9060 char nm_test_var;
9061 void nm_test_func(){}
9062 #ifdef __cplusplus
9063 }
9064 #endif
9065 int main(){nm_test_var='a';nm_test_func();return(0);}
9066 EOF
9067
9068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9069   (eval $ac_compile) 2>&5
9070   ac_status=$?
9071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072   test $ac_status = 0; }; then
9073     # Now try to grab the symbols.
9074     nlist=conftest.nm
9075     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9076   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9077   ac_status=$?
9078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079   test $ac_status = 0; } && test -s "$nlist"; then
9080       # Try sorting and uniquifying the output.
9081       if sort "$nlist" | uniq > "$nlist"T; then
9082         mv -f "$nlist"T "$nlist"
9083       else
9084         rm -f "$nlist"T
9085       fi
9086
9087       # Make sure that we snagged all the symbols we need.
9088       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9089         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9090           cat <<EOF > conftest.$ac_ext
9091 #ifdef __cplusplus
9092 extern "C" {
9093 #endif
9094
9095 EOF
9096           # Now generate the symbol file.
9097           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9098
9099           cat <<EOF >> conftest.$ac_ext
9100 #if defined (__STDC__) && __STDC__
9101 # define lt_ptr_t void *
9102 #else
9103 # define lt_ptr_t char *
9104 # define const
9105 #endif
9106
9107 /* The mapping between symbol names and symbols. */
9108 const struct {
9109   const char *name;
9110   lt_ptr_t address;
9111 }
9112 lt_preloaded_symbols[] =
9113 {
9114 EOF
9115           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9116           cat <<\EOF >> conftest.$ac_ext
9117   {0, (lt_ptr_t) 0}
9118 };
9119
9120 #ifdef __cplusplus
9121 }
9122 #endif
9123 EOF
9124           # Now try linking the two files.
9125           mv conftest.$ac_objext conftstm.$ac_objext
9126           lt_save_LIBS="$LIBS"
9127           lt_save_CFLAGS="$CFLAGS"
9128           LIBS="conftstm.$ac_objext"
9129           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9130           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9131   (eval $ac_link) 2>&5
9132   ac_status=$?
9133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9134   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9135             pipe_works=yes
9136           fi
9137           LIBS="$lt_save_LIBS"
9138           CFLAGS="$lt_save_CFLAGS"
9139         else
9140           echo "cannot find nm_test_func in $nlist" >&5
9141         fi
9142       else
9143         echo "cannot find nm_test_var in $nlist" >&5
9144       fi
9145     else
9146       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9147     fi
9148   else
9149     echo "$progname: failed program was:" >&5
9150     cat conftest.$ac_ext >&5
9151   fi
9152   rm -f conftest* conftst*
9153
9154   # Do not use the global_symbol_pipe unless it works.
9155   if test "$pipe_works" = yes; then
9156     break
9157   else
9158     lt_cv_sys_global_symbol_pipe=
9159   fi
9160 done
9161
9162 fi
9163
9164 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9165   lt_cv_sys_global_symbol_to_cdecl=
9166 fi
9167 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9169 $as_echo "failed" >&6; }
9170 else
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9172 $as_echo "ok" >&6; }
9173 fi
9174
9175
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
9177 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
9178 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9182     libltdl_cv_preloaded_symbols=yes
9183   else
9184     libltdl_cv_preloaded_symbols=no
9185   fi
9186
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
9189 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
9190 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9191
9192 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
9193
9194 fi
9195
9196 LIBADD_DL=
9197
9198 ac_ext=c
9199 ac_cpp='$CPP $CPPFLAGS'
9200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9203
9204
9205 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9206 if test "x$ac_cv_func_shl_load" = x""yes; then :
9207
9208 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9209
9210 else
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9212 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9213 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9214   $as_echo_n "(cached) " >&6
9215 else
9216   ac_check_lib_save_LIBS=$LIBS
9217 LIBS="-ldld  $LIBS"
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h.  */
9220
9221 /* Override any GCC internal prototype to avoid an error.
9222    Use char because int might match the return type of a GCC
9223    builtin and then its argument prototype would still apply.  */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char shl_load ();
9228 int
9229 main ()
9230 {
9231 return shl_load ();
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237   ac_cv_lib_dld_shl_load=yes
9238 else
9239   ac_cv_lib_dld_shl_load=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext \
9242     conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9246 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9247 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9248
9249 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9250
9251         LIBADD_DL="$LIBADD_DL -ldld"
9252 else
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   ac_check_lib_save_LIBS=$LIBS
9259 LIBS="-ldl  $LIBS"
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h.  */
9262
9263 /* Override any GCC internal prototype to avoid an error.
9264    Use char because int might match the return type of a GCC
9265    builtin and then its argument prototype would still apply.  */
9266 #ifdef __cplusplus
9267 extern "C"
9268 #endif
9269 char dlopen ();
9270 int
9271 main ()
9272 {
9273 return dlopen ();
9274   ;
9275   return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_link "$LINENO"; then :
9279   ac_cv_lib_dl_dlopen=yes
9280 else
9281   ac_cv_lib_dl_dlopen=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext \
9284     conftest$ac_exeext conftest.$ac_ext
9285 LIBS=$ac_check_lib_save_LIBS
9286 fi
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9289 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9290
9291 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9292
9293                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9294 else
9295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297 #if HAVE_DLFCN_H
9298 #  include <dlfcn.h>
9299 #endif
9300
9301 int
9302 main ()
9303 {
9304 dlopen(0, 0);
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 if ac_fn_c_try_link "$LINENO"; then :
9310
9311 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9312  libltdl_cv_func_dlopen="yes"
9313 else
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9315 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9317   $as_echo_n "(cached) " >&6
9318 else
9319   ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lsvld  $LIBS"
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h.  */
9323
9324 /* Override any GCC internal prototype to avoid an error.
9325    Use char because int might match the return type of a GCC
9326    builtin and then its argument prototype would still apply.  */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 char dlopen ();
9331 int
9332 main ()
9333 {
9334 return dlopen ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 if ac_fn_c_try_link "$LINENO"; then :
9340   ac_cv_lib_svld_dlopen=yes
9341 else
9342   ac_cv_lib_svld_dlopen=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext \
9345     conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9349 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9350 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9351
9352 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9353
9354                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9357 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9359   $as_echo_n "(cached) " >&6
9360 else
9361   ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-ldld  $LIBS"
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h.  */
9365
9366 /* Override any GCC internal prototype to avoid an error.
9367    Use char because int might match the return type of a GCC
9368    builtin and then its argument prototype would still apply.  */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char dld_link ();
9373 int
9374 main ()
9375 {
9376 return dld_link ();
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 if ac_fn_c_try_link "$LINENO"; then :
9382   ac_cv_lib_dld_dld_link=yes
9383 else
9384   ac_cv_lib_dld_dld_link=no
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext \
9387     conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9391 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9392 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9393
9394 $as_echo "#define HAVE_DLD 1" >>confdefs.h
9395
9396                 LIBADD_DL="$LIBADD_DL -ldld"
9397 else
9398   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
9399 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
9400
9401 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
9402
9403 fi
9404
9405
9406 fi
9407
9408
9409 fi
9410
9411
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414     conftest$ac_exeext conftest.$ac_ext
9415
9416 fi
9417
9418
9419 fi
9420
9421
9422 fi
9423
9424
9425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9426 then
9427   lt_save_LIBS="$LIBS"
9428   LIBS="$LIBS $LIBADD_DL"
9429   for ac_func in dlerror
9430 do :
9431   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
9432 if test "x$ac_cv_func_dlerror" = x""yes; then :
9433   cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DLERROR 1
9435 _ACEOF
9436
9437 fi
9438 done
9439
9440   LIBS="$lt_save_LIBS"
9441 fi
9442 ac_ext=c
9443 ac_cpp='$CPP $CPPFLAGS'
9444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9447
9448
9449
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
9451 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
9452 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   ac_cv_sys_symbol_underscore=no
9456   cat > conftest.$ac_ext <<EOF
9457 void nm_test_func(){}
9458 int main(){nm_test_func;return 0;}
9459 EOF
9460   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9461   (eval $ac_compile) 2>&5
9462   ac_status=$?
9463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464   test $ac_status = 0; }; then
9465     # Now try to grab the symbols.
9466     ac_nlist=conftest.nm
9467     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
9468   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9469   ac_status=$?
9470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471   test $ac_status = 0; } && test -s "$ac_nlist"; then
9472       # See whether the symbols have a leading underscore.
9473       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9474         ac_cv_sys_symbol_underscore=yes
9475       else
9476         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9477           :
9478         else
9479           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9480         fi
9481       fi
9482     else
9483       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9484     fi
9485   else
9486     echo "configure: failed program was:" >&5
9487     cat conftest.c >&5
9488   fi
9489   rm -rf conftest*
9490
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
9493 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
9494
9495
9496 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9497   if test x"$libltdl_cv_func_dlopen" = xyes ||
9498      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
9500 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
9501 if test "${libltdl_cv_need_uscore+set}" = set; then :
9502   $as_echo_n "(cached) " >&6
9503 else
9504   libltdl_cv_need_uscore=unknown
9505           save_LIBS="$LIBS"
9506           LIBS="$LIBS $LIBADD_DL"
9507           if test "$cross_compiling" = yes; then :
9508   libltdl_cv_need_uscore=cross
9509 else
9510   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9511   lt_status=$lt_dlunknown
9512   cat > conftest.$ac_ext <<EOF
9513 #line 9513 "configure"
9514 #include "confdefs.h"
9515
9516 #if HAVE_DLFCN_H
9517 #include <dlfcn.h>
9518 #endif
9519
9520 #include <stdio.h>
9521
9522 #ifdef RTLD_GLOBAL
9523 #  define LT_DLGLOBAL           RTLD_GLOBAL
9524 #else
9525 #  ifdef DL_GLOBAL
9526 #    define LT_DLGLOBAL         DL_GLOBAL
9527 #  else
9528 #    define LT_DLGLOBAL         0
9529 #  endif
9530 #endif
9531
9532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9533    find out it does not work in some platform. */
9534 #ifndef LT_DLLAZY_OR_NOW
9535 #  ifdef RTLD_LAZY
9536 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9537 #  else
9538 #    ifdef DL_LAZY
9539 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9540 #    else
9541 #      ifdef RTLD_NOW
9542 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9543 #      else
9544 #        ifdef DL_NOW
9545 #          define LT_DLLAZY_OR_NOW      DL_NOW
9546 #        else
9547 #          define LT_DLLAZY_OR_NOW      0
9548 #        endif
9549 #      endif
9550 #    endif
9551 #  endif
9552 #endif
9553
9554 #ifdef __cplusplus
9555 extern "C" void exit (int);
9556 #endif
9557
9558 void fnord() { int i=42;}
9559 int main ()
9560 {
9561   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9562   int status = $lt_dlunknown;
9563
9564   if (self)
9565     {
9566       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9567       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9568       /* dlclose (self); */
9569     }
9570   else
9571     puts (dlerror ());
9572
9573     exit (status);
9574 }
9575 EOF
9576   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9577   (eval $ac_link) 2>&5
9578   ac_status=$?
9579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9581     (./conftest; exit; ) >&5 2>/dev/null
9582     lt_status=$?
9583     case x$lt_status in
9584       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9585       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9586       x$lt_dlunknown|x*)  ;;
9587     esac
9588   else :
9589     # compilation failed
9590
9591   fi
9592 fi
9593 rm -fr conftest*
9594
9595           LIBS="$save_LIBS"
9596
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
9599 $as_echo "$libltdl_cv_need_uscore" >&6; }
9600   fi
9601 fi
9602
9603 if test x"$libltdl_cv_need_uscore" = xyes; then
9604
9605 $as_echo "#define NEED_USCORE 1" >>confdefs.h
9606
9607 fi
9608
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
9611 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
9612 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   # PORTME does your system automatically load deplibs for dlopen?
9616   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9617   # For now, we just catch OSes we know something about -- in the
9618   # future, we'll try test this programmatically.
9619   libltdl_cv_sys_dlopen_deplibs=unknown
9620   case "$host_os" in
9621   aix3*|aix4.1.*|aix4.2.*)
9622     # Unknown whether this is true for these versions of AIX, but
9623     # we want this `case' here to explicitly catch those versions.
9624     libltdl_cv_sys_dlopen_deplibs=unknown
9625     ;;
9626   aix[45]*)
9627     libltdl_cv_sys_dlopen_deplibs=yes
9628     ;;
9629   darwin*)
9630     # Assuming the user has installed a libdl from somewhere, this is true
9631     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9632     libltdl_cv_sys_dlopen_deplibs=yes
9633     ;;
9634   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9635     # GNU and its variants, using gnu ld.so (Glibc)
9636     libltdl_cv_sys_dlopen_deplibs=yes
9637     ;;
9638   hpux10*|hpux11*)
9639     libltdl_cv_sys_dlopen_deplibs=yes
9640     ;;
9641   interix*)
9642     libltdl_cv_sys_dlopen_deplibs=yes
9643     ;;
9644   irix[12345]*|irix6.[01]*)
9645     # Catch all versions of IRIX before 6.2, and indicate that we don't
9646     # know how it worked for any of those versions.
9647     libltdl_cv_sys_dlopen_deplibs=unknown
9648     ;;
9649   irix*)
9650     # The case above catches anything before 6.2, and it's known that
9651     # at 6.2 and later dlopen does load deplibs.
9652     libltdl_cv_sys_dlopen_deplibs=yes
9653     ;;
9654   netbsd*)
9655     libltdl_cv_sys_dlopen_deplibs=yes
9656     ;;
9657   openbsd*)
9658     libltdl_cv_sys_dlopen_deplibs=yes
9659     ;;
9660   osf[1234]*)
9661     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
9662     # it did *not* use an RPATH in a shared library to find objects the
9663     # library depends on, so we explictly say `no'.
9664     libltdl_cv_sys_dlopen_deplibs=no
9665     ;;
9666   osf5.0|osf5.0a|osf5.1)
9667     # dlopen *does* load deplibs and with the right loader patch applied
9668     # it even uses RPATH in a shared library to search for shared objects
9669     # that the library depends on, but there's no easy way to know if that
9670     # patch is installed.  Since this is the case, all we can really
9671     # say is unknown -- it depends on the patch being installed.  If
9672     # it is, this changes to `yes'.  Without it, it would be `no'.
9673     libltdl_cv_sys_dlopen_deplibs=unknown
9674     ;;
9675   osf*)
9676     # the two cases above should catch all versions of osf <= 5.1.  Read
9677     # the comments above for what we know about them.
9678     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
9679     # is used to find them so we can finally say `yes'.
9680     libltdl_cv_sys_dlopen_deplibs=yes
9681     ;;
9682   solaris*)
9683     libltdl_cv_sys_dlopen_deplibs=yes
9684     ;;
9685   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9686     libltdl_cv_sys_dlopen_deplibs=yes
9687     ;;
9688   esac
9689
9690 fi
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
9692 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
9693 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
9694
9695 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
9696
9697 fi
9698
9699 for ac_header in argz.h
9700 do :
9701   ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
9702 if test "x$ac_cv_header_argz_h" = x""yes; then :
9703   cat >>confdefs.h <<_ACEOF
9704 #define HAVE_ARGZ_H 1
9705 _ACEOF
9706
9707 fi
9708
9709 done
9710
9711
9712 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
9713 #  include <argz.h>
9714 #endif
9715 "
9716 if test "x$ac_cv_type_error_t" = x""yes; then :
9717
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_ERROR_T 1
9720 _ACEOF
9721
9722
9723 else
9724
9725 $as_echo "#define error_t int" >>confdefs.h
9726
9727 fi
9728
9729
9730 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9731 do :
9732   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9734 eval as_val=\$$as_ac_var
9735    if test "x$as_val" = x""yes; then :
9736   cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9738 _ACEOF
9739
9740 fi
9741 done
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9763                   stdio.h unistd.h
9764 do :
9765   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9766 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9767 eval as_val=\$$as_ac_Header
9768    if test "x$as_val" = x""yes; then :
9769   cat >>confdefs.h <<_ACEOF
9770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9771 _ACEOF
9772
9773 fi
9774
9775 done
9776
9777 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9778 do :
9779   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9781 eval as_val=\$$as_ac_Header
9782    if test "x$as_val" = x""yes; then :
9783   cat >>confdefs.h <<_ACEOF
9784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9785 _ACEOF
9786
9787 fi
9788
9789 done
9790
9791 for ac_header in string.h strings.h
9792 do :
9793   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9795 eval as_val=\$$as_ac_Header
9796    if test "x$as_val" = x""yes; then :
9797   cat >>confdefs.h <<_ACEOF
9798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9799 _ACEOF
9800  break
9801 fi
9802
9803 done
9804
9805
9806 for ac_func in strchr index
9807 do :
9808   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9810 eval as_val=\$$as_ac_var
9811    if test "x$as_val" = x""yes; then :
9812   cat >>confdefs.h <<_ACEOF
9813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9814 _ACEOF
9815  break
9816 fi
9817 done
9818
9819 for ac_func in strrchr rindex
9820 do :
9821   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9822 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9823 eval as_val=\$$as_ac_var
9824    if test "x$as_val" = x""yes; then :
9825   cat >>confdefs.h <<_ACEOF
9826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9827 _ACEOF
9828  break
9829 fi
9830 done
9831
9832 for ac_func in memcpy bcopy
9833 do :
9834   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9836 eval as_val=\$$as_ac_var
9837    if test "x$as_val" = x""yes; then :
9838   cat >>confdefs.h <<_ACEOF
9839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9840 _ACEOF
9841  break
9842 fi
9843 done
9844
9845 for ac_func in memmove strcmp
9846 do :
9847   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9849 eval as_val=\$$as_ac_var
9850    if test "x$as_val" = x""yes; then :
9851   cat >>confdefs.h <<_ACEOF
9852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 _ACEOF
9854
9855 fi
9856 done
9857
9858 for ac_func in closedir opendir readdir
9859 do :
9860   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9862 eval as_val=\$$as_ac_var
9863    if test "x$as_val" = x""yes; then :
9864   cat >>confdefs.h <<_ACEOF
9865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9866 _ACEOF
9867
9868 fi
9869 done
9870
9871
9872
9873 if test "$WITH_LLVMGCCDIR" = "default" ; then
9874   LLVMGCC="llvm-gcc${EXEEXT}"
9875   LLVMGXX="llvm-g++${EXEEXT}"
9876   LLVMGCCCOMMAND="$LLVMGCC"
9877   LLVMGXXCOMMAND="$LLVMGXX"
9878   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
9879
9880   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
9881
9882   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
9883 set dummy $LLVMGCC; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_path_LLVMGCC+set}" = set; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   case $LLVMGCC in
9890   [\\/]* | ?:[\\/]*)
9891   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
9892   ;;
9893   *)
9894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897   IFS=$as_save_IFS
9898   test -z "$as_dir" && as_dir=.
9899     for ac_exec_ext in '' $ac_executable_extensions; do
9900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
9902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903     break 2
9904   fi
9905 done
9906   done
9907 IFS=$as_save_IFS
9908
9909   ;;
9910 esac
9911 fi
9912 LLVMGCC=$ac_cv_path_LLVMGCC
9913 if test -n "$LLVMGCC"; then
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGCC" >&5
9915 $as_echo "$LLVMGCC" >&6; }
9916 else
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 fi
9920
9921
9922   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
9923 set dummy $LLVMGXX; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_path_LLVMGXX+set}" = set; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   case $LLVMGXX in
9930   [\\/]* | ?:[\\/]*)
9931   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
9932   ;;
9933   *)
9934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in $PATH
9936 do
9937   IFS=$as_save_IFS
9938   test -z "$as_dir" && as_dir=.
9939     for ac_exec_ext in '' $ac_executable_extensions; do
9940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
9942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943     break 2
9944   fi
9945 done
9946   done
9947 IFS=$as_save_IFS
9948
9949   ;;
9950 esac
9951 fi
9952 LLVMGXX=$ac_cv_path_LLVMGXX
9953 if test -n "$LLVMGXX"; then
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGXX" >&5
9955 $as_echo "$LLVMGXX" >&6; }
9956 else
9957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960
9961
9962 else
9963   if test -z "$LLVMGCC"; then
9964     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
9965     LLVMGCCCOMMAND="$LLVMGCC"
9966   fi
9967   if test -z "$LLVMGXX"; then
9968     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
9969     LLVMGXXCOMMAND="$LLVMGXX"
9970   fi
9971
9972   LLVMGCC=$LLVMGCC
9973
9974   LLVMGXX=$LLVMGXX
9975
9976   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
9977
9978   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
9979
9980 fi
9981
9982
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
9984 $as_echo_n "checking tool compatibility... " >&6; }
9985
9986 ICC=no
9987 IXX=no
9988 case $CC in
9989   icc*|icpc*)
9990     ICC=yes
9991     IXX=yes
9992     ;;
9993    *)
9994     ;;
9995 esac
9996
9997 if test "$GCC" != "yes" && test "$ICC" != "yes"
9998 then
9999   as_fn_error "gcc|icc required but not found" "$LINENO" 5
10000 fi
10001
10002 if test "$GXX" != "yes" && test "$IXX" != "yes"
10003 then
10004   as_fn_error "g++|icc required but not found" "$LINENO" 5
10005 fi
10006
10007 if test "$GCC" = "yes"
10008 then
10009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h.  */
10011 #if !defined(__GNUC__) || __GNUC__ < 3
10012 #error Unsupported GCC version
10013 #endif
10014
10015 _ACEOF
10016 if ac_fn_c_try_compile "$LINENO"; then :
10017
10018 else
10019   as_fn_error "gcc 3.x required, but you have a lower version" "$LINENO" 5
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022 fi
10023
10024 if test -z "$llvm_cv_gnu_make_command"
10025 then
10026   as_fn_error "GNU Make required but not found" "$LINENO" 5
10027 fi
10028
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10030 $as_echo "ok" >&6; }
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
10033 $as_echo_n "checking optional compiler flags... " >&6; }
10034 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
10035
10036 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
10039 $as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
10040
10041
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
10043 $as_echo_n "checking for sin in -lm... " >&6; }
10044 if test "${ac_cv_lib_m_sin+set}" = set; then :
10045   $as_echo_n "(cached) " >&6
10046 else
10047   ac_check_lib_save_LIBS=$LIBS
10048 LIBS="-lm  $LIBS"
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h.  */
10051
10052 /* Override any GCC internal prototype to avoid an error.
10053    Use char because int might match the return type of a GCC
10054    builtin and then its argument prototype would still apply.  */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 char sin ();
10059 int
10060 main ()
10061 {
10062 return sin ();
10063   ;
10064   return 0;
10065 }
10066 _ACEOF
10067 if ac_fn_c_try_link "$LINENO"; then :
10068   ac_cv_lib_m_sin=yes
10069 else
10070   ac_cv_lib_m_sin=no
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext \
10073     conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_check_lib_save_LIBS
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
10077 $as_echo "$ac_cv_lib_m_sin" >&6; }
10078 if test "x$ac_cv_lib_m_sin" = x""yes; then :
10079   cat >>confdefs.h <<_ACEOF
10080 #define HAVE_LIBM 1
10081 _ACEOF
10082
10083   LIBS="-lm $LIBS"
10084
10085 fi
10086
10087 if test "$llvm_cv_os_type" = "MingW" ; then
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -limagehlp" >&5
10089 $as_echo_n "checking for main in -limagehlp... " >&6; }
10090 if test "${ac_cv_lib_imagehlp_main+set}" = set; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-limagehlp  $LIBS"
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h.  */
10097
10098
10099 int
10100 main ()
10101 {
10102 return main ();
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108   ac_cv_lib_imagehlp_main=yes
10109 else
10110   ac_cv_lib_imagehlp_main=no
10111 fi
10112 rm -f core conftest.err conftest.$ac_objext \
10113     conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagehlp_main" >&5
10117 $as_echo "$ac_cv_lib_imagehlp_main" >&6; }
10118 if test "x$ac_cv_lib_imagehlp_main" = x""yes; then :
10119   cat >>confdefs.h <<_ACEOF
10120 #define HAVE_LIBIMAGEHLP 1
10121 _ACEOF
10122
10123   LIBS="-limagehlp $LIBS"
10124
10125 fi
10126
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
10128 $as_echo_n "checking for main in -lpsapi... " >&6; }
10129 if test "${ac_cv_lib_psapi_main+set}" = set; then :
10130   $as_echo_n "(cached) " >&6
10131 else
10132   ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-lpsapi  $LIBS"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h.  */
10136
10137
10138 int
10139 main ()
10140 {
10141 return main ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 if ac_fn_c_try_link "$LINENO"; then :
10147   ac_cv_lib_psapi_main=yes
10148 else
10149   ac_cv_lib_psapi_main=no
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext \
10152     conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
10156 $as_echo "$ac_cv_lib_psapi_main" >&6; }
10157 if test "x$ac_cv_lib_psapi_main" = x""yes; then :
10158   cat >>confdefs.h <<_ACEOF
10159 #define HAVE_LIBPSAPI 1
10160 _ACEOF
10161
10162   LIBS="-lpsapi $LIBS"
10163
10164 fi
10165
10166 fi
10167
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10169 $as_echo_n "checking for library containing dlopen... " >&6; }
10170 if test "${ac_cv_search_dlopen+set}" = set; then :
10171   $as_echo_n "(cached) " >&6
10172 else
10173   ac_func_search_save_LIBS=$LIBS
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h.  */
10176
10177 /* Override any GCC internal prototype to avoid an error.
10178    Use char because int might match the return type of a GCC
10179    builtin and then its argument prototype would still apply.  */
10180 #ifdef __cplusplus
10181 extern "C"
10182 #endif
10183 char dlopen ();
10184 int
10185 main ()
10186 {
10187 return dlopen ();
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 for ac_lib in '' dl; do
10193   if test -z "$ac_lib"; then
10194     ac_res="none required"
10195   else
10196     ac_res=-l$ac_lib
10197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10198   fi
10199   if ac_fn_c_try_link "$LINENO"; then :
10200   ac_cv_search_dlopen=$ac_res
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext \
10203     conftest$ac_exeext
10204   if test "${ac_cv_search_dlopen+set}" = set; then :
10205   break
10206 fi
10207 done
10208 if test "${ac_cv_search_dlopen+set}" = set; then :
10209
10210 else
10211   ac_cv_search_dlopen=no
10212 fi
10213 rm conftest.$ac_ext
10214 LIBS=$ac_func_search_save_LIBS
10215 fi
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10217 $as_echo "$ac_cv_search_dlopen" >&6; }
10218 ac_res=$ac_cv_search_dlopen
10219 if test "$ac_res" != no; then :
10220   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10221
10222 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10223
10224 else
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
10226 $as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
10227 fi
10228
10229
10230 if test "$llvm_cv_enable_libffi" = "yes" ; then
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
10232 $as_echo_n "checking for library containing ffi_call... " >&6; }
10233 if test "${ac_cv_search_ffi_call+set}" = set; then :
10234   $as_echo_n "(cached) " >&6
10235 else
10236   ac_func_search_save_LIBS=$LIBS
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h.  */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241    Use char because int might match the return type of a GCC
10242    builtin and then its argument prototype would still apply.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char ffi_call ();
10247 int
10248 main ()
10249 {
10250 return ffi_call ();
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 for ac_lib in '' ffi; do
10256   if test -z "$ac_lib"; then
10257     ac_res="none required"
10258   else
10259     ac_res=-l$ac_lib
10260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10261   fi
10262   if ac_fn_c_try_link "$LINENO"; then :
10263   ac_cv_search_ffi_call=$ac_res
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266     conftest$ac_exeext
10267   if test "${ac_cv_search_ffi_call+set}" = set; then :
10268   break
10269 fi
10270 done
10271 if test "${ac_cv_search_ffi_call+set}" = set; then :
10272
10273 else
10274   ac_cv_search_ffi_call=no
10275 fi
10276 rm conftest.$ac_ext
10277 LIBS=$ac_func_search_save_LIBS
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
10280 $as_echo "$ac_cv_search_ffi_call" >&6; }
10281 ac_res=$ac_cv_search_ffi_call
10282 if test "$ac_res" != no; then :
10283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10284
10285 $as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
10286
10287 else
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not found - disabling external calls from interpreter" >&5
10289 $as_echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
10290 fi
10291
10292 fi
10293
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
10295 $as_echo_n "checking for library containing mallinfo... " >&6; }
10296 if test "${ac_cv_search_mallinfo+set}" = set; then :
10297   $as_echo_n "(cached) " >&6
10298 else
10299   ac_func_search_save_LIBS=$LIBS
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h.  */
10302
10303 /* Override any GCC internal prototype to avoid an error.
10304    Use char because int might match the return type of a GCC
10305    builtin and then its argument prototype would still apply.  */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 char mallinfo ();
10310 int
10311 main ()
10312 {
10313 return mallinfo ();
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 for ac_lib in '' malloc; do
10319   if test -z "$ac_lib"; then
10320     ac_res="none required"
10321   else
10322     ac_res=-l$ac_lib
10323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10324   fi
10325   if ac_fn_c_try_link "$LINENO"; then :
10326   ac_cv_search_mallinfo=$ac_res
10327 fi
10328 rm -f core conftest.err conftest.$ac_objext \
10329     conftest$ac_exeext
10330   if test "${ac_cv_search_mallinfo+set}" = set; then :
10331   break
10332 fi
10333 done
10334 if test "${ac_cv_search_mallinfo+set}" = set; then :
10335
10336 else
10337   ac_cv_search_mallinfo=no
10338 fi
10339 rm conftest.$ac_ext
10340 LIBS=$ac_func_search_save_LIBS
10341 fi
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
10343 $as_echo "$ac_cv_search_mallinfo" >&6; }
10344 ac_res=$ac_cv_search_mallinfo
10345 if test "$ac_res" != no; then :
10346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10347
10348 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
10349
10350 fi
10351
10352
10353 if test "$ENABLE_THREADS" -eq 1 ; then
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
10355 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
10356 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lpthread  $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h.  */
10363
10364 /* Override any GCC internal prototype to avoid an error.
10365    Use char because int might match the return type of a GCC
10366    builtin and then its argument prototype would still apply.  */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char pthread_mutex_init ();
10371 int
10372 main ()
10373 {
10374 return pthread_mutex_init ();
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 if ac_fn_c_try_link "$LINENO"; then :
10380   ac_cv_lib_pthread_pthread_mutex_init=yes
10381 else
10382   ac_cv_lib_pthread_pthread_mutex_init=no
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext \
10385     conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10387 fi
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
10389 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
10390 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then :
10391   cat >>confdefs.h <<_ACEOF
10392 #define HAVE_LIBPTHREAD 1
10393 _ACEOF
10394
10395   LIBS="-lpthread $LIBS"
10396
10397 fi
10398
10399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
10400 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10401 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10402   $as_echo_n "(cached) " >&6
10403 else
10404   ac_func_search_save_LIBS=$LIBS
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h.  */
10407
10408 /* Override any GCC internal prototype to avoid an error.
10409    Use char because int might match the return type of a GCC
10410    builtin and then its argument prototype would still apply.  */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char pthread_mutex_lock ();
10415 int
10416 main ()
10417 {
10418 return pthread_mutex_lock ();
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 for ac_lib in '' pthread; do
10424   if test -z "$ac_lib"; then
10425     ac_res="none required"
10426   else
10427     ac_res=-l$ac_lib
10428     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10429   fi
10430   if ac_fn_c_try_link "$LINENO"; then :
10431   ac_cv_search_pthread_mutex_lock=$ac_res
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext \
10434     conftest$ac_exeext
10435   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10436   break
10437 fi
10438 done
10439 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10440
10441 else
10442   ac_cv_search_pthread_mutex_lock=no
10443 fi
10444 rm conftest.$ac_ext
10445 LIBS=$ac_func_search_save_LIBS
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
10448 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10449 ac_res=$ac_cv_search_pthread_mutex_lock
10450 if test "$ac_res" != no; then :
10451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10452
10453 $as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
10454
10455 fi
10456
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
10458 $as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
10459 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10460   $as_echo_n "(cached) " >&6
10461 else
10462   ac_func_search_save_LIBS=$LIBS
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465
10466 /* Override any GCC internal prototype to avoid an error.
10467    Use char because int might match the return type of a GCC
10468    builtin and then its argument prototype would still apply.  */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char pthread_rwlock_init ();
10473 int
10474 main ()
10475 {
10476 return pthread_rwlock_init ();
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 for ac_lib in '' pthread; do
10482   if test -z "$ac_lib"; then
10483     ac_res="none required"
10484   else
10485     ac_res=-l$ac_lib
10486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10487   fi
10488   if ac_fn_c_try_link "$LINENO"; then :
10489   ac_cv_search_pthread_rwlock_init=$ac_res
10490 fi
10491 rm -f core conftest.err conftest.$ac_objext \
10492     conftest$ac_exeext
10493   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10494   break
10495 fi
10496 done
10497 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10498
10499 else
10500   ac_cv_search_pthread_rwlock_init=no
10501 fi
10502 rm conftest.$ac_ext
10503 LIBS=$ac_func_search_save_LIBS
10504 fi
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
10506 $as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
10507 ac_res=$ac_cv_search_pthread_rwlock_init
10508 if test "$ac_res" != no; then :
10509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10510
10511 $as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
10512
10513 fi
10514
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
10516 $as_echo_n "checking for library containing pthread_getspecific... " >&6; }
10517 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10518   $as_echo_n "(cached) " >&6
10519 else
10520   ac_func_search_save_LIBS=$LIBS
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h.  */
10523
10524 /* Override any GCC internal prototype to avoid an error.
10525    Use char because int might match the return type of a GCC
10526    builtin and then its argument prototype would still apply.  */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char pthread_getspecific ();
10531 int
10532 main ()
10533 {
10534 return pthread_getspecific ();
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 for ac_lib in '' pthread; do
10540   if test -z "$ac_lib"; then
10541     ac_res="none required"
10542   else
10543     ac_res=-l$ac_lib
10544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10545   fi
10546   if ac_fn_c_try_link "$LINENO"; then :
10547   ac_cv_search_pthread_getspecific=$ac_res
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext \
10550     conftest$ac_exeext
10551   if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10552   break
10553 fi
10554 done
10555 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10556
10557 else
10558   ac_cv_search_pthread_getspecific=no
10559 fi
10560 rm conftest.$ac_ext
10561 LIBS=$ac_func_search_save_LIBS
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
10564 $as_echo "$ac_cv_search_pthread_getspecific" >&6; }
10565 ac_res=$ac_cv_search_pthread_getspecific
10566 if test "$ac_res" != no; then :
10567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10568
10569 $as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
10570
10571 fi
10572
10573 fi
10574
10575
10576 # Check whether --with-udis86 was given.
10577 if test "${with_udis86+set}" = set; then :
10578   withval=$with_udis86;
10579       USE_UDIS86=1
10580
10581       case "$withval" in
10582         /usr/lib|yes) ;;
10583         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10584       esac
10585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ud_init in -ludis86" >&5
10586 $as_echo_n "checking for ud_init in -ludis86... " >&6; }
10587 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then :
10588   $as_echo_n "(cached) " >&6
10589 else
10590   ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-ludis86  $LIBS"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h.  */
10594
10595 /* Override any GCC internal prototype to avoid an error.
10596    Use char because int might match the return type of a GCC
10597    builtin and then its argument prototype would still apply.  */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char ud_init ();
10602 int
10603 main ()
10604 {
10605 return ud_init ();
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611   ac_cv_lib_udis86_ud_init=yes
10612 else
10613   ac_cv_lib_udis86_ud_init=no
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext \
10616     conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udis86_ud_init" >&5
10620 $as_echo "$ac_cv_lib_udis86_ud_init" >&6; }
10621 if test "x$ac_cv_lib_udis86_ud_init" = x""yes; then :
10622   cat >>confdefs.h <<_ACEOF
10623 #define HAVE_LIBUDIS86 1
10624 _ACEOF
10625
10626   LIBS="-ludis86 $LIBS"
10627
10628 else
10629
10630         echo "Error! You need to have libudis86 around."
10631         exit -1
10632
10633 fi
10634
10635
10636 else
10637   USE_UDIS86=0
10638
10639 fi
10640
10641
10642 cat >>confdefs.h <<_ACEOF
10643 #define USE_UDIS86 $USE_UDIS86
10644 _ACEOF
10645
10646
10647
10648 # Check whether --with-oprofile was given.
10649 if test "${with_oprofile+set}" = set; then :
10650   withval=$with_oprofile;
10651       USE_OPROFILE=1
10652
10653       case "$withval" in
10654         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10655         no) llvm_cv_oppath=
10656             USE_OPROFILE=0
10657  ;;
10658         *) llvm_cv_oppath="${withval}/lib/oprofile"
10659            CPPFLAGS="-I${withval}/include";;
10660       esac
10661       if test -n "$llvm_cv_oppath" ; then
10662         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10663                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
10664 $as_echo_n "checking for library containing bfd_init... " >&6; }
10665 if test "${ac_cv_search_bfd_init+set}" = set; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   ac_func_search_save_LIBS=$LIBS
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673    Use char because int might match the return type of a GCC
10674    builtin and then its argument prototype would still apply.  */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char bfd_init ();
10679 int
10680 main ()
10681 {
10682 return bfd_init ();
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 for ac_lib in '' bfd; do
10688   if test -z "$ac_lib"; then
10689     ac_res="none required"
10690   else
10691     ac_res=-l$ac_lib
10692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10693   fi
10694   if ac_fn_c_try_link "$LINENO"; then :
10695   ac_cv_search_bfd_init=$ac_res
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698     conftest$ac_exeext
10699   if test "${ac_cv_search_bfd_init+set}" = set; then :
10700   break
10701 fi
10702 done
10703 if test "${ac_cv_search_bfd_init+set}" = set; then :
10704
10705 else
10706   ac_cv_search_bfd_init=no
10707 fi
10708 rm conftest.$ac_ext
10709 LIBS=$ac_func_search_save_LIBS
10710 fi
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
10712 $as_echo "$ac_cv_search_bfd_init" >&6; }
10713 ac_res=$ac_cv_search_bfd_init
10714 if test "$ac_res" != no; then :
10715   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10716
10717 fi
10718
10719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
10720 $as_echo_n "checking for library containing op_open_agent... " >&6; }
10721 if test "${ac_cv_search_op_open_agent+set}" = set; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   ac_func_search_save_LIBS=$LIBS
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h.  */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729    Use char because int might match the return type of a GCC
10730    builtin and then its argument prototype would still apply.  */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char op_open_agent ();
10735 int
10736 main ()
10737 {
10738 return op_open_agent ();
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 for ac_lib in '' opagent; do
10744   if test -z "$ac_lib"; then
10745     ac_res="none required"
10746   else
10747     ac_res=-l$ac_lib
10748     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10749   fi
10750   if ac_fn_c_try_link "$LINENO"; then :
10751   ac_cv_search_op_open_agent=$ac_res
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754     conftest$ac_exeext
10755   if test "${ac_cv_search_op_open_agent+set}" = set; then :
10756   break
10757 fi
10758 done
10759 if test "${ac_cv_search_op_open_agent+set}" = set; then :
10760
10761 else
10762   ac_cv_search_op_open_agent=no
10763 fi
10764 rm conftest.$ac_ext
10765 LIBS=$ac_func_search_save_LIBS
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
10768 $as_echo "$ac_cv_search_op_open_agent" >&6; }
10769 ac_res=$ac_cv_search_op_open_agent
10770 if test "$ac_res" != no; then :
10771   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10772
10773 else
10774
10775           echo "Error! You need to have libopagent around."
10776           exit -1
10777
10778 fi
10779
10780         ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_opagent_h" = x""yes; then :
10782
10783 else
10784
10785           echo "Error! You need to have opagent.h around."
10786           exit -1
10787
10788 fi
10789
10790
10791       fi
10792
10793 else
10794
10795       USE_OPROFILE=0
10796
10797
10798 fi
10799
10800
10801 cat >>confdefs.h <<_ACEOF
10802 #define USE_OPROFILE $USE_OPROFILE
10803 _ACEOF
10804
10805
10806
10807 ac_header_dirent=no
10808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10809   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10811 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10813   $as_echo_n "(cached) " >&6
10814 else
10815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h.  */
10817 #include <sys/types.h>
10818 #include <$ac_hdr>
10819
10820 int
10821 main ()
10822 {
10823 if ((DIR *) 0)
10824 return 0;
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 if ac_fn_c_try_compile "$LINENO"; then :
10830   eval "$as_ac_Header=yes"
10831 else
10832   eval "$as_ac_Header=no"
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 fi
10836 eval ac_res=\$$as_ac_Header
10837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838 $as_echo "$ac_res" >&6; }
10839 eval as_val=\$$as_ac_Header
10840    if test "x$as_val" = x""yes; then :
10841   cat >>confdefs.h <<_ACEOF
10842 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10843 _ACEOF
10844
10845 ac_header_dirent=$ac_hdr; break
10846 fi
10847
10848 done
10849 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10850 if test $ac_header_dirent = dirent.h; then
10851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10852 $as_echo_n "checking for library containing opendir... " >&6; }
10853 if test "${ac_cv_search_opendir+set}" = set; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856   ac_func_search_save_LIBS=$LIBS
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h.  */
10859
10860 /* Override any GCC internal prototype to avoid an error.
10861    Use char because int might match the return type of a GCC
10862    builtin and then its argument prototype would still apply.  */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char opendir ();
10867 int
10868 main ()
10869 {
10870 return opendir ();
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 for ac_lib in '' dir; do
10876   if test -z "$ac_lib"; then
10877     ac_res="none required"
10878   else
10879     ac_res=-l$ac_lib
10880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10881   fi
10882   if ac_fn_c_try_link "$LINENO"; then :
10883   ac_cv_search_opendir=$ac_res
10884 fi
10885 rm -f core conftest.err conftest.$ac_objext \
10886     conftest$ac_exeext
10887   if test "${ac_cv_search_opendir+set}" = set; then :
10888   break
10889 fi
10890 done
10891 if test "${ac_cv_search_opendir+set}" = set; then :
10892
10893 else
10894   ac_cv_search_opendir=no
10895 fi
10896 rm conftest.$ac_ext
10897 LIBS=$ac_func_search_save_LIBS
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10900 $as_echo "$ac_cv_search_opendir" >&6; }
10901 ac_res=$ac_cv_search_opendir
10902 if test "$ac_res" != no; then :
10903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10904
10905 fi
10906
10907 else
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10909 $as_echo_n "checking for library containing opendir... " >&6; }
10910 if test "${ac_cv_search_opendir+set}" = set; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913   ac_func_search_save_LIBS=$LIBS
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h.  */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918    Use char because int might match the return type of a GCC
10919    builtin and then its argument prototype would still apply.  */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char opendir ();
10924 int
10925 main ()
10926 {
10927 return opendir ();
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 for ac_lib in '' x; do
10933   if test -z "$ac_lib"; then
10934     ac_res="none required"
10935   else
10936     ac_res=-l$ac_lib
10937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10938   fi
10939   if ac_fn_c_try_link "$LINENO"; then :
10940   ac_cv_search_opendir=$ac_res
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext \
10943     conftest$ac_exeext
10944   if test "${ac_cv_search_opendir+set}" = set; then :
10945   break
10946 fi
10947 done
10948 if test "${ac_cv_search_opendir+set}" = set; then :
10949
10950 else
10951   ac_cv_search_opendir=no
10952 fi
10953 rm conftest.$ac_ext
10954 LIBS=$ac_func_search_save_LIBS
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10957 $as_echo "$ac_cv_search_opendir" >&6; }
10958 ac_res=$ac_cv_search_opendir
10959 if test "$ac_res" != no; then :
10960   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10961
10962 fi
10963
10964 fi
10965
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10967 $as_echo_n "checking for MAP_ANONYMOUS vs. MAP_ANON... " >&6; }
10968 if test "${ac_cv_header_mmap_anon+set}" = set; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971    ac_ext=c
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976
10977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h.  */
10979 #include <sys/mman.h>
10980 #include <unistd.h>
10981 #include <fcntl.h>
10982 int
10983 main ()
10984 {
10985 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991   ac_cv_header_mmap_anon=yes
10992 else
10993   ac_cv_header_mmap_anon=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10996   ac_ext=c
10997 ac_cpp='$CPP $CPPFLAGS'
10998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
11002
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_mmap_anon" >&5
11005 $as_echo "$ac_cv_header_mmap_anon" >&6; }
11006 if test "$ac_cv_header_mmap_anon" = yes; then
11007
11008 $as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h
11009
11010 fi
11011
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11013 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11014 if test "${ac_cv_header_stat_broken+set}" = set; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h.  */
11019 #include <sys/types.h>
11020 #include <sys/stat.h>
11021
11022 #if defined S_ISBLK && defined S_IFDIR
11023 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11024 #endif
11025
11026 #if defined S_ISBLK && defined S_IFCHR
11027 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11028 #endif
11029
11030 #if defined S_ISLNK && defined S_IFREG
11031 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11032 #endif
11033
11034 #if defined S_ISSOCK && defined S_IFREG
11035 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11036 #endif
11037
11038 _ACEOF
11039 if ac_fn_c_try_compile "$LINENO"; then :
11040   ac_cv_header_stat_broken=no
11041 else
11042   ac_cv_header_stat_broken=yes
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11047 $as_echo "$ac_cv_header_stat_broken" >&6; }
11048 if test $ac_cv_header_stat_broken = yes; then
11049
11050 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11051
11052 fi
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11055 $as_echo_n "checking for ANSI C header files... " >&6; }
11056 if test "${ac_cv_header_stdc+set}" = set; then :
11057   $as_echo_n "(cached) " >&6
11058 else
11059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h.  */
11061 #include <stdlib.h>
11062 #include <stdarg.h>
11063 #include <string.h>
11064 #include <float.h>
11065
11066 int
11067 main ()
11068 {
11069
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 if ac_fn_c_try_compile "$LINENO"; then :
11075   ac_cv_header_stdc=yes
11076 else
11077   ac_cv_header_stdc=no
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080
11081 if test $ac_cv_header_stdc = yes; then
11082   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h.  */
11085 #include <string.h>
11086
11087 _ACEOF
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089   $EGREP "memchr" >/dev/null 2>&1; then :
11090
11091 else
11092   ac_cv_header_stdc=no
11093 fi
11094 rm -f conftest*
11095
11096 fi
11097
11098 if test $ac_cv_header_stdc = yes; then
11099   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h.  */
11102 #include <stdlib.h>
11103
11104 _ACEOF
11105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11106   $EGREP "free" >/dev/null 2>&1; then :
11107
11108 else
11109   ac_cv_header_stdc=no
11110 fi
11111 rm -f conftest*
11112
11113 fi
11114
11115 if test $ac_cv_header_stdc = yes; then
11116   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11117   if test "$cross_compiling" = yes; then :
11118   :
11119 else
11120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h.  */
11122 #include <ctype.h>
11123 #include <stdlib.h>
11124 #if ((' ' & 0x0FF) == 0x020)
11125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11127 #else
11128 # define ISLOWER(c) \
11129                    (('a' <= (c) && (c) <= 'i') \
11130                      || ('j' <= (c) && (c) <= 'r') \
11131                      || ('s' <= (c) && (c) <= 'z'))
11132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11133 #endif
11134
11135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11136 int
11137 main ()
11138 {
11139   int i;
11140   for (i = 0; i < 256; i++)
11141     if (XOR (islower (i), ISLOWER (i))
11142         || toupper (i) != TOUPPER (i))
11143       return 2;
11144   return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_run "$LINENO"; then :
11148
11149 else
11150   ac_cv_header_stdc=no
11151 fi
11152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11153   conftest.$ac_objext conftest.beam conftest.$ac_ext
11154 fi
11155
11156 fi
11157 fi
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11159 $as_echo "$ac_cv_header_stdc" >&6; }
11160 if test $ac_cv_header_stdc = yes; then
11161
11162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11163
11164 fi
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11167 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11168 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h.  */
11173 #include <sys/types.h>
11174 #include <sys/wait.h>
11175 #ifndef WEXITSTATUS
11176 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11177 #endif
11178 #ifndef WIFEXITED
11179 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11180 #endif
11181
11182 int
11183 main ()
11184 {
11185   int s;
11186   wait (&s);
11187   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_compile "$LINENO"; then :
11193   ac_cv_header_sys_wait_h=yes
11194 else
11195   ac_cv_header_sys_wait_h=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 fi
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11200 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11201 if test $ac_cv_header_sys_wait_h = yes; then
11202
11203 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11204
11205 fi
11206
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11208 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11209 if test "${ac_cv_header_time+set}" = set; then :
11210   $as_echo_n "(cached) " >&6
11211 else
11212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h.  */
11214 #include <sys/types.h>
11215 #include <sys/time.h>
11216 #include <time.h>
11217
11218 int
11219 main ()
11220 {
11221 if ((struct tm *) 0)
11222 return 0;
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 if ac_fn_c_try_compile "$LINENO"; then :
11228   ac_cv_header_time=yes
11229 else
11230   ac_cv_header_time=no
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11235 $as_echo "$ac_cv_header_time" >&6; }
11236 if test $ac_cv_header_time = yes; then
11237
11238 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11239
11240 fi
11241
11242
11243 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
11244 do :
11245   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11247 eval as_val=\$$as_ac_Header
11248    if test "x$as_val" = x""yes; then :
11249   cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11251 _ACEOF
11252
11253 fi
11254
11255 done
11256
11257 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11258 do :
11259   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11261 eval as_val=\$$as_ac_Header
11262    if test "x$as_val" = x""yes; then :
11263   cat >>confdefs.h <<_ACEOF
11264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265 _ACEOF
11266
11267 fi
11268
11269 done
11270
11271 for ac_header in utime.h windows.h
11272 do :
11273   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11275 eval as_val=\$$as_ac_Header
11276    if test "x$as_val" = x""yes; then :
11277   cat >>confdefs.h <<_ACEOF
11278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 _ACEOF
11280
11281 fi
11282
11283 done
11284
11285 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
11286 do :
11287   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11289 eval as_val=\$$as_ac_Header
11290    if test "x$as_val" = x""yes; then :
11291   cat >>confdefs.h <<_ACEOF
11292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 _ACEOF
11294
11295 fi
11296
11297 done
11298
11299 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
11300 do :
11301   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303 eval as_val=\$$as_ac_Header
11304    if test "x$as_val" = x""yes; then :
11305   cat >>confdefs.h <<_ACEOF
11306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11307 _ACEOF
11308
11309 fi
11310
11311 done
11312
11313 if test "$ENABLE_THREADS" -eq 1 ; then
11314   for ac_header in pthread.h
11315 do :
11316   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11317 if test "x$ac_cv_header_pthread_h" = x""yes; then :
11318   cat >>confdefs.h <<_ACEOF
11319 #define HAVE_PTHREAD_H 1
11320 _ACEOF
11321  HAVE_PTHREAD=1
11322
11323 else
11324   HAVE_PTHREAD=0
11325
11326 fi
11327
11328 done
11329
11330 else
11331   HAVE_PTHREAD=0
11332
11333 fi
11334
11335 if test "$llvm_cv_enable_libffi" = "yes" ; then
11336   for ac_header in ffi.h ffi/ffi.h
11337 do :
11338   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11340 eval as_val=\$$as_ac_Header
11341    if test "x$as_val" = x""yes; then :
11342   cat >>confdefs.h <<_ACEOF
11343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 fi
11347
11348 done
11349
11350 fi
11351
11352
11353
11354
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
11356 $as_echo_n "checking for HUGE_VAL sanity... " >&6; }
11357 if test "${ac_cv_huge_val_sanity+set}" = set; then :
11358   $as_echo_n "(cached) " >&6
11359 else
11360
11361     ac_ext=cpp
11362 ac_cpp='$CXXCPP $CPPFLAGS'
11363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11366
11367     CXXFLAGS=-pedantic
11368     if test "$cross_compiling" = yes; then :
11369   ac_cv_huge_val_sanity=yes
11370 else
11371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h.  */
11373 #include <math.h>
11374 int
11375 main ()
11376 {
11377 double x = HUGE_VAL; return x != x;
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_cxx_try_run "$LINENO"; then :
11383   ac_cv_huge_val_sanity=yes
11384 else
11385   ac_cv_huge_val_sanity=no
11386 fi
11387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11388   conftest.$ac_objext conftest.beam conftest.$ac_ext
11389 fi
11390
11391     ac_ext=c
11392 ac_cpp='$CPP $CPPFLAGS'
11393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11396
11397
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
11400 $as_echo "$ac_cv_huge_val_sanity" >&6; }
11401   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
11402
11403
11404 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11405 if test "x$ac_cv_type_pid_t" = x""yes; then :
11406
11407 else
11408
11409 cat >>confdefs.h <<_ACEOF
11410 #define pid_t int
11411 _ACEOF
11412
11413 fi
11414
11415 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11416 if test "x$ac_cv_type_size_t" = x""yes; then :
11417
11418 else
11419
11420 cat >>confdefs.h <<_ACEOF
11421 #define size_t unsigned int
11422 _ACEOF
11423
11424 fi
11425
11426
11427 cat >>confdefs.h <<_ACEOF
11428 #define RETSIGTYPE void
11429 _ACEOF
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11432 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11433 if test "${ac_cv_struct_tm+set}" = set; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h.  */
11438 #include <sys/types.h>
11439 #include <time.h>
11440
11441 int
11442 main ()
11443 {
11444 struct tm tm;
11445                                      int *p = &tm.tm_sec;
11446                                      return !p;
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_compile "$LINENO"; then :
11452   ac_cv_struct_tm=time.h
11453 else
11454   ac_cv_struct_tm=sys/time.h
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11459 $as_echo "$ac_cv_struct_tm" >&6; }
11460 if test $ac_cv_struct_tm = sys/time.h; then
11461
11462 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11463
11464 fi
11465
11466 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11467 if test "x$ac_cv_type_int64_t" = x""yes; then :
11468
11469 cat >>confdefs.h <<_ACEOF
11470 #define HAVE_INT64_T 1
11471 _ACEOF
11472
11473
11474 else
11475   as_fn_error "Type int64_t required but not found" "$LINENO" 5
11476 fi
11477
11478 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11479 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11480
11481 cat >>confdefs.h <<_ACEOF
11482 #define HAVE_UINT64_T 1
11483 _ACEOF
11484
11485
11486 else
11487   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
11488 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11489
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_U_INT64_T 1
11492 _ACEOF
11493
11494
11495 else
11496   as_fn_error "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
11497 fi
11498
11499 fi
11500
11501
11502
11503 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
11504 do :
11505   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11506 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11507 eval as_val=\$$as_ac_var
11508    if test "x$as_val" = x""yes; then :
11509   cat >>confdefs.h <<_ACEOF
11510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11511 _ACEOF
11512
11513 fi
11514 done
11515
11516 for ac_func in powf fmodf strtof round
11517 do :
11518   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11520 eval as_val=\$$as_ac_var
11521    if test "x$as_val" = x""yes; then :
11522   cat >>confdefs.h <<_ACEOF
11523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524 _ACEOF
11525
11526 fi
11527 done
11528
11529 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
11530 do :
11531   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11533 eval as_val=\$$as_ac_var
11534    if test "x$as_val" = x""yes; then :
11535   cat >>confdefs.h <<_ACEOF
11536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537 _ACEOF
11538
11539 fi
11540 done
11541
11542 for ac_func in isatty mkdtemp mkstemp
11543 do :
11544   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11546 eval as_val=\$$as_ac_var
11547    if test "x$as_val" = x""yes; then :
11548   cat >>confdefs.h <<_ACEOF
11549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11550 _ACEOF
11551
11552 fi
11553 done
11554
11555 for ac_func in mktemp realpath sbrk setrlimit strdup
11556 do :
11557   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11559 eval as_val=\$$as_ac_var
11560    if test "x$as_val" = x""yes; then :
11561   cat >>confdefs.h <<_ACEOF
11562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11563 _ACEOF
11564
11565 fi
11566 done
11567
11568 for ac_func in strerror strerror_r strerror_s setenv
11569 do :
11570   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11572 eval as_val=\$$as_ac_var
11573    if test "x$as_val" = x""yes; then :
11574   cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576 _ACEOF
11577
11578 fi
11579 done
11580
11581 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
11582 do :
11583   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11585 eval as_val=\$$as_ac_var
11586    if test "x$as_val" = x""yes; then :
11587   cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589 _ACEOF
11590
11591 fi
11592 done
11593
11594 for ac_func in setjmp longjmp sigsetjmp siglongjmp
11595 do :
11596   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11598 eval as_val=\$$as_ac_var
11599    if test "x$as_val" = x""yes; then :
11600   cat >>confdefs.h <<_ACEOF
11601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11602 _ACEOF
11603
11604 fi
11605 done
11606
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has the %a format character" >&5
11608 $as_echo_n "checking if printf has the %a format character... " >&6; }
11609 if test "${llvm_cv_c_printf_a+set}" = set; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   ac_ext=c
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617
11618  if test "$cross_compiling" = yes; then :
11619   llvmac_cv_c_printf_a=no
11620 else
11621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h.  */
11623
11624
11625 #include <stdio.h>
11626 #include <stdlib.h>
11627
11628 int
11629 main ()
11630 {
11631
11632 volatile double A, B;
11633 char Buffer[100];
11634 A = 1;
11635 A /= 10.0;
11636 sprintf(Buffer, "%a", A);
11637 B = atof(Buffer);
11638 if (A != B)
11639   return (1);
11640 if (A != 0x1.999999999999ap-4)
11641   return (1);
11642 return (0);
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_run "$LINENO"; then :
11648   llvm_cv_c_printf_a=yes
11649 else
11650   llvmac_cv_c_printf_a=no
11651 fi
11652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11653   conftest.$ac_objext conftest.beam conftest.$ac_ext
11654 fi
11655
11656  ac_ext=c
11657 ac_cpp='$CPP $CPPFLAGS'
11658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11661
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_c_printf_a" >&5
11664 $as_echo "$llvm_cv_c_printf_a" >&6; }
11665  if test "$llvm_cv_c_printf_a" = "yes"; then
11666
11667 $as_echo "#define HAVE_PRINTF_A 1" >>confdefs.h
11668
11669  fi
11670
11671
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
11673 $as_echo_n "checking for srand48/lrand48/drand48 in <stdlib.h>... " >&6; }
11674 if test "${ac_cv_func_rand48+set}" = set; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   ac_ext=cpp
11678 ac_cpp='$CXXCPP $CPPFLAGS'
11679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11682
11683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h.  */
11685 #include <stdlib.h>
11686 int
11687 main ()
11688 {
11689 srand48(0);lrand48();drand48();
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_cxx_try_compile "$LINENO"; then :
11695   ac_cv_func_rand48=yes
11696 else
11697   ac_cv_func_rand48=no
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700   ac_ext=c
11701 ac_cpp='$CPP $CPPFLAGS'
11702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11705
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_rand48" >&5
11708 $as_echo "$ac_cv_func_rand48" >&6; }
11709
11710 if test "$ac_cv_func_rand48" = "yes" ; then
11711
11712 $as_echo "#define HAVE_RAND48 1" >>confdefs.h
11713
11714 fi
11715
11716
11717
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <math.h>" >&5
11719 $as_echo_n "checking for isnan in <math.h>... " >&6; }
11720 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723   ac_ext=cpp
11724 ac_cpp='$CXXCPP $CPPFLAGS'
11725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11728
11729    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h.  */
11731 #include <math.h>
11732 int
11733 main ()
11734 {
11735 float f; isnan(f);
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_cxx_try_compile "$LINENO"; then :
11741   ac_cv_func_isnan_in_math_h=yes
11742 else
11743   ac_cv_func_isnan_in_math_h=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746   ac_ext=c
11747 ac_cpp='$CPP $CPPFLAGS'
11748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11751
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_math_h" >&5
11754 $as_echo "$ac_cv_func_isnan_in_math_h" >&6; }
11755
11756
11757 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
11758
11759 $as_echo "#define HAVE_ISNAN_IN_MATH_H 1" >>confdefs.h
11760
11761 fi
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <cmath>" >&5
11764 $as_echo_n "checking for isnan in <cmath>... " >&6; }
11765 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768   ac_ext=cpp
11769 ac_cpp='$CXXCPP $CPPFLAGS'
11770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11773
11774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h.  */
11776 #include <cmath>
11777 int
11778 main ()
11779 {
11780 float f; isnan(f);
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_cxx_try_compile "$LINENO"; then :
11786   ac_cv_func_isnan_in_cmath=yes
11787 else
11788   ac_cv_func_isnan_in_cmath=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791   ac_ext=c
11792 ac_cpp='$CPP $CPPFLAGS'
11793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11796
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_cmath" >&5
11799 $as_echo "$ac_cv_func_isnan_in_cmath" >&6; }
11800
11801 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
11802
11803 $as_echo "#define HAVE_ISNAN_IN_CMATH 1" >>confdefs.h
11804
11805 fi
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in <cmath>" >&5
11808 $as_echo_n "checking for std::isnan in <cmath>... " >&6; }
11809 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812   ac_ext=cpp
11813 ac_cpp='$CXXCPP $CPPFLAGS'
11814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11817
11818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h.  */
11820 #include <cmath>
11821 int
11822 main ()
11823 {
11824 float f; std::isnan(f);
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_cxx_try_compile "$LINENO"; then :
11830   ac_cv_func_std_isnan_in_cmath=yes
11831 else
11832   ac_cv_func_std_isnan_in_cmath=no
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835   ac_ext=c
11836 ac_cpp='$CPP $CPPFLAGS'
11837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isnan_in_cmath" >&5
11843 $as_echo "$ac_cv_func_std_isnan_in_cmath" >&6; }
11844
11845 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
11846
11847 $as_echo "#define HAVE_STD_ISNAN_IN_CMATH 1" >>confdefs.h
11848
11849 fi
11850
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <math.h>" >&5
11853 $as_echo_n "checking for isinf in <math.h>... " >&6; }
11854 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then :
11855   $as_echo_n "(cached) " >&6
11856 else
11857   ac_ext=cpp
11858 ac_cpp='$CXXCPP $CPPFLAGS'
11859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11862
11863    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865 #include <math.h>
11866 int
11867 main ()
11868 {
11869 float f; isinf(f);
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_cxx_try_compile "$LINENO"; then :
11875   ac_cv_func_isinf_in_math_h=yes
11876 else
11877   ac_cv_func_isinf_in_math_h=no
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880   ac_ext=c
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_math_h" >&5
11888 $as_echo "$ac_cv_func_isinf_in_math_h" >&6; }
11889
11890 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
11891
11892 $as_echo "#define HAVE_ISINF_IN_MATH_H 1" >>confdefs.h
11893
11894 fi
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <cmath>" >&5
11897 $as_echo_n "checking for isinf in <cmath>... " >&6; }
11898 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   ac_ext=cpp
11902 ac_cpp='$CXXCPP $CPPFLAGS'
11903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11906
11907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h.  */
11909 #include <cmath>
11910 int
11911 main ()
11912 {
11913 float f; isinf(f);
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_cxx_try_compile "$LINENO"; then :
11919   ac_cv_func_isinf_in_cmath=yes
11920 else
11921   ac_cv_func_isinf_in_cmath=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924   ac_ext=c
11925 ac_cpp='$CPP $CPPFLAGS'
11926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930 fi
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_cmath" >&5
11932 $as_echo "$ac_cv_func_isinf_in_cmath" >&6; }
11933
11934 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
11935
11936 $as_echo "#define HAVE_ISINF_IN_CMATH 1" >>confdefs.h
11937
11938 fi
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in <cmath>" >&5
11941 $as_echo_n "checking for std::isinf in <cmath>... " >&6; }
11942 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   ac_ext=cpp
11946 ac_cpp='$CXXCPP $CPPFLAGS'
11947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11950
11951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h.  */
11953 #include <cmath>
11954 int
11955 main ()
11956 {
11957 float f; std::isinf(f)}
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 if ac_fn_cxx_try_compile "$LINENO"; then :
11963   ac_cv_func_std_isinf_in_cmath=yes
11964 else
11965   ac_cv_func_std_isinf_in_cmath=no
11966 fi
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968   ac_ext=c
11969 ac_cpp='$CPP $CPPFLAGS'
11970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isinf_in_cmath" >&5
11976 $as_echo "$ac_cv_func_std_isinf_in_cmath" >&6; }
11977
11978 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
11979
11980 $as_echo "#define HAVE_STD_ISINF_IN_CMATH 1" >>confdefs.h
11981
11982 fi
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <ieeefp.h>" >&5
11985 $as_echo_n "checking for finite in <ieeefp.h>... " >&6; }
11986 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   ac_ext=cpp
11990 ac_cpp='$CXXCPP $CPPFLAGS'
11991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11994
11995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h.  */
11997 #include <ieeefp.h>
11998 int
11999 main ()
12000 {
12001 float f; finite(f);
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 if ac_fn_cxx_try_compile "$LINENO"; then :
12007   ac_cv_func_finite_in_ieeefp_h=yes
12008 else
12009   ac_cv_func_finite_in_ieeefp_h=no
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012   ac_ext=c
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_finite_in_ieeefp_h" >&5
12020 $as_echo "$ac_cv_func_finite_in_ieeefp_h" >&6; }
12021
12022 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
12023
12024 $as_echo "#define HAVE_FINITE_IN_IEEEFP_H 1" >>confdefs.h
12025
12026 fi
12027
12028
12029
12030 if test "$llvm_cv_platform_type" = "Unix" ; then
12031
12032
12033
12034   for ac_header in $ac_header_list
12035 do :
12036   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12038 "
12039 eval as_val=\$$as_ac_Header
12040    if test "x$as_val" = x""yes; then :
12041   cat >>confdefs.h <<_ACEOF
12042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12043 _ACEOF
12044
12045 fi
12046
12047 done
12048
12049
12050
12051
12052
12053
12054
12055
12056 for ac_func in getpagesize
12057 do :
12058   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12059 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12060   cat >>confdefs.h <<_ACEOF
12061 #define HAVE_GETPAGESIZE 1
12062 _ACEOF
12063
12064 fi
12065 done
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12068 $as_echo_n "checking for working mmap... " >&6; }
12069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   if test "$cross_compiling" = yes; then :
12073   ac_cv_func_mmap_fixed_mapped=no
12074 else
12075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h.  */
12077 $ac_includes_default
12078 /* malloc might have been renamed as rpl_malloc. */
12079 #undef malloc
12080
12081 /* Thanks to Mike Haertel and Jim Avera for this test.
12082    Here is a matrix of mmap possibilities:
12083         mmap private not fixed
12084         mmap private fixed at somewhere currently unmapped
12085         mmap private fixed at somewhere already mapped
12086         mmap shared not fixed
12087         mmap shared fixed at somewhere currently unmapped
12088         mmap shared fixed at somewhere already mapped
12089    For private mappings, we should verify that changes cannot be read()
12090    back from the file, nor mmap's back from the file at a different
12091    address.  (There have been systems where private was not correctly
12092    implemented like the infamous i386 svr4.0, and systems where the
12093    VM page cache was not coherent with the file system buffer cache
12094    like early versions of FreeBSD and possibly contemporary NetBSD.)
12095    For shared mappings, we should conversely verify that changes get
12096    propagated back to all the places they're supposed to be.
12097
12098    Grep wants private fixed already mapped.
12099    The main things grep needs to know about mmap are:
12100    * does it exist and is it safe to write into the mmap'd area
12101    * how to use it (BSD variants)  */
12102
12103 #include <fcntl.h>
12104 #include <sys/mman.h>
12105
12106 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12107 char *malloc ();
12108 #endif
12109
12110 /* This mess was copied from the GNU getpagesize.h.  */
12111 #ifndef HAVE_GETPAGESIZE
12112 # ifdef _SC_PAGESIZE
12113 #  define getpagesize() sysconf(_SC_PAGESIZE)
12114 # else /* no _SC_PAGESIZE */
12115 #  ifdef HAVE_SYS_PARAM_H
12116 #   include <sys/param.h>
12117 #   ifdef EXEC_PAGESIZE
12118 #    define getpagesize() EXEC_PAGESIZE
12119 #   else /* no EXEC_PAGESIZE */
12120 #    ifdef NBPG
12121 #     define getpagesize() NBPG * CLSIZE
12122 #     ifndef CLSIZE
12123 #      define CLSIZE 1
12124 #     endif /* no CLSIZE */
12125 #    else /* no NBPG */
12126 #     ifdef NBPC
12127 #      define getpagesize() NBPC
12128 #     else /* no NBPC */
12129 #      ifdef PAGESIZE
12130 #       define getpagesize() PAGESIZE
12131 #      endif /* PAGESIZE */
12132 #     endif /* no NBPC */
12133 #    endif /* no NBPG */
12134 #   endif /* no EXEC_PAGESIZE */
12135 #  else /* no HAVE_SYS_PARAM_H */
12136 #   define getpagesize() 8192   /* punt totally */
12137 #  endif /* no HAVE_SYS_PARAM_H */
12138 # endif /* no _SC_PAGESIZE */
12139
12140 #endif /* no HAVE_GETPAGESIZE */
12141
12142 int
12143 main ()
12144 {
12145   char *data, *data2, *data3;
12146   const char *cdata2;
12147   int i, pagesize;
12148   int fd, fd2;
12149
12150   pagesize = getpagesize ();
12151
12152   /* First, make a file with some known garbage in it. */
12153   data = (char *) malloc (pagesize);
12154   if (!data)
12155     return 1;
12156   for (i = 0; i < pagesize; ++i)
12157     *(data + i) = rand ();
12158   umask (0);
12159   fd = creat ("conftest.mmap", 0600);
12160   if (fd < 0)
12161     return 2;
12162   if (write (fd, data, pagesize) != pagesize)
12163     return 3;
12164   close (fd);
12165
12166   /* Next, check that the tail of a page is zero-filled.  File must have
12167      non-zero length, otherwise we risk SIGBUS for entire page.  */
12168   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12169   if (fd2 < 0)
12170     return 4;
12171   cdata2 = "";
12172   if (write (fd2, cdata2, 1) != 1)
12173     return 5;
12174   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12175   if (data2 == MAP_FAILED)
12176     return 6;
12177   for (i = 0; i < pagesize; ++i)
12178     if (*(data2 + i))
12179       return 7;
12180   close (fd2);
12181   if (munmap (data2, pagesize))
12182     return 8;
12183
12184   /* Next, try to mmap the file at a fixed address which already has
12185      something else allocated at it.  If we can, also make sure that
12186      we see the same garbage.  */
12187   fd = open ("conftest.mmap", O_RDWR);
12188   if (fd < 0)
12189     return 9;
12190   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12191                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12192     return 10;
12193   for (i = 0; i < pagesize; ++i)
12194     if (*(data + i) != *(data2 + i))
12195       return 11;
12196
12197   /* Finally, make sure that changes to the mapped area do not
12198      percolate back to the file as seen by read().  (This is a bug on
12199      some variants of i386 svr4.0.)  */
12200   for (i = 0; i < pagesize; ++i)
12201     *(data2 + i) = *(data2 + i) + 1;
12202   data3 = (char *) malloc (pagesize);
12203   if (!data3)
12204     return 12;
12205   if (read (fd, data3, pagesize) != pagesize)
12206     return 13;
12207   for (i = 0; i < pagesize; ++i)
12208     if (*(data + i) != *(data3 + i))
12209       return 14;
12210   close (fd);
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_run "$LINENO"; then :
12215   ac_cv_func_mmap_fixed_mapped=yes
12216 else
12217   ac_cv_func_mmap_fixed_mapped=no
12218 fi
12219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12220   conftest.$ac_objext conftest.beam conftest.$ac_ext
12221 fi
12222
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12225 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12226 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12227
12228 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12229
12230 fi
12231 rm -f conftest.mmap conftest.txt
12232
12233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap of files" >&5
12234 $as_echo_n "checking for mmap of files... " >&6; }
12235 if test "${ac_cv_func_mmap_file+set}" = set; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238    ac_ext=c
12239 ac_cpp='$CPP $CPPFLAGS'
12240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12243
12244   if test "$cross_compiling" = yes; then :
12245   ac_cv_func_mmap_file=no
12246 else
12247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h.  */
12249
12250
12251 #include <sys/types.h>
12252 #include <sys/mman.h>
12253 #include <fcntl.h>
12254
12255 int
12256 main ()
12257 {
12258
12259   int fd;
12260   fd = creat ("foo",0777);
12261   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
12262   unlink ("foo");
12263   return (fd != (int) MAP_FAILED);
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 if ac_fn_c_try_run "$LINENO"; then :
12269   ac_cv_func_mmap_file=yes
12270 else
12271   ac_cv_func_mmap_file=no
12272 fi
12273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12274   conftest.$ac_objext conftest.beam conftest.$ac_ext
12275 fi
12276
12277   ac_ext=c
12278 ac_cpp='$CPP $CPPFLAGS'
12279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12282
12283
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
12286 $as_echo "$ac_cv_func_mmap_file" >&6; }
12287 if test "$ac_cv_func_mmap_file" = yes; then
12288
12289 $as_echo "#define HAVE_MMAP_FILE /**/" >>confdefs.h
12290
12291    MMAP_FILE=yes
12292
12293 fi
12294
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/zero is needed for mmap" >&5
12296 $as_echo_n "checking if /dev/zero is needed for mmap... " >&6; }
12297 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   if test "$llvm_cv_os_type" = "Interix" ; then
12301    ac_cv_need_dev_zero_for_mmap=yes
12302  else
12303    ac_cv_need_dev_zero_for_mmap=no
12304  fi
12305
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_dev_zero_for_mmap" >&5
12308 $as_echo "$ac_cv_need_dev_zero_for_mmap" >&6; }
12309 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
12310
12311 $as_echo "#define NEED_DEV_ZERO_FOR_MMAP 1" >>confdefs.h
12312
12313 fi
12314
12315   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
12316   then
12317     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of a fixed address required but not supported" >&5
12318 $as_echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
12319   fi
12320   if test "$ac_cv_func_mmap_file" = "no"
12321   then
12322     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of files required but not found" >&5
12323 $as_echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
12324   fi
12325 fi
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
12328 $as_echo_n "checking for GCC atomic builtins... " >&6; }
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h.  */
12331 int main() {
12332         volatile unsigned long val = 1;
12333         __sync_synchronize();
12334         __sync_val_compare_and_swap(&val, 1, 0);
12335         __sync_add_and_fetch(&val, 1);
12336         __sync_sub_and_fetch(&val, 1);
12337         return 0;
12338       }
12339
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"; then :
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12344
12345 $as_echo "#define LLVM_MULTITHREADED 1" >>confdefs.h
12346
12347 else
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350
12351 $as_echo "#define LLVM_MULTITHREADED 0" >>confdefs.h
12352
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
12354 $as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext \
12357     conftest$ac_exeext conftest.$ac_ext
12358
12359
12360
12361 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
12363 $as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
12364 if test "${llvm_cv_linux_mixed+set}" = set; then :
12365   $as_echo_n "(cached) " >&6
12366 else
12367    ac_ext=c
12368 ac_cpp='$CPP $CPPFLAGS'
12369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
12373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h.  */
12375 #ifndef __x86_64__
12376        error: Not x86-64 even if uname says so!
12377       #endif
12378
12379 int
12380 main ()
12381 {
12382
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388   llvm_cv_linux_mixed=no
12389 else
12390   llvm_cv_linux_mixed=yes
12391 fi
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393   ac_ext=c
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398
12399
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
12402 $as_echo "$llvm_cv_linux_mixed" >&6; }
12403
12404   if test "$llvm_cv_linux_mixed" = "yes"; then
12405     llvm_cv_target_arch="x86"
12406     ARCH="x86"
12407   fi
12408 fi
12409
12410 for ac_func in __dso_handle
12411 do :
12412   ac_fn_c_check_func "$LINENO" "__dso_handle" "ac_cv_func___dso_handle"
12413 if test "x$ac_cv_func___dso_handle" = x""yes; then :
12414   cat >>confdefs.h <<_ACEOF
12415 #define HAVE___DSO_HANDLE 1
12416 _ACEOF
12417
12418 fi
12419 done
12420
12421
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llvm-gcc is sane" >&5
12423 $as_echo_n "checking whether llvm-gcc is sane... " >&6; }
12424 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   llvm_cv_llvmgcc_sanity="no"
12428 if test -x "$LLVMGCC" ; then
12429   cp /dev/null conftest.c
12430   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
12431       grep 'target datalayout =' > /dev/null 2>&1
12432   if test $? -eq 0 ; then
12433     llvm_cv_llvmgcc_sanity="yes"
12434   fi
12435   rm conftest.c
12436 fi
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_llvmgcc_sanity" >&5
12439 $as_echo "$llvm_cv_llvmgcc_sanity" >&6; }
12440
12441 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
12442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm-gcc component support" >&5
12443 $as_echo_n "checking llvm-gcc component support... " >&6; }
12444   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
12445   LLVMCC1=$llvmcc1path
12446
12447   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
12448   LLVMCC1PLUS=$llvmcc1pluspath
12449
12450   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
12451   LLVMGCCDIR=$llvmgccdir
12452
12453   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
12454   LLVMGCCLIBEXEC=$llvmgcclibexec
12455
12456   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
12457   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
12458   LLVMGCC_VERSION=$llvmgccversion
12459
12460   LLVMGCC_MAJVERS=$llvmgccmajvers
12461
12462   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
12463   LLVMGCC_LANGS=$llvmgcclangs
12464
12465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12466 $as_echo "ok" >&6; }
12467 fi
12468
12469 SHLIBEXT=$libltdl_cv_shlibext
12470
12471
12472 # Translate the various configuration directories and other basic
12473 # information into substitutions that will end up in Makefile.config.in
12474 # that these configured values can be used by the makefiles
12475 if test "${prefix}" = "NONE" ; then
12476   prefix="/usr/local"
12477 fi
12478 eval LLVM_PREFIX="${prefix}";
12479 eval LLVM_BINDIR="${prefix}/bin";
12480 eval LLVM_LIBDIR="${prefix}/lib";
12481 eval LLVM_DATADIR="${prefix}/share/llvm";
12482 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
12483 eval LLVM_ETCDIR="${prefix}/etc/llvm";
12484 eval LLVM_INCLUDEDIR="${prefix}/include";
12485 eval LLVM_INFODIR="${prefix}/info";
12486 eval LLVM_MANDIR="${prefix}/man";
12487 LLVM_CONFIGTIME=`date`
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499 # Place the various directores into the config.h file as #defines so that we
12500 # can know about the installation paths within LLVM.
12501
12502 cat >>confdefs.h <<_ACEOF
12503 #define LLVM_PREFIX "$LLVM_PREFIX"
12504 _ACEOF
12505
12506
12507 cat >>confdefs.h <<_ACEOF
12508 #define LLVM_BINDIR "$LLVM_BINDIR"
12509 _ACEOF
12510
12511
12512 cat >>confdefs.h <<_ACEOF
12513 #define LLVM_LIBDIR "$LLVM_LIBDIR"
12514 _ACEOF
12515
12516
12517 cat >>confdefs.h <<_ACEOF
12518 #define LLVM_DATADIR "$LLVM_DATADIR"
12519 _ACEOF
12520
12521
12522 cat >>confdefs.h <<_ACEOF
12523 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
12524 _ACEOF
12525
12526
12527 cat >>confdefs.h <<_ACEOF
12528 #define LLVM_ETCDIR "$LLVM_ETCDIR"
12529 _ACEOF
12530
12531
12532 cat >>confdefs.h <<_ACEOF
12533 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
12534 _ACEOF
12535
12536
12537 cat >>confdefs.h <<_ACEOF
12538 #define LLVM_INFODIR "$LLVM_INFODIR"
12539 _ACEOF
12540
12541
12542 cat >>confdefs.h <<_ACEOF
12543 #define LLVM_MANDIR "$LLVM_MANDIR"
12544 _ACEOF
12545
12546
12547 cat >>confdefs.h <<_ACEOF
12548 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
12549 _ACEOF
12550
12551
12552 cat >>confdefs.h <<_ACEOF
12553 #define LLVM_HOSTTRIPLE "$host"
12554 _ACEOF
12555
12556
12557 # Determine which bindings to build.
12558 if test "$BINDINGS_TO_BUILD" = auto ; then
12559   BINDINGS_TO_BUILD=""
12560   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
12561     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
12562   fi
12563 fi
12564 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
12565
12566
12567 # This isn't really configurey, but it avoids having to repeat the list in
12568 # other files.
12569 ALL_BINDINGS=ocaml
12570
12571
12572 # Do any work necessary to ensure that bindings have what they need.
12573 binding_prereqs_failed=0
12574 for a_binding in $BINDINGS_TO_BUILD ; do
12575   case "$a_binding" in
12576   ocaml)
12577     if test "x$OCAMLC" = x ; then
12578       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
12579 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
12580       binding_prereqs_failed=1
12581     fi
12582     if test "x$OCAMLDEP" = x ; then
12583       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
12584 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
12585       binding_prereqs_failed=1
12586     fi
12587     if test "x$OCAMLOPT" = x ; then
12588       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
12589 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
12590           fi
12591     if test "x$with_ocaml_libdir" != xauto ; then
12592       OCAML_LIBDIR=$with_ocaml_libdir
12593
12594     else
12595       ocaml_stdlib="`"$OCAMLC" -where`"
12596       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
12597       then
12598         # ocaml stdlib is beneath our prefix; use stdlib
12599         OCAML_LIBDIR=$ocaml_stdlib
12600
12601       else
12602         # ocaml stdlib is outside our prefix; use libdir/ocaml
12603         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
12604
12605       fi
12606     fi
12607     ;;
12608   esac
12609 done
12610 if test "$binding_prereqs_failed" = 1 ; then
12611   as_fn_error "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
12612 fi
12613
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
12615 $as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
12616 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619    ac_ext=cpp
12620 ac_cpp='$CXXCPP $CPPFLAGS'
12621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12624
12625   oldcxxflags="$CXXFLAGS"
12626   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
12627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629
12630 int
12631 main ()
12632 {
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_cxx_try_compile "$LINENO"; then :
12639   llvm_cv_cxx_visibility_inlines_hidden=yes
12640 else
12641   llvm_cv_cxx_visibility_inlines_hidden=no
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644   CXXFLAGS="$oldcxxflags"
12645   ac_ext=c
12646 ac_cpp='$CPP $CPPFLAGS'
12647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650
12651
12652 fi
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
12654 $as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
12655 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
12656   ENABLE_VISIBILITY_INLINES_HIDDEN=1
12657
12658 else
12659   ENABLE_VISIBILITY_INLINES_HIDDEN=0
12660
12661 fi
12662
12663
12664 if test "$llvm_cv_link_use_r" = "yes" ; then
12665   RPATH="-Wl,-R"
12666 else
12667   RPATH="-Wl,-rpath"
12668 fi
12669
12670
12671 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
12672   RDYNAMIC="-Wl,-export-dynamic"
12673 else
12674   RDYNAMIC=""
12675 fi
12676
12677
12678
12679 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
12680
12681 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
12682
12683 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
12684
12685 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
12686
12687 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
12688
12689 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
12690
12691
12692 ac_config_files="$ac_config_files Makefile.config"
12693
12694
12695 ac_config_files="$ac_config_files llvm.spec"
12696
12697
12698 ac_config_files="$ac_config_files docs/doxygen.cfg"
12699
12700
12701 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
12702
12703
12704 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
12705
12706
12707 ac_config_commands="$ac_config_commands setup"
12708
12709 ac_config_commands="$ac_config_commands Makefile"
12710
12711
12712 ac_config_commands="$ac_config_commands Makefile.common"
12713
12714
12715 ac_config_commands="$ac_config_commands examples/Makefile"
12716
12717
12718 ac_config_commands="$ac_config_commands lib/Makefile"
12719
12720
12721 ac_config_commands="$ac_config_commands runtime/Makefile"
12722
12723
12724 ac_config_commands="$ac_config_commands test/Makefile"
12725
12726
12727 ac_config_commands="$ac_config_commands test/Makefile.tests"
12728
12729
12730 ac_config_commands="$ac_config_commands unittests/Makefile"
12731
12732
12733 ac_config_commands="$ac_config_commands tools/Makefile"
12734
12735
12736 ac_config_commands="$ac_config_commands utils/Makefile"
12737
12738
12739 ac_config_commands="$ac_config_commands projects/Makefile"
12740
12741
12742 ac_config_commands="$ac_config_commands bindings/Makefile"
12743
12744
12745 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
12746
12747
12748
12749 cat >confcache <<\_ACEOF
12750 # This file is a shell script that caches the results of configure
12751 # tests run on this system so they can be shared between configure
12752 # scripts and configure runs, see configure's option --config-cache.
12753 # It is not useful on other systems.  If it contains results you don't
12754 # want to keep, you may remove or edit it.
12755 #
12756 # config.status only pays attention to the cache file if you give it
12757 # the --recheck option to rerun configure.
12758 #
12759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12761 # following values.
12762
12763 _ACEOF
12764
12765 # The following way of writing the cache mishandles newlines in values,
12766 # but we know of no workaround that is simple, portable, and efficient.
12767 # So, we kill variables containing newlines.
12768 # Ultrix sh set writes to stderr and can't be redirected directly,
12769 # and sets the high bit in the cache file unless we assign to the vars.
12770 (
12771   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12772     eval ac_val=\$$ac_var
12773     case $ac_val in #(
12774     *${as_nl}*)
12775       case $ac_var in #(
12776       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12778       esac
12779       case $ac_var in #(
12780       _ | IFS | as_nl) ;; #(
12781       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12782       *) { eval $ac_var=; unset $ac_var;} ;;
12783       esac ;;
12784     esac
12785   done
12786
12787   (set) 2>&1 |
12788     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12789     *${as_nl}ac_space=\ *)
12790       # `set' does not quote correctly, so add quotes: double-quote
12791       # substitution turns \\\\ into \\, and sed turns \\ into \.
12792       sed -n \
12793         "s/'/'\\\\''/g;
12794           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12795       ;; #(
12796     *)
12797       # `set' quotes correctly as required by POSIX, so do not add quotes.
12798       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12799       ;;
12800     esac |
12801     sort
12802 ) |
12803   sed '
12804      /^ac_cv_env_/b end
12805      t clear
12806      :clear
12807      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12808      t end
12809      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12810      :end' >>confcache
12811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12812   if test -w "$cache_file"; then
12813     test "x$cache_file" != "x/dev/null" &&
12814       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12815 $as_echo "$as_me: updating cache $cache_file" >&6;}
12816     cat confcache >$cache_file
12817   else
12818     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12819 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12820   fi
12821 fi
12822 rm -f confcache
12823
12824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12825 # Let make expand exec_prefix.
12826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12827
12828 DEFS=-DHAVE_CONFIG_H
12829
12830 ac_libobjs=
12831 ac_ltlibobjs=
12832 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12833   # 1. Remove the extension, and $U if already installed.
12834   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12835   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12836   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12837   #    will be set to the directory where LIBOBJS objects are built.
12838   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12839   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12840 done
12841 LIBOBJS=$ac_libobjs
12842
12843 LTLIBOBJS=$ac_ltlibobjs
12844
12845
12846
12847 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12848   as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
12849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12850 fi
12851 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12852   as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
12853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12854 fi
12855
12856 : ${CONFIG_STATUS=./config.status}
12857 ac_write_fail=0
12858 ac_clean_files_save=$ac_clean_files
12859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12862 as_write_fail=0
12863 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12864 #! $SHELL
12865 # Generated by $as_me.
12866 # Run this file to recreate the current configuration.
12867 # Compiler output produced by configure, useful for debugging
12868 # configure, is in config.log if it exists.
12869
12870 debug=false
12871 ac_cs_recheck=false
12872 ac_cs_silent=false
12873
12874 SHELL=\${CONFIG_SHELL-$SHELL}
12875 export SHELL
12876 _ASEOF
12877 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12878 ## -------------------- ##
12879 ## M4sh Initialization. ##
12880 ## -------------------- ##
12881
12882 # Be more Bourne compatible
12883 DUALCASE=1; export DUALCASE # for MKS sh
12884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12885   emulate sh
12886   NULLCMD=:
12887   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12888   # is contrary to our usage.  Disable this feature.
12889   alias -g '${1+"$@"}'='"$@"'
12890   setopt NO_GLOB_SUBST
12891 else
12892   case `(set -o) 2>/dev/null` in #(
12893   *posix*) :
12894     set -o posix ;; #(
12895   *) :
12896      ;;
12897 esac
12898 fi
12899
12900
12901 as_nl='
12902 '
12903 export as_nl
12904 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12905 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12908 # Prefer a ksh shell builtin over an external printf program on Solaris,
12909 # but without wasting forks for bash or zsh.
12910 if test -z "$BASH_VERSION$ZSH_VERSION" \
12911     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12912   as_echo='print -r --'
12913   as_echo_n='print -rn --'
12914 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12915   as_echo='printf %s\n'
12916   as_echo_n='printf %s'
12917 else
12918   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12919     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12920     as_echo_n='/usr/ucb/echo -n'
12921   else
12922     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12923     as_echo_n_body='eval
12924       arg=$1;
12925       case $arg in #(
12926       *"$as_nl"*)
12927         expr "X$arg" : "X\\(.*\\)$as_nl";
12928         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12929       esac;
12930       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12931     '
12932     export as_echo_n_body
12933     as_echo_n='sh -c $as_echo_n_body as_echo'
12934   fi
12935   export as_echo_body
12936   as_echo='sh -c $as_echo_body as_echo'
12937 fi
12938
12939 # The user is always right.
12940 if test "${PATH_SEPARATOR+set}" != set; then
12941   PATH_SEPARATOR=:
12942   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12943     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12944       PATH_SEPARATOR=';'
12945   }
12946 fi
12947
12948
12949 # IFS
12950 # We need space, tab and new line, in precisely that order.  Quoting is
12951 # there to prevent editors from complaining about space-tab.
12952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12953 # splitting by setting IFS to empty value.)
12954 IFS=" ""        $as_nl"
12955
12956 # Find who we are.  Look in the path if we contain no directory separator.
12957 case $0 in #((
12958   *[\\/]* ) as_myself=$0 ;;
12959   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   test -z "$as_dir" && as_dir=.
12964     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12965   done
12966 IFS=$as_save_IFS
12967
12968      ;;
12969 esac
12970 # We did not find ourselves, most probably we were run as `sh COMMAND'
12971 # in which case we are not to be found in the path.
12972 if test "x$as_myself" = x; then
12973   as_myself=$0
12974 fi
12975 if test ! -f "$as_myself"; then
12976   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12977   exit 1
12978 fi
12979
12980 # Unset variables that we do not need and which cause bugs (e.g. in
12981 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12982 # suppresses any "Segmentation fault" message there.  '((' could
12983 # trigger a bug in pdksh 5.2.14.
12984 for as_var in BASH_ENV ENV MAIL MAILPATH
12985 do eval test x\${$as_var+set} = xset \
12986   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12987 done
12988 PS1='$ '
12989 PS2='> '
12990 PS4='+ '
12991
12992 # NLS nuisances.
12993 LC_ALL=C
12994 export LC_ALL
12995 LANGUAGE=C
12996 export LANGUAGE
12997
12998 # CDPATH.
12999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13000
13001
13002 # as_fn_error ERROR [LINENO LOG_FD]
13003 # ---------------------------------
13004 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13005 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13006 # script with status $?, using 1 if that was 0.
13007 as_fn_error ()
13008 {
13009   as_status=$?; test $as_status -eq 0 && as_status=1
13010   if test "$3"; then
13011     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13012     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13013   fi
13014   $as_echo "$as_me: error: $1" >&2
13015   as_fn_exit $as_status
13016 } # as_fn_error
13017
13018
13019 # as_fn_set_status STATUS
13020 # -----------------------
13021 # Set $? to STATUS, without forking.
13022 as_fn_set_status ()
13023 {
13024   return $1
13025 } # as_fn_set_status
13026
13027 # as_fn_exit STATUS
13028 # -----------------
13029 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13030 as_fn_exit ()
13031 {
13032   set +e
13033   as_fn_set_status $1
13034   exit $1
13035 } # as_fn_exit
13036
13037 # as_fn_unset VAR
13038 # ---------------
13039 # Portably unset VAR.
13040 as_fn_unset ()
13041 {
13042   { eval $1=; unset $1;}
13043 }
13044 as_unset=as_fn_unset
13045 # as_fn_append VAR VALUE
13046 # ----------------------
13047 # Append the text in VALUE to the end of the definition contained in VAR. Take
13048 # advantage of any shell optimizations that allow amortized linear growth over
13049 # repeated appends, instead of the typical quadratic growth present in naive
13050 # implementations.
13051 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13052   eval 'as_fn_append ()
13053   {
13054     eval $1+=\$2
13055   }'
13056 else
13057   as_fn_append ()
13058   {
13059     eval $1=\$$1\$2
13060   }
13061 fi # as_fn_append
13062
13063 # as_fn_arith ARG...
13064 # ------------------
13065 # Perform arithmetic evaluation on the ARGs, and store the result in the
13066 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13067 # must be portable across $(()) and expr.
13068 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13069   eval 'as_fn_arith ()
13070   {
13071     as_val=$(( $* ))
13072   }'
13073 else
13074   as_fn_arith ()
13075   {
13076     as_val=`expr "$@" || test $? -eq 1`
13077   }
13078 fi # as_fn_arith
13079
13080
13081 if expr a : '\(a\)' >/dev/null 2>&1 &&
13082    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13083   as_expr=expr
13084 else
13085   as_expr=false
13086 fi
13087
13088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13089   as_basename=basename
13090 else
13091   as_basename=false
13092 fi
13093
13094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13095   as_dirname=dirname
13096 else
13097   as_dirname=false
13098 fi
13099
13100 as_me=`$as_basename -- "$0" ||
13101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13102          X"$0" : 'X\(//\)$' \| \
13103          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13104 $as_echo X/"$0" |
13105     sed '/^.*\/\([^/][^/]*\)\/*$/{
13106             s//\1/
13107             q
13108           }
13109           /^X\/\(\/\/\)$/{
13110             s//\1/
13111             q
13112           }
13113           /^X\/\(\/\).*/{
13114             s//\1/
13115             q
13116           }
13117           s/.*/./; q'`
13118
13119 # Avoid depending upon Character Ranges.
13120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13123 as_cr_digits='0123456789'
13124 as_cr_alnum=$as_cr_Letters$as_cr_digits
13125
13126 ECHO_C= ECHO_N= ECHO_T=
13127 case `echo -n x` in #(((((
13128 -n*)
13129   case `echo 'xy\c'` in
13130   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13131   xy)  ECHO_C='\c';;
13132   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13133        ECHO_T=' ';;
13134   esac;;
13135 *)
13136   ECHO_N='-n';;
13137 esac
13138
13139 rm -f conf$$ conf$$.exe conf$$.file
13140 if test -d conf$$.dir; then
13141   rm -f conf$$.dir/conf$$.file
13142 else
13143   rm -f conf$$.dir
13144   mkdir conf$$.dir 2>/dev/null
13145 fi
13146 if (echo >conf$$.file) 2>/dev/null; then
13147   if ln -s conf$$.file conf$$ 2>/dev/null; then
13148     as_ln_s='ln -s'
13149     # ... but there are two gotchas:
13150     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13151     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13152     # In both cases, we have to default to `cp -p'.
13153     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13154       as_ln_s='cp -p'
13155   elif ln conf$$.file conf$$ 2>/dev/null; then
13156     as_ln_s=ln
13157   else
13158     as_ln_s='cp -p'
13159   fi
13160 else
13161   as_ln_s='cp -p'
13162 fi
13163 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13164 rmdir conf$$.dir 2>/dev/null
13165
13166
13167 # as_fn_mkdir_p
13168 # -------------
13169 # Create "$as_dir" as a directory, including parents if necessary.
13170 as_fn_mkdir_p ()
13171 {
13172
13173   case $as_dir in #(
13174   -*) as_dir=./$as_dir;;
13175   esac
13176   test -d "$as_dir" || eval $as_mkdir_p || {
13177     as_dirs=
13178     while :; do
13179       case $as_dir in #(
13180       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13181       *) as_qdir=$as_dir;;
13182       esac
13183       as_dirs="'$as_qdir' $as_dirs"
13184       as_dir=`$as_dirname -- "$as_dir" ||
13185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13186          X"$as_dir" : 'X\(//\)[^/]' \| \
13187          X"$as_dir" : 'X\(//\)$' \| \
13188          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13189 $as_echo X"$as_dir" |
13190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13191             s//\1/
13192             q
13193           }
13194           /^X\(\/\/\)[^/].*/{
13195             s//\1/
13196             q
13197           }
13198           /^X\(\/\/\)$/{
13199             s//\1/
13200             q
13201           }
13202           /^X\(\/\).*/{
13203             s//\1/
13204             q
13205           }
13206           s/.*/./; q'`
13207       test -d "$as_dir" && break
13208     done
13209     test -z "$as_dirs" || eval "mkdir $as_dirs"
13210   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13211
13212
13213 } # as_fn_mkdir_p
13214 if mkdir -p . 2>/dev/null; then
13215   as_mkdir_p='mkdir -p "$as_dir"'
13216 else
13217   test -d ./-p && rmdir ./-p
13218   as_mkdir_p=false
13219 fi
13220
13221 if test -x / >/dev/null 2>&1; then
13222   as_test_x='test -x'
13223 else
13224   if ls -dL / >/dev/null 2>&1; then
13225     as_ls_L_option=L
13226   else
13227     as_ls_L_option=
13228   fi
13229   as_test_x='
13230     eval sh -c '\''
13231       if test -d "$1"; then
13232         test -d "$1/.";
13233       else
13234         case $1 in #(
13235         -*)set "./$1";;
13236         esac;
13237         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13238         ???[sx]*):;;*)false;;esac;fi
13239     '\'' sh
13240   '
13241 fi
13242 as_executable_p=$as_test_x
13243
13244 # Sed expression to map a string onto a valid CPP name.
13245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13246
13247 # Sed expression to map a string onto a valid variable name.
13248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13249
13250
13251 exec 6>&1
13252 ## ----------------------------------- ##
13253 ## Main body of $CONFIG_STATUS script. ##
13254 ## ----------------------------------- ##
13255 _ASEOF
13256 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13257
13258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13259 # Save the log message, to keep $0 and so on meaningful, and to
13260 # report actual input values of CONFIG_FILES etc. instead of their
13261 # values after options handling.
13262 ac_log="
13263 This file was extended by llvm $as_me 2.7svn, which was
13264 generated by GNU Autoconf 2.65.  Invocation command line was
13265
13266   CONFIG_FILES    = $CONFIG_FILES
13267   CONFIG_HEADERS  = $CONFIG_HEADERS
13268   CONFIG_LINKS    = $CONFIG_LINKS
13269   CONFIG_COMMANDS = $CONFIG_COMMANDS
13270   $ $0 $@
13271
13272 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13273 "
13274
13275 _ACEOF
13276
13277 case $ac_config_files in *"
13278 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13279 esac
13280
13281 case $ac_config_headers in *"
13282 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13283 esac
13284
13285
13286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13287 # Files that config.status was made for.
13288 config_files="$ac_config_files"
13289 config_headers="$ac_config_headers"
13290 config_commands="$ac_config_commands"
13291
13292 _ACEOF
13293
13294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295 ac_cs_usage="\
13296 \`$as_me' instantiates files and other configuration actions
13297 from templates according to the current configuration.  Unless the files
13298 and actions are specified as TAGs, all are instantiated by default.
13299
13300 Usage: $0 [OPTION]... [TAG]...
13301
13302   -h, --help       print this help, then exit
13303   -V, --version    print version number and configuration settings, then exit
13304       --config     print configuration, then exit
13305   -q, --quiet, --silent
13306                    do not print progress messages
13307   -d, --debug      don't remove temporary files
13308       --recheck    update $as_me by reconfiguring in the same conditions
13309       --file=FILE[:TEMPLATE]
13310                    instantiate the configuration file FILE
13311       --header=FILE[:TEMPLATE]
13312                    instantiate the configuration header FILE
13313
13314 Configuration files:
13315 $config_files
13316
13317 Configuration headers:
13318 $config_headers
13319
13320 Configuration commands:
13321 $config_commands
13322
13323 Report bugs to <llvmbugs@cs.uiuc.edu>."
13324
13325 _ACEOF
13326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13327 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13328 ac_cs_version="\\
13329 llvm config.status 2.7svn
13330 configured by $0, generated by GNU Autoconf 2.65,
13331   with options \\"\$ac_cs_config\\"
13332
13333 Copyright (C) 2009 Free Software Foundation, Inc.
13334 This config.status script is free software; the Free Software Foundation
13335 gives unlimited permission to copy, distribute and modify it."
13336
13337 ac_pwd='$ac_pwd'
13338 srcdir='$srcdir'
13339 INSTALL='$INSTALL'
13340 test -n "\$AWK" || AWK=awk
13341 _ACEOF
13342
13343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13344 # The default lists apply if the user does not specify any file.
13345 ac_need_defaults=:
13346 while test $# != 0
13347 do
13348   case $1 in
13349   --*=*)
13350     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13351     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13352     ac_shift=:
13353     ;;
13354   *)
13355     ac_option=$1
13356     ac_optarg=$2
13357     ac_shift=shift
13358     ;;
13359   esac
13360
13361   case $ac_option in
13362   # Handling of the options.
13363   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13364     ac_cs_recheck=: ;;
13365   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13366     $as_echo "$ac_cs_version"; exit ;;
13367   --config | --confi | --conf | --con | --co | --c )
13368     $as_echo "$ac_cs_config"; exit ;;
13369   --debug | --debu | --deb | --de | --d | -d )
13370     debug=: ;;
13371   --file | --fil | --fi | --f )
13372     $ac_shift
13373     case $ac_optarg in
13374     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13375     esac
13376     as_fn_append CONFIG_FILES " '$ac_optarg'"
13377     ac_need_defaults=false;;
13378   --header | --heade | --head | --hea )
13379     $ac_shift
13380     case $ac_optarg in
13381     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13382     esac
13383     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13384     ac_need_defaults=false;;
13385   --he | --h)
13386     # Conflict between --help and --header
13387     as_fn_error "ambiguous option: \`$1'
13388 Try \`$0 --help' for more information.";;
13389   --help | --hel | -h )
13390     $as_echo "$ac_cs_usage"; exit ;;
13391   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13392   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13393     ac_cs_silent=: ;;
13394
13395   # This is an error.
13396   -*) as_fn_error "unrecognized option: \`$1'
13397 Try \`$0 --help' for more information." ;;
13398
13399   *) as_fn_append ac_config_targets " $1"
13400      ac_need_defaults=false ;;
13401
13402   esac
13403   shift
13404 done
13405
13406 ac_configure_extra_args=
13407
13408 if $ac_cs_silent; then
13409   exec 6>/dev/null
13410   ac_configure_extra_args="$ac_configure_extra_args --silent"
13411 fi
13412
13413 _ACEOF
13414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13415 if \$ac_cs_recheck; then
13416   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13417   shift
13418   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13419   CONFIG_SHELL='$SHELL'
13420   export CONFIG_SHELL
13421   exec "\$@"
13422 fi
13423
13424 _ACEOF
13425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13426 exec 5>>config.log
13427 {
13428   echo
13429   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13430 ## Running $as_me. ##
13431 _ASBOX
13432   $as_echo "$ac_log"
13433 } >&5
13434
13435 _ACEOF
13436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13437 #
13438 # INIT-COMMANDS
13439 #
13440 llvm_src="${srcdir}"
13441
13442 _ACEOF
13443
13444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13445
13446 # Handling of arguments.
13447 for ac_config_target in $ac_config_targets
13448 do
13449   case $ac_config_target in
13450     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
13451     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
13452     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
13453     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
13454     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
13455     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
13456     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
13457     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
13458     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
13459     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
13460     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
13461     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
13462     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13463     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
13464     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
13465     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
13466     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
13467     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
13468     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
13469     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
13470     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
13471     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
13472     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
13473     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
13474     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
13475
13476   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13477   esac
13478 done
13479
13480
13481 # If the user did not use the arguments to specify the items to instantiate,
13482 # then the envvar interface is used.  Set only those that are not.
13483 # We use the long form for the default assignment because of an extremely
13484 # bizarre bug on SunOS 4.1.3.
13485 if $ac_need_defaults; then
13486   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13487   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13488   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13489 fi
13490
13491 # Have a temporary directory for convenience.  Make it in the build tree
13492 # simply because there is no reason against having it here, and in addition,
13493 # creating and moving files from /tmp can sometimes cause problems.
13494 # Hook for its removal unless debugging.
13495 # Note that there is a small window in which the directory will not be cleaned:
13496 # after its creation but before its name has been assigned to `$tmp'.
13497 $debug ||
13498 {
13499   tmp=
13500   trap 'exit_status=$?
13501   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13502 ' 0
13503   trap 'as_fn_exit 1' 1 2 13 15
13504 }
13505 # Create a (secure) tmp directory for tmp files.
13506
13507 {
13508   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13509   test -n "$tmp" && test -d "$tmp"
13510 }  ||
13511 {
13512   tmp=./conf$$-$RANDOM
13513   (umask 077 && mkdir "$tmp")
13514 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13515
13516 # Set up the scripts for CONFIG_FILES section.
13517 # No need to generate them if there are no CONFIG_FILES.
13518 # This happens for instance with `./config.status config.h'.
13519 if test -n "$CONFIG_FILES"; then
13520
13521
13522 ac_cr=`echo X | tr X '\015'`
13523 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13524 # But we know of no other shell where ac_cr would be empty at this
13525 # point, so we can use a bashism as a fallback.
13526 if test "x$ac_cr" = x; then
13527   eval ac_cr=\$\'\\r\'
13528 fi
13529 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13530 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13531   ac_cs_awk_cr='\r'
13532 else
13533   ac_cs_awk_cr=$ac_cr
13534 fi
13535
13536 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13537 _ACEOF
13538
13539
13540 {
13541   echo "cat >conf$$subs.awk <<_ACEOF" &&
13542   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13543   echo "_ACEOF"
13544 } >conf$$subs.sh ||
13545   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13546 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13547 ac_delim='%!_!# '
13548 for ac_last_try in false false false false false :; do
13549   . ./conf$$subs.sh ||
13550     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13551
13552   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13553   if test $ac_delim_n = $ac_delim_num; then
13554     break
13555   elif $ac_last_try; then
13556     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13557   else
13558     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13559   fi
13560 done
13561 rm -f conf$$subs.sh
13562
13563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13564 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13565 _ACEOF
13566 sed -n '
13567 h
13568 s/^/S["/; s/!.*/"]=/
13569 p
13570 g
13571 s/^[^!]*!//
13572 :repl
13573 t repl
13574 s/'"$ac_delim"'$//
13575 t delim
13576 :nl
13577 h
13578 s/\(.\{148\}\)..*/\1/
13579 t more1
13580 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13581 p
13582 n
13583 b repl
13584 :more1
13585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13586 p
13587 g
13588 s/.\{148\}//
13589 t nl
13590 :delim
13591 h
13592 s/\(.\{148\}\)..*/\1/
13593 t more2
13594 s/["\\]/\\&/g; s/^/"/; s/$/"/
13595 p
13596 b
13597 :more2
13598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13599 p
13600 g
13601 s/.\{148\}//
13602 t delim
13603 ' <conf$$subs.awk | sed '
13604 /^[^""]/{
13605   N
13606   s/\n//
13607 }
13608 ' >>$CONFIG_STATUS || ac_write_fail=1
13609 rm -f conf$$subs.awk
13610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13611 _ACAWK
13612 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13613   for (key in S) S_is_set[key] = 1
13614   FS = "\a"
13615
13616 }
13617 {
13618   line = $ 0
13619   nfields = split(line, field, "@")
13620   substed = 0
13621   len = length(field[1])
13622   for (i = 2; i < nfields; i++) {
13623     key = field[i]
13624     keylen = length(key)
13625     if (S_is_set[key]) {
13626       value = S[key]
13627       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13628       len += length(value) + length(field[++i])
13629       substed = 1
13630     } else
13631       len += 1 + keylen
13632   }
13633
13634   print line
13635 }
13636
13637 _ACAWK
13638 _ACEOF
13639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13640 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13641   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13642 else
13643   cat
13644 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13645   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13646 _ACEOF
13647
13648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13650 # trailing colons and then remove the whole line if VPATH becomes empty
13651 # (actually we leave an empty line to preserve line numbers).
13652 if test "x$srcdir" = x.; then
13653   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13654 s/:*\$(srcdir):*/:/
13655 s/:*\${srcdir}:*/:/
13656 s/:*@srcdir@:*/:/
13657 s/^\([^=]*=[     ]*\):*/\1/
13658 s/:*$//
13659 s/^[^=]*=[       ]*$//
13660 }'
13661 fi
13662
13663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13664 fi # test -n "$CONFIG_FILES"
13665
13666 # Set up the scripts for CONFIG_HEADERS section.
13667 # No need to generate them if there are no CONFIG_HEADERS.
13668 # This happens for instance with `./config.status Makefile'.
13669 if test -n "$CONFIG_HEADERS"; then
13670 cat >"$tmp/defines.awk" <<\_ACAWK ||
13671 BEGIN {
13672 _ACEOF
13673
13674 # Transform confdefs.h into an awk script `defines.awk', embedded as
13675 # here-document in config.status, that substitutes the proper values into
13676 # config.h.in to produce config.h.
13677
13678 # Create a delimiter string that does not exist in confdefs.h, to ease
13679 # handling of long lines.
13680 ac_delim='%!_!# '
13681 for ac_last_try in false false :; do
13682   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13683   if test -z "$ac_t"; then
13684     break
13685   elif $ac_last_try; then
13686     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13687   else
13688     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13689   fi
13690 done
13691
13692 # For the awk script, D is an array of macro values keyed by name,
13693 # likewise P contains macro parameters if any.  Preserve backslash
13694 # newline sequences.
13695
13696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13697 sed -n '
13698 s/.\{148\}/&'"$ac_delim"'/g
13699 t rset
13700 :rset
13701 s/^[     ]*#[    ]*define[       ][      ]*/ /
13702 t def
13703 d
13704 :def
13705 s/\\$//
13706 t bsnl
13707 s/["\\]/\\&/g
13708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13709 D["\1"]=" \3"/p
13710 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13711 d
13712 :bsnl
13713 s/["\\]/\\&/g
13714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13715 D["\1"]=" \3\\\\\\n"\\/p
13716 t cont
13717 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13718 t cont
13719 d
13720 :cont
13721 n
13722 s/.\{148\}/&'"$ac_delim"'/g
13723 t clear
13724 :clear
13725 s/\\$//
13726 t bsnlc
13727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13728 d
13729 :bsnlc
13730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13731 b cont
13732 ' <confdefs.h | sed '
13733 s/'"$ac_delim"'/"\\\
13734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13735
13736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13737   for (key in D) D_is_set[key] = 1
13738   FS = "\a"
13739 }
13740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13741   line = \$ 0
13742   split(line, arg, " ")
13743   if (arg[1] == "#") {
13744     defundef = arg[2]
13745     mac1 = arg[3]
13746   } else {
13747     defundef = substr(arg[1], 2)
13748     mac1 = arg[2]
13749   }
13750   split(mac1, mac2, "(") #)
13751   macro = mac2[1]
13752   prefix = substr(line, 1, index(line, defundef) - 1)
13753   if (D_is_set[macro]) {
13754     # Preserve the white space surrounding the "#".
13755     print prefix "define", macro P[macro] D[macro]
13756     next
13757   } else {
13758     # Replace #undef with comments.  This is necessary, for example,
13759     # in the case of _POSIX_SOURCE, which is predefined and required
13760     # on some systems where configure will not decide to define it.
13761     if (defundef == "undef") {
13762       print "/*", prefix defundef, macro, "*/"
13763       next
13764     }
13765   }
13766 }
13767 { print }
13768 _ACAWK
13769 _ACEOF
13770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13772 fi # test -n "$CONFIG_HEADERS"
13773
13774
13775 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13776 shift
13777 for ac_tag
13778 do
13779   case $ac_tag in
13780   :[FHLC]) ac_mode=$ac_tag; continue;;
13781   esac
13782   case $ac_mode$ac_tag in
13783   :[FHL]*:*);;
13784   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13785   :[FH]-) ac_tag=-:-;;
13786   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13787   esac
13788   ac_save_IFS=$IFS
13789   IFS=:
13790   set x $ac_tag
13791   IFS=$ac_save_IFS
13792   shift
13793   ac_file=$1
13794   shift
13795
13796   case $ac_mode in
13797   :L) ac_source=$1;;
13798   :[FH])
13799     ac_file_inputs=
13800     for ac_f
13801     do
13802       case $ac_f in
13803       -) ac_f="$tmp/stdin";;
13804       *) # Look for the file first in the build tree, then in the source tree
13805          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13806          # because $ac_f cannot contain `:'.
13807          test -f "$ac_f" ||
13808            case $ac_f in
13809            [\\/$]*) false;;
13810            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13811            esac ||
13812            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13813       esac
13814       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13815       as_fn_append ac_file_inputs " '$ac_f'"
13816     done
13817
13818     # Let's still pretend it is `configure' which instantiates (i.e., don't
13819     # use $as_me), people would be surprised to read:
13820     #    /* config.h.  Generated by config.status.  */
13821     configure_input='Generated from '`
13822           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13823         `' by configure.'
13824     if test x"$ac_file" != x-; then
13825       configure_input="$ac_file.  $configure_input"
13826       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13827 $as_echo "$as_me: creating $ac_file" >&6;}
13828     fi
13829     # Neutralize special characters interpreted by sed in replacement strings.
13830     case $configure_input in #(
13831     *\&* | *\|* | *\\* )
13832        ac_sed_conf_input=`$as_echo "$configure_input" |
13833        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13834     *) ac_sed_conf_input=$configure_input;;
13835     esac
13836
13837     case $ac_tag in
13838     *:-:* | *:-) cat >"$tmp/stdin" \
13839       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13840     esac
13841     ;;
13842   esac
13843
13844   ac_dir=`$as_dirname -- "$ac_file" ||
13845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13846          X"$ac_file" : 'X\(//\)[^/]' \| \
13847          X"$ac_file" : 'X\(//\)$' \| \
13848          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13849 $as_echo X"$ac_file" |
13850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13851             s//\1/
13852             q
13853           }
13854           /^X\(\/\/\)[^/].*/{
13855             s//\1/
13856             q
13857           }
13858           /^X\(\/\/\)$/{
13859             s//\1/
13860             q
13861           }
13862           /^X\(\/\).*/{
13863             s//\1/
13864             q
13865           }
13866           s/.*/./; q'`
13867   as_dir="$ac_dir"; as_fn_mkdir_p
13868   ac_builddir=.
13869
13870 case "$ac_dir" in
13871 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13872 *)
13873   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13874   # A ".." for each directory in $ac_dir_suffix.
13875   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13876   case $ac_top_builddir_sub in
13877   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13878   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13879   esac ;;
13880 esac
13881 ac_abs_top_builddir=$ac_pwd
13882 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13883 # for backward compatibility:
13884 ac_top_builddir=$ac_top_build_prefix
13885
13886 case $srcdir in
13887   .)  # We are building in place.
13888     ac_srcdir=.
13889     ac_top_srcdir=$ac_top_builddir_sub
13890     ac_abs_top_srcdir=$ac_pwd ;;
13891   [\\/]* | ?:[\\/]* )  # Absolute name.
13892     ac_srcdir=$srcdir$ac_dir_suffix;
13893     ac_top_srcdir=$srcdir
13894     ac_abs_top_srcdir=$srcdir ;;
13895   *) # Relative name.
13896     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13897     ac_top_srcdir=$ac_top_build_prefix$srcdir
13898     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13899 esac
13900 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13901
13902
13903   case $ac_mode in
13904   :F)
13905   #
13906   # CONFIG_FILE
13907   #
13908
13909   case $INSTALL in
13910   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13911   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13912   esac
13913 _ACEOF
13914
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916 # If the template does not know about datarootdir, expand it.
13917 # FIXME: This hack should be removed a few years after 2.60.
13918 ac_datarootdir_hack=; ac_datarootdir_seen=
13919 ac_sed_dataroot='
13920 /datarootdir/ {
13921   p
13922   q
13923 }
13924 /@datadir@/p
13925 /@docdir@/p
13926 /@infodir@/p
13927 /@localedir@/p
13928 /@mandir@/p'
13929 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13930 *datarootdir*) ac_datarootdir_seen=yes;;
13931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13933 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13934 _ACEOF
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936   ac_datarootdir_hack='
13937   s&@datadir@&$datadir&g
13938   s&@docdir@&$docdir&g
13939   s&@infodir@&$infodir&g
13940   s&@localedir@&$localedir&g
13941   s&@mandir@&$mandir&g
13942   s&\\\${datarootdir}&$datarootdir&g' ;;
13943 esac
13944 _ACEOF
13945
13946 # Neutralize VPATH when `$srcdir' = `.'.
13947 # Shell code in configure.ac might set extrasub.
13948 # FIXME: do we really want to maintain this feature?
13949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13950 ac_sed_extra="$ac_vpsub
13951 $extrasub
13952 _ACEOF
13953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13954 :t
13955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13956 s|@configure_input@|$ac_sed_conf_input|;t t
13957 s&@top_builddir@&$ac_top_builddir_sub&;t t
13958 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13959 s&@srcdir@&$ac_srcdir&;t t
13960 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13961 s&@top_srcdir@&$ac_top_srcdir&;t t
13962 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13963 s&@builddir@&$ac_builddir&;t t
13964 s&@abs_builddir@&$ac_abs_builddir&;t t
13965 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13966 s&@INSTALL@&$ac_INSTALL&;t t
13967 $ac_datarootdir_hack
13968 "
13969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13970   || as_fn_error "could not create $ac_file" "$LINENO" 5
13971
13972 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13973   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13974   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13976 which seems to be undefined.  Please make sure it is defined." >&5
13977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13978 which seems to be undefined.  Please make sure it is defined." >&2;}
13979
13980   rm -f "$tmp/stdin"
13981   case $ac_file in
13982   -) cat "$tmp/out" && rm -f "$tmp/out";;
13983   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13984   esac \
13985   || as_fn_error "could not create $ac_file" "$LINENO" 5
13986  ;;
13987   :H)
13988   #
13989   # CONFIG_HEADER
13990   #
13991   if test x"$ac_file" != x-; then
13992     {
13993       $as_echo "/* $configure_input  */" \
13994       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13995     } >"$tmp/config.h" \
13996       || as_fn_error "could not create $ac_file" "$LINENO" 5
13997     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13998       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14000     else
14001       rm -f "$ac_file"
14002       mv "$tmp/config.h" "$ac_file" \
14003         || as_fn_error "could not create $ac_file" "$LINENO" 5
14004     fi
14005   else
14006     $as_echo "/* $configure_input  */" \
14007       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14008       || as_fn_error "could not create -" "$LINENO" 5
14009   fi
14010  ;;
14011
14012   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14013 $as_echo "$as_me: executing $ac_file commands" >&6;}
14014  ;;
14015   esac
14016
14017
14018   case $ac_file$ac_mode in
14019     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
14020    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
14021     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
14022    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
14023     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
14024    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
14025     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
14026    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
14027     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
14028    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
14029     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
14030    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
14031     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
14032    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
14033     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
14034    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
14035     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
14036    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
14037     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
14038    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
14039     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
14040    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
14041     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
14042    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
14043     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
14044    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
14045
14046   esac
14047 done # for ac_tag
14048
14049
14050 as_fn_exit 0
14051 _ACEOF
14052 ac_clean_files=$ac_clean_files_save
14053
14054 test $ac_write_fail = 0 ||
14055   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14056
14057
14058 # configure is writing to config.log, and then calls config.status.
14059 # config.status does its own redirection, appending to config.log.
14060 # Unfortunately, on DOS this fails, as config.log is still kept open
14061 # by configure, so config.status won't be able to write to it; its
14062 # output is simply discarded.  So we exec the FD to /dev/null,
14063 # effectively closing config.log, so it can be properly (re)opened and
14064 # appended to by config.status.  When coming back to configure, we
14065 # need to make the FD available again.
14066 if test "$no_create" != yes; then
14067   ac_cs_success=:
14068   ac_config_status_args=
14069   test "$silent" = yes &&
14070     ac_config_status_args="$ac_config_status_args --quiet"
14071   exec 5>/dev/null
14072   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14073   exec 5>>config.log
14074   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14075   # would make configure fail if this is the last instruction.
14076   $ac_cs_success || as_fn_exit $?
14077 fi
14078
14079 #
14080 # CONFIG_SUBDIRS section.
14081 #
14082 if test "$no_recursion" != yes; then
14083
14084   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14085   # so they do not pile up.
14086   ac_sub_configure_args=
14087   ac_prev=
14088   eval "set x $ac_configure_args"
14089   shift
14090   for ac_arg
14091   do
14092     if test -n "$ac_prev"; then
14093       ac_prev=
14094       continue
14095     fi
14096     case $ac_arg in
14097     -cache-file | --cache-file | --cache-fil | --cache-fi \
14098     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14099       ac_prev=cache_file ;;
14100     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14101     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14102     | --c=*)
14103       ;;
14104     --config-cache | -C)
14105       ;;
14106     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14107       ac_prev=srcdir ;;
14108     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14109       ;;
14110     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14111       ac_prev=prefix ;;
14112     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14113       ;;
14114     --disable-option-checking)
14115       ;;
14116     *)
14117       case $ac_arg in
14118       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14119       esac
14120       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14121     esac
14122   done
14123
14124   # Always prepend --prefix to ensure using the same prefix
14125   # in subdir configurations.
14126   ac_arg="--prefix=$prefix"
14127   case $ac_arg in
14128   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14129   esac
14130   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14131
14132   # Pass --silent
14133   if test "$silent" = yes; then
14134     ac_sub_configure_args="--silent $ac_sub_configure_args"
14135   fi
14136
14137   # Always prepend --disable-option-checking to silence warnings, since
14138   # different subdirs can have different --enable and --with options.
14139   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14140
14141   ac_popdir=`pwd`
14142   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14143
14144     # Do not complain, so a configure script can configure whichever
14145     # parts of a large source tree are present.
14146     test -d "$srcdir/$ac_dir" || continue
14147
14148     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14149     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14150     $as_echo "$ac_msg" >&6
14151     as_dir="$ac_dir"; as_fn_mkdir_p
14152     ac_builddir=.
14153
14154 case "$ac_dir" in
14155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14156 *)
14157   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14158   # A ".." for each directory in $ac_dir_suffix.
14159   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14160   case $ac_top_builddir_sub in
14161   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14162   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14163   esac ;;
14164 esac
14165 ac_abs_top_builddir=$ac_pwd
14166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14167 # for backward compatibility:
14168 ac_top_builddir=$ac_top_build_prefix
14169
14170 case $srcdir in
14171   .)  # We are building in place.
14172     ac_srcdir=.
14173     ac_top_srcdir=$ac_top_builddir_sub
14174     ac_abs_top_srcdir=$ac_pwd ;;
14175   [\\/]* | ?:[\\/]* )  # Absolute name.
14176     ac_srcdir=$srcdir$ac_dir_suffix;
14177     ac_top_srcdir=$srcdir
14178     ac_abs_top_srcdir=$srcdir ;;
14179   *) # Relative name.
14180     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14181     ac_top_srcdir=$ac_top_build_prefix$srcdir
14182     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14183 esac
14184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14185
14186
14187     cd "$ac_dir"
14188
14189     # Check for guested configure; otherwise get Cygnus style configure.
14190     if test -f "$ac_srcdir/configure.gnu"; then
14191       ac_sub_configure=$ac_srcdir/configure.gnu
14192     elif test -f "$ac_srcdir/configure"; then
14193       ac_sub_configure=$ac_srcdir/configure
14194     elif test -f "$ac_srcdir/configure.in"; then
14195       # This should be Cygnus configure.
14196       ac_sub_configure=$ac_aux_dir/configure
14197     else
14198       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14199 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14200       ac_sub_configure=
14201     fi
14202
14203     # The recursion is here.
14204     if test -n "$ac_sub_configure"; then
14205       # Make the cache file name correct relative to the subdirectory.
14206       case $cache_file in
14207       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14208       *) # Relative name.
14209         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14210       esac
14211
14212       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14213 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14214       # The eval makes quoting arguments work.
14215       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14216            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14217         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14218     fi
14219
14220     cd "$ac_popdir"
14221   done
14222 fi
14223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14226 fi
14227