configure revision d6c8ec6546bd8104cbd8705fa0e51676c51d2e01
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547  # Remove one level of quotation (which was required for Make).
548  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549  ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554  # Discard the --no-reexec flag, and continue.
555  shift
556elif test "X$1" = X--fallback-echo; then
557  # Avoid inline document here, it may be left over
558  :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560  # Yippee, $echo works!
561  :
562else
563  # Restart under the correct shell.
564  exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568  # used as fallback echo
569  shift
570  cat <<EOF
571$*
572EOF
573  exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586       echo_test_string=`eval $cmd` &&
587       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588    then
589      break
590    fi
591  done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596   test "X$echo_testing_string" = "X$echo_test_string"; then
597  :
598else
599  # The Solaris, AIX, and Digital Unix default echo programs unquote
600  # backslashes.  This makes it impossible to quote backslashes using
601  #   echo "$something" | sed 's/\\/\\\\/g'
602  #
603  # So, first we look for a working echo in the user's PATH.
604
605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606  for dir in $PATH /usr/ucb; do
607    IFS="$lt_save_ifs"
608    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611       test "X$echo_testing_string" = "X$echo_test_string"; then
612      echo="$dir/echo"
613      break
614    fi
615  done
616  IFS="$lt_save_ifs"
617
618  if test "X$echo" = Xecho; then
619    # We didn't find a better echo, so look for alternatives.
620    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      # This shell has a builtin print -r that does the trick.
624      echo='print -r'
625    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626	 test "X$CONFIG_SHELL" != X/bin/ksh; then
627      # If we have ksh, try running configure again with it.
628      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629      export ORIGINAL_CONFIG_SHELL
630      CONFIG_SHELL=/bin/ksh
631      export CONFIG_SHELL
632      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633    else
634      # Try using printf.
635      echo='printf %s\n'
636      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638	 test "X$echo_testing_string" = "X$echo_test_string"; then
639	# Cool, printf works
640	:
641      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646	export CONFIG_SHELL
647	SHELL="$CONFIG_SHELL"
648	export SHELL
649	echo="$CONFIG_SHELL $0 --fallback-echo"
650      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651	   test "X$echo_testing_string" = 'X\t' &&
652	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	echo="$CONFIG_SHELL $0 --fallback-echo"
655      else
656	# maybe with a smaller string...
657	prev=:
658
659	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661	  then
662	    break
663	  fi
664	  prev="$cmd"
665	done
666
667	if test "$prev" != 'sed 50q "$0"'; then
668	  echo_test_string=`eval $prev`
669	  export echo_test_string
670	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671	else
672	  # Oops.  We lost completely, so just stick with echo.
673	  echo=echo
674	fi
675      fi
676    fi
677  fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811HOST_OS
812TARGET_OS
813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
817ARCH
818ENDIAN
819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
832BUILD_CXX
833CVSBUILD
834ENABLE_OPTIMIZED
835ENABLE_PROFILING
836DISABLE_ASSERTIONS
837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
839DEBUG_RUNTIME
840DEBUG_SYMBOLS
841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
845ENABLE_PIC
846TARGETS_TO_BUILD
847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
849LLVM_ENUM_ASM_PARSERS
850LLVM_ENUM_DISASSEMBLERS
851ENABLE_CBE_PRINTF_A
852OPTIMIZE_OPTION
853EXTRA_OPTIONS
854BINUTILS_INCDIR
855ENABLE_LLVMC_DYNAMIC
856ENABLE_LLVMC_DYNAMIC_PLUGINS
857CXX
858CXXFLAGS
859ac_ct_CXX
860NM
861ifGNUmake
862LN_S
863CMP
864CP
865DATE
866FIND
867MKDIR
868MV
869RANLIB
870RM
871SED
872TAR
873BINPWD
874GRAPHVIZ
875DOT
876FDP
877NEATO
878TWOPI
879CIRCO
880GV
881DOTTY
882PERL
883HAVE_PERL
884INSTALL_PROGRAM
885INSTALL_SCRIPT
886INSTALL_DATA
887BZIP2
888DOXYGEN
889GROFF
890GZIP
891POD2HTML
892POD2MAN
893RUNTEST
894TCLSH
895ZIP
896OCAMLC
897OCAMLOPT
898OCAMLDEP
899OCAMLDOC
900GAS
901INSTALL_LTDL_TRUE
902INSTALL_LTDL_FALSE
903CONVENIENCE_LTDL_TRUE
904CONVENIENCE_LTDL_FALSE
905LIBADD_DL
906ECHO
907AR
908STRIP
909CXXCPP
910F77
911FFLAGS
912ac_ct_F77
913LIBTOOL
914LLVMGCCCOMMAND
915LLVMGXXCOMMAND
916LLVMGCC
917LLVMGXX
918NO_VARIADIC_MACROS
919NO_MISSING_FIELD_INITIALIZERS
920USE_UDIS86
921USE_OPROFILE
922HAVE_PTHREAD
923HUGE_VAL_SANITY
924ALLOCA
925MMAP_FILE
926LLVMCC1
927LLVMCC1PLUS
928LLVMGCCDIR
929LLVMGCCLIBEXEC
930LLVMGCC_VERSION
931LLVMGCC_MAJVERS
932LLVMGCC_LANGS
933SHLIBEXT
934LLVM_PREFIX
935LLVM_BINDIR
936LLVM_LIBDIR
937LLVM_DATADIR
938LLVM_DOCSDIR
939LLVM_ETCDIR
940LLVM_INCLUDEDIR
941LLVM_INFODIR
942LLVM_MANDIR
943LLVM_CONFIGTIME
944BINDINGS_TO_BUILD
945ALL_BINDINGS
946OCAML_LIBDIR
947ENABLE_VISIBILITY_INLINES_HIDDEN
948RPATH
949RDYNAMIC
950LIBOBJS
951LTLIBOBJS'
952ac_subst_files=''
953      ac_precious_vars='build_alias
954host_alias
955target_alias
956CC
957CFLAGS
958LDFLAGS
959CPPFLAGS
960CPP
961CXX
962CXXFLAGS
963CCC
964CXXCPP
965F77
966FFLAGS'
967ac_subdirs_all='projects/sample
968projects/privbracket
969projects/llvm-stacker
970projects/llvm-test
971projects/test-suite
972projects/llvm-reopt
973projects/llvm-gcc
974projects/llvm-java
975projects/llvm-tv
976projects/llvm-poolalloc
977projects/poolalloc
978projects/llvm-kernel'
979
980# Initialize some variables set by options.
981ac_init_help=
982ac_init_version=false
983# The variables have the same names as the options, with
984# dashes changed to underlines.
985cache_file=/dev/null
986exec_prefix=NONE
987no_create=
988no_recursion=
989prefix=NONE
990program_prefix=NONE
991program_suffix=NONE
992program_transform_name=s,x,x,
993silent=
994site=
995srcdir=
996verbose=
997x_includes=NONE
998x_libraries=NONE
999
1000# Installation directory options.
1001# These are left unexpanded so users can "make install exec_prefix=/foo"
1002# and all the variables that are supposed to be based on exec_prefix
1003# by default will actually change.
1004# Use braces instead of parens because sh, perl, etc. also accept them.
1005# (The list follows the same order as the GNU Coding Standards.)
1006bindir='${exec_prefix}/bin'
1007sbindir='${exec_prefix}/sbin'
1008libexecdir='${exec_prefix}/libexec'
1009datarootdir='${prefix}/share'
1010datadir='${datarootdir}'
1011sysconfdir='${prefix}/etc'
1012sharedstatedir='${prefix}/com'
1013localstatedir='${prefix}/var'
1014includedir='${prefix}/include'
1015oldincludedir='/usr/include'
1016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017infodir='${datarootdir}/info'
1018htmldir='${docdir}'
1019dvidir='${docdir}'
1020pdfdir='${docdir}'
1021psdir='${docdir}'
1022libdir='${exec_prefix}/lib'
1023localedir='${datarootdir}/locale'
1024mandir='${datarootdir}/man'
1025
1026ac_prev=
1027ac_dashdash=
1028for ac_option
1029do
1030  # If the previous option needs an argument, assign it.
1031  if test -n "$ac_prev"; then
1032    eval $ac_prev=\$ac_option
1033    ac_prev=
1034    continue
1035  fi
1036
1037  case $ac_option in
1038  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039  *)	ac_optarg=yes ;;
1040  esac
1041
1042  # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044  case $ac_dashdash$ac_option in
1045  --)
1046    ac_dashdash=yes ;;
1047
1048  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049    ac_prev=bindir ;;
1050  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051    bindir=$ac_optarg ;;
1052
1053  -build | --build | --buil | --bui | --bu)
1054    ac_prev=build_alias ;;
1055  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056    build_alias=$ac_optarg ;;
1057
1058  -cache-file | --cache-file | --cache-fil | --cache-fi \
1059  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060    ac_prev=cache_file ;;
1061  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063    cache_file=$ac_optarg ;;
1064
1065  --config-cache | -C)
1066    cache_file=config.cache ;;
1067
1068  -datadir | --datadir | --datadi | --datad)
1069    ac_prev=datadir ;;
1070  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071    datadir=$ac_optarg ;;
1072
1073  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074  | --dataroo | --dataro | --datar)
1075    ac_prev=datarootdir ;;
1076  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078    datarootdir=$ac_optarg ;;
1079
1080  -disable-* | --disable-*)
1081    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085   { (exit 1); exit 1; }; }
1086    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087    eval enable_$ac_feature=no ;;
1088
1089  -docdir | --docdir | --docdi | --doc | --do)
1090    ac_prev=docdir ;;
1091  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092    docdir=$ac_optarg ;;
1093
1094  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095    ac_prev=dvidir ;;
1096  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097    dvidir=$ac_optarg ;;
1098
1099  -enable-* | --enable-*)
1100    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101    # Reject names that are not valid shell variable names.
1102    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1103      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1104   { (exit 1); exit 1; }; }
1105    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1106    eval enable_$ac_feature=\$ac_optarg ;;
1107
1108  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110  | --exec | --exe | --ex)
1111    ac_prev=exec_prefix ;;
1112  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114  | --exec=* | --exe=* | --ex=*)
1115    exec_prefix=$ac_optarg ;;
1116
1117  -gas | --gas | --ga | --g)
1118    # Obsolete; use --with-gas.
1119    with_gas=yes ;;
1120
1121  -help | --help | --hel | --he | -h)
1122    ac_init_help=long ;;
1123  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124    ac_init_help=recursive ;;
1125  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126    ac_init_help=short ;;
1127
1128  -host | --host | --hos | --ho)
1129    ac_prev=host_alias ;;
1130  -host=* | --host=* | --hos=* | --ho=*)
1131    host_alias=$ac_optarg ;;
1132
1133  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134    ac_prev=htmldir ;;
1135  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136  | --ht=*)
1137    htmldir=$ac_optarg ;;
1138
1139  -includedir | --includedir | --includedi | --included | --include \
1140  | --includ | --inclu | --incl | --inc)
1141    ac_prev=includedir ;;
1142  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143  | --includ=* | --inclu=* | --incl=* | --inc=*)
1144    includedir=$ac_optarg ;;
1145
1146  -infodir | --infodir | --infodi | --infod | --info | --inf)
1147    ac_prev=infodir ;;
1148  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149    infodir=$ac_optarg ;;
1150
1151  -libdir | --libdir | --libdi | --libd)
1152    ac_prev=libdir ;;
1153  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154    libdir=$ac_optarg ;;
1155
1156  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157  | --libexe | --libex | --libe)
1158    ac_prev=libexecdir ;;
1159  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160  | --libexe=* | --libex=* | --libe=*)
1161    libexecdir=$ac_optarg ;;
1162
1163  -localedir | --localedir | --localedi | --localed | --locale)
1164    ac_prev=localedir ;;
1165  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166    localedir=$ac_optarg ;;
1167
1168  -localstatedir | --localstatedir | --localstatedi | --localstated \
1169  | --localstate | --localstat | --localsta | --localst | --locals)
1170    ac_prev=localstatedir ;;
1171  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173    localstatedir=$ac_optarg ;;
1174
1175  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176    ac_prev=mandir ;;
1177  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178    mandir=$ac_optarg ;;
1179
1180  -nfp | --nfp | --nf)
1181    # Obsolete; use --without-fp.
1182    with_fp=no ;;
1183
1184  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185  | --no-cr | --no-c | -n)
1186    no_create=yes ;;
1187
1188  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190    no_recursion=yes ;;
1191
1192  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194  | --oldin | --oldi | --old | --ol | --o)
1195    ac_prev=oldincludedir ;;
1196  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199    oldincludedir=$ac_optarg ;;
1200
1201  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202    ac_prev=prefix ;;
1203  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204    prefix=$ac_optarg ;;
1205
1206  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207  | --program-pre | --program-pr | --program-p)
1208    ac_prev=program_prefix ;;
1209  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211    program_prefix=$ac_optarg ;;
1212
1213  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214  | --program-suf | --program-su | --program-s)
1215    ac_prev=program_suffix ;;
1216  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218    program_suffix=$ac_optarg ;;
1219
1220  -program-transform-name | --program-transform-name \
1221  | --program-transform-nam | --program-transform-na \
1222  | --program-transform-n | --program-transform- \
1223  | --program-transform | --program-transfor \
1224  | --program-transfo | --program-transf \
1225  | --program-trans | --program-tran \
1226  | --progr-tra | --program-tr | --program-t)
1227    ac_prev=program_transform_name ;;
1228  -program-transform-name=* | --program-transform-name=* \
1229  | --program-transform-nam=* | --program-transform-na=* \
1230  | --program-transform-n=* | --program-transform-=* \
1231  | --program-transform=* | --program-transfor=* \
1232  | --program-transfo=* | --program-transf=* \
1233  | --program-trans=* | --program-tran=* \
1234  | --progr-tra=* | --program-tr=* | --program-t=*)
1235    program_transform_name=$ac_optarg ;;
1236
1237  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238    ac_prev=pdfdir ;;
1239  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240    pdfdir=$ac_optarg ;;
1241
1242  -psdir | --psdir | --psdi | --psd | --ps)
1243    ac_prev=psdir ;;
1244  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245    psdir=$ac_optarg ;;
1246
1247  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248  | -silent | --silent | --silen | --sile | --sil)
1249    silent=yes ;;
1250
1251  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252    ac_prev=sbindir ;;
1253  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254  | --sbi=* | --sb=*)
1255    sbindir=$ac_optarg ;;
1256
1257  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259  | --sharedst | --shareds | --shared | --share | --shar \
1260  | --sha | --sh)
1261    ac_prev=sharedstatedir ;;
1262  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265  | --sha=* | --sh=*)
1266    sharedstatedir=$ac_optarg ;;
1267
1268  -site | --site | --sit)
1269    ac_prev=site ;;
1270  -site=* | --site=* | --sit=*)
1271    site=$ac_optarg ;;
1272
1273  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274    ac_prev=srcdir ;;
1275  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276    srcdir=$ac_optarg ;;
1277
1278  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279  | --syscon | --sysco | --sysc | --sys | --sy)
1280    ac_prev=sysconfdir ;;
1281  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283    sysconfdir=$ac_optarg ;;
1284
1285  -target | --target | --targe | --targ | --tar | --ta | --t)
1286    ac_prev=target_alias ;;
1287  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288    target_alias=$ac_optarg ;;
1289
1290  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291    verbose=yes ;;
1292
1293  -version | --version | --versio | --versi | --vers | -V)
1294    ac_init_version=: ;;
1295
1296  -with-* | --with-*)
1297    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298    # Reject names that are not valid shell variable names.
1299    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1300      { echo "$as_me: error: invalid package name: $ac_package" >&2
1301   { (exit 1); exit 1; }; }
1302    ac_package=`echo $ac_package| sed 's/-/_/g'`
1303    eval with_$ac_package=\$ac_optarg ;;
1304
1305  -without-* | --without-*)
1306    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307    # Reject names that are not valid shell variable names.
1308    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1309      { echo "$as_me: error: invalid package name: $ac_package" >&2
1310   { (exit 1); exit 1; }; }
1311    ac_package=`echo $ac_package | sed 's/-/_/g'`
1312    eval with_$ac_package=no ;;
1313
1314  --x)
1315    # Obsolete; use --with-x.
1316    with_x=yes ;;
1317
1318  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319  | --x-incl | --x-inc | --x-in | --x-i)
1320    ac_prev=x_includes ;;
1321  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323    x_includes=$ac_optarg ;;
1324
1325  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327    ac_prev=x_libraries ;;
1328  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330    x_libraries=$ac_optarg ;;
1331
1332  -*) { echo "$as_me: error: unrecognized option: $ac_option
1333Try \`$0 --help' for more information." >&2
1334   { (exit 1); exit 1; }; }
1335    ;;
1336
1337  *=*)
1338    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339    # Reject names that are not valid shell variable names.
1340    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342   { (exit 1); exit 1; }; }
1343    eval $ac_envvar=\$ac_optarg
1344    export $ac_envvar ;;
1345
1346  *)
1347    # FIXME: should be removed in autoconf 3.0.
1348    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352    ;;
1353
1354  esac
1355done
1356
1357if test -n "$ac_prev"; then
1358  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359  { echo "$as_me: error: missing argument to $ac_option" >&2
1360   { (exit 1); exit 1; }; }
1361fi
1362
1363# Be sure to have absolute directory names.
1364for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365		datadir sysconfdir sharedstatedir localstatedir includedir \
1366		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367		libdir localedir mandir
1368do
1369  eval ac_val=\$$ac_var
1370  case $ac_val in
1371    [\\/$]* | ?:[\\/]* )  continue;;
1372    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373  esac
1374  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1375   { (exit 1); exit 1; }; }
1376done
1377
1378# There might be people who depend on the old broken behavior: `$host'
1379# used to hold the argument of --host etc.
1380# FIXME: To remove some day.
1381build=$build_alias
1382host=$host_alias
1383target=$target_alias
1384
1385# FIXME: To remove some day.
1386if test "x$host_alias" != x; then
1387  if test "x$build_alias" = x; then
1388    cross_compiling=maybe
1389    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390    If a cross compiler is detected then cross compile mode will be used." >&2
1391  elif test "x$build_alias" != "x$host_alias"; then
1392    cross_compiling=yes
1393  fi
1394fi
1395
1396ac_tool_prefix=
1397test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399test "$silent" = yes && exec 6>/dev/null
1400
1401
1402ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403ac_ls_di=`ls -di .` &&
1404ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405  { echo "$as_me: error: Working directory cannot be determined" >&2
1406   { (exit 1); exit 1; }; }
1407test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408  { echo "$as_me: error: pwd does not report name of working directory" >&2
1409   { (exit 1); exit 1; }; }
1410
1411
1412# Find the source files, if location was not specified.
1413if test -z "$srcdir"; then
1414  ac_srcdir_defaulted=yes
1415  # Try the directory containing this script, then the parent directory.
1416  ac_confdir=`$as_dirname -- "$0" ||
1417$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418	 X"$0" : 'X\(//\)[^/]' \| \
1419	 X"$0" : 'X\(//\)$' \| \
1420	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1421echo X"$0" |
1422    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423	    s//\1/
1424	    q
1425	  }
1426	  /^X\(\/\/\)[^/].*/{
1427	    s//\1/
1428	    q
1429	  }
1430	  /^X\(\/\/\)$/{
1431	    s//\1/
1432	    q
1433	  }
1434	  /^X\(\/\).*/{
1435	    s//\1/
1436	    q
1437	  }
1438	  s/.*/./; q'`
1439  srcdir=$ac_confdir
1440  if test ! -r "$srcdir/$ac_unique_file"; then
1441    srcdir=..
1442  fi
1443else
1444  ac_srcdir_defaulted=no
1445fi
1446if test ! -r "$srcdir/$ac_unique_file"; then
1447  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1449   { (exit 1); exit 1; }; }
1450fi
1451ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452ac_abs_confdir=`(
1453	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1454   { (exit 1); exit 1; }; }
1455	pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458  srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_env_${ac_var}_value=\$${ac_var}
1469  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
1472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477  # Omit some internal or obsolete options to make the list less imposing.
1478  # This message is too long to be a string in the A/UX 3.1 sh.
1479  cat <<_ACEOF
1480\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490  -h, --help              display this help and exit
1491      --help=short        display options specific to this package
1492      --help=recursive    display the short help of all the included packages
1493  -V, --version           display version information and exit
1494  -q, --quiet, --silent   do not print \`checking...' messages
1495      --cache-file=FILE   cache test results in FILE [disabled]
1496  -C, --config-cache      alias for \`--cache-file=config.cache'
1497  -n, --no-create         do not create output files
1498      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500Installation directories:
1501  --prefix=PREFIX         install architecture-independent files in PREFIX
1502			  [$ac_default_prefix]
1503  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504			  [PREFIX]
1505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514  --bindir=DIR           user executables [EPREFIX/bin]
1515  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1516  --libexecdir=DIR       program executables [EPREFIX/libexec]
1517  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1518  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1519  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1520  --libdir=DIR           object code libraries [EPREFIX/lib]
1521  --includedir=DIR       C header files [PREFIX/include]
1522  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1523  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1524  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1525  --infodir=DIR          info documentation [DATAROOTDIR/info]
1526  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1527  --mandir=DIR           man documentation [DATAROOTDIR/man]
1528  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1529  --htmldir=DIR          html documentation [DOCDIR]
1530  --dvidir=DIR           dvi documentation [DOCDIR]
1531  --pdfdir=DIR           pdf documentation [DOCDIR]
1532  --psdir=DIR            ps documentation [DOCDIR]
1533_ACEOF
1534
1535  cat <<\_ACEOF
1536
1537System types:
1538  --build=BUILD     configure for building on BUILD [guessed]
1539  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1540  --target=TARGET   configure for building compilers for TARGET [HOST]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545  case $ac_init_help in
1546     short | recursive ) echo "Configuration of llvm 2.7svn:";;
1547   esac
1548  cat <<\_ACEOF
1549
1550Optional Features:
1551  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553  --enable-optimized      Compile with optimizations enabled (default is NO)
1554  --enable-profiling      Compile with profiling enabled (default is NO)
1555  --enable-assertions     Compile with assertion checks enabled (default is
1556                          YES)
1557  --enable-expensive-checks
1558                          Compile with expensive debug checks enabled (default
1559                          is NO)
1560  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1561                          NO)
1562  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1563                          optimization is on and YES if it's off)
1564  --enable-jit            Enable Just In Time Compiling (default is YES)
1565  --enable-doxygen        Build doxygen documentation (default is NO)
1566  --enable-threads        Use threads if available (default is YES)
1567  --enable-pic            Build LLVM with Position Independent Code (default
1568                          is YES)
1569  --enable-targets        Build specific host targets: all or
1570                          target1,target2,... Valid targets are: host, x86,
1571                          x86_64, sparc, powerpc, alpha, arm, mips, spu,
1572                          pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1573                          and cpp (default=all)
1574  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1575                          %a (default is YES)
1576  --enable-bindings       Build specific language bindings:
1577                          all,auto,none,{binding-name} (default=auto)
1578  --enable-libffi         Check for the presence of libffi (default is YES)
1579  --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1580                          Win32)
1581  --enable-llvmc-dynamic-plugins
1582                          Enable dynamic LLVMC plugins (default is YES)
1583  --enable-ltdl-install   install libltdl
1584  --enable-shared[=PKGS]  build shared libraries
1585                          [default=yes]
1586  --enable-static[=PKGS]  build static libraries
1587                          [default=yes]
1588  --enable-fast-install[=PKGS]
1589                          optimize for fast installation
1590                          [default=yes]
1591  --disable-libtool-lock  avoid locking (might break parallel builds)
1592
1593Optional Packages:
1594  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1595  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1596  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1597                          searches PATH)
1598  --with-llvmgcc          Specify location of llvm-gcc driver (default
1599                          searches PATH)
1600  --with-llvmgxx          Specify location of llvm-g++ driver (default
1601                          searches PATH)
1602  --with-optimize-option  Select the compiler options to use for optimized
1603                          builds
1604  --with-extra-options    Specify additional options to compile LLVM with
1605  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1606                          is stdlib)
1607  --with-c-include-dirs   Colon separated list of directories clang will
1608                          search for headers
1609  --with-cxx-include-root Directory with the libstdc++ headers.
1610  --with-cxx-include-arch Architecture of the libstdc++ headers.
1611  --with-cxx-include-32bit-dir
1612                          32 bit multilib dir.
1613  --with-cxx-include-64bit-dir
1614                          64 bit multilib directory.
1615  --with-binutils-include Specify path to binutils/include/ containing
1616                          plugin-api.h file for gold plugin.
1617  --with-tclinclude       directory where tcl headers are
1618  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619  --with-pic              try to use only PIC/non-PIC objects [default=use
1620                          both]
1621  --with-tags[=TAGS]      include additional configurations [automatic]
1622  --with-udis86=<path>    Use udis86 external x86 disassembler library
1623  --with-oprofile=<prefix>
1624                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1625
1626Some influential environment variables:
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632              you have headers in a nonstandard directory <include dir>
1633  CPP         C preprocessor
1634  CXX         C++ compiler command
1635  CXXFLAGS    C++ compiler flags
1636  CXXCPP      C++ preprocessor
1637  F77         Fortran 77 compiler command
1638  FFLAGS      Fortran 77 compiler flags
1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
1643Report bugs to <llvmbugs@cs.uiuc.edu>.
1644_ACEOF
1645ac_status=$?
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649  # If there are subdirs, report their specific --help.
1650  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651    test -d "$ac_dir" || continue
1652    ac_builddir=.
1653
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
1657  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1658  # A ".." for each directory in $ac_dir_suffix.
1659  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1660  case $ac_top_builddir_sub in
1661  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663  esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
1669
1670case $srcdir in
1671  .)  # We are building in place.
1672    ac_srcdir=.
1673    ac_top_srcdir=$ac_top_builddir_sub
1674    ac_abs_top_srcdir=$ac_pwd ;;
1675  [\\/]* | ?:[\\/]* )  # Absolute name.
1676    ac_srcdir=$srcdir$ac_dir_suffix;
1677    ac_top_srcdir=$srcdir
1678    ac_abs_top_srcdir=$srcdir ;;
1679  *) # Relative name.
1680    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681    ac_top_srcdir=$ac_top_build_prefix$srcdir
1682    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683esac
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686    cd "$ac_dir" || { ac_status=$?; continue; }
1687    # Check for guested configure.
1688    if test -f "$ac_srcdir/configure.gnu"; then
1689      echo &&
1690      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691    elif test -f "$ac_srcdir/configure"; then
1692      echo &&
1693      $SHELL "$ac_srcdir/configure" --help=recursive
1694    else
1695      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696    fi || ac_status=$?
1697    cd "$ac_pwd" || { ac_status=$?; break; }
1698  done
1699fi
1700
1701test -n "$ac_init_help" && exit $ac_status
1702if $ac_init_version; then
1703  cat <<\_ACEOF
1704llvm configure 2.7svn
1705generated by GNU Autoconf 2.60
1706
1707Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1709This configure script is free software; the Free Software Foundation
1710gives unlimited permission to copy, distribute and modify it.
1711
1712Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1713_ACEOF
1714  exit
1715fi
1716cat >config.log <<_ACEOF
1717This file contains any messages produced by compilers while
1718running configure, to aid debugging if configure makes a mistake.
1719
1720It was created by llvm $as_me 2.7svn, which was
1721generated by GNU Autoconf 2.60.  Invocation command line was
1722
1723  $ $0 $@
1724
1725_ACEOF
1726exec 5>>config.log
1727{
1728cat <<_ASUNAME
1729## --------- ##
1730## Platform. ##
1731## --------- ##
1732
1733hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1741
1742/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1743/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1744/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1746/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1747/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1748/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1749
1750_ASUNAME
1751
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755  IFS=$as_save_IFS
1756  test -z "$as_dir" && as_dir=.
1757  echo "PATH: $as_dir"
1758done
1759IFS=$as_save_IFS
1760
1761} >&5
1762
1763cat >&5 <<_ACEOF
1764
1765
1766## ----------- ##
1767## Core tests. ##
1768## ----------- ##
1769
1770_ACEOF
1771
1772
1773# Keep a trace of the command line.
1774# Strip out --no-create and --no-recursion so they do not pile up.
1775# Strip out --silent because we don't want to record it for future runs.
1776# Also quote any args containing shell meta-characters.
1777# Make two passes to allow for proper duplicate-argument suppression.
1778ac_configure_args=
1779ac_configure_args0=
1780ac_configure_args1=
1781ac_must_keep_next=false
1782for ac_pass in 1 2
1783do
1784  for ac_arg
1785  do
1786    case $ac_arg in
1787    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789    | -silent | --silent | --silen | --sile | --sil)
1790      continue ;;
1791    *\'*)
1792      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793    esac
1794    case $ac_pass in
1795    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796    2)
1797      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798      if test $ac_must_keep_next = true; then
1799	ac_must_keep_next=false # Got value, back to normal.
1800      else
1801	case $ac_arg in
1802	  *=* | --config-cache | -C | -disable-* | --disable-* \
1803	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805	  | -with-* | --with-* | -without-* | --without-* | --x)
1806	    case "$ac_configure_args0 " in
1807	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808	    esac
1809	    ;;
1810	  -* ) ac_must_keep_next=true ;;
1811	esac
1812      fi
1813      ac_configure_args="$ac_configure_args '$ac_arg'"
1814      ;;
1815    esac
1816  done
1817done
1818$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1820
1821# When interrupted or exit'd, cleanup temporary files, and complete
1822# config.log.  We remove comments because anyway the quotes in there
1823# would cause problems or look ugly.
1824# WARNING: Use '\'' to represent an apostrophe within the trap.
1825# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826trap 'exit_status=$?
1827  # Save into config.log some information that might help in debugging.
1828  {
1829    echo
1830
1831    cat <<\_ASBOX
1832## ---------------- ##
1833## Cache variables. ##
1834## ---------------- ##
1835_ASBOX
1836    echo
1837    # The following way of writing the cache mishandles newlines in values,
1838(
1839  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840    eval ac_val=\$$ac_var
1841    case $ac_val in #(
1842    *${as_nl}*)
1843      case $ac_var in #(
1844      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1845echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1846      esac
1847      case $ac_var in #(
1848      _ | IFS | as_nl) ;; #(
1849      *) $as_unset $ac_var ;;
1850      esac ;;
1851    esac
1852  done
1853  (set) 2>&1 |
1854    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855    *${as_nl}ac_space=\ *)
1856      sed -n \
1857	"s/'\''/'\''\\\\'\'''\''/g;
1858	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859      ;; #(
1860    *)
1861      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1862      ;;
1863    esac |
1864    sort
1865)
1866    echo
1867
1868    cat <<\_ASBOX
1869## ----------------- ##
1870## Output variables. ##
1871## ----------------- ##
1872_ASBOX
1873    echo
1874    for ac_var in $ac_subst_vars
1875    do
1876      eval ac_val=\$$ac_var
1877      case $ac_val in
1878      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879      esac
1880      echo "$ac_var='\''$ac_val'\''"
1881    done | sort
1882    echo
1883
1884    if test -n "$ac_subst_files"; then
1885      cat <<\_ASBOX
1886## ------------------- ##
1887## File substitutions. ##
1888## ------------------- ##
1889_ASBOX
1890      echo
1891      for ac_var in $ac_subst_files
1892      do
1893	eval ac_val=\$$ac_var
1894	case $ac_val in
1895	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896	esac
1897	echo "$ac_var='\''$ac_val'\''"
1898      done | sort
1899      echo
1900    fi
1901
1902    if test -s confdefs.h; then
1903      cat <<\_ASBOX
1904## ----------- ##
1905## confdefs.h. ##
1906## ----------- ##
1907_ASBOX
1908      echo
1909      cat confdefs.h
1910      echo
1911    fi
1912    test "$ac_signal" != 0 &&
1913      echo "$as_me: caught signal $ac_signal"
1914    echo "$as_me: exit $exit_status"
1915  } >&5
1916  rm -f core *.core core.conftest.* &&
1917    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918    exit $exit_status
1919' 0
1920for ac_signal in 1 2 13 15; do
1921  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922done
1923ac_signal=0
1924
1925# confdefs.h avoids OS command line length limits that DEFS can exceed.
1926rm -f -r conftest* confdefs.h
1927
1928# Predefined preprocessor variables.
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_NAME "$PACKAGE_NAME"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_VERSION "$PACKAGE_VERSION"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_STRING "$PACKAGE_STRING"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952_ACEOF
1953
1954
1955# Let the site file select an alternate cache file if it wants to.
1956# Prefer explicitly selected file to automatically selected ones.
1957if test -n "$CONFIG_SITE"; then
1958  set x "$CONFIG_SITE"
1959elif test "x$prefix" != xNONE; then
1960  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1961else
1962  set x "$ac_default_prefix/share/config.site" \
1963	"$ac_default_prefix/etc/config.site"
1964fi
1965shift
1966for ac_site_file
1967do
1968  if test -r "$ac_site_file"; then
1969    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970echo "$as_me: loading site script $ac_site_file" >&6;}
1971    sed 's/^/| /' "$ac_site_file" >&5
1972    . "$ac_site_file"
1973  fi
1974done
1975
1976if test -r "$cache_file"; then
1977  # Some versions of bash will fail to source /dev/null (special
1978  # files actually), so we avoid doing that.
1979  if test -f "$cache_file"; then
1980    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981echo "$as_me: loading cache $cache_file" >&6;}
1982    case $cache_file in
1983      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984      *)                      . "./$cache_file";;
1985    esac
1986  fi
1987else
1988  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989echo "$as_me: creating cache $cache_file" >&6;}
1990  >$cache_file
1991fi
1992
1993# Check that the precious variables saved in the cache have kept the same
1994# value.
1995ac_cache_corrupted=false
1996for ac_var in $ac_precious_vars; do
1997  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998  eval ac_new_set=\$ac_env_${ac_var}_set
1999  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000  eval ac_new_val=\$ac_env_${ac_var}_value
2001  case $ac_old_set,$ac_new_set in
2002    set,)
2003      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005      ac_cache_corrupted=: ;;
2006    ,set)
2007      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009      ac_cache_corrupted=: ;;
2010    ,);;
2011    *)
2012      if test "x$ac_old_val" != "x$ac_new_val"; then
2013	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2014echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2015	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2016echo "$as_me:   former value:  $ac_old_val" >&2;}
2017	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2018echo "$as_me:   current value: $ac_new_val" >&2;}
2019	ac_cache_corrupted=:
2020      fi;;
2021  esac
2022  # Pass precious variables to config.status.
2023  if test "$ac_new_set" = set; then
2024    case $ac_new_val in
2025    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2026    *) ac_arg=$ac_var=$ac_new_val ;;
2027    esac
2028    case " $ac_configure_args " in
2029      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2030      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031    esac
2032  fi
2033done
2034if $ac_cache_corrupted; then
2035  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039   { (exit 1); exit 1; }; }
2040fi
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066ac_ext=c
2067ac_cpp='$CPP $CPPFLAGS'
2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071
2072
2073
2074LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2075
2076
2077
2078
2079
2080
2081
2082ac_aux_dir=
2083for ac_dir in autoconf "$srcdir"/autoconf; do
2084  if test -f "$ac_dir/install-sh"; then
2085    ac_aux_dir=$ac_dir
2086    ac_install_sh="$ac_aux_dir/install-sh -c"
2087    break
2088  elif test -f "$ac_dir/install.sh"; then
2089    ac_aux_dir=$ac_dir
2090    ac_install_sh="$ac_aux_dir/install.sh -c"
2091    break
2092  elif test -f "$ac_dir/shtool"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/shtool install -c"
2095    break
2096  fi
2097done
2098if test -z "$ac_aux_dir"; then
2099  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2100echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2101   { (exit 1); exit 1; }; }
2102fi
2103
2104# These three variables are undocumented and unsupported,
2105# and are intended to be withdrawn in a future Autoconf release.
2106# They can cause serious problems if a builder's source tree is in a directory
2107# whose full name contains unusual characters.
2108ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113
2114if test ${srcdir} != "." ; then
2115  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2116    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2117echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2118   { (exit 1); exit 1; }; }
2119  fi
2120fi
2121
2122for i in `ls ${srcdir}/projects`
2123do
2124  if test -d ${srcdir}/projects/${i} ; then
2125    case ${i} in
2126      CVS) ;;
2127      sample)       subdirs="$subdirs projects/sample"
2128    ;;
2129      privbracket)  subdirs="$subdirs projects/privbracket"
2130 ;;
2131      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2132 ;;
2133      # llvm-test is the old name of the test-suite, kept here for backwards
2134      # compatibility
2135      llvm-test)    subdirs="$subdirs projects/llvm-test"
2136 ;;
2137      test-suite)   subdirs="$subdirs projects/test-suite"
2138 ;;
2139      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2140;;
2141      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2142  ;;
2143      llvm-java)    subdirs="$subdirs projects/llvm-java"
2144 ;;
2145      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2146   ;;
2147      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2148 ;;
2149      poolalloc)    subdirs="$subdirs projects/poolalloc"
2150 ;;
2151      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2152 ;;
2153      *)
2154        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2155echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2156        ;;
2157    esac
2158  fi
2159done
2160
2161
2162# Make sure we can run config.sub.
2163$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2165echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2166   { (exit 1); exit 1; }; }
2167
2168{ echo "$as_me:$LINENO: checking build system type" >&5
2169echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2170if test "${ac_cv_build+set}" = set; then
2171  echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173  ac_build_alias=$build_alias
2174test "x$ac_build_alias" = x &&
2175  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2176test "x$ac_build_alias" = x &&
2177  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2178echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179   { (exit 1); exit 1; }; }
2180ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2183   { (exit 1); exit 1; }; }
2184
2185fi
2186{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2187echo "${ECHO_T}$ac_cv_build" >&6; }
2188case $ac_cv_build in
2189*-*-*) ;;
2190*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2191echo "$as_me: error: invalid value of canonical build" >&2;}
2192   { (exit 1); exit 1; }; };;
2193esac
2194build=$ac_cv_build
2195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_build
2197shift
2198build_cpu=$1
2199build_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203build_os=$*
2204IFS=$ac_save_IFS
2205case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2206
2207
2208{ echo "$as_me:$LINENO: checking host system type" >&5
2209echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2210if test "${ac_cv_host+set}" = set; then
2211  echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213  if test "x$host_alias" = x; then
2214  ac_cv_host=$ac_cv_build
2215else
2216  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2217    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2218echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2219   { (exit 1); exit 1; }; }
2220fi
2221
2222fi
2223{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2224echo "${ECHO_T}$ac_cv_host" >&6; }
2225case $ac_cv_host in
2226*-*-*) ;;
2227*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2228echo "$as_me: error: invalid value of canonical host" >&2;}
2229   { (exit 1); exit 1; }; };;
2230esac
2231host=$ac_cv_host
2232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_host
2234shift
2235host_cpu=$1
2236host_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240host_os=$*
2241IFS=$ac_save_IFS
2242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2243
2244
2245{ echo "$as_me:$LINENO: checking target system type" >&5
2246echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2247if test "${ac_cv_target+set}" = set; then
2248  echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
2250  if test "x$target_alias" = x; then
2251  ac_cv_target=$ac_cv_host
2252else
2253  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2254    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2255echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2256   { (exit 1); exit 1; }; }
2257fi
2258
2259fi
2260{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2261echo "${ECHO_T}$ac_cv_target" >&6; }
2262case $ac_cv_target in
2263*-*-*) ;;
2264*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2265echo "$as_me: error: invalid value of canonical target" >&2;}
2266   { (exit 1); exit 1; }; };;
2267esac
2268target=$ac_cv_target
2269ac_save_IFS=$IFS; IFS='-'
2270set x $ac_cv_target
2271shift
2272target_cpu=$1
2273target_vendor=$2
2274shift; shift
2275# Remember, the first character of IFS is used to create $*,
2276# except with old shells:
2277target_os=$*
2278IFS=$ac_save_IFS
2279case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2280
2281
2282# The aliases save the names the user supplied, while $host etc.
2283# will get canonicalized.
2284test -n "$target_alias" &&
2285  test "$program_prefix$program_suffix$program_transform_name" = \
2286    NONENONEs,x,x, &&
2287  program_prefix=${target_alias}-
2288
2289{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2290echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2291if test "${llvm_cv_os_type+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  case $host in
2295  *-*-aix*)
2296    llvm_cv_link_all_option="-Wl,--whole-archive"
2297    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298    llvm_cv_os_type="AIX"
2299    llvm_cv_platform_type="Unix" ;;
2300  *-*-irix*)
2301    llvm_cv_link_all_option="-Wl,--whole-archive"
2302    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303    llvm_cv_os_type="IRIX"
2304    llvm_cv_platform_type="Unix" ;;
2305  *-*-cygwin*)
2306    llvm_cv_link_all_option="-Wl,--whole-archive"
2307    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308    llvm_cv_os_type="Cygwin"
2309    llvm_cv_platform_type="Unix" ;;
2310  *-*-darwin*)
2311    llvm_cv_link_all_option="-Wl,-all_load"
2312    llvm_cv_no_link_all_option="-Wl,-noall_load"
2313    llvm_cv_os_type="Darwin"
2314    llvm_cv_platform_type="Unix" ;;
2315  *-*-freebsd*)
2316    llvm_cv_link_all_option="-Wl,--whole-archive"
2317    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318    llvm_cv_os_type="FreeBSD"
2319    llvm_cv_platform_type="Unix" ;;
2320  *-*-openbsd*)
2321    llvm_cv_link_all_option="-Wl,--whole-archive"
2322    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323    llvm_cv_os_type="OpenBSD"
2324    llvm_cv_platform_type="Unix" ;;
2325  *-*-netbsd*)
2326    llvm_cv_link_all_option="-Wl,--whole-archive"
2327    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328    llvm_cv_os_type="NetBSD"
2329    llvm_cv_platform_type="Unix" ;;
2330  *-*-dragonfly*)
2331    llvm_cv_link_all_option="-Wl,--whole-archive"
2332    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2333    llvm_cv_os_type="DragonFly"
2334    llvm_cv_platform_type="Unix" ;;
2335  *-*-hpux*)
2336    llvm_cv_link_all_option="-Wl,--whole-archive"
2337    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338    llvm_cv_os_type="HP-UX"
2339    llvm_cv_platform_type="Unix" ;;
2340  *-*-interix*)
2341    llvm_cv_link_all_option="-Wl,--whole-archive"
2342    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343    llvm_cv_os_type="Interix"
2344    llvm_cv_platform_type="Unix" ;;
2345  *-*-linux*)
2346    llvm_cv_link_all_option="-Wl,--whole-archive"
2347    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348    llvm_cv_os_type="Linux"
2349    llvm_cv_platform_type="Unix" ;;
2350  *-*-solaris*)
2351    llvm_cv_link_all_option="-Wl,-z,allextract"
2352    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2353    llvm_cv_os_type="SunOS"
2354    llvm_cv_platform_type="Unix" ;;
2355  *-*-auroraux*)
2356    llvm_cv_link_all_option="-Wl,-z,allextract"
2357    llvm_cv_link_all_option="-Wl,-z,defaultextract"
2358    llvm_cv_os_type="AuroraUX"
2359    llvm_cv_platform_type="Unix" ;;
2360  *-*-win32*)
2361    llvm_cv_link_all_option="-Wl,--whole-archive"
2362    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2363    llvm_cv_os_type="Win32"
2364    llvm_cv_platform_type="Win32" ;;
2365  *-*-mingw*)
2366    llvm_cv_link_all_option="-Wl,--whole-archive"
2367    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2368    llvm_cv_os_type="MingW"
2369    llvm_cv_platform_type="Win32" ;;
2370  *-*-haiku*)
2371    llvm_cv_link_all_option="-Wl,--whole-archive"
2372    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2373    llvm_cv_os_type="Haiku"
2374    llvm_cv_platform_type="Unix" ;;
2375  *-unknown-eabi*)
2376    llvm_cv_link_all_option="-Wl,--whole-archive"
2377    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2378    llvm_cv_os_type="Freestanding"
2379    llvm_cv_platform_type="Unix" ;;
2380  *-unknown-elf*)
2381    llvm_cv_link_all_option="-Wl,--whole-archive"
2382    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2383    llvm_cv_os_type="Freestanding"
2384    llvm_cv_platform_type="Unix" ;;
2385  *)
2386    llvm_cv_link_all_option=""
2387    llvm_cv_no_link_all_option=""
2388    llvm_cv_os_type="Unknown"
2389    llvm_cv_platform_type="Unknown" ;;
2390esac
2391fi
2392{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2393echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2394
2395{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2396echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2397if test "${llvm_cv_target_os_type+set}" = set; then
2398  echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400  case $target in
2401  *-*-aix*)
2402    llvm_cv_target_os_type="AIX" ;;
2403  *-*-irix*)
2404    llvm_cv_target_os_type="IRIX" ;;
2405  *-*-cygwin*)
2406    llvm_cv_target_os_type="Cygwin" ;;
2407  *-*-darwin*)
2408    llvm_cv_target_os_type="Darwin" ;;
2409  *-*-freebsd*)
2410    llvm_cv_target_os_type="FreeBSD" ;;
2411  *-*-openbsd*)
2412    llvm_cv_target_os_type="OpenBSD" ;;
2413  *-*-netbsd*)
2414    llvm_cv_target_os_type="NetBSD" ;;
2415  *-*-dragonfly*)
2416    llvm_cv_target_os_type="DragonFly" ;;
2417  *-*-hpux*)
2418    llvm_cv_target_os_type="HP-UX" ;;
2419  *-*-interix*)
2420    llvm_cv_target_os_type="Interix" ;;
2421  *-*-linux*)
2422    llvm_cv_target_os_type="Linux" ;;
2423  *-*-solaris*)
2424    llvm_cv_target_os_type="SunOS" ;;
2425  *-*-auroraux*)
2426    llvm_cv_target_os_type="AuroraUX" ;;
2427  *-*-win32*)
2428    llvm_cv_target_os_type="Win32" ;;
2429  *-*-mingw*)
2430    llvm_cv_target_os_type="MingW" ;;
2431  *-*-haiku*)
2432    llvm_cv_target_os_type="Haiku" ;;
2433  *-unknown-eabi*)
2434    llvm_cv_target_os_type="Freestanding" ;;
2435  *)
2436    llvm_cv_target_os_type="Unknown" ;;
2437esac
2438fi
2439{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2440echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2441
2442if test "$llvm_cv_os_type" = "Unknown" ; then
2443  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2444echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2445   { (exit 1); exit 1; }; }
2446fi
2447
2448OS=$llvm_cv_os_type
2449
2450HOST_OS=$llvm_cv_os_type
2451
2452TARGET_OS=$llvm_cv_target_os_type
2453
2454
2455LINKALL=$llvm_cv_link_all_option
2456
2457NOLINKALL=$llvm_cv_no_link_all_option
2458
2459
2460case $llvm_cv_platform_type in
2461  Unix)
2462
2463cat >>confdefs.h <<\_ACEOF
2464#define LLVM_ON_UNIX 1
2465_ACEOF
2466
2467    LLVM_ON_UNIX=1
2468
2469    LLVM_ON_WIN32=0
2470
2471    ;;
2472  Win32)
2473
2474cat >>confdefs.h <<\_ACEOF
2475#define LLVM_ON_WIN32 1
2476_ACEOF
2477
2478    LLVM_ON_UNIX=0
2479
2480    LLVM_ON_WIN32=1
2481
2482    ;;
2483esac
2484
2485{ echo "$as_me:$LINENO: checking target architecture" >&5
2486echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2487if test "${llvm_cv_target_arch+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  case $target in
2491  i?86-*)                 llvm_cv_target_arch="x86" ;;
2492  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2493  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2494  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2495  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2496  arm*-*)                 llvm_cv_target_arch="ARM" ;;
2497  mips-*)                 llvm_cv_target_arch="Mips" ;;
2498  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2499  xcore-*)                llvm_cv_target_arch="XCore" ;;
2500  msp430-*)               llvm_cv_target_arch="MSP430" ;;
2501  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2502  bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2503  *)                      llvm_cv_target_arch="Unknown" ;;
2504esac
2505fi
2506{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2507echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2508
2509if test "$llvm_cv_target_arch" = "Unknown" ; then
2510  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2511echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2512fi
2513
2514# Determine the LLVM native architecture for the target
2515case "$llvm_cv_target_arch" in
2516    x86)     LLVM_NATIVE_ARCH="X86" ;;
2517    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2518    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2519esac
2520
2521ARCH=$llvm_cv_target_arch
2522
2523
2524ac_ext=c
2525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529if test -n "$ac_tool_prefix"; then
2530  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535  echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537  if test -n "$CC"; then
2538  ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543  IFS=$as_save_IFS
2544  test -z "$as_dir" && as_dir=.
2545  for ac_exec_ext in '' $ac_executable_extensions; do
2546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549    break 2
2550  fi
2551done
2552done
2553IFS=$as_save_IFS
2554
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
2559  { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
2561else
2562  { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
2564fi
2565
2566
2567fi
2568if test -z "$ac_cv_prog_CC"; then
2569  ac_ct_CC=$CC
2570  # Extract the first word of "gcc", so it can be a program name with args.
2571set dummy gcc; ac_word=$2
2572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575  echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577  if test -n "$ac_ct_CC"; then
2578  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585  for ac_exec_ext in '' $ac_executable_extensions; do
2586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2587    ac_cv_prog_ac_ct_CC="gcc"
2588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589    break 2
2590  fi
2591done
2592done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598if test -n "$ac_ct_CC"; then
2599  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600echo "${ECHO_T}$ac_ct_CC" >&6; }
2601else
2602  { echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6; }
2604fi
2605
2606  if test "x$ac_ct_CC" = x; then
2607    CC=""
2608  else
2609    case $cross_compiling:$ac_tool_warned in
2610yes:)
2611{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612whose name does not start with the host triplet.  If you think this
2613configuration is useful to you, please write to autoconf@gnu.org." >&5
2614echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615whose name does not start with the host triplet.  If you think this
2616configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617ac_tool_warned=yes ;;
2618esac
2619    CC=$ac_ct_CC
2620  fi
2621else
2622  CC="$ac_cv_prog_CC"
2623fi
2624
2625if test -z "$CC"; then
2626          if test -n "$ac_tool_prefix"; then
2627    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2628set dummy ${ac_tool_prefix}cc; ac_word=$2
2629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631if test "${ac_cv_prog_CC+set}" = set; then
2632  echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634  if test -n "$CC"; then
2635  ac_cv_prog_CC="$CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642  for ac_exec_ext in '' $ac_executable_extensions; do
2643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644    ac_cv_prog_CC="${ac_tool_prefix}cc"
2645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646    break 2
2647  fi
2648done
2649done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
2656  { echo "$as_me:$LINENO: result: $CC" >&5
2657echo "${ECHO_T}$CC" >&6; }
2658else
2659  { echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6; }
2661fi
2662
2663
2664  fi
2665fi
2666if test -z "$CC"; then
2667  # Extract the first word of "cc", so it can be a program name with args.
2668set dummy cc; ac_word=$2
2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671if test "${ac_cv_prog_CC+set}" = set; then
2672  echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674  if test -n "$CC"; then
2675  ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677  ac_prog_rejected=no
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681  IFS=$as_save_IFS
2682  test -z "$as_dir" && as_dir=.
2683  for ac_exec_ext in '' $ac_executable_extensions; do
2684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686       ac_prog_rejected=yes
2687       continue
2688     fi
2689    ac_cv_prog_CC="cc"
2690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694done
2695IFS=$as_save_IFS
2696
2697if test $ac_prog_rejected = yes; then
2698  # We found a bogon in the path, so make sure we never use it.
2699  set dummy $ac_cv_prog_CC
2700  shift
2701  if test $# != 0; then
2702    # We chose a different compiler from the bogus one.
2703    # However, it has the same basename, so the bogon will be chosen
2704    # first if we set CC to just the basename; use the full file name.
2705    shift
2706    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2707  fi
2708fi
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713  { echo "$as_me:$LINENO: result: $CC" >&5
2714echo "${ECHO_T}$CC" >&6; }
2715else
2716  { echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6; }
2718fi
2719
2720
2721fi
2722if test -z "$CC"; then
2723  if test -n "$ac_tool_prefix"; then
2724  for ac_prog in cl.exe
2725  do
2726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730if test "${ac_cv_prog_CC+set}" = set; then
2731  echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733  if test -n "$CC"; then
2734  ac_cv_prog_CC="$CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741  for ac_exec_ext in '' $ac_executable_extensions; do
2742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2743    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755  { echo "$as_me:$LINENO: result: $CC" >&5
2756echo "${ECHO_T}$CC" >&6; }
2757else
2758  { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
2760fi
2761
2762
2763    test -n "$CC" && break
2764  done
2765fi
2766if test -z "$CC"; then
2767  ac_ct_CC=$CC
2768  for ac_prog in cl.exe
2769do
2770  # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775  echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777  if test -n "$ac_ct_CC"; then
2778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785  for ac_exec_ext in '' $ac_executable_extensions; do
2786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787    ac_cv_prog_ac_ct_CC="$ac_prog"
2788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798if test -n "$ac_ct_CC"; then
2799  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800echo "${ECHO_T}$ac_ct_CC" >&6; }
2801else
2802  { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807  test -n "$ac_ct_CC" && break
2808done
2809
2810  if test "x$ac_ct_CC" = x; then
2811    CC=""
2812  else
2813    case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816whose name does not start with the host triplet.  If you think this
2817configuration is useful to you, please write to autoconf@gnu.org." >&5
2818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819whose name does not start with the host triplet.  If you think this
2820configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823    CC=$ac_ct_CC
2824  fi
2825fi
2826
2827fi
2828
2829
2830test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831See \`config.log' for more details." >&5
2832echo "$as_me: error: no acceptable C compiler found in \$PATH
2833See \`config.log' for more details." >&2;}
2834   { (exit 1); exit 1; }; }
2835
2836# Provide some information about the compiler.
2837echo "$as_me:$LINENO: checking for C compiler version" >&5
2838ac_compiler=`set X $ac_compile; echo $2`
2839{ (ac_try="$ac_compiler --version >&5"
2840case "(($ac_try" in
2841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842  *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845  (eval "$ac_compiler --version >&5") 2>&5
2846  ac_status=$?
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); }
2849{ (ac_try="$ac_compiler -v >&5"
2850case "(($ac_try" in
2851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852  *) ac_try_echo=$ac_try;;
2853esac
2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855  (eval "$ac_compiler -v >&5") 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }
2859{ (ac_try="$ac_compiler -V >&5"
2860case "(($ac_try" in
2861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862  *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865  (eval "$ac_compiler -V >&5") 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }
2869
2870cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h.  */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885ac_clean_files_save=$ac_clean_files
2886ac_clean_files="$ac_clean_files a.out a.exe b.out"
2887# Try to create an executable without -o first, disregard a.out.
2888# It will help us diagnose broken compilers, and finding out an intuition
2889# of exeext.
2890{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2891echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2892ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893#
2894# List of possible output files, starting from the most likely.
2895# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2896# only as a last resort.  b.out is created by i960 compilers.
2897ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2898#
2899# The IRIX 6 linker writes into existing files which may not be
2900# executable, retaining their permissions.  Remove them first so a
2901# subsequent execution test works.
2902ac_rmfiles=
2903for ac_file in $ac_files
2904do
2905  case $ac_file in
2906    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908  esac
2909done
2910rm -f $ac_rmfiles
2911
2912if { (ac_try="$ac_link_default"
2913case "(($ac_try" in
2914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915  *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918  (eval "$ac_link_default") 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; then
2922  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2925# so that the user can short-circuit this test for compilers unknown to
2926# Autoconf.
2927for ac_file in $ac_files
2928do
2929  test -f "$ac_file" || continue
2930  case $ac_file in
2931    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2932	;;
2933    [ab].out )
2934	# We found the default executable, but exeext='' is most
2935	# certainly right.
2936	break;;
2937    *.* )
2938        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939	then :; else
2940	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941	fi
2942	# We set ac_cv_exeext here because the later test for it is not
2943	# safe: cross compilers may not add the suffix if given an `-o'
2944	# argument, so we may need to know it at that point already.
2945	# Even if this section looks crufty: it has the advantage of
2946	# actually working.
2947	break;;
2948    * )
2949	break;;
2950  esac
2951done
2952test "$ac_cv_exeext" = no && ac_cv_exeext=
2953
2954else
2955  echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: C compiler cannot create executables
2961See \`config.log' for more details." >&2;}
2962   { (exit 77); exit 77; }; }
2963fi
2964
2965ac_exeext=$ac_cv_exeext
2966{ echo "$as_me:$LINENO: result: $ac_file" >&5
2967echo "${ECHO_T}$ac_file" >&6; }
2968
2969# Check that the compiler produces executables we can run.  If not, either
2970# the compiler is broken, or we cross compile.
2971{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2972echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2973# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2974# If not cross compiling, check that we can run a simple program.
2975if test "$cross_compiling" != yes; then
2976  if { ac_try='./$ac_file'
2977  { (case "(($ac_try" in
2978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979  *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982  (eval "$ac_try") 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; }; then
2986    cross_compiling=no
2987  else
2988    if test "$cross_compiling" = maybe; then
2989	cross_compiling=yes
2990    else
2991	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2992If you meant to cross compile, use \`--host'.
2993See \`config.log' for more details." >&5
2994echo "$as_me: error: cannot run C compiled programs.
2995If you meant to cross compile, use \`--host'.
2996See \`config.log' for more details." >&2;}
2997   { (exit 1); exit 1; }; }
2998    fi
2999  fi
3000fi
3001{ echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6; }
3003
3004rm -f a.out a.exe conftest$ac_cv_exeext b.out
3005ac_clean_files=$ac_clean_files_save
3006# Check that the compiler produces executables we can run.  If not, either
3007# the compiler is broken, or we cross compile.
3008{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3010{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3011echo "${ECHO_T}$cross_compiling" >&6; }
3012
3013{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3015if { (ac_try="$ac_link"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021  (eval "$ac_link") 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; then
3025  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3026# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3027# work properly (i.e., refer to `conftest.exe'), while it won't with
3028# `rm'.
3029for ac_file in conftest.exe conftest conftest.*; do
3030  test -f "$ac_file" || continue
3031  case $ac_file in
3032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3033    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034	  break;;
3035    * ) break;;
3036  esac
3037done
3038else
3039  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3040See \`config.log' for more details." >&5
3041echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3042See \`config.log' for more details." >&2;}
3043   { (exit 1); exit 1; }; }
3044fi
3045
3046rm -f conftest$ac_cv_exeext
3047{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3048echo "${ECHO_T}$ac_cv_exeext" >&6; }
3049
3050rm -f conftest.$ac_ext
3051EXEEXT=$ac_cv_exeext
3052ac_exeext=$EXEEXT
3053{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3054echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3055if test "${ac_cv_objext+set}" = set; then
3056  echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058  cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h.  */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h.  */
3064
3065int
3066main ()
3067{
3068
3069  ;
3070  return 0;
3071}
3072_ACEOF
3073rm -f conftest.o conftest.obj
3074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_compile") 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; then
3084  for ac_file in conftest.o conftest.obj conftest.*; do
3085  test -f "$ac_file" || continue;
3086  case $ac_file in
3087    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3088    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089       break;;
3090  esac
3091done
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3097See \`config.log' for more details." >&5
3098echo "$as_me: error: cannot compute suffix of object files: cannot compile
3099See \`config.log' for more details." >&2;}
3100   { (exit 1); exit 1; }; }
3101fi
3102
3103rm -f conftest.$ac_cv_objext conftest.$ac_ext
3104fi
3105{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3106echo "${ECHO_T}$ac_cv_objext" >&6; }
3107OBJEXT=$ac_cv_objext
3108ac_objext=$OBJEXT
3109{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3110echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3111if test "${ac_cv_c_compiler_gnu+set}" = set; then
3112  echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114  cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h.  */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124#ifndef __GNUC__
3125       choke me
3126#endif
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139  (eval "$ac_compile") 2>conftest.er1
3140  ac_status=$?
3141  grep -v '^ *+' conftest.er1 >conftest.err
3142  rm -f conftest.er1
3143  cat conftest.err >&5
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); } &&
3146	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147  { (case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152  (eval "$ac_try") 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; } &&
3156	 { ac_try='test -s conftest.$ac_objext'
3157  { (case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162  (eval "$ac_try") 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; }; then
3166  ac_compiler_gnu=yes
3167else
3168  echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171	ac_compiler_gnu=no
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175ac_cv_c_compiler_gnu=$ac_compiler_gnu
3176
3177fi
3178{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3179echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3180GCC=`test $ac_compiler_gnu = yes && echo yes`
3181ac_test_CFLAGS=${CFLAGS+set}
3182ac_save_CFLAGS=$CFLAGS
3183{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3184echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3185if test "${ac_cv_prog_cc_g+set}" = set; then
3186  echo $ECHO_N "(cached) $ECHO_C" >&6
3187else
3188  ac_save_c_werror_flag=$ac_c_werror_flag
3189   ac_c_werror_flag=yes
3190   ac_cv_prog_cc_g=no
3191   CFLAGS="-g"
3192   cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (ac_try="$ac_compile"
3209case "(($ac_try" in
3210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211  *) ac_try_echo=$ac_try;;
3212esac
3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214  (eval "$ac_compile") 2>conftest.er1
3215  ac_status=$?
3216  grep -v '^ *+' conftest.er1 >conftest.err
3217  rm -f conftest.er1
3218  cat conftest.err >&5
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } &&
3221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3222  { (case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227  (eval "$ac_try") 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; } &&
3231	 { ac_try='test -s conftest.$ac_objext'
3232  { (case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237  (eval "$ac_try") 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); }; }; then
3241  ac_cv_prog_cc_g=yes
3242else
3243  echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246	CFLAGS=""
3247      cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h.  */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (ac_try="$ac_compile"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269  (eval "$ac_compile") 2>conftest.er1
3270  ac_status=$?
3271  grep -v '^ *+' conftest.er1 >conftest.err
3272  rm -f conftest.er1
3273  cat conftest.err >&5
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); } &&
3276	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3277  { (case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282  (eval "$ac_try") 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; } &&
3286	 { ac_try='test -s conftest.$ac_objext'
3287  { (case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292  (eval "$ac_try") 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }; }; then
3296  :
3297else
3298  echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301	ac_c_werror_flag=$ac_save_c_werror_flag
3302	 CFLAGS="-g"
3303	 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h.  */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h.  */
3309
3310int
3311main ()
3312{
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (ac_try="$ac_compile"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325  (eval "$ac_compile") 2>conftest.er1
3326  ac_status=$?
3327  grep -v '^ *+' conftest.er1 >conftest.err
3328  rm -f conftest.er1
3329  cat conftest.err >&5
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); } &&
3332	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333  { (case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338  (eval "$ac_try") 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; } &&
3342	 { ac_try='test -s conftest.$ac_objext'
3343  { (case "(($ac_try" in
3344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345  *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348  (eval "$ac_try") 2>&5
3349  ac_status=$?
3350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351  (exit $ac_status); }; }; then
3352  ac_cv_prog_cc_g=yes
3353else
3354  echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357
3358fi
3359
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361fi
3362
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367   ac_c_werror_flag=$ac_save_c_werror_flag
3368fi
3369{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3370echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3371if test "$ac_test_CFLAGS" = set; then
3372  CFLAGS=$ac_save_CFLAGS
3373elif test $ac_cv_prog_cc_g = yes; then
3374  if test "$GCC" = yes; then
3375    CFLAGS="-g -O2"
3376  else
3377    CFLAGS="-g"
3378  fi
3379else
3380  if test "$GCC" = yes; then
3381    CFLAGS="-O2"
3382  else
3383    CFLAGS=
3384  fi
3385fi
3386{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3387echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3388if test "${ac_cv_prog_cc_c89+set}" = set; then
3389  echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391  ac_cv_prog_cc_c89=no
3392ac_save_CC=$CC
3393cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399#include <stdarg.h>
3400#include <stdio.h>
3401#include <sys/types.h>
3402#include <sys/stat.h>
3403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3404struct buf { int x; };
3405FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406static char *e (p, i)
3407     char **p;
3408     int i;
3409{
3410  return p[i];
3411}
3412static char *f (char * (*g) (char **, int), char **p, ...)
3413{
3414  char *s;
3415  va_list v;
3416  va_start (v,p);
3417  s = g (p, va_arg (v,int));
3418  va_end (v);
3419  return s;
3420}
3421
3422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3423   function prototypes and stuff, but not '\xHH' hex character constants.
3424   These don't provoke an error unfortunately, instead are silently treated
3425   as 'x'.  The following induces an error, until -std is added to get
3426   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3427   array size at least.  It's necessary to write '\x00'==0 to get something
3428   that's true only with -std.  */
3429int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430
3431/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432   inside strings and character constants.  */
3433#define FOO(x) 'x'
3434int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435
3436int test (int i, double x);
3437struct s1 {int (*f) (int a);};
3438struct s2 {int (*f) (double a);};
3439int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440int argc;
3441char **argv;
3442int
3443main ()
3444{
3445return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452do
3453  CC="$ac_save_CC $ac_arg"
3454  rm -f conftest.$ac_objext
3455if { (ac_try="$ac_compile"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461  (eval "$ac_compile") 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } &&
3468	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3469  { (case "(($ac_try" in
3470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471  *) ac_try_echo=$ac_try;;
3472esac
3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474  (eval "$ac_try") 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; } &&
3478	 { ac_try='test -s conftest.$ac_objext'
3479  { (case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484  (eval "$ac_try") 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }; }; then
3488  ac_cv_prog_cc_c89=$ac_arg
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493
3494fi
3495
3496rm -f core conftest.err conftest.$ac_objext
3497  test "x$ac_cv_prog_cc_c89" != "xno" && break
3498done
3499rm -f conftest.$ac_ext
3500CC=$ac_save_CC
3501
3502fi
3503# AC_CACHE_VAL
3504case "x$ac_cv_prog_cc_c89" in
3505  x)
3506    { echo "$as_me:$LINENO: result: none needed" >&5
3507echo "${ECHO_T}none needed" >&6; } ;;
3508  xno)
3509    { echo "$as_me:$LINENO: result: unsupported" >&5
3510echo "${ECHO_T}unsupported" >&6; } ;;
3511  *)
3512    CC="$CC $ac_cv_prog_cc_c89"
3513    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3515esac
3516
3517
3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
3525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3532# On Suns, sometimes $CPP names a directory.
3533if test -n "$CPP" && test -d "$CPP"; then
3534  CPP=
3535fi
3536if test -z "$CPP"; then
3537  if test "${ac_cv_prog_CPP+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540      # Double quotes because CPP needs to be expanded
3541    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542    do
3543      ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563		     Syntax error
3564_ACEOF
3565if { (ac_try="$ac_cpp conftest.$ac_ext"
3566case "(($ac_try" in
3567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568  *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572  ac_status=$?
3573  grep -v '^ *+' conftest.er1 >conftest.err
3574  rm -f conftest.er1
3575  cat conftest.err >&5
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); } >/dev/null; then
3578  if test -s conftest.err; then
3579    ac_cpp_err=$ac_c_preproc_warn_flag
3580    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581  else
3582    ac_cpp_err=
3583  fi
3584else
3585  ac_cpp_err=yes
3586fi
3587if test -z "$ac_cpp_err"; then
3588  :
3589else
3590  echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593  # Broken: fails on valid input.
3594continue
3595fi
3596
3597rm -f conftest.err conftest.$ac_ext
3598
3599  # OK, works on sane cases.  Now check whether nonexistent headers
3600  # can be detected and how.
3601  cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607#include <ac_nonexistent.h>
3608_ACEOF
3609if { (ac_try="$ac_cpp conftest.$ac_ext"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616  ac_status=$?
3617  grep -v '^ *+' conftest.er1 >conftest.err
3618  rm -f conftest.er1
3619  cat conftest.err >&5
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); } >/dev/null; then
3622  if test -s conftest.err; then
3623    ac_cpp_err=$ac_c_preproc_warn_flag
3624    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625  else
3626    ac_cpp_err=
3627  fi
3628else
3629  ac_cpp_err=yes
3630fi
3631if test -z "$ac_cpp_err"; then
3632  # Broken: success on invalid input.
3633continue
3634else
3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638  # Passes both tests.
3639ac_preproc_ok=:
3640break
3641fi
3642
3643rm -f conftest.err conftest.$ac_ext
3644
3645done
3646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647rm -f conftest.err conftest.$ac_ext
3648if $ac_preproc_ok; then
3649  break
3650fi
3651
3652    done
3653    ac_cv_prog_CPP=$CPP
3654
3655fi
3656  CPP=$ac_cv_prog_CPP
3657else
3658  ac_cv_prog_CPP=$CPP
3659fi
3660{ echo "$as_me:$LINENO: result: $CPP" >&5
3661echo "${ECHO_T}$CPP" >&6; }
3662ac_preproc_ok=false
3663for ac_c_preproc_warn_flag in '' yes
3664do
3665  # Use a header file that comes with gcc, so configuring glibc
3666  # with a fresh cross-compiler works.
3667  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668  # <limits.h> exists even on freestanding compilers.
3669  # On the NeXT, cc -E runs the code through the compiler's parser,
3670  # not just through cpp. "Syntax error" is here to catch this case.
3671  cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h.  */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h.  */
3677#ifdef __STDC__
3678# include <limits.h>
3679#else
3680# include <assert.h>
3681#endif
3682		     Syntax error
3683_ACEOF
3684if { (ac_try="$ac_cpp conftest.$ac_ext"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3691  ac_status=$?
3692  grep -v '^ *+' conftest.er1 >conftest.err
3693  rm -f conftest.er1
3694  cat conftest.err >&5
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); } >/dev/null; then
3697  if test -s conftest.err; then
3698    ac_cpp_err=$ac_c_preproc_warn_flag
3699    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3700  else
3701    ac_cpp_err=
3702  fi
3703else
3704  ac_cpp_err=yes
3705fi
3706if test -z "$ac_cpp_err"; then
3707  :
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712  # Broken: fails on valid input.
3713continue
3714fi
3715
3716rm -f conftest.err conftest.$ac_ext
3717
3718  # OK, works on sane cases.  Now check whether nonexistent headers
3719  # can be detected and how.
3720  cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h.  */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h.  */
3726#include <ac_nonexistent.h>
3727_ACEOF
3728if { (ac_try="$ac_cpp conftest.$ac_ext"
3729case "(($ac_try" in
3730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731  *) ac_try_echo=$ac_try;;
3732esac
3733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735  ac_status=$?
3736  grep -v '^ *+' conftest.er1 >conftest.err
3737  rm -f conftest.er1
3738  cat conftest.err >&5
3739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740  (exit $ac_status); } >/dev/null; then
3741  if test -s conftest.err; then
3742    ac_cpp_err=$ac_c_preproc_warn_flag
3743    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744  else
3745    ac_cpp_err=
3746  fi
3747else
3748  ac_cpp_err=yes
3749fi
3750if test -z "$ac_cpp_err"; then
3751  # Broken: success on invalid input.
3752continue
3753else
3754  echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757  # Passes both tests.
3758ac_preproc_ok=:
3759break
3760fi
3761
3762rm -f conftest.err conftest.$ac_ext
3763
3764done
3765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766rm -f conftest.err conftest.$ac_ext
3767if $ac_preproc_ok; then
3768  :
3769else
3770  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771See \`config.log' for more details." >&5
3772echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773See \`config.log' for more details." >&2;}
3774   { (exit 1); exit 1; }; }
3775fi
3776
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783
3784{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3786if test "${ac_cv_path_GREP+set}" = set; then
3787  echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789  # Extract the first word of "grep ggrep" to use in msg output
3790if test -z "$GREP"; then
3791set dummy grep ggrep; ac_prog_name=$2
3792if test "${ac_cv_path_GREP+set}" = set; then
3793  echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795  ac_path_GREP_found=false
3796# Loop through the user's path and test for each of PROGNAME-LIST
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799do
3800  IFS=$as_save_IFS
3801  test -z "$as_dir" && as_dir=.
3802  for ac_prog in grep ggrep; do
3803  for ac_exec_ext in '' $ac_executable_extensions; do
3804    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3806    # Check for GNU ac_path_GREP and select it if it is found.
3807  # Check for GNU $ac_path_GREP
3808case `"$ac_path_GREP" --version 2>&1` in
3809*GNU*)
3810  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811*)
3812  ac_count=0
3813  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814  while :
3815  do
3816    cat "conftest.in" "conftest.in" >"conftest.tmp"
3817    mv "conftest.tmp" "conftest.in"
3818    cp "conftest.in" "conftest.nl"
3819    echo 'GREP' >> "conftest.nl"
3820    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822    ac_count=`expr $ac_count + 1`
3823    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824      # Best one so far, save it but keep looking for a better one
3825      ac_cv_path_GREP="$ac_path_GREP"
3826      ac_path_GREP_max=$ac_count
3827    fi
3828    # 10*(2^10) chars as input seems more than enough
3829    test $ac_count -gt 10 && break
3830  done
3831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832esac
3833
3834
3835    $ac_path_GREP_found && break 3
3836  done
3837done
3838
3839done
3840IFS=$as_save_IFS
3841
3842
3843fi
3844
3845GREP="$ac_cv_path_GREP"
3846if test -z "$GREP"; then
3847  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849   { (exit 1); exit 1; }; }
3850fi
3851
3852else
3853  ac_cv_path_GREP=$GREP
3854fi
3855
3856
3857fi
3858{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3861
3862
3863{ echo "$as_me:$LINENO: checking for egrep" >&5
3864echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865if test "${ac_cv_path_EGREP+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869   then ac_cv_path_EGREP="$GREP -E"
3870   else
3871     # Extract the first word of "egrep" to use in msg output
3872if test -z "$EGREP"; then
3873set dummy egrep; ac_prog_name=$2
3874if test "${ac_cv_path_EGREP+set}" = set; then
3875  echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877  ac_path_EGREP_found=false
3878# Loop through the user's path and test for each of PROGNAME-LIST
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884  for ac_prog in egrep; do
3885  for ac_exec_ext in '' $ac_executable_extensions; do
3886    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3887    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3888    # Check for GNU ac_path_EGREP and select it if it is found.
3889  # Check for GNU $ac_path_EGREP
3890case `"$ac_path_EGREP" --version 2>&1` in
3891*GNU*)
3892  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3893*)
3894  ac_count=0
3895  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896  while :
3897  do
3898    cat "conftest.in" "conftest.in" >"conftest.tmp"
3899    mv "conftest.tmp" "conftest.in"
3900    cp "conftest.in" "conftest.nl"
3901    echo 'EGREP' >> "conftest.nl"
3902    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904    ac_count=`expr $ac_count + 1`
3905    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906      # Best one so far, save it but keep looking for a better one
3907      ac_cv_path_EGREP="$ac_path_EGREP"
3908      ac_path_EGREP_max=$ac_count
3909    fi
3910    # 10*(2^10) chars as input seems more than enough
3911    test $ac_count -gt 10 && break
3912  done
3913  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914esac
3915
3916
3917    $ac_path_EGREP_found && break 3
3918  done
3919done
3920
3921done
3922IFS=$as_save_IFS
3923
3924
3925fi
3926
3927EGREP="$ac_cv_path_EGREP"
3928if test -z "$EGREP"; then
3929  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931   { (exit 1); exit 1; }; }
3932fi
3933
3934else
3935  ac_cv_path_EGREP=$EGREP
3936fi
3937
3938
3939   fi
3940fi
3941{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3944
3945
3946{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3948if test "${ac_cv_header_stdc+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951  cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h.  */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h.  */
3957#include <stdlib.h>
3958#include <stdarg.h>
3959#include <string.h>
3960#include <float.h>
3961
3962int
3963main ()
3964{
3965
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970rm -f conftest.$ac_objext
3971if { (ac_try="$ac_compile"
3972case "(($ac_try" in
3973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974  *) ac_try_echo=$ac_try;;
3975esac
3976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977  (eval "$ac_compile") 2>conftest.er1
3978  ac_status=$?
3979  grep -v '^ *+' conftest.er1 >conftest.err
3980  rm -f conftest.er1
3981  cat conftest.err >&5
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); } &&
3984	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985  { (case "(($ac_try" in
3986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987  *) ac_try_echo=$ac_try;;
3988esac
3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990  (eval "$ac_try") 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; } &&
3994	 { ac_try='test -s conftest.$ac_objext'
3995  { (case "(($ac_try" in
3996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997  *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000  (eval "$ac_try") 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; }; then
4004  ac_cv_header_stdc=yes
4005else
4006  echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009	ac_cv_header_stdc=no
4010fi
4011
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013
4014if test $ac_cv_header_stdc = yes; then
4015  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4016  cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h.  */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h.  */
4022#include <string.h>
4023
4024_ACEOF
4025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026  $EGREP "memchr" >/dev/null 2>&1; then
4027  :
4028else
4029  ac_cv_header_stdc=no
4030fi
4031rm -f conftest*
4032
4033fi
4034
4035if test $ac_cv_header_stdc = yes; then
4036  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4037  cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h.  */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h.  */
4043#include <stdlib.h>
4044
4045_ACEOF
4046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047  $EGREP "free" >/dev/null 2>&1; then
4048  :
4049else
4050  ac_cv_header_stdc=no
4051fi
4052rm -f conftest*
4053
4054fi
4055
4056if test $ac_cv_header_stdc = yes; then
4057  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4058  if test "$cross_compiling" = yes; then
4059  :
4060else
4061  cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h.  */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h.  */
4067#include <ctype.h>
4068#include <stdlib.h>
4069#if ((' ' & 0x0FF) == 0x020)
4070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072#else
4073# define ISLOWER(c) \
4074		   (('a' <= (c) && (c) <= 'i') \
4075		     || ('j' <= (c) && (c) <= 'r') \
4076		     || ('s' <= (c) && (c) <= 'z'))
4077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4078#endif
4079
4080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4081int
4082main ()
4083{
4084  int i;
4085  for (i = 0; i < 256; i++)
4086    if (XOR (islower (i), ISLOWER (i))
4087	|| toupper (i) != TOUPPER (i))
4088      return 2;
4089  return 0;
4090}
4091_ACEOF
4092rm -f conftest$ac_exeext
4093if { (ac_try="$ac_link"
4094case "(($ac_try" in
4095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096  *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099  (eval "$ac_link") 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4103  { (case "(($ac_try" in
4104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105  *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108  (eval "$ac_try") 2>&5
4109  ac_status=$?
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); }; }; then
4112  :
4113else
4114  echo "$as_me: program exited with status $ac_status" >&5
4115echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
4118( exit $ac_status )
4119ac_cv_header_stdc=no
4120fi
4121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4122fi
4123
4124
4125fi
4126fi
4127{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4128echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4129if test $ac_cv_header_stdc = yes; then
4130
4131cat >>confdefs.h <<\_ACEOF
4132#define STDC_HEADERS 1
4133_ACEOF
4134
4135fi
4136
4137# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4148		  inttypes.h stdint.h unistd.h
4149do
4150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h.  */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h.  */
4162$ac_includes_default
4163
4164#include <$ac_header>
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170  *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173  (eval "$ac_compile") 2>conftest.er1
4174  ac_status=$?
4175  grep -v '^ *+' conftest.er1 >conftest.err
4176  rm -f conftest.er1
4177  cat conftest.err >&5
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); } &&
4180	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181  { (case "(($ac_try" in
4182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183  *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186  (eval "$ac_try") 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; } &&
4190	 { ac_try='test -s conftest.$ac_objext'
4191  { (case "(($ac_try" in
4192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193  *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196  (eval "$ac_try") 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); }; }; then
4200  eval "$as_ac_Header=yes"
4201else
4202  echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205	eval "$as_ac_Header=no"
4206fi
4207
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209fi
4210ac_res=`eval echo '${'$as_ac_Header'}'`
4211	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4212echo "${ECHO_T}$ac_res" >&6; }
4213if test `eval echo '${'$as_ac_Header'}'` = yes; then
4214  cat >>confdefs.h <<_ACEOF
4215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4216_ACEOF
4217
4218fi
4219
4220done
4221
4222
4223{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4224echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4225if test "${ac_cv_c_bigendian+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  # See if sys/param.h defines the BYTE_ORDER macro.
4229cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h.  */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h.  */
4235#include <sys/types.h>
4236#include <sys/param.h>
4237
4238int
4239main ()
4240{
4241#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4242 bogus endian macros
4243#endif
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253  *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256  (eval "$ac_compile") 2>conftest.er1
4257  ac_status=$?
4258  grep -v '^ *+' conftest.er1 >conftest.err
4259  rm -f conftest.er1
4260  cat conftest.err >&5
4261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262  (exit $ac_status); } &&
4263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264  { (case "(($ac_try" in
4265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266  *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269  (eval "$ac_try") 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); }; } &&
4273	 { ac_try='test -s conftest.$ac_objext'
4274  { (case "(($ac_try" in
4275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276  *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279  (eval "$ac_try") 2>&5
4280  ac_status=$?
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); }; }; then
4283  # It does; now see whether it defined to BIG_ENDIAN or not.
4284cat >conftest.$ac_ext <<_ACEOF
4285/* confdefs.h.  */
4286_ACEOF
4287cat confdefs.h >>conftest.$ac_ext
4288cat >>conftest.$ac_ext <<_ACEOF
4289/* end confdefs.h.  */
4290#include <sys/types.h>
4291#include <sys/param.h>
4292
4293int
4294main ()
4295{
4296#if BYTE_ORDER != BIG_ENDIAN
4297 not big endian
4298#endif
4299
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (ac_try="$ac_compile"
4306case "(($ac_try" in
4307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308  *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311  (eval "$ac_compile") 2>conftest.er1
4312  ac_status=$?
4313  grep -v '^ *+' conftest.er1 >conftest.err
4314  rm -f conftest.er1
4315  cat conftest.err >&5
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); } &&
4318	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319  { (case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324  (eval "$ac_try") 2>&5
4325  ac_status=$?
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); }; } &&
4328	 { ac_try='test -s conftest.$ac_objext'
4329  { (case "(($ac_try" in
4330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331  *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334  (eval "$ac_try") 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; }; then
4338  ac_cv_c_bigendian=yes
4339else
4340  echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343	ac_cv_c_bigendian=no
4344fi
4345
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347else
4348  echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351	# It does not; compile a test program.
4352if test "$cross_compiling" = yes; then
4353  # try to guess the endianness by grepping values into an object file
4354  ac_cv_c_bigendian=unknown
4355  cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h.  */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h.  */
4361short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4362short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4363void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4364short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4365short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4366void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4367int
4368main ()
4369{
4370 _ascii (); _ebcdic ();
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375rm -f conftest.$ac_objext
4376if { (ac_try="$ac_compile"
4377case "(($ac_try" in
4378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379  *) ac_try_echo=$ac_try;;
4380esac
4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382  (eval "$ac_compile") 2>conftest.er1
4383  ac_status=$?
4384  grep -v '^ *+' conftest.er1 >conftest.err
4385  rm -f conftest.er1
4386  cat conftest.err >&5
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } &&
4389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390  { (case "(($ac_try" in
4391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392  *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395  (eval "$ac_try") 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399	 { ac_try='test -s conftest.$ac_objext'
4400  { (case "(($ac_try" in
4401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402  *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405  (eval "$ac_try") 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; }; then
4409  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4410  ac_cv_c_bigendian=yes
4411fi
4412if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4413  if test "$ac_cv_c_bigendian" = unknown; then
4414    ac_cv_c_bigendian=no
4415  else
4416    # finding both strings is unlikely to happen, but who knows?
4417    ac_cv_c_bigendian=unknown
4418  fi
4419fi
4420else
4421  echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424
4425fi
4426
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428else
4429  cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h.  */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h.  */
4435$ac_includes_default
4436int
4437main ()
4438{
4439
4440  /* Are we little or big endian?  From Harbison&Steele.  */
4441  union
4442  {
4443    long int l;
4444    char c[sizeof (long int)];
4445  } u;
4446  u.l = 1;
4447  return u.c[sizeof (long int) - 1] == 1;
4448
4449  ;
4450  return 0;
4451}
4452_ACEOF
4453rm -f conftest$ac_exeext
4454if { (ac_try="$ac_link"
4455case "(($ac_try" in
4456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457  *) ac_try_echo=$ac_try;;
4458esac
4459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460  (eval "$ac_link") 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4464  { (case "(($ac_try" in
4465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466  *) ac_try_echo=$ac_try;;
4467esac
4468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469  (eval "$ac_try") 2>&5
4470  ac_status=$?
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); }; }; then
4473  ac_cv_c_bigendian=no
4474else
4475  echo "$as_me: program exited with status $ac_status" >&5
4476echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479( exit $ac_status )
4480ac_cv_c_bigendian=yes
4481fi
4482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483fi
4484
4485
4486fi
4487
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489fi
4490{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4491echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4492case $ac_cv_c_bigendian in
4493  yes)
4494    ENDIAN=big
4495 ;;
4496  no)
4497    ENDIAN=little
4498 ;;
4499  *)
4500    { { echo "$as_me:$LINENO: error: unknown endianness
4501presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4502echo "$as_me: error: unknown endianness
4503presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4504   { (exit 1); exit 1; }; } ;;
4505esac
4506
4507
4508if test "$cross_compiling" = yes; then
4509  LLVM_CROSS_COMPILING=1
4510
4511
4512{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4513echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4514if test "${ac_cv_build_exeext+set}" = set; then
4515  echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4518  ac_cv_build_exeext=.exe
4519else
4520  ac_build_prefix=${build_alias}-
4521
4522  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4523set dummy ${ac_build_prefix}gcc; ac_word=$2
4524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4527  echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529  if test -n "$BUILD_CC"; then
4530  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4531else
4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535  IFS=$as_save_IFS
4536  test -z "$as_dir" && as_dir=.
4537  for ac_exec_ext in '' $ac_executable_extensions; do
4538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4539    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541    break 2
4542  fi
4543done
4544done
4545IFS=$as_save_IFS
4546
4547fi
4548fi
4549BUILD_CC=$ac_cv_prog_BUILD_CC
4550if test -n "$BUILD_CC"; then
4551  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4552echo "${ECHO_T}$BUILD_CC" >&6; }
4553else
4554  { echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6; }
4556fi
4557
4558
4559  if test -z "$BUILD_CC"; then
4560     # Extract the first word of "gcc", so it can be a program name with args.
4561set dummy gcc; ac_word=$2
4562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4564if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567  if test -n "$BUILD_CC"; then
4568  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4569else
4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571for as_dir in $PATH
4572do
4573  IFS=$as_save_IFS
4574  test -z "$as_dir" && as_dir=.
4575  for ac_exec_ext in '' $ac_executable_extensions; do
4576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4577    ac_cv_prog_BUILD_CC="gcc"
4578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579    break 2
4580  fi
4581done
4582done
4583IFS=$as_save_IFS
4584
4585fi
4586fi
4587BUILD_CC=$ac_cv_prog_BUILD_CC
4588if test -n "$BUILD_CC"; then
4589  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4590echo "${ECHO_T}$BUILD_CC" >&6; }
4591else
4592  { echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6; }
4594fi
4595
4596
4597     if test -z "$BUILD_CC"; then
4598       # Extract the first word of "cc", so it can be a program name with args.
4599set dummy cc; ac_word=$2
4600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4602if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  if test -n "$BUILD_CC"; then
4606  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4607else
4608  ac_prog_rejected=no
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612  IFS=$as_save_IFS
4613  test -z "$as_dir" && as_dir=.
4614  for ac_exec_ext in '' $ac_executable_extensions; do
4615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4617       ac_prog_rejected=yes
4618       continue
4619     fi
4620    ac_cv_prog_BUILD_CC="cc"
4621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622    break 2
4623  fi
4624done
4625done
4626IFS=$as_save_IFS
4627
4628if test $ac_prog_rejected = yes; then
4629  # We found a bogon in the path, so make sure we never use it.
4630  set dummy $ac_cv_prog_BUILD_CC
4631  shift
4632  if test $# != 0; then
4633    # We chose a different compiler from the bogus one.
4634    # However, it has the same basename, so the bogon will be chosen
4635    # first if we set BUILD_CC to just the basename; use the full file name.
4636    shift
4637    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4638  fi
4639fi
4640fi
4641fi
4642BUILD_CC=$ac_cv_prog_BUILD_CC
4643if test -n "$BUILD_CC"; then
4644  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645echo "${ECHO_T}$BUILD_CC" >&6; }
4646else
4647  { echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6; }
4649fi
4650
4651
4652     fi
4653  fi
4654  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4655echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4656   { (exit 1); exit 1; }; }
4657  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4658  rm -f conftest*
4659  echo 'int main () { return 0; }' > conftest.$ac_ext
4660  ac_cv_build_exeext=
4661  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4662  (eval $ac_build_link) 2>&5
4663  ac_status=$?
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); }; then
4666    for file in conftest.*; do
4667      case $file in
4668      *.c | *.o | *.obj | *.dSYM) ;;
4669      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4670      esac
4671    done
4672  else
4673    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4674echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4675   { (exit 1); exit 1; }; }
4676  fi
4677  rm -f conftest*
4678  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4679fi
4680fi
4681
4682BUILD_EXEEXT=""
4683test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4684{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4685echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4686ac_build_exeext=$BUILD_EXEEXT
4687
4688  ac_build_prefix=${build_alias}-
4689  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4690set dummy ${ac_build_prefix}g++; ac_word=$2
4691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4694  echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696  if test -n "$BUILD_CXX"; then
4697  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4698else
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704  for ac_exec_ext in '' $ac_executable_extensions; do
4705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708    break 2
4709  fi
4710done
4711done
4712IFS=$as_save_IFS
4713
4714fi
4715fi
4716BUILD_CXX=$ac_cv_prog_BUILD_CXX
4717if test -n "$BUILD_CXX"; then
4718  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4719echo "${ECHO_T}$BUILD_CXX" >&6; }
4720else
4721  { echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6; }
4723fi
4724
4725
4726  if test -z "$BUILD_CXX"; then
4727     # Extract the first word of "g++", so it can be a program name with args.
4728set dummy g++; ac_word=$2
4729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4732  echo $ECHO_N "(cached) $ECHO_C" >&6
4733else
4734  if test -n "$BUILD_CXX"; then
4735  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742  for ac_exec_ext in '' $ac_executable_extensions; do
4743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4744    ac_cv_prog_BUILD_CXX="g++"
4745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754BUILD_CXX=$ac_cv_prog_BUILD_CXX
4755if test -n "$BUILD_CXX"; then
4756  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4757echo "${ECHO_T}$BUILD_CXX" >&6; }
4758else
4759  { echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6; }
4761fi
4762
4763
4764     if test -z "$BUILD_CXX"; then
4765       # Extract the first word of "c++", so it can be a program name with args.
4766set dummy c++; ac_word=$2
4767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4770  echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772  if test -n "$BUILD_CXX"; then
4773  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4774else
4775  ac_prog_rejected=no
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779  IFS=$as_save_IFS
4780  test -z "$as_dir" && as_dir=.
4781  for ac_exec_ext in '' $ac_executable_extensions; do
4782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4783    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4784       ac_prog_rejected=yes
4785       continue
4786     fi
4787    ac_cv_prog_BUILD_CXX="c++"
4788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795if test $ac_prog_rejected = yes; then
4796  # We found a bogon in the path, so make sure we never use it.
4797  set dummy $ac_cv_prog_BUILD_CXX
4798  shift
4799  if test $# != 0; then
4800    # We chose a different compiler from the bogus one.
4801    # However, it has the same basename, so the bogon will be chosen
4802    # first if we set BUILD_CXX to just the basename; use the full file name.
4803    shift
4804    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4805  fi
4806fi
4807fi
4808fi
4809BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810if test -n "$BUILD_CXX"; then
4811  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812echo "${ECHO_T}$BUILD_CXX" >&6; }
4813else
4814  { echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6; }
4816fi
4817
4818
4819     fi
4820  fi
4821else
4822  LLVM_CROSS_COMPILING=0
4823
4824fi
4825
4826if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4827  cvsbuild="yes"
4828  optimize="no"
4829  CVSBUILD=CVSBUILD=1
4830
4831else
4832  cvsbuild="no"
4833  optimize="yes"
4834fi
4835
4836
4837# Check whether --enable-optimized was given.
4838if test "${enable_optimized+set}" = set; then
4839  enableval=$enable_optimized;
4840else
4841  enableval=$optimize
4842fi
4843
4844if test ${enableval} = "no" ; then
4845  ENABLE_OPTIMIZED=
4846
4847else
4848  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4849
4850fi
4851
4852# Check whether --enable-profiling was given.
4853if test "${enable_profiling+set}" = set; then
4854  enableval=$enable_profiling;
4855else
4856  enableval="no"
4857fi
4858
4859if test ${enableval} = "no" ; then
4860  ENABLE_PROFILING=
4861
4862else
4863  ENABLE_PROFILING=ENABLE_PROFILING=1
4864
4865fi
4866
4867# Check whether --enable-assertions was given.
4868if test "${enable_assertions+set}" = set; then
4869  enableval=$enable_assertions;
4870else
4871  enableval="yes"
4872fi
4873
4874if test ${enableval} = "yes" ; then
4875  DISABLE_ASSERTIONS=
4876
4877else
4878  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4879
4880fi
4881
4882# Check whether --enable-expensive-checks was given.
4883if test "${enable_expensive_checks+set}" = set; then
4884  enableval=$enable_expensive_checks;
4885else
4886  enableval="no"
4887fi
4888
4889if test ${enableval} = "yes" ; then
4890  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4891
4892  EXPENSIVE_CHECKS=yes
4893
4894else
4895  ENABLE_EXPENSIVE_CHECKS=
4896
4897  EXPENSIVE_CHECKS=no
4898
4899fi
4900
4901# Check whether --enable-debug-runtime was given.
4902if test "${enable_debug_runtime+set}" = set; then
4903  enableval=$enable_debug_runtime;
4904else
4905  enableval=no
4906fi
4907
4908if test ${enableval} = "no" ; then
4909  DEBUG_RUNTIME=
4910
4911else
4912  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4913
4914fi
4915
4916# Check whether --enable-debug-symbols was given.
4917if test "${enable_debug_symbols+set}" = set; then
4918  enableval=$enable_debug_symbols;
4919else
4920  enableval=no
4921fi
4922
4923if test ${enableval} = "no" ; then
4924  DEBUG_SYMBOLS=
4925
4926else
4927  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4928
4929fi
4930
4931# Check whether --enable-jit was given.
4932if test "${enable_jit+set}" = set; then
4933  enableval=$enable_jit;
4934else
4935  enableval=default
4936fi
4937
4938if test ${enableval} = "no"
4939then
4940  JIT=
4941
4942else
4943  case "$llvm_cv_target_arch" in
4944    x86)         TARGET_HAS_JIT=1
4945 ;;
4946    Sparc)       TARGET_HAS_JIT=0
4947 ;;
4948    PowerPC)     TARGET_HAS_JIT=1
4949 ;;
4950    x86_64)      TARGET_HAS_JIT=1
4951 ;;
4952    Alpha)       TARGET_HAS_JIT=1
4953 ;;
4954    ARM)         TARGET_HAS_JIT=1
4955 ;;
4956    Mips)        TARGET_HAS_JIT=0
4957 ;;
4958    PIC16)       TARGET_HAS_JIT=0
4959 ;;
4960    XCore)       TARGET_HAS_JIT=0
4961 ;;
4962    MSP430)      TARGET_HAS_JIT=0
4963 ;;
4964    SystemZ)     TARGET_HAS_JIT=0
4965 ;;
4966    Blackfin)    TARGET_HAS_JIT=0
4967 ;;
4968    *)           TARGET_HAS_JIT=0
4969 ;;
4970  esac
4971fi
4972
4973# Check whether --enable-doxygen was given.
4974if test "${enable_doxygen+set}" = set; then
4975  enableval=$enable_doxygen;
4976else
4977  enableval=default
4978fi
4979
4980case "$enableval" in
4981  yes) ENABLE_DOXYGEN=1
4982 ;;
4983  no)  ENABLE_DOXYGEN=0
4984 ;;
4985  default) ENABLE_DOXYGEN=0
4986 ;;
4987  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4988echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4989   { (exit 1); exit 1; }; } ;;
4990esac
4991
4992# Check whether --enable-threads was given.
4993if test "${enable_threads+set}" = set; then
4994  enableval=$enable_threads;
4995else
4996  enableval=default
4997fi
4998
4999case "$enableval" in
5000  yes) ENABLE_THREADS=1
5001 ;;
5002  no)  ENABLE_THREADS=0
5003 ;;
5004  default) ENABLE_THREADS=1
5005 ;;
5006  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5007echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5008   { (exit 1); exit 1; }; } ;;
5009esac
5010
5011cat >>confdefs.h <<_ACEOF
5012#define ENABLE_THREADS $ENABLE_THREADS
5013_ACEOF
5014
5015
5016# Check whether --enable-pic was given.
5017if test "${enable_pic+set}" = set; then
5018  enableval=$enable_pic;
5019else
5020  enableval=default
5021fi
5022
5023case "$enableval" in
5024  yes) ENABLE_PIC=1
5025 ;;
5026  no)  ENABLE_PIC=0
5027 ;;
5028  default) ENABLE_PIC=1
5029 ;;
5030  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5031echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5032   { (exit 1); exit 1; }; } ;;
5033esac
5034
5035cat >>confdefs.h <<_ACEOF
5036#define ENABLE_PIC $ENABLE_PIC
5037_ACEOF
5038
5039
5040TARGETS_TO_BUILD=""
5041# Check whether --enable-targets was given.
5042if test "${enable_targets+set}" = set; then
5043  enableval=$enable_targets;
5044else
5045  enableval=all
5046fi
5047
5048if test "$enableval" = host-only ; then
5049  enableval=host
5050fi
5051case "$enableval" in
5052  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5053  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5054      case "$a_target" in
5055        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5057        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5058        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5059        alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5060        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5061        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5062        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5063        pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5064        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5065        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5066        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5067        blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5068        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5069        msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5070        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5071        host) case "$llvm_cv_target_arch" in
5072            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5074            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5075            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5076            Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5077            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5078            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5079            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5080            PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5081            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5082            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5083            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5084            Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5085            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5086echo "$as_me: error: Can not set target to build" >&2;}
5087   { (exit 1); exit 1; }; } ;;
5088          esac ;;
5089        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5090echo "$as_me: error: Unrecognized target $a_target" >&2;}
5091   { (exit 1); exit 1; }; } ;;
5092      esac
5093  done
5094  ;;
5095esac
5096TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5097
5098
5099# Determine whether we are building LLVM support for the native architecture.
5100# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5101for a_target in $TARGETS_TO_BUILD; do
5102  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5103    LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5104
5105cat >>confdefs.h <<_ACEOF
5106#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5107_ACEOF
5108
5109  fi
5110done
5111
5112# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5113# target feature def files.
5114LLVM_ENUM_TARGETS=""
5115LLVM_ENUM_ASM_PRINTERS=""
5116LLVM_ENUM_ASM_PARSERS=""
5117LLVM_ENUM_DISASSEMBLERS=""
5118for target_to_build in $TARGETS_TO_BUILD; do
5119  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5120  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5121    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5122  fi
5123  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5124    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5125  fi
5126  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5127    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5128  fi
5129done
5130
5131
5132
5133
5134
5135# Check whether --enable-cbe-printf-a was given.
5136if test "${enable_cbe_printf_a+set}" = set; then
5137  enableval=$enable_cbe_printf_a;
5138else
5139  enableval=default
5140fi
5141
5142case "$enableval" in
5143  yes) ENABLE_CBE_PRINTF_A=1
5144 ;;
5145  no)  ENABLE_CBE_PRINTF_A=0
5146 ;;
5147  default)  ENABLE_CBE_PRINTF_A=1
5148 ;;
5149  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5150echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5151   { (exit 1); exit 1; }; } ;;
5152esac
5153
5154cat >>confdefs.h <<_ACEOF
5155#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5156_ACEOF
5157
5158
5159
5160# Check whether --with-llvmgccdir was given.
5161if test "${with_llvmgccdir+set}" = set; then
5162  withval=$with_llvmgccdir;
5163else
5164  withval=default
5165fi
5166
5167case "$withval" in
5168  default) WITH_LLVMGCCDIR=default ;;
5169  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5170  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5171echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5172   { (exit 1); exit 1; }; } ;;
5173esac
5174
5175
5176# Check whether --with-llvmgcc was given.
5177if test "${with_llvmgcc+set}" = set; then
5178  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5179      WITH_LLVMGCCDIR=""
5180fi
5181
5182
5183
5184# Check whether --with-llvmgxx was given.
5185if test "${with_llvmgxx+set}" = set; then
5186  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5187    WITH_LLVMGCCDIR=""
5188fi
5189
5190
5191if test -n "$LLVMGCC"; then
5192   LLVMGCCCOMMAND="$LLVMGCC"
5193fi
5194
5195if test -n "$LLVMGXX"; then
5196   LLVMGXXCOMMAND="$LLVMGXX"
5197fi
5198
5199if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5200   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5201echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5202   { (exit 1); exit 1; }; };
5203fi
5204
5205if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5206   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5207echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5208   { (exit 1); exit 1; }; };
5209fi
5210
5211
5212# Check whether --with-optimize-option was given.
5213if test "${with_optimize_option+set}" = set; then
5214  withval=$with_optimize_option;
5215else
5216  withval=default
5217fi
5218
5219{ echo "$as_me:$LINENO: checking optimization flags" >&5
5220echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5221case "$withval" in
5222  default)
5223    case "$llvm_cv_os_type" in
5224    MingW) optimize_option=-O3 ;;
5225    *)     optimize_option=-O2 ;;
5226    esac ;;
5227  *) optimize_option="$withval" ;;
5228esac
5229OPTIMIZE_OPTION=$optimize_option
5230
5231{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5232echo "${ECHO_T}$optimize_option" >&6; }
5233
5234
5235# Check whether --with-extra-options was given.
5236if test "${with_extra_options+set}" = set; then
5237  withval=$with_extra_options;
5238else
5239  withval=default
5240fi
5241
5242case "$withval" in
5243  default) EXTRA_OPTIONS= ;;
5244  *) EXTRA_OPTIONS=$withval ;;
5245esac
5246EXTRA_OPTIONS=$EXTRA_OPTIONS
5247
5248
5249# Check whether --enable-bindings was given.
5250if test "${enable_bindings+set}" = set; then
5251  enableval=$enable_bindings;
5252else
5253  enableval=default
5254fi
5255
5256BINDINGS_TO_BUILD=""
5257case "$enableval" in
5258  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5259  all ) BINDINGS_TO_BUILD="ocaml" ;;
5260  none | no) BINDINGS_TO_BUILD="" ;;
5261  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5262      case "$a_binding" in
5263        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5264        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5265echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5266   { (exit 1); exit 1; }; } ;;
5267      esac
5268  done
5269  ;;
5270esac
5271
5272
5273# Check whether --with-ocaml-libdir was given.
5274if test "${with_ocaml_libdir+set}" = set; then
5275  withval=$with_ocaml_libdir;
5276else
5277  withval=auto
5278fi
5279
5280case "$withval" in
5281  auto) with_ocaml_libdir="$withval" ;;
5282  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5283  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5284echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5285   { (exit 1); exit 1; }; } ;;
5286esac
5287
5288
5289# Check whether --with-c-include-dirs was given.
5290if test "${with_c_include_dirs+set}" = set; then
5291  withval=$with_c_include_dirs;
5292else
5293  withval=""
5294fi
5295
5296
5297cat >>confdefs.h <<_ACEOF
5298#define C_INCLUDE_DIRS "$withval"
5299_ACEOF
5300
5301
5302
5303# Check whether --with-cxx-include-root was given.
5304if test "${with_cxx_include_root+set}" = set; then
5305  withval=$with_cxx_include_root;
5306else
5307  withval=""
5308fi
5309
5310
5311cat >>confdefs.h <<_ACEOF
5312#define CXX_INCLUDE_ROOT "$withval"
5313_ACEOF
5314
5315
5316
5317# Check whether --with-cxx-include-arch was given.
5318if test "${with_cxx_include_arch+set}" = set; then
5319  withval=$with_cxx_include_arch;
5320else
5321  withval=""
5322fi
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define CXX_INCLUDE_ARCH "$withval"
5327_ACEOF
5328
5329
5330
5331# Check whether --with-cxx-include-32bit-dir was given.
5332if test "${with_cxx_include_32bit_dir+set}" = set; then
5333  withval=$with_cxx_include_32bit_dir;
5334else
5335  withval=""
5336fi
5337
5338
5339cat >>confdefs.h <<_ACEOF
5340#define CXX_INCLUDE_32BIT_DIR "$withval"
5341_ACEOF
5342
5343
5344
5345# Check whether --with-cxx-include-64bit-dir was given.
5346if test "${with_cxx_include_64bit_dir+set}" = set; then
5347  withval=$with_cxx_include_64bit_dir;
5348else
5349  withval=""
5350fi
5351
5352
5353cat >>confdefs.h <<_ACEOF
5354#define CXX_INCLUDE_64BIT_DIR "$withval"
5355_ACEOF
5356
5357
5358
5359# Check whether --with-binutils-include was given.
5360if test "${with_binutils_include+set}" = set; then
5361  withval=$with_binutils_include;
5362else
5363  withval=default
5364fi
5365
5366case "$withval" in
5367  default) WITH_BINUTILS_INCDIR=default ;;
5368  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5369  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5370echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5371   { (exit 1); exit 1; }; } ;;
5372esac
5373if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5374  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5375
5376  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5377     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5378     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5379echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5380   { (exit 1); exit 1; }; };
5381  fi
5382fi
5383
5384# Check whether --enable-libffi was given.
5385if test "${enable_libffi+set}" = set; then
5386  enableval=$enable_libffi;
5387else
5388  enableval=yes
5389fi
5390
5391case "$enableval" in
5392  yes) llvm_cv_enable_libffi="yes" ;;
5393  no)  llvm_cv_enable_libffi="no"  ;;
5394  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5395echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5396   { (exit 1); exit 1; }; } ;;
5397esac
5398
5399if test "$llvm_cv_os_type" = "Win32" ; then
5400   llvmc_dynamic="yes"
5401else
5402   llvmc_dynamic="no"
5403fi
5404
5405# Check whether --enable-llvmc-dynamic was given.
5406if test "${enable_llvmc_dynamic+set}" = set; then
5407  enableval=$enable_llvmc_dynamic;
5408else
5409  enableval=$llvmc_dynamic
5410fi
5411
5412if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5413   ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5414
5415else
5416   ENABLE_LLVMC_DYNAMIC=
5417
5418fi
5419
5420# Check whether --enable-llvmc-dynamic-plugins was given.
5421if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5422  enableval=$enable_llvmc_dynamic_plugins;
5423else
5424  enableval=yes
5425fi
5426
5427if test ${enableval} = "yes" ; then
5428   ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5429
5430else
5431   ENABLE_LLVMC_DYNAMIC_PLUGINS=
5432
5433fi
5434
5435
5436ac_ext=c
5437ac_cpp='$CPP $CPPFLAGS'
5438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5442echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5443# On Suns, sometimes $CPP names a directory.
5444if test -n "$CPP" && test -d "$CPP"; then
5445  CPP=
5446fi
5447if test -z "$CPP"; then
5448  if test "${ac_cv_prog_CPP+set}" = set; then
5449  echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451      # Double quotes because CPP needs to be expanded
5452    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5453    do
5454      ac_preproc_ok=false
5455for ac_c_preproc_warn_flag in '' yes
5456do
5457  # Use a header file that comes with gcc, so configuring glibc
5458  # with a fresh cross-compiler works.
5459  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460  # <limits.h> exists even on freestanding compilers.
5461  # On the NeXT, cc -E runs the code through the compiler's parser,
5462  # not just through cpp. "Syntax error" is here to catch this case.
5463  cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469#ifdef __STDC__
5470# include <limits.h>
5471#else
5472# include <assert.h>
5473#endif
5474		     Syntax error
5475_ACEOF
5476if { (ac_try="$ac_cpp conftest.$ac_ext"
5477case "(($ac_try" in
5478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479  *) ac_try_echo=$ac_try;;
5480esac
5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483  ac_status=$?
5484  grep -v '^ *+' conftest.er1 >conftest.err
5485  rm -f conftest.er1
5486  cat conftest.err >&5
5487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488  (exit $ac_status); } >/dev/null; then
5489  if test -s conftest.err; then
5490    ac_cpp_err=$ac_c_preproc_warn_flag
5491    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492  else
5493    ac_cpp_err=
5494  fi
5495else
5496  ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
5499  :
5500else
5501  echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504  # Broken: fails on valid input.
5505continue
5506fi
5507
5508rm -f conftest.err conftest.$ac_ext
5509
5510  # OK, works on sane cases.  Now check whether nonexistent headers
5511  # can be detected and how.
5512  cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h.  */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h.  */
5518#include <ac_nonexistent.h>
5519_ACEOF
5520if { (ac_try="$ac_cpp conftest.$ac_ext"
5521case "(($ac_try" in
5522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523  *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527  ac_status=$?
5528  grep -v '^ *+' conftest.er1 >conftest.err
5529  rm -f conftest.er1
5530  cat conftest.err >&5
5531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); } >/dev/null; then
5533  if test -s conftest.err; then
5534    ac_cpp_err=$ac_c_preproc_warn_flag
5535    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536  else
5537    ac_cpp_err=
5538  fi
5539else
5540  ac_cpp_err=yes
5541fi
5542if test -z "$ac_cpp_err"; then
5543  # Broken: success on invalid input.
5544continue
5545else
5546  echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549  # Passes both tests.
5550ac_preproc_ok=:
5551break
5552fi
5553
5554rm -f conftest.err conftest.$ac_ext
5555
5556done
5557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558rm -f conftest.err conftest.$ac_ext
5559if $ac_preproc_ok; then
5560  break
5561fi
5562
5563    done
5564    ac_cv_prog_CPP=$CPP
5565
5566fi
5567  CPP=$ac_cv_prog_CPP
5568else
5569  ac_cv_prog_CPP=$CPP
5570fi
5571{ echo "$as_me:$LINENO: result: $CPP" >&5
5572echo "${ECHO_T}$CPP" >&6; }
5573ac_preproc_ok=false
5574for ac_c_preproc_warn_flag in '' yes
5575do
5576  # Use a header file that comes with gcc, so configuring glibc
5577  # with a fresh cross-compiler works.
5578  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579  # <limits.h> exists even on freestanding compilers.
5580  # On the NeXT, cc -E runs the code through the compiler's parser,
5581  # not just through cpp. "Syntax error" is here to catch this case.
5582  cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h.  */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h.  */
5588#ifdef __STDC__
5589# include <limits.h>
5590#else
5591# include <assert.h>
5592#endif
5593		     Syntax error
5594_ACEOF
5595if { (ac_try="$ac_cpp conftest.$ac_ext"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602  ac_status=$?
5603  grep -v '^ *+' conftest.er1 >conftest.err
5604  rm -f conftest.er1
5605  cat conftest.err >&5
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); } >/dev/null; then
5608  if test -s conftest.err; then
5609    ac_cpp_err=$ac_c_preproc_warn_flag
5610    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611  else
5612    ac_cpp_err=
5613  fi
5614else
5615  ac_cpp_err=yes
5616fi
5617if test -z "$ac_cpp_err"; then
5618  :
5619else
5620  echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623  # Broken: fails on valid input.
5624continue
5625fi
5626
5627rm -f conftest.err conftest.$ac_ext
5628
5629  # OK, works on sane cases.  Now check whether nonexistent headers
5630  # can be detected and how.
5631  cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h.  */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h.  */
5637#include <ac_nonexistent.h>
5638_ACEOF
5639if { (ac_try="$ac_cpp conftest.$ac_ext"
5640case "(($ac_try" in
5641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642  *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5646  ac_status=$?
5647  grep -v '^ *+' conftest.er1 >conftest.err
5648  rm -f conftest.er1
5649  cat conftest.err >&5
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); } >/dev/null; then
5652  if test -s conftest.err; then
5653    ac_cpp_err=$ac_c_preproc_warn_flag
5654    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5655  else
5656    ac_cpp_err=
5657  fi
5658else
5659  ac_cpp_err=yes
5660fi
5661if test -z "$ac_cpp_err"; then
5662  # Broken: success on invalid input.
5663continue
5664else
5665  echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668  # Passes both tests.
5669ac_preproc_ok=:
5670break
5671fi
5672
5673rm -f conftest.err conftest.$ac_ext
5674
5675done
5676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5677rm -f conftest.err conftest.$ac_ext
5678if $ac_preproc_ok; then
5679  :
5680else
5681  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5682See \`config.log' for more details." >&5
5683echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5684See \`config.log' for more details." >&2;}
5685   { (exit 1); exit 1; }; }
5686fi
5687
5688ac_ext=c
5689ac_cpp='$CPP $CPPFLAGS'
5690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693
5694ac_ext=c
5695ac_cpp='$CPP $CPPFLAGS'
5696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699if test -n "$ac_tool_prefix"; then
5700  for ac_prog in gcc
5701  do
5702    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706if test "${ac_cv_prog_CC+set}" = set; then
5707  echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709  if test -n "$CC"; then
5710  ac_cv_prog_CC="$CC" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  test -z "$as_dir" && as_dir=.
5717  for ac_exec_ext in '' $ac_executable_extensions; do
5718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721    break 2
5722  fi
5723done
5724done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729CC=$ac_cv_prog_CC
5730if test -n "$CC"; then
5731  { echo "$as_me:$LINENO: result: $CC" >&5
5732echo "${ECHO_T}$CC" >&6; }
5733else
5734  { echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6; }
5736fi
5737
5738
5739    test -n "$CC" && break
5740  done
5741fi
5742if test -z "$CC"; then
5743  ac_ct_CC=$CC
5744  for ac_prog in gcc
5745do
5746  # Extract the first word of "$ac_prog", so it can be a program name with args.
5747set dummy $ac_prog; ac_word=$2
5748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5751  echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753  if test -n "$ac_ct_CC"; then
5754  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761  for ac_exec_ext in '' $ac_executable_extensions; do
5762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5763    ac_cv_prog_ac_ct_CC="$ac_prog"
5764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765    break 2
5766  fi
5767done
5768done
5769IFS=$as_save_IFS
5770
5771fi
5772fi
5773ac_ct_CC=$ac_cv_prog_ac_ct_CC
5774if test -n "$ac_ct_CC"; then
5775  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5776echo "${ECHO_T}$ac_ct_CC" >&6; }
5777else
5778  { echo "$as_me:$LINENO: result: no" >&5
5779echo "${ECHO_T}no" >&6; }
5780fi
5781
5782
5783  test -n "$ac_ct_CC" && break
5784done
5785
5786  if test "x$ac_ct_CC" = x; then
5787    CC=""
5788  else
5789    case $cross_compiling:$ac_tool_warned in
5790yes:)
5791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5792whose name does not start with the host triplet.  If you think this
5793configuration is useful to you, please write to autoconf@gnu.org." >&5
5794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5795whose name does not start with the host triplet.  If you think this
5796configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5797ac_tool_warned=yes ;;
5798esac
5799    CC=$ac_ct_CC
5800  fi
5801fi
5802
5803
5804test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5805See \`config.log' for more details." >&5
5806echo "$as_me: error: no acceptable C compiler found in \$PATH
5807See \`config.log' for more details." >&2;}
5808   { (exit 1); exit 1; }; }
5809
5810# Provide some information about the compiler.
5811echo "$as_me:$LINENO: checking for C compiler version" >&5
5812ac_compiler=`set X $ac_compile; echo $2`
5813{ (ac_try="$ac_compiler --version >&5"
5814case "(($ac_try" in
5815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816  *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819  (eval "$ac_compiler --version >&5") 2>&5
5820  ac_status=$?
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); }
5823{ (ac_try="$ac_compiler -v >&5"
5824case "(($ac_try" in
5825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826  *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829  (eval "$ac_compiler -v >&5") 2>&5
5830  ac_status=$?
5831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832  (exit $ac_status); }
5833{ (ac_try="$ac_compiler -V >&5"
5834case "(($ac_try" in
5835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836  *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839  (eval "$ac_compiler -V >&5") 2>&5
5840  ac_status=$?
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); }
5843
5844{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5845echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5846if test "${ac_cv_c_compiler_gnu+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h.  */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h.  */
5855
5856int
5857main ()
5858{
5859#ifndef __GNUC__
5860       choke me
5861#endif
5862
5863  ;
5864  return 0;
5865}
5866_ACEOF
5867rm -f conftest.$ac_objext
5868if { (ac_try="$ac_compile"
5869case "(($ac_try" in
5870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871  *) ac_try_echo=$ac_try;;
5872esac
5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874  (eval "$ac_compile") 2>conftest.er1
5875  ac_status=$?
5876  grep -v '^ *+' conftest.er1 >conftest.err
5877  rm -f conftest.er1
5878  cat conftest.err >&5
5879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880  (exit $ac_status); } &&
5881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882  { (case "(($ac_try" in
5883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884  *) ac_try_echo=$ac_try;;
5885esac
5886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887  (eval "$ac_try") 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; } &&
5891	 { ac_try='test -s conftest.$ac_objext'
5892  { (case "(($ac_try" in
5893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894  *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897  (eval "$ac_try") 2>&5
5898  ac_status=$?
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); }; }; then
5901  ac_compiler_gnu=yes
5902else
5903  echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906	ac_compiler_gnu=no
5907fi
5908
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910ac_cv_c_compiler_gnu=$ac_compiler_gnu
5911
5912fi
5913{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5914echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5915GCC=`test $ac_compiler_gnu = yes && echo yes`
5916ac_test_CFLAGS=${CFLAGS+set}
5917ac_save_CFLAGS=$CFLAGS
5918{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5919echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5920if test "${ac_cv_prog_cc_g+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  ac_save_c_werror_flag=$ac_c_werror_flag
5924   ac_c_werror_flag=yes
5925   ac_cv_prog_cc_g=no
5926   CFLAGS="-g"
5927   cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h.  */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h.  */
5933
5934int
5935main ()
5936{
5937
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946  *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949  (eval "$ac_compile") 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } &&
5956	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5957  { (case "(($ac_try" in
5958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959  *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962  (eval "$ac_try") 2>&5
5963  ac_status=$?
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); }; } &&
5966	 { ac_try='test -s conftest.$ac_objext'
5967  { (case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972  (eval "$ac_try") 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }; }; then
5976  ac_cv_prog_cc_g=yes
5977else
5978  echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981	CFLAGS=""
5982      cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h.  */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h.  */
5988
5989int
5990main ()
5991{
5992
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext
5998if { (ac_try="$ac_compile"
5999case "(($ac_try" in
6000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001  *) ac_try_echo=$ac_try;;
6002esac
6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004  (eval "$ac_compile") 2>conftest.er1
6005  ac_status=$?
6006  grep -v '^ *+' conftest.er1 >conftest.err
6007  rm -f conftest.er1
6008  cat conftest.err >&5
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); } &&
6011	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6012  { (case "(($ac_try" in
6013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014  *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017  (eval "$ac_try") 2>&5
6018  ac_status=$?
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); }; } &&
6021	 { ac_try='test -s conftest.$ac_objext'
6022  { (case "(($ac_try" in
6023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024  *) ac_try_echo=$ac_try;;
6025esac
6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027  (eval "$ac_try") 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); }; }; then
6031  :
6032else
6033  echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036	ac_c_werror_flag=$ac_save_c_werror_flag
6037	 CFLAGS="-g"
6038	 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044
6045int
6046main ()
6047{
6048
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (ac_try="$ac_compile"
6055case "(($ac_try" in
6056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057  *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060  (eval "$ac_compile") 2>conftest.er1
6061  ac_status=$?
6062  grep -v '^ *+' conftest.er1 >conftest.err
6063  rm -f conftest.er1
6064  cat conftest.err >&5
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); } &&
6067	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6068  { (case "(($ac_try" in
6069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070  *) ac_try_echo=$ac_try;;
6071esac
6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073  (eval "$ac_try") 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; } &&
6077	 { ac_try='test -s conftest.$ac_objext'
6078  { (case "(($ac_try" in
6079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080  *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083  (eval "$ac_try") 2>&5
6084  ac_status=$?
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); }; }; then
6087  ac_cv_prog_cc_g=yes
6088else
6089  echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092
6093fi
6094
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102   ac_c_werror_flag=$ac_save_c_werror_flag
6103fi
6104{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6105echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6106if test "$ac_test_CFLAGS" = set; then
6107  CFLAGS=$ac_save_CFLAGS
6108elif test $ac_cv_prog_cc_g = yes; then
6109  if test "$GCC" = yes; then
6110    CFLAGS="-g -O2"
6111  else
6112    CFLAGS="-g"
6113  fi
6114else
6115  if test "$GCC" = yes; then
6116    CFLAGS="-O2"
6117  else
6118    CFLAGS=
6119  fi
6120fi
6121{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6122echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6123if test "${ac_cv_prog_cc_c89+set}" = set; then
6124  echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126  ac_cv_prog_cc_c89=no
6127ac_save_CC=$CC
6128cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h.  */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h.  */
6134#include <stdarg.h>
6135#include <stdio.h>
6136#include <sys/types.h>
6137#include <sys/stat.h>
6138/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6139struct buf { int x; };
6140FILE * (*rcsopen) (struct buf *, struct stat *, int);
6141static char *e (p, i)
6142     char **p;
6143     int i;
6144{
6145  return p[i];
6146}
6147static char *f (char * (*g) (char **, int), char **p, ...)
6148{
6149  char *s;
6150  va_list v;
6151  va_start (v,p);
6152  s = g (p, va_arg (v,int));
6153  va_end (v);
6154  return s;
6155}
6156
6157/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6158   function prototypes and stuff, but not '\xHH' hex character constants.
6159   These don't provoke an error unfortunately, instead are silently treated
6160   as 'x'.  The following induces an error, until -std is added to get
6161   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6162   array size at least.  It's necessary to write '\x00'==0 to get something
6163   that's true only with -std.  */
6164int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6165
6166/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6167   inside strings and character constants.  */
6168#define FOO(x) 'x'
6169int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6170
6171int test (int i, double x);
6172struct s1 {int (*f) (int a);};
6173struct s2 {int (*f) (double a);};
6174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6175int argc;
6176char **argv;
6177int
6178main ()
6179{
6180return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6181  ;
6182  return 0;
6183}
6184_ACEOF
6185for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6186	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6187do
6188  CC="$ac_save_CC $ac_arg"
6189  rm -f conftest.$ac_objext
6190if { (ac_try="$ac_compile"
6191case "(($ac_try" in
6192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193  *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196  (eval "$ac_compile") 2>conftest.er1
6197  ac_status=$?
6198  grep -v '^ *+' conftest.er1 >conftest.err
6199  rm -f conftest.er1
6200  cat conftest.err >&5
6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202  (exit $ac_status); } &&
6203	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6204  { (case "(($ac_try" in
6205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206  *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209  (eval "$ac_try") 2>&5
6210  ac_status=$?
6211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212  (exit $ac_status); }; } &&
6213	 { ac_try='test -s conftest.$ac_objext'
6214  { (case "(($ac_try" in
6215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216  *) ac_try_echo=$ac_try;;
6217esac
6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219  (eval "$ac_try") 2>&5
6220  ac_status=$?
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); }; }; then
6223  ac_cv_prog_cc_c89=$ac_arg
6224else
6225  echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228
6229fi
6230
6231rm -f core conftest.err conftest.$ac_objext
6232  test "x$ac_cv_prog_cc_c89" != "xno" && break
6233done
6234rm -f conftest.$ac_ext
6235CC=$ac_save_CC
6236
6237fi
6238# AC_CACHE_VAL
6239case "x$ac_cv_prog_cc_c89" in
6240  x)
6241    { echo "$as_me:$LINENO: result: none needed" >&5
6242echo "${ECHO_T}none needed" >&6; } ;;
6243  xno)
6244    { echo "$as_me:$LINENO: result: unsupported" >&5
6245echo "${ECHO_T}unsupported" >&6; } ;;
6246  *)
6247    CC="$CC $ac_cv_prog_cc_c89"
6248    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6249echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6250esac
6251
6252
6253ac_ext=c
6254ac_cpp='$CPP $CPPFLAGS'
6255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259ac_ext=cpp
6260ac_cpp='$CXXCPP $CPPFLAGS'
6261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6264if test -z "$CXX"; then
6265  if test -n "$CCC"; then
6266    CXX=$CCC
6267  else
6268    if test -n "$ac_tool_prefix"; then
6269  for ac_prog in g++
6270  do
6271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_prog_CXX+set}" = set; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278  if test -n "$CXX"; then
6279  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286  for ac_exec_ext in '' $ac_executable_extensions; do
6287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298CXX=$ac_cv_prog_CXX
6299if test -n "$CXX"; then
6300  { echo "$as_me:$LINENO: result: $CXX" >&5
6301echo "${ECHO_T}$CXX" >&6; }
6302else
6303  { echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6; }
6305fi
6306
6307
6308    test -n "$CXX" && break
6309  done
6310fi
6311if test -z "$CXX"; then
6312  ac_ct_CXX=$CXX
6313  for ac_prog in g++
6314do
6315  # Extract the first word of "$ac_prog", so it can be a program name with args.
6316set dummy $ac_prog; ac_word=$2
6317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6320  echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322  if test -n "$ac_ct_CXX"; then
6323  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328  IFS=$as_save_IFS
6329  test -z "$as_dir" && as_dir=.
6330  for ac_exec_ext in '' $ac_executable_extensions; do
6331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6332    ac_cv_prog_ac_ct_CXX="$ac_prog"
6333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334    break 2
6335  fi
6336done
6337done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6343if test -n "$ac_ct_CXX"; then
6344  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6345echo "${ECHO_T}$ac_ct_CXX" >&6; }
6346else
6347  { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
6349fi
6350
6351
6352  test -n "$ac_ct_CXX" && break
6353done
6354
6355  if test "x$ac_ct_CXX" = x; then
6356    CXX="g++"
6357  else
6358    case $cross_compiling:$ac_tool_warned in
6359yes:)
6360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6361whose name does not start with the host triplet.  If you think this
6362configuration is useful to you, please write to autoconf@gnu.org." >&5
6363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6364whose name does not start with the host triplet.  If you think this
6365configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368    CXX=$ac_ct_CXX
6369  fi
6370fi
6371
6372  fi
6373fi
6374# Provide some information about the compiler.
6375echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6376ac_compiler=`set X $ac_compile; echo $2`
6377{ (ac_try="$ac_compiler --version >&5"
6378case "(($ac_try" in
6379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380  *) ac_try_echo=$ac_try;;
6381esac
6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383  (eval "$ac_compiler --version >&5") 2>&5
6384  ac_status=$?
6385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386  (exit $ac_status); }
6387{ (ac_try="$ac_compiler -v >&5"
6388case "(($ac_try" in
6389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390  *) ac_try_echo=$ac_try;;
6391esac
6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393  (eval "$ac_compiler -v >&5") 2>&5
6394  ac_status=$?
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); }
6397{ (ac_try="$ac_compiler -V >&5"
6398case "(($ac_try" in
6399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400  *) ac_try_echo=$ac_try;;
6401esac
6402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403  (eval "$ac_compiler -V >&5") 2>&5
6404  ac_status=$?
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); }
6407
6408{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h.  */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h.  */
6419
6420int
6421main ()
6422{
6423#ifndef __GNUC__
6424       choke me
6425#endif
6426
6427  ;
6428  return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext
6432if { (ac_try="$ac_compile"
6433case "(($ac_try" in
6434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435  *) ac_try_echo=$ac_try;;
6436esac
6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438  (eval "$ac_compile") 2>conftest.er1
6439  ac_status=$?
6440  grep -v '^ *+' conftest.er1 >conftest.err
6441  rm -f conftest.er1
6442  cat conftest.err >&5
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } &&
6445	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6446  { (case "(($ac_try" in
6447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448  *) ac_try_echo=$ac_try;;
6449esac
6450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451  (eval "$ac_try") 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; } &&
6455	 { ac_try='test -s conftest.$ac_objext'
6456  { (case "(($ac_try" in
6457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458  *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461  (eval "$ac_try") 2>&5
6462  ac_status=$?
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); }; }; then
6465  ac_compiler_gnu=yes
6466else
6467  echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470	ac_compiler_gnu=no
6471fi
6472
6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6475
6476fi
6477{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6478echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6479GXX=`test $ac_compiler_gnu = yes && echo yes`
6480ac_test_CXXFLAGS=${CXXFLAGS+set}
6481ac_save_CXXFLAGS=$CXXFLAGS
6482{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6483echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6484if test "${ac_cv_prog_cxx_g+set}" = set; then
6485  echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6488   ac_cxx_werror_flag=yes
6489   ac_cv_prog_cxx_g=no
6490   CXXFLAGS="-g"
6491   cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h.  */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
6496/* end confdefs.h.  */
6497
6498int
6499main ()
6500{
6501
6502  ;
6503  return 0;
6504}
6505_ACEOF
6506rm -f conftest.$ac_objext
6507if { (ac_try="$ac_compile"
6508case "(($ac_try" in
6509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510  *) ac_try_echo=$ac_try;;
6511esac
6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513  (eval "$ac_compile") 2>conftest.er1
6514  ac_status=$?
6515  grep -v '^ *+' conftest.er1 >conftest.err
6516  rm -f conftest.er1
6517  cat conftest.err >&5
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); } &&
6520	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6521  { (case "(($ac_try" in
6522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523  *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526  (eval "$ac_try") 2>&5
6527  ac_status=$?
6528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; } &&
6530	 { ac_try='test -s conftest.$ac_objext'
6531  { (case "(($ac_try" in
6532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533  *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536  (eval "$ac_try") 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); }; }; then
6540  ac_cv_prog_cxx_g=yes
6541else
6542  echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545	CXXFLAGS=""
6546      cat >conftest.$ac_ext <<_ACEOF
6547/* confdefs.h.  */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h.  */
6552
6553int
6554main ()
6555{
6556
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext
6562if { (ac_try="$ac_compile"
6563case "(($ac_try" in
6564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565  *) ac_try_echo=$ac_try;;
6566esac
6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568  (eval "$ac_compile") 2>conftest.er1
6569  ac_status=$?
6570  grep -v '^ *+' conftest.er1 >conftest.err
6571  rm -f conftest.er1
6572  cat conftest.err >&5
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); } &&
6575	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6576  { (case "(($ac_try" in
6577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578  *) ac_try_echo=$ac_try;;
6579esac
6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581  (eval "$ac_try") 2>&5
6582  ac_status=$?
6583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584  (exit $ac_status); }; } &&
6585	 { ac_try='test -s conftest.$ac_objext'
6586  { (case "(($ac_try" in
6587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588  *) ac_try_echo=$ac_try;;
6589esac
6590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591  (eval "$ac_try") 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }; }; then
6595  :
6596else
6597  echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6601	 CXXFLAGS="-g"
6602	 cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h.  */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h.  */
6608
6609int
6610main ()
6611{
6612
6613  ;
6614  return 0;
6615}
6616_ACEOF
6617rm -f conftest.$ac_objext
6618if { (ac_try="$ac_compile"
6619case "(($ac_try" in
6620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621  *) ac_try_echo=$ac_try;;
6622esac
6623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624  (eval "$ac_compile") 2>conftest.er1
6625  ac_status=$?
6626  grep -v '^ *+' conftest.er1 >conftest.err
6627  rm -f conftest.er1
6628  cat conftest.err >&5
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } &&
6631	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6632  { (case "(($ac_try" in
6633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634  *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637  (eval "$ac_try") 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; } &&
6641	 { ac_try='test -s conftest.$ac_objext'
6642  { (case "(($ac_try" in
6643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644  *) ac_try_echo=$ac_try;;
6645esac
6646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647  (eval "$ac_try") 2>&5
6648  ac_status=$?
6649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650  (exit $ac_status); }; }; then
6651  ac_cv_prog_cxx_g=yes
6652else
6653  echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656
6657fi
6658
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661
6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663fi
6664
6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6667fi
6668{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6669echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6670if test "$ac_test_CXXFLAGS" = set; then
6671  CXXFLAGS=$ac_save_CXXFLAGS
6672elif test $ac_cv_prog_cxx_g = yes; then
6673  if test "$GXX" = yes; then
6674    CXXFLAGS="-g -O2"
6675  else
6676    CXXFLAGS="-g"
6677  fi
6678else
6679  if test "$GXX" = yes; then
6680    CXXFLAGS="-O2"
6681  else
6682    CXXFLAGS=
6683  fi
6684fi
6685ac_ext=c
6686ac_cpp='$CPP $CPPFLAGS'
6687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
6691
6692{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6693echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6694if test "${lt_cv_path_NM+set}" = set; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  if test -n "$NM"; then
6698  # Let the user override the test.
6699  lt_cv_path_NM="$NM"
6700else
6701  lt_nm_to_check="${ac_tool_prefix}nm"
6702  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6703    lt_nm_to_check="$lt_nm_to_check nm"
6704  fi
6705  for lt_tmp_nm in $lt_nm_to_check; do
6706    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6707    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6708      IFS="$lt_save_ifs"
6709      test -z "$ac_dir" && ac_dir=.
6710      tmp_nm="$ac_dir/$lt_tmp_nm"
6711      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6712	# Check to see if the nm accepts a BSD-compat flag.
6713	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6714	#   nm: unknown option "B" ignored
6715	# Tru64's nm complains that /dev/null is an invalid object file
6716	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6717	*/dev/null* | *'Invalid file or object type'*)
6718	  lt_cv_path_NM="$tmp_nm -B"
6719	  break
6720	  ;;
6721	*)
6722	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6723	  */dev/null*)
6724	    lt_cv_path_NM="$tmp_nm -p"
6725	    break
6726	    ;;
6727	  *)
6728	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6729	    continue # so that we can try to find one that supports BSD flags
6730	    ;;
6731	  esac
6732	  ;;
6733	esac
6734      fi
6735    done
6736    IFS="$lt_save_ifs"
6737  done
6738  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6739fi
6740fi
6741{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6742echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6743NM="$lt_cv_path_NM"
6744
6745
6746
6747{ echo "$as_me:$LINENO: checking for GNU make" >&5
6748echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6749if test "${llvm_cv_gnu_make_command+set}" = set; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  llvm_cv_gnu_make_command=''
6753 for a in "$MAKE" make gmake gnumake ; do
6754  if test -z "$a" ; then continue ; fi ;
6755  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6756  then
6757   llvm_cv_gnu_make_command=$a ;
6758   break;
6759  fi
6760 done
6761fi
6762{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6763echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6764 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6765   ifGNUmake='' ;
6766 else
6767   ifGNUmake='#' ;
6768   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6769echo "${ECHO_T}\"Not found\"" >&6; };
6770 fi
6771
6772
6773{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6774echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6775LN_S=$as_ln_s
6776if test "$LN_S" = "ln -s"; then
6777  { echo "$as_me:$LINENO: result: yes" >&5
6778echo "${ECHO_T}yes" >&6; }
6779else
6780  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6781echo "${ECHO_T}no, using $LN_S" >&6; }
6782fi
6783
6784# Extract the first word of "cmp", so it can be a program name with args.
6785set dummy cmp; ac_word=$2
6786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788if test "${ac_cv_path_CMP+set}" = set; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791  case $CMP in
6792  [\\/]* | ?:[\\/]*)
6793  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6794  ;;
6795  *)
6796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801  for ac_exec_ext in '' $ac_executable_extensions; do
6802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6812  ;;
6813esac
6814fi
6815CMP=$ac_cv_path_CMP
6816if test -n "$CMP"; then
6817  { echo "$as_me:$LINENO: result: $CMP" >&5
6818echo "${ECHO_T}$CMP" >&6; }
6819else
6820  { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
6822fi
6823
6824
6825# Extract the first word of "cp", so it can be a program name with args.
6826set dummy cp; ac_word=$2
6827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829if test "${ac_cv_path_CP+set}" = set; then
6830  echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832  case $CP in
6833  [\\/]* | ?:[\\/]*)
6834  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6835  ;;
6836  *)
6837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842  for ac_exec_ext in '' $ac_executable_extensions; do
6843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849done
6850IFS=$as_save_IFS
6851
6852  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6853  ;;
6854esac
6855fi
6856CP=$ac_cv_path_CP
6857if test -n "$CP"; then
6858  { echo "$as_me:$LINENO: result: $CP" >&5
6859echo "${ECHO_T}$CP" >&6; }
6860else
6861  { echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6; }
6863fi
6864
6865
6866# Extract the first word of "date", so it can be a program name with args.
6867set dummy date; ac_word=$2
6868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870if test "${ac_cv_path_DATE+set}" = set; then
6871  echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873  case $DATE in
6874  [\\/]* | ?:[\\/]*)
6875  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6876  ;;
6877  *)
6878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883  for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6894  ;;
6895esac
6896fi
6897DATE=$ac_cv_path_DATE
6898if test -n "$DATE"; then
6899  { echo "$as_me:$LINENO: result: $DATE" >&5
6900echo "${ECHO_T}$DATE" >&6; }
6901else
6902  { echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6; }
6904fi
6905
6906
6907# Extract the first word of "find", so it can be a program name with args.
6908set dummy find; ac_word=$2
6909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911if test "${ac_cv_path_FIND+set}" = set; then
6912  echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914  case $FIND in
6915  [\\/]* | ?:[\\/]*)
6916  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6917  ;;
6918  *)
6919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922  IFS=$as_save_IFS
6923  test -z "$as_dir" && as_dir=.
6924  for ac_exec_ext in '' $ac_executable_extensions; do
6925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928    break 2
6929  fi
6930done
6931done
6932IFS=$as_save_IFS
6933
6934  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6935  ;;
6936esac
6937fi
6938FIND=$ac_cv_path_FIND
6939if test -n "$FIND"; then
6940  { echo "$as_me:$LINENO: result: $FIND" >&5
6941echo "${ECHO_T}$FIND" >&6; }
6942else
6943  { echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6; }
6945fi
6946
6947
6948# Extract the first word of "grep", so it can be a program name with args.
6949set dummy grep; ac_word=$2
6950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952if test "${ac_cv_path_GREP+set}" = set; then
6953  echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955  case $GREP in
6956  [\\/]* | ?:[\\/]*)
6957  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6958  ;;
6959  *)
6960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965  for ac_exec_ext in '' $ac_executable_extensions; do
6966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6967    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972done
6973IFS=$as_save_IFS
6974
6975  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6976  ;;
6977esac
6978fi
6979GREP=$ac_cv_path_GREP
6980if test -n "$GREP"; then
6981  { echo "$as_me:$LINENO: result: $GREP" >&5
6982echo "${ECHO_T}$GREP" >&6; }
6983else
6984  { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988
6989# Extract the first word of "mkdir", so it can be a program name with args.
6990set dummy mkdir; ac_word=$2
6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_path_MKDIR+set}" = set; then
6994  echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996  case $MKDIR in
6997  [\\/]* | ?:[\\/]*)
6998  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6999  ;;
7000  *)
7001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004  IFS=$as_save_IFS
7005  test -z "$as_dir" && as_dir=.
7006  for ac_exec_ext in '' $ac_executable_extensions; do
7007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010    break 2
7011  fi
7012done
7013done
7014IFS=$as_save_IFS
7015
7016  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7017  ;;
7018esac
7019fi
7020MKDIR=$ac_cv_path_MKDIR
7021if test -n "$MKDIR"; then
7022  { echo "$as_me:$LINENO: result: $MKDIR" >&5
7023echo "${ECHO_T}$MKDIR" >&6; }
7024else
7025  { echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6; }
7027fi
7028
7029
7030# Extract the first word of "mv", so it can be a program name with args.
7031set dummy mv; ac_word=$2
7032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034if test "${ac_cv_path_MV+set}" = set; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  case $MV in
7038  [\\/]* | ?:[\\/]*)
7039  ac_cv_path_MV="$MV" # Let the user override the test with a path.
7040  ;;
7041  *)
7042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047  for ac_exec_ext in '' $ac_executable_extensions; do
7048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054done
7055IFS=$as_save_IFS
7056
7057  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7058  ;;
7059esac
7060fi
7061MV=$ac_cv_path_MV
7062if test -n "$MV"; then
7063  { echo "$as_me:$LINENO: result: $MV" >&5
7064echo "${ECHO_T}$MV" >&6; }
7065else
7066  { echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6; }
7068fi
7069
7070
7071if test -n "$ac_tool_prefix"; then
7072  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_prog_RANLIB+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  if test -n "$RANLIB"; then
7080  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087  for ac_exec_ext in '' $ac_executable_extensions; do
7088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7089    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099RANLIB=$ac_cv_prog_RANLIB
7100if test -n "$RANLIB"; then
7101  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7102echo "${ECHO_T}$RANLIB" >&6; }
7103else
7104  { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_RANLIB"; then
7111  ac_ct_RANLIB=$RANLIB
7112  # Extract the first word of "ranlib", so it can be a program name with args.
7113set dummy ranlib; ac_word=$2
7114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119  if test -n "$ac_ct_RANLIB"; then
7120  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127  for ac_exec_ext in '' $ac_executable_extensions; do
7128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129    ac_cv_prog_ac_ct_RANLIB="ranlib"
7130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7140if test -n "$ac_ct_RANLIB"; then
7141  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7142echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7143else
7144  { echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6; }
7146fi
7147
7148  if test "x$ac_ct_RANLIB" = x; then
7149    RANLIB=":"
7150  else
7151    case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7154whose name does not start with the host triplet.  If you think this
7155configuration is useful to you, please write to autoconf@gnu.org." >&5
7156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7157whose name does not start with the host triplet.  If you think this
7158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161    RANLIB=$ac_ct_RANLIB
7162  fi
7163else
7164  RANLIB="$ac_cv_prog_RANLIB"
7165fi
7166
7167# Extract the first word of "rm", so it can be a program name with args.
7168set dummy rm; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_RM+set}" = set; then
7172  echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174  case $RM in
7175  [\\/]* | ?:[\\/]*)
7176  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7177  ;;
7178  *)
7179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184  for ac_exec_ext in '' $ac_executable_extensions; do
7185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7195  ;;
7196esac
7197fi
7198RM=$ac_cv_path_RM
7199if test -n "$RM"; then
7200  { echo "$as_me:$LINENO: result: $RM" >&5
7201echo "${ECHO_T}$RM" >&6; }
7202else
7203  { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208# Extract the first word of "sed", so it can be a program name with args.
7209set dummy sed; ac_word=$2
7210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212if test "${ac_cv_path_SED+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  case $SED in
7216  [\\/]* | ?:[\\/]*)
7217  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7218  ;;
7219  *)
7220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  test -z "$as_dir" && as_dir=.
7225  for ac_exec_ext in '' $ac_executable_extensions; do
7226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7227    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232done
7233IFS=$as_save_IFS
7234
7235  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7236  ;;
7237esac
7238fi
7239SED=$ac_cv_path_SED
7240if test -n "$SED"; then
7241  { echo "$as_me:$LINENO: result: $SED" >&5
7242echo "${ECHO_T}$SED" >&6; }
7243else
7244  { echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6; }
7246fi
7247
7248
7249# Extract the first word of "tar", so it can be a program name with args.
7250set dummy tar; ac_word=$2
7251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253if test "${ac_cv_path_TAR+set}" = set; then
7254  echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256  case $TAR in
7257  [\\/]* | ?:[\\/]*)
7258  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7259  ;;
7260  *)
7261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264  IFS=$as_save_IFS
7265  test -z "$as_dir" && as_dir=.
7266  for ac_exec_ext in '' $ac_executable_extensions; do
7267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270    break 2
7271  fi
7272done
7273done
7274IFS=$as_save_IFS
7275
7276  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7277  ;;
7278esac
7279fi
7280TAR=$ac_cv_path_TAR
7281if test -n "$TAR"; then
7282  { echo "$as_me:$LINENO: result: $TAR" >&5
7283echo "${ECHO_T}$TAR" >&6; }
7284else
7285  { echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6; }
7287fi
7288
7289
7290# Extract the first word of "pwd", so it can be a program name with args.
7291set dummy pwd; ac_word=$2
7292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294if test "${ac_cv_path_BINPWD+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  case $BINPWD in
7298  [\\/]* | ?:[\\/]*)
7299  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7300  ;;
7301  *)
7302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305  IFS=$as_save_IFS
7306  test -z "$as_dir" && as_dir=.
7307  for ac_exec_ext in '' $ac_executable_extensions; do
7308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311    break 2
7312  fi
7313done
7314done
7315IFS=$as_save_IFS
7316
7317  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7318  ;;
7319esac
7320fi
7321BINPWD=$ac_cv_path_BINPWD
7322if test -n "$BINPWD"; then
7323  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7324echo "${ECHO_T}$BINPWD" >&6; }
7325else
7326  { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
7328fi
7329
7330
7331
7332# Extract the first word of "Graphviz", so it can be a program name with args.
7333set dummy Graphviz; ac_word=$2
7334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7337  echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339  case $GRAPHVIZ in
7340  [\\/]* | ?:[\\/]*)
7341  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7342  ;;
7343  *)
7344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349  for ac_exec_ext in '' $ac_executable_extensions; do
7350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356done
7357IFS=$as_save_IFS
7358
7359  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7360  ;;
7361esac
7362fi
7363GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7364if test -n "$GRAPHVIZ"; then
7365  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7366echo "${ECHO_T}$GRAPHVIZ" >&6; }
7367else
7368  { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
7370fi
7371
7372
7373if test "$GRAPHVIZ" != "echo Graphviz" ; then
7374
7375cat >>confdefs.h <<\_ACEOF
7376#define HAVE_GRAPHVIZ 1
7377_ACEOF
7378
7379    if test "$llvm_cv_os_type" = "MingW" ; then
7380    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7381  fi
7382
7383cat >>confdefs.h <<_ACEOF
7384#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7385_ACEOF
7386
7387fi
7388# Extract the first word of "dot", so it can be a program name with args.
7389set dummy dot; ac_word=$2
7390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_DOT+set}" = set; then
7393  echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395  case $DOT in
7396  [\\/]* | ?:[\\/]*)
7397  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7398  ;;
7399  *)
7400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405  for ac_exec_ext in '' $ac_executable_extensions; do
7406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7416  ;;
7417esac
7418fi
7419DOT=$ac_cv_path_DOT
7420if test -n "$DOT"; then
7421  { echo "$as_me:$LINENO: result: $DOT" >&5
7422echo "${ECHO_T}$DOT" >&6; }
7423else
7424  { echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6; }
7426fi
7427
7428
7429if test "$DOT" != "echo dot" ; then
7430
7431cat >>confdefs.h <<\_ACEOF
7432#define HAVE_DOT 1
7433_ACEOF
7434
7435    if test "$llvm_cv_os_type" = "MingW" ; then
7436    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7437  fi
7438
7439cat >>confdefs.h <<_ACEOF
7440#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7441_ACEOF
7442
7443fi
7444# Extract the first word of "fdp", so it can be a program name with args.
7445set dummy fdp; ac_word=$2
7446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448if test "${ac_cv_path_FDP+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  case $FDP in
7452  [\\/]* | ?:[\\/]*)
7453  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7454  ;;
7455  *)
7456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459  IFS=$as_save_IFS
7460  test -z "$as_dir" && as_dir=.
7461  for ac_exec_ext in '' $ac_executable_extensions; do
7462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465    break 2
7466  fi
7467done
7468done
7469IFS=$as_save_IFS
7470
7471  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7472  ;;
7473esac
7474fi
7475FDP=$ac_cv_path_FDP
7476if test -n "$FDP"; then
7477  { echo "$as_me:$LINENO: result: $FDP" >&5
7478echo "${ECHO_T}$FDP" >&6; }
7479else
7480  { echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6; }
7482fi
7483
7484
7485if test "$FDP" != "echo fdp" ; then
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define HAVE_FDP 1
7489_ACEOF
7490
7491    if test "$llvm_cv_os_type" = "MingW" ; then
7492    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7493  fi
7494
7495cat >>confdefs.h <<_ACEOF
7496#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7497_ACEOF
7498
7499fi
7500# Extract the first word of "neato", so it can be a program name with args.
7501set dummy neato; ac_word=$2
7502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504if test "${ac_cv_path_NEATO+set}" = set; then
7505  echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507  case $NEATO in
7508  [\\/]* | ?:[\\/]*)
7509  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7510  ;;
7511  *)
7512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517  for ac_exec_ext in '' $ac_executable_extensions; do
7518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524done
7525IFS=$as_save_IFS
7526
7527  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7528  ;;
7529esac
7530fi
7531NEATO=$ac_cv_path_NEATO
7532if test -n "$NEATO"; then
7533  { echo "$as_me:$LINENO: result: $NEATO" >&5
7534echo "${ECHO_T}$NEATO" >&6; }
7535else
7536  { echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6; }
7538fi
7539
7540
7541if test "$NEATO" != "echo neato" ; then
7542
7543cat >>confdefs.h <<\_ACEOF
7544#define HAVE_NEATO 1
7545_ACEOF
7546
7547    if test "$llvm_cv_os_type" = "MingW" ; then
7548    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7549  fi
7550
7551cat >>confdefs.h <<_ACEOF
7552#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7553_ACEOF
7554
7555fi
7556# Extract the first word of "twopi", so it can be a program name with args.
7557set dummy twopi; ac_word=$2
7558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560if test "${ac_cv_path_TWOPI+set}" = set; then
7561  echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563  case $TWOPI in
7564  [\\/]* | ?:[\\/]*)
7565  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7566  ;;
7567  *)
7568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571  IFS=$as_save_IFS
7572  test -z "$as_dir" && as_dir=.
7573  for ac_exec_ext in '' $ac_executable_extensions; do
7574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7576    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577    break 2
7578  fi
7579done
7580done
7581IFS=$as_save_IFS
7582
7583  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7584  ;;
7585esac
7586fi
7587TWOPI=$ac_cv_path_TWOPI
7588if test -n "$TWOPI"; then
7589  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7590echo "${ECHO_T}$TWOPI" >&6; }
7591else
7592  { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597if test "$TWOPI" != "echo twopi" ; then
7598
7599cat >>confdefs.h <<\_ACEOF
7600#define HAVE_TWOPI 1
7601_ACEOF
7602
7603    if test "$llvm_cv_os_type" = "MingW" ; then
7604    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7605  fi
7606
7607cat >>confdefs.h <<_ACEOF
7608#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7609_ACEOF
7610
7611fi
7612# Extract the first word of "circo", so it can be a program name with args.
7613set dummy circo; ac_word=$2
7614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616if test "${ac_cv_path_CIRCO+set}" = set; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  case $CIRCO in
7620  [\\/]* | ?:[\\/]*)
7621  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7622  ;;
7623  *)
7624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627  IFS=$as_save_IFS
7628  test -z "$as_dir" && as_dir=.
7629  for ac_exec_ext in '' $ac_executable_extensions; do
7630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633    break 2
7634  fi
7635done
7636done
7637IFS=$as_save_IFS
7638
7639  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7640  ;;
7641esac
7642fi
7643CIRCO=$ac_cv_path_CIRCO
7644if test -n "$CIRCO"; then
7645  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7646echo "${ECHO_T}$CIRCO" >&6; }
7647else
7648  { echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6; }
7650fi
7651
7652
7653if test "$CIRCO" != "echo circo" ; then
7654
7655cat >>confdefs.h <<\_ACEOF
7656#define HAVE_CIRCO 1
7657_ACEOF
7658
7659    if test "$llvm_cv_os_type" = "MingW" ; then
7660    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7661  fi
7662
7663cat >>confdefs.h <<_ACEOF
7664#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7665_ACEOF
7666
7667fi
7668for ac_prog in gv gsview32
7669do
7670  # Extract the first word of "$ac_prog", so it can be a program name with args.
7671set dummy $ac_prog; ac_word=$2
7672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_GV+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677  case $GV in
7678  [\\/]* | ?:[\\/]*)
7679  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7680  ;;
7681  *)
7682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687  for ac_exec_ext in '' $ac_executable_extensions; do
7688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694done
7695IFS=$as_save_IFS
7696
7697  ;;
7698esac
7699fi
7700GV=$ac_cv_path_GV
7701if test -n "$GV"; then
7702  { echo "$as_me:$LINENO: result: $GV" >&5
7703echo "${ECHO_T}$GV" >&6; }
7704else
7705  { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710  test -n "$GV" && break
7711done
7712test -n "$GV" || GV="echo gv"
7713
7714if test "$GV" != "echo gv" ; then
7715
7716cat >>confdefs.h <<\_ACEOF
7717#define HAVE_GV 1
7718_ACEOF
7719
7720    if test "$llvm_cv_os_type" = "MingW" ; then
7721    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7722  fi
7723
7724cat >>confdefs.h <<_ACEOF
7725#define LLVM_PATH_GV "$GV${EXEEXT}"
7726_ACEOF
7727
7728fi
7729# Extract the first word of "dotty", so it can be a program name with args.
7730set dummy dotty; ac_word=$2
7731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733if test "${ac_cv_path_DOTTY+set}" = set; then
7734  echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736  case $DOTTY in
7737  [\\/]* | ?:[\\/]*)
7738  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7739  ;;
7740  *)
7741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744  IFS=$as_save_IFS
7745  test -z "$as_dir" && as_dir=.
7746  for ac_exec_ext in '' $ac_executable_extensions; do
7747  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750    break 2
7751  fi
7752done
7753done
7754IFS=$as_save_IFS
7755
7756  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7757  ;;
7758esac
7759fi
7760DOTTY=$ac_cv_path_DOTTY
7761if test -n "$DOTTY"; then
7762  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7763echo "${ECHO_T}$DOTTY" >&6; }
7764else
7765  { echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6; }
7767fi
7768
7769
7770if test "$DOTTY" != "echo dotty" ; then
7771
7772cat >>confdefs.h <<\_ACEOF
7773#define HAVE_DOTTY 1
7774_ACEOF
7775
7776    if test "$llvm_cv_os_type" = "MingW" ; then
7777    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7778  fi
7779
7780cat >>confdefs.h <<_ACEOF
7781#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7782_ACEOF
7783
7784fi
7785
7786
7787# Extract the first word of "perl", so it can be a program name with args.
7788set dummy perl; ac_word=$2
7789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791if test "${ac_cv_path_PERL+set}" = set; then
7792  echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794  case $PERL in
7795  [\\/]* | ?:[\\/]*)
7796  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7797  ;;
7798  *)
7799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802  IFS=$as_save_IFS
7803  test -z "$as_dir" && as_dir=.
7804  for ac_exec_ext in '' $ac_executable_extensions; do
7805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7807    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811done
7812IFS=$as_save_IFS
7813
7814  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7815  ;;
7816esac
7817fi
7818PERL=$ac_cv_path_PERL
7819if test -n "$PERL"; then
7820  { echo "$as_me:$LINENO: result: $PERL" >&5
7821echo "${ECHO_T}$PERL" >&6; }
7822else
7823  { echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6; }
7825fi
7826
7827
7828if test "$PERL" != "none"; then
7829  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7830echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7831  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7832    { echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6; }
7834  else
7835    PERL=none
7836    { echo "$as_me:$LINENO: result: not found" >&5
7837echo "${ECHO_T}not found" >&6; }
7838  fi
7839fi
7840
7841
7842if test x"$PERL" = xnone; then
7843   HAVE_PERL=0
7844
7845   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7846echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7847   { (exit 1); exit 1; }; }
7848else
7849   HAVE_PERL=1
7850
7851fi
7852
7853# Find a good install program.  We prefer a C program (faster),
7854# so one script is as good as another.  But avoid the broken or
7855# incompatible versions:
7856# SysV /etc/install, /usr/sbin/install
7857# SunOS /usr/etc/install
7858# IRIX /sbin/install
7859# AIX /bin/install
7860# AmigaOS /C/install, which installs bootblocks on floppy discs
7861# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7864# OS/2's system install, which has a completely different semantic
7865# ./install, which can be erroneously created by make from ./install.sh.
7866{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7867echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7868if test -z "$INSTALL"; then
7869if test "${ac_cv_path_install+set}" = set; then
7870  echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875  IFS=$as_save_IFS
7876  test -z "$as_dir" && as_dir=.
7877  # Account for people who put trailing slashes in PATH elements.
7878case $as_dir/ in
7879  ./ | .// | /cC/* | \
7880  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7881  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7882  /usr/ucb/* ) ;;
7883  *)
7884    # OSF1 and SCO ODT 3.0 have their own names for install.
7885    # Don't use installbsd from OSF since it installs stuff as root
7886    # by default.
7887    for ac_prog in ginstall scoinst install; do
7888      for ac_exec_ext in '' $ac_executable_extensions; do
7889	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7890	  if test $ac_prog = install &&
7891	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7892	    # AIX install.  It has an incompatible calling convention.
7893	    :
7894	  elif test $ac_prog = install &&
7895	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7896	    # program-specific install script used by HP pwplus--don't use.
7897	    :
7898	  else
7899	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7900	    break 3
7901	  fi
7902	fi
7903      done
7904    done
7905    ;;
7906esac
7907done
7908IFS=$as_save_IFS
7909
7910
7911fi
7912  if test "${ac_cv_path_install+set}" = set; then
7913    INSTALL=$ac_cv_path_install
7914  else
7915    # As a last resort, use the slow shell script.  Don't cache a
7916    # value for INSTALL within a source directory, because that will
7917    # break other packages using the cache if that directory is
7918    # removed, or if the value is a relative name.
7919    INSTALL=$ac_install_sh
7920  fi
7921fi
7922{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7923echo "${ECHO_T}$INSTALL" >&6; }
7924
7925# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7926# It thinks the first close brace ends the variable substitution.
7927test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7928
7929test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7930
7931test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7932
7933
7934# Extract the first word of "bzip2", so it can be a program name with args.
7935set dummy bzip2; ac_word=$2
7936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7938if test "${ac_cv_path_BZIP2+set}" = set; then
7939  echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941  case $BZIP2 in
7942  [\\/]* | ?:[\\/]*)
7943  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7944  ;;
7945  *)
7946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951  for ac_exec_ext in '' $ac_executable_extensions; do
7952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7953    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958done
7959IFS=$as_save_IFS
7960
7961  ;;
7962esac
7963fi
7964BZIP2=$ac_cv_path_BZIP2
7965if test -n "$BZIP2"; then
7966  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7967echo "${ECHO_T}$BZIP2" >&6; }
7968else
7969  { echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6; }
7971fi
7972
7973
7974# Extract the first word of "doxygen", so it can be a program name with args.
7975set dummy doxygen; ac_word=$2
7976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978if test "${ac_cv_path_DOXYGEN+set}" = set; then
7979  echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981  case $DOXYGEN in
7982  [\\/]* | ?:[\\/]*)
7983  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7984  ;;
7985  *)
7986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989  IFS=$as_save_IFS
7990  test -z "$as_dir" && as_dir=.
7991  for ac_exec_ext in '' $ac_executable_extensions; do
7992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7993    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995    break 2
7996  fi
7997done
7998done
7999IFS=$as_save_IFS
8000
8001  ;;
8002esac
8003fi
8004DOXYGEN=$ac_cv_path_DOXYGEN
8005if test -n "$DOXYGEN"; then
8006  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8007echo "${ECHO_T}$DOXYGEN" >&6; }
8008else
8009  { echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6; }
8011fi
8012
8013
8014# Extract the first word of "groff", so it can be a program name with args.
8015set dummy groff; ac_word=$2
8016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018if test "${ac_cv_path_GROFF+set}" = set; then
8019  echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021  case $GROFF in
8022  [\\/]* | ?:[\\/]*)
8023  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8024  ;;
8025  *)
8026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  test -z "$as_dir" && as_dir=.
8031  for ac_exec_ext in '' $ac_executable_extensions; do
8032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8034    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038done
8039IFS=$as_save_IFS
8040
8041  ;;
8042esac
8043fi
8044GROFF=$ac_cv_path_GROFF
8045if test -n "$GROFF"; then
8046  { echo "$as_me:$LINENO: result: $GROFF" >&5
8047echo "${ECHO_T}$GROFF" >&6; }
8048else
8049  { echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6; }
8051fi
8052
8053
8054# Extract the first word of "gzip", so it can be a program name with args.
8055set dummy gzip; ac_word=$2
8056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058if test "${ac_cv_path_GZIP+set}" = set; then
8059  echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061  case $GZIP in
8062  [\\/]* | ?:[\\/]*)
8063  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8064  ;;
8065  *)
8066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  test -z "$as_dir" && as_dir=.
8071  for ac_exec_ext in '' $ac_executable_extensions; do
8072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8073    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075    break 2
8076  fi
8077done
8078done
8079IFS=$as_save_IFS
8080
8081  ;;
8082esac
8083fi
8084GZIP=$ac_cv_path_GZIP
8085if test -n "$GZIP"; then
8086  { echo "$as_me:$LINENO: result: $GZIP" >&5
8087echo "${ECHO_T}$GZIP" >&6; }
8088else
8089  { echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6; }
8091fi
8092
8093
8094# Extract the first word of "pod2html", so it can be a program name with args.
8095set dummy pod2html; ac_word=$2
8096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_POD2HTML+set}" = set; then
8099  echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101  case $POD2HTML in
8102  [\\/]* | ?:[\\/]*)
8103  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8104  ;;
8105  *)
8106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109  IFS=$as_save_IFS
8110  test -z "$as_dir" && as_dir=.
8111  for ac_exec_ext in '' $ac_executable_extensions; do
8112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115    break 2
8116  fi
8117done
8118done
8119IFS=$as_save_IFS
8120
8121  ;;
8122esac
8123fi
8124POD2HTML=$ac_cv_path_POD2HTML
8125if test -n "$POD2HTML"; then
8126  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8127echo "${ECHO_T}$POD2HTML" >&6; }
8128else
8129  { echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; }
8131fi
8132
8133
8134# Extract the first word of "pod2man", so it can be a program name with args.
8135set dummy pod2man; ac_word=$2
8136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_POD2MAN+set}" = set; then
8139  echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141  case $POD2MAN in
8142  [\\/]* | ?:[\\/]*)
8143  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8144  ;;
8145  *)
8146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149  IFS=$as_save_IFS
8150  test -z "$as_dir" && as_dir=.
8151  for ac_exec_ext in '' $ac_executable_extensions; do
8152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155    break 2
8156  fi
8157done
8158done
8159IFS=$as_save_IFS
8160
8161  ;;
8162esac
8163fi
8164POD2MAN=$ac_cv_path_POD2MAN
8165if test -n "$POD2MAN"; then
8166  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8167echo "${ECHO_T}$POD2MAN" >&6; }
8168else
8169  { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
8171fi
8172
8173
8174# Extract the first word of "runtest", so it can be a program name with args.
8175set dummy runtest; ac_word=$2
8176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178if test "${ac_cv_path_RUNTEST+set}" = set; then
8179  echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181  case $RUNTEST in
8182  [\\/]* | ?:[\\/]*)
8183  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8184  ;;
8185  *)
8186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189  IFS=$as_save_IFS
8190  test -z "$as_dir" && as_dir=.
8191  for ac_exec_ext in '' $ac_executable_extensions; do
8192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8194    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195    break 2
8196  fi
8197done
8198done
8199IFS=$as_save_IFS
8200
8201  ;;
8202esac
8203fi
8204RUNTEST=$ac_cv_path_RUNTEST
8205if test -n "$RUNTEST"; then
8206  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8207echo "${ECHO_T}$RUNTEST" >&6; }
8208else
8209  { echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6; }
8211fi
8212
8213
8214
8215no_itcl=true
8216{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8217echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8218
8219# Check whether --with-tclinclude was given.
8220if test "${with_tclinclude+set}" = set; then
8221  withval=$with_tclinclude; with_tclinclude=${withval}
8222else
8223  with_tclinclude=''
8224fi
8225
8226if test "${ac_cv_path_tclsh+set}" = set; then
8227  echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229
8230if test x"${with_tclinclude}" != x ; then
8231  if test -f ${with_tclinclude}/tclsh ; then
8232    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8233  elif test -f ${with_tclinclude}/src/tclsh ; then
8234    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8235  else
8236    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8237echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8238   { (exit 1); exit 1; }; }
8239  fi
8240fi
8241
8242if test x"${ac_cv_path_tclsh}" = x ; then
8243  { echo "$as_me:$LINENO: result: none" >&5
8244echo "${ECHO_T}none" >&6; }
8245  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
8246do
8247  # Extract the first word of "$ac_prog", so it can be a program name with args.
8248set dummy $ac_prog; ac_word=$2
8249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251if test "${ac_cv_path_TCLSH+set}" = set; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  case $TCLSH in
8255  [\\/]* | ?:[\\/]*)
8256  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8257  ;;
8258  *)
8259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262  IFS=$as_save_IFS
8263  test -z "$as_dir" && as_dir=.
8264  for ac_exec_ext in '' $ac_executable_extensions; do
8265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268    break 2
8269  fi
8270done
8271done
8272IFS=$as_save_IFS
8273
8274  ;;
8275esac
8276fi
8277TCLSH=$ac_cv_path_TCLSH
8278if test -n "$TCLSH"; then
8279  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8280echo "${ECHO_T}$TCLSH" >&6; }
8281else
8282  { echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6; }
8284fi
8285
8286
8287  test -n "$TCLSH" && break
8288done
8289
8290  if test x"${TCLSH}" = x ; then
8291    ac_cv_path_tclsh='';
8292  else
8293    ac_cv_path_tclsh="${TCLSH}";
8294  fi
8295else
8296  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8297echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8298  TCLSH="${ac_cv_path_tclsh}"
8299
8300fi
8301
8302fi
8303
8304# Extract the first word of "zip", so it can be a program name with args.
8305set dummy zip; ac_word=$2
8306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308if test "${ac_cv_path_ZIP+set}" = set; then
8309  echo $ECHO_N "(cached) $ECHO_C" >&6
8310else
8311  case $ZIP in
8312  [\\/]* | ?:[\\/]*)
8313  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8314  ;;
8315  *)
8316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319  IFS=$as_save_IFS
8320  test -z "$as_dir" && as_dir=.
8321  for ac_exec_ext in '' $ac_executable_extensions; do
8322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325    break 2
8326  fi
8327done
8328done
8329IFS=$as_save_IFS
8330
8331  ;;
8332esac
8333fi
8334ZIP=$ac_cv_path_ZIP
8335if test -n "$ZIP"; then
8336  { echo "$as_me:$LINENO: result: $ZIP" >&5
8337echo "${ECHO_T}$ZIP" >&6; }
8338else
8339  { echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6; }
8341fi
8342
8343
8344for ac_prog in ocamlc
8345do
8346  # Extract the first word of "$ac_prog", so it can be a program name with args.
8347set dummy $ac_prog; ac_word=$2
8348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8350if test "${ac_cv_path_OCAMLC+set}" = set; then
8351  echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353  case $OCAMLC in
8354  [\\/]* | ?:[\\/]*)
8355  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8356  ;;
8357  *)
8358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361  IFS=$as_save_IFS
8362  test -z "$as_dir" && as_dir=.
8363  for ac_exec_ext in '' $ac_executable_extensions; do
8364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8365    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367    break 2
8368  fi
8369done
8370done
8371IFS=$as_save_IFS
8372
8373  ;;
8374esac
8375fi
8376OCAMLC=$ac_cv_path_OCAMLC
8377if test -n "$OCAMLC"; then
8378  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8379echo "${ECHO_T}$OCAMLC" >&6; }
8380else
8381  { echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6; }
8383fi
8384
8385
8386  test -n "$OCAMLC" && break
8387done
8388
8389for ac_prog in ocamlopt
8390do
8391  # Extract the first word of "$ac_prog", so it can be a program name with args.
8392set dummy $ac_prog; ac_word=$2
8393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8396  echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398  case $OCAMLOPT in
8399  [\\/]* | ?:[\\/]*)
8400  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8401  ;;
8402  *)
8403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406  IFS=$as_save_IFS
8407  test -z "$as_dir" && as_dir=.
8408  for ac_exec_ext in '' $ac_executable_extensions; do
8409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8410    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412    break 2
8413  fi
8414done
8415done
8416IFS=$as_save_IFS
8417
8418  ;;
8419esac
8420fi
8421OCAMLOPT=$ac_cv_path_OCAMLOPT
8422if test -n "$OCAMLOPT"; then
8423  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8424echo "${ECHO_T}$OCAMLOPT" >&6; }
8425else
8426  { echo "$as_me:$LINENO: result: no" >&5
8427echo "${ECHO_T}no" >&6; }
8428fi
8429
8430
8431  test -n "$OCAMLOPT" && break
8432done
8433
8434for ac_prog in ocamldep
8435do
8436  # Extract the first word of "$ac_prog", so it can be a program name with args.
8437set dummy $ac_prog; ac_word=$2
8438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8441  echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443  case $OCAMLDEP in
8444  [\\/]* | ?:[\\/]*)
8445  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8446  ;;
8447  *)
8448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451  IFS=$as_save_IFS
8452  test -z "$as_dir" && as_dir=.
8453  for ac_exec_ext in '' $ac_executable_extensions; do
8454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8455    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457    break 2
8458  fi
8459done
8460done
8461IFS=$as_save_IFS
8462
8463  ;;
8464esac
8465fi
8466OCAMLDEP=$ac_cv_path_OCAMLDEP
8467if test -n "$OCAMLDEP"; then
8468  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8469echo "${ECHO_T}$OCAMLDEP" >&6; }
8470else
8471  { echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6; }
8473fi
8474
8475
8476  test -n "$OCAMLDEP" && break
8477done
8478
8479for ac_prog in ocamldoc
8480do
8481  # Extract the first word of "$ac_prog", so it can be a program name with args.
8482set dummy $ac_prog; ac_word=$2
8483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8486  echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488  case $OCAMLDOC in
8489  [\\/]* | ?:[\\/]*)
8490  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8491  ;;
8492  *)
8493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496  IFS=$as_save_IFS
8497  test -z "$as_dir" && as_dir=.
8498  for ac_exec_ext in '' $ac_executable_extensions; do
8499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8500    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502    break 2
8503  fi
8504done
8505done
8506IFS=$as_save_IFS
8507
8508  ;;
8509esac
8510fi
8511OCAMLDOC=$ac_cv_path_OCAMLDOC
8512if test -n "$OCAMLDOC"; then
8513  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8514echo "${ECHO_T}$OCAMLDOC" >&6; }
8515else
8516  { echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6; }
8518fi
8519
8520
8521  test -n "$OCAMLDOC" && break
8522done
8523
8524for ac_prog in gas as
8525do
8526  # Extract the first word of "$ac_prog", so it can be a program name with args.
8527set dummy $ac_prog; ac_word=$2
8528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530if test "${ac_cv_path_GAS+set}" = set; then
8531  echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533  case $GAS in
8534  [\\/]* | ?:[\\/]*)
8535  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8536  ;;
8537  *)
8538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539for as_dir in $PATH
8540do
8541  IFS=$as_save_IFS
8542  test -z "$as_dir" && as_dir=.
8543  for ac_exec_ext in '' $ac_executable_extensions; do
8544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8545    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547    break 2
8548  fi
8549done
8550done
8551IFS=$as_save_IFS
8552
8553  ;;
8554esac
8555fi
8556GAS=$ac_cv_path_GAS
8557if test -n "$GAS"; then
8558  { echo "$as_me:$LINENO: result: $GAS" >&5
8559echo "${ECHO_T}$GAS" >&6; }
8560else
8561  { echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6; }
8563fi
8564
8565
8566  test -n "$GAS" && break
8567done
8568
8569
8570{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8571echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8572if test "${llvm_cv_link_use_r+set}" = set; then
8573  echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575   ac_ext=c
8576ac_cpp='$CPP $CPPFLAGS'
8577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581  oldcflags="$CFLAGS"
8582  CFLAGS="$CFLAGS -Wl,-R."
8583  cat >conftest.$ac_ext <<_ACEOF
8584/* confdefs.h.  */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h.  */
8589
8590int
8591main ()
8592{
8593int main() { return 0; }
8594  ;
8595  return 0;
8596}
8597_ACEOF
8598rm -f conftest.$ac_objext conftest$ac_exeext
8599if { (ac_try="$ac_link"
8600case "(($ac_try" in
8601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602  *) ac_try_echo=$ac_try;;
8603esac
8604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605  (eval "$ac_link") 2>conftest.er1
8606  ac_status=$?
8607  grep -v '^ *+' conftest.er1 >conftest.err
8608  rm -f conftest.er1
8609  cat conftest.err >&5
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } &&
8612	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613  { (case "(($ac_try" in
8614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615  *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618  (eval "$ac_try") 2>&5
8619  ac_status=$?
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); }; } &&
8622	 { ac_try='test -s conftest$ac_exeext'
8623  { (case "(($ac_try" in
8624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625  *) ac_try_echo=$ac_try;;
8626esac
8627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628  (eval "$ac_try") 2>&5
8629  ac_status=$?
8630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631  (exit $ac_status); }; }; then
8632  llvm_cv_link_use_r=yes
8633else
8634  echo "$as_me: failed program was:" >&5
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
8637	llvm_cv_link_use_r=no
8638fi
8639
8640rm -f core conftest.err conftest.$ac_objext \
8641      conftest$ac_exeext conftest.$ac_ext
8642  CFLAGS="$oldcflags"
8643  ac_ext=c
8644ac_cpp='$CPP $CPPFLAGS'
8645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649
8650fi
8651{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8652echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8653if test "$llvm_cv_link_use_r" = yes ; then
8654
8655cat >>confdefs.h <<\_ACEOF
8656#define HAVE_LINK_R 1
8657_ACEOF
8658
8659  fi
8660
8661
8662{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8663echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8664if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8665  echo $ECHO_N "(cached) $ECHO_C" >&6
8666else
8667   ac_ext=c
8668ac_cpp='$CPP $CPPFLAGS'
8669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671ac_compiler_gnu=$ac_cv_c_compiler_gnu
8672
8673  oldcflags="$CFLAGS"
8674  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8675  cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h.  */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h.  */
8681
8682int
8683main ()
8684{
8685int main() { return 0; }
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (ac_try="$ac_link"
8692case "(($ac_try" in
8693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694  *) ac_try_echo=$ac_try;;
8695esac
8696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697  (eval "$ac_link") 2>conftest.er1
8698  ac_status=$?
8699  grep -v '^ *+' conftest.er1 >conftest.err
8700  rm -f conftest.er1
8701  cat conftest.err >&5
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); } &&
8704	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8705  { (case "(($ac_try" in
8706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707  *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710  (eval "$ac_try") 2>&5
8711  ac_status=$?
8712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713  (exit $ac_status); }; } &&
8714	 { ac_try='test -s conftest$ac_exeext'
8715  { (case "(($ac_try" in
8716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717  *) ac_try_echo=$ac_try;;
8718esac
8719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720  (eval "$ac_try") 2>&5
8721  ac_status=$?
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); }; }; then
8724  llvm_cv_link_use_export_dynamic=yes
8725else
8726  echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729	llvm_cv_link_use_export_dynamic=no
8730fi
8731
8732rm -f core conftest.err conftest.$ac_objext \
8733      conftest$ac_exeext conftest.$ac_ext
8734  CFLAGS="$oldcflags"
8735  ac_ext=c
8736ac_cpp='$CPP $CPPFLAGS'
8737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739ac_compiler_gnu=$ac_cv_c_compiler_gnu
8740
8741
8742fi
8743{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8744echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8745if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8746
8747cat >>confdefs.h <<\_ACEOF
8748#define HAVE_LINK_EXPORT_DYNAMIC 1
8749_ACEOF
8750
8751  fi
8752
8753
8754
8755
8756{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8757echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8758if test "${ac_cv_c_const+set}" = set; then
8759  echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761  cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h.  */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h.  */
8767
8768int
8769main ()
8770{
8771/* FIXME: Include the comments suggested by Paul. */
8772#ifndef __cplusplus
8773  /* Ultrix mips cc rejects this.  */
8774  typedef int charset[2];
8775  const charset x;
8776  /* SunOS 4.1.1 cc rejects this.  */
8777  char const *const *ccp;
8778  char **p;
8779  /* NEC SVR4.0.2 mips cc rejects this.  */
8780  struct point {int x, y;};
8781  static struct point const zero = {0,0};
8782  /* AIX XL C 1.02.0.0 rejects this.
8783     It does not let you subtract one const X* pointer from another in
8784     an arm of an if-expression whose if-part is not a constant
8785     expression */
8786  const char *g = "string";
8787  ccp = &g + (g ? g-g : 0);
8788  /* HPUX 7.0 cc rejects these. */
8789  ++ccp;
8790  p = (char**) ccp;
8791  ccp = (char const *const *) p;
8792  { /* SCO 3.2v4 cc rejects this.  */
8793    char *t;
8794    char const *s = 0 ? (char *) 0 : (char const *) 0;
8795
8796    *t++ = 0;
8797    if (s) return 0;
8798  }
8799  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8800    int x[] = {25, 17};
8801    const int *foo = &x[0];
8802    ++foo;
8803  }
8804  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8805    typedef const int *iptr;
8806    iptr p = 0;
8807    ++p;
8808  }
8809  { /* AIX XL C 1.02.0.0 rejects this saying
8810       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8811    struct s { int j; const int *ap[3]; };
8812    struct s *b; b->j = 5;
8813  }
8814  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8815    const int foo = 10;
8816    if (!foo) return 0;
8817  }
8818  return !x[0] && !zero.x;
8819#endif
8820
8821  ;
8822  return 0;
8823}
8824_ACEOF
8825rm -f conftest.$ac_objext
8826if { (ac_try="$ac_compile"
8827case "(($ac_try" in
8828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829  *) ac_try_echo=$ac_try;;
8830esac
8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832  (eval "$ac_compile") 2>conftest.er1
8833  ac_status=$?
8834  grep -v '^ *+' conftest.er1 >conftest.err
8835  rm -f conftest.er1
8836  cat conftest.err >&5
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); } &&
8839	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840  { (case "(($ac_try" in
8841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842  *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845  (eval "$ac_try") 2>&5
8846  ac_status=$?
8847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848  (exit $ac_status); }; } &&
8849	 { ac_try='test -s conftest.$ac_objext'
8850  { (case "(($ac_try" in
8851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852  *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855  (eval "$ac_try") 2>&5
8856  ac_status=$?
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); }; }; then
8859  ac_cv_c_const=yes
8860else
8861  echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
8864	ac_cv_c_const=no
8865fi
8866
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8870echo "${ECHO_T}$ac_cv_c_const" >&6; }
8871if test $ac_cv_c_const = no; then
8872
8873cat >>confdefs.h <<\_ACEOF
8874#define const
8875_ACEOF
8876
8877fi
8878
8879
8880
8881
8882
8883
8884ac_header_dirent=no
8885for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8886  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8887{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8888echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8890  echo $ECHO_N "(cached) $ECHO_C" >&6
8891else
8892  cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h.  */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h.  */
8898#include <sys/types.h>
8899#include <$ac_hdr>
8900
8901int
8902main ()
8903{
8904if ((DIR *) 0)
8905return 0;
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext
8911if { (ac_try="$ac_compile"
8912case "(($ac_try" in
8913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914  *) ac_try_echo=$ac_try;;
8915esac
8916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917  (eval "$ac_compile") 2>conftest.er1
8918  ac_status=$?
8919  grep -v '^ *+' conftest.er1 >conftest.err
8920  rm -f conftest.er1
8921  cat conftest.err >&5
8922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923  (exit $ac_status); } &&
8924	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8925  { (case "(($ac_try" in
8926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927  *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930  (eval "$ac_try") 2>&5
8931  ac_status=$?
8932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933  (exit $ac_status); }; } &&
8934	 { ac_try='test -s conftest.$ac_objext'
8935  { (case "(($ac_try" in
8936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937  *) ac_try_echo=$ac_try;;
8938esac
8939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940  (eval "$ac_try") 2>&5
8941  ac_status=$?
8942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943  (exit $ac_status); }; }; then
8944  eval "$as_ac_Header=yes"
8945else
8946  echo "$as_me: failed program was:" >&5
8947sed 's/^/| /' conftest.$ac_ext >&5
8948
8949	eval "$as_ac_Header=no"
8950fi
8951
8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953fi
8954ac_res=`eval echo '${'$as_ac_Header'}'`
8955	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8956echo "${ECHO_T}$ac_res" >&6; }
8957if test `eval echo '${'$as_ac_Header'}'` = yes; then
8958  cat >>confdefs.h <<_ACEOF
8959#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8960_ACEOF
8961
8962ac_header_dirent=$ac_hdr; break
8963fi
8964
8965done
8966# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8967if test $ac_header_dirent = dirent.h; then
8968  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8969echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8970if test "${ac_cv_search_opendir+set}" = set; then
8971  echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973  ac_func_search_save_LIBS=$LIBS
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h.  */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h.  */
8980
8981/* Override any GCC internal prototype to avoid an error.
8982   Use char because int might match the return type of a GCC
8983   builtin and then its argument prototype would still apply.  */
8984#ifdef __cplusplus
8985extern "C"
8986#endif
8987char opendir ();
8988int
8989main ()
8990{
8991return opendir ();
8992  ;
8993  return 0;
8994}
8995_ACEOF
8996for ac_lib in '' dir; do
8997  if test -z "$ac_lib"; then
8998    ac_res="none required"
8999  else
9000    ac_res=-l$ac_lib
9001    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9002  fi
9003  rm -f conftest.$ac_objext conftest$ac_exeext
9004if { (ac_try="$ac_link"
9005case "(($ac_try" in
9006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007  *) ac_try_echo=$ac_try;;
9008esac
9009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010  (eval "$ac_link") 2>conftest.er1
9011  ac_status=$?
9012  grep -v '^ *+' conftest.er1 >conftest.err
9013  rm -f conftest.er1
9014  cat conftest.err >&5
9015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016  (exit $ac_status); } &&
9017	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9018  { (case "(($ac_try" in
9019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020  *) ac_try_echo=$ac_try;;
9021esac
9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023  (eval "$ac_try") 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; } &&
9027	 { ac_try='test -s conftest$ac_exeext'
9028  { (case "(($ac_try" in
9029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030  *) ac_try_echo=$ac_try;;
9031esac
9032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033  (eval "$ac_try") 2>&5
9034  ac_status=$?
9035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036  (exit $ac_status); }; }; then
9037  ac_cv_search_opendir=$ac_res
9038else
9039  echo "$as_me: failed program was:" >&5
9040sed 's/^/| /' conftest.$ac_ext >&5
9041
9042
9043fi
9044
9045rm -f core conftest.err conftest.$ac_objext \
9046      conftest$ac_exeext
9047  if test "${ac_cv_search_opendir+set}" = set; then
9048  break
9049fi
9050done
9051if test "${ac_cv_search_opendir+set}" = set; then
9052  :
9053else
9054  ac_cv_search_opendir=no
9055fi
9056rm conftest.$ac_ext
9057LIBS=$ac_func_search_save_LIBS
9058fi
9059{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9060echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9061ac_res=$ac_cv_search_opendir
9062if test "$ac_res" != no; then
9063  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9064
9065fi
9066
9067else
9068  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9069echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9070if test "${ac_cv_search_opendir+set}" = set; then
9071  echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073  ac_func_search_save_LIBS=$LIBS
9074cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h.  */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h.  */
9080
9081/* Override any GCC internal prototype to avoid an error.
9082   Use char because int might match the return type of a GCC
9083   builtin and then its argument prototype would still apply.  */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087char opendir ();
9088int
9089main ()
9090{
9091return opendir ();
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096for ac_lib in '' x; do
9097  if test -z "$ac_lib"; then
9098    ac_res="none required"
9099  else
9100    ac_res=-l$ac_lib
9101    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9102  fi
9103  rm -f conftest.$ac_objext conftest$ac_exeext
9104if { (ac_try="$ac_link"
9105case "(($ac_try" in
9106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107  *) ac_try_echo=$ac_try;;
9108esac
9109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110  (eval "$ac_link") 2>conftest.er1
9111  ac_status=$?
9112  grep -v '^ *+' conftest.er1 >conftest.err
9113  rm -f conftest.er1
9114  cat conftest.err >&5
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); } &&
9117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9118  { (case "(($ac_try" in
9119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120  *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123  (eval "$ac_try") 2>&5
9124  ac_status=$?
9125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126  (exit $ac_status); }; } &&
9127	 { ac_try='test -s conftest$ac_exeext'
9128  { (case "(($ac_try" in
9129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130  *) ac_try_echo=$ac_try;;
9131esac
9132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133  (eval "$ac_try") 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; }; then
9137  ac_cv_search_opendir=$ac_res
9138else
9139  echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142
9143fi
9144
9145rm -f core conftest.err conftest.$ac_objext \
9146      conftest$ac_exeext
9147  if test "${ac_cv_search_opendir+set}" = set; then
9148  break
9149fi
9150done
9151if test "${ac_cv_search_opendir+set}" = set; then
9152  :
9153else
9154  ac_cv_search_opendir=no
9155fi
9156rm conftest.$ac_ext
9157LIBS=$ac_func_search_save_LIBS
9158fi
9159{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9160echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9161ac_res=$ac_cv_search_opendir
9162if test "$ac_res" != no; then
9163  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164
9165fi
9166
9167fi
9168
9169
9170for ac_header in dlfcn.h
9171do
9172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9174  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9177  echo $ECHO_N "(cached) $ECHO_C" >&6
9178fi
9179ac_res=`eval echo '${'$as_ac_Header'}'`
9180	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9181echo "${ECHO_T}$ac_res" >&6; }
9182else
9183  # Is the header compilable?
9184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9186cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h.  */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h.  */
9192$ac_includes_default
9193#include <$ac_header>
9194_ACEOF
9195rm -f conftest.$ac_objext
9196if { (ac_try="$ac_compile"
9197case "(($ac_try" in
9198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199  *) ac_try_echo=$ac_try;;
9200esac
9201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202  (eval "$ac_compile") 2>conftest.er1
9203  ac_status=$?
9204  grep -v '^ *+' conftest.er1 >conftest.err
9205  rm -f conftest.er1
9206  cat conftest.err >&5
9207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208  (exit $ac_status); } &&
9209	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210  { (case "(($ac_try" in
9211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212  *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215  (eval "$ac_try") 2>&5
9216  ac_status=$?
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); }; } &&
9219	 { ac_try='test -s conftest.$ac_objext'
9220  { (case "(($ac_try" in
9221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222  *) ac_try_echo=$ac_try;;
9223esac
9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225  (eval "$ac_try") 2>&5
9226  ac_status=$?
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); }; }; then
9229  ac_header_compiler=yes
9230else
9231  echo "$as_me: failed program was:" >&5
9232sed 's/^/| /' conftest.$ac_ext >&5
9233
9234	ac_header_compiler=no
9235fi
9236
9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9239echo "${ECHO_T}$ac_header_compiler" >&6; }
9240
9241# Is the header present?
9242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9244cat >conftest.$ac_ext <<_ACEOF
9245/* confdefs.h.  */
9246_ACEOF
9247cat confdefs.h >>conftest.$ac_ext
9248cat >>conftest.$ac_ext <<_ACEOF
9249/* end confdefs.h.  */
9250#include <$ac_header>
9251_ACEOF
9252if { (ac_try="$ac_cpp conftest.$ac_ext"
9253case "(($ac_try" in
9254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255  *) ac_try_echo=$ac_try;;
9256esac
9257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9259  ac_status=$?
9260  grep -v '^ *+' conftest.er1 >conftest.err
9261  rm -f conftest.er1
9262  cat conftest.err >&5
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); } >/dev/null; then
9265  if test -s conftest.err; then
9266    ac_cpp_err=$ac_c_preproc_warn_flag
9267    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9268  else
9269    ac_cpp_err=
9270  fi
9271else
9272  ac_cpp_err=yes
9273fi
9274if test -z "$ac_cpp_err"; then
9275  ac_header_preproc=yes
9276else
9277  echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280  ac_header_preproc=no
9281fi
9282
9283rm -f conftest.err conftest.$ac_ext
9284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285echo "${ECHO_T}$ac_header_preproc" >&6; }
9286
9287# So?  What about this header?
9288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289  yes:no: )
9290    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294    ac_header_preproc=yes
9295    ;;
9296  no:yes:* )
9297    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9300echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9301    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9304echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9305    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9309    ( cat <<\_ASBOX
9310## ----------------------------------- ##
9311## Report this to llvmbugs@cs.uiuc.edu ##
9312## ----------------------------------- ##
9313_ASBOX
9314     ) | sed "s/^/$as_me: WARNING:     /" >&2
9315    ;;
9316esac
9317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9320  echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
9322  eval "$as_ac_Header=\$ac_header_preproc"
9323fi
9324ac_res=`eval echo '${'$as_ac_Header'}'`
9325	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9326echo "${ECHO_T}$ac_res" >&6; }
9327
9328fi
9329if test `eval echo '${'$as_ac_Header'}'` = yes; then
9330  cat >>confdefs.h <<_ACEOF
9331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9332_ACEOF
9333
9334fi
9335
9336done
9337
9338# Check whether --enable-ltdl-install was given.
9339if test "${enable_ltdl_install+set}" = set; then
9340  enableval=$enable_ltdl_install;
9341fi
9342
9343
9344
9345
9346if test x"${enable_ltdl_install-no}" != xno; then
9347  INSTALL_LTDL_TRUE=
9348  INSTALL_LTDL_FALSE='#'
9349else
9350  INSTALL_LTDL_TRUE='#'
9351  INSTALL_LTDL_FALSE=
9352fi
9353
9354
9355
9356if test x"${enable_ltdl_convenience-no}" != xno; then
9357  CONVENIENCE_LTDL_TRUE=
9358  CONVENIENCE_LTDL_FALSE='#'
9359else
9360  CONVENIENCE_LTDL_TRUE='#'
9361  CONVENIENCE_LTDL_FALSE=
9362fi
9363
9364
9365{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9366echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9367library_names_spec=
9368libname_spec='lib$name'
9369soname_spec=
9370shrext_cmds=".so"
9371postinstall_cmds=
9372postuninstall_cmds=
9373finish_cmds=
9374finish_eval=
9375shlibpath_var=
9376shlibpath_overrides_runpath=unknown
9377version_type=none
9378dynamic_linker="$host_os ld.so"
9379sys_lib_dlsearch_path_spec="/lib /usr/lib"
9380if test "$GCC" = yes; then
9381  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9382  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9383    # if the path contains ";" then we assume it to be the separator
9384    # otherwise default to the standard path separator (i.e. ":") - it is
9385    # assumed that no part of a normal pathname contains ";" but that should
9386    # okay in the real world where ";" in dirpaths is itself problematic.
9387    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388  else
9389    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9390  fi
9391else
9392  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9393fi
9394need_lib_prefix=unknown
9395hardcode_into_libs=no
9396
9397# when you set need_version to no, make sure it does not cause -set_version
9398# flags to be left without arguments
9399need_version=unknown
9400
9401case $host_os in
9402aix3*)
9403  version_type=linux
9404  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9405  shlibpath_var=LIBPATH
9406
9407  # AIX 3 has no versioning support, so we append a major version to the name.
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  ;;
9410
9411aix4* | aix5*)
9412  version_type=linux
9413  need_lib_prefix=no
9414  need_version=no
9415  hardcode_into_libs=yes
9416  if test "$host_cpu" = ia64; then
9417    # AIX 5 supports IA64
9418    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9419    shlibpath_var=LD_LIBRARY_PATH
9420  else
9421    # With GCC up to 2.95.x, collect2 would create an import file
9422    # for dependence libraries.  The import file would start with
9423    # the line `#! .'.  This would cause the generated library to
9424    # depend on `.', always an invalid library.  This was fixed in
9425    # development snapshots of GCC prior to 3.0.
9426    case $host_os in
9427      aix4 | aix4.[01] | aix4.[01].*)
9428      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9429	   echo ' yes '
9430	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9431	:
9432      else
9433	can_build_shared=no
9434      fi
9435      ;;
9436    esac
9437    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9438    # soname into executable. Probably we can add versioning support to
9439    # collect2, so additional links can be useful in future.
9440    if test "$aix_use_runtimelinking" = yes; then
9441      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9442      # instead of lib<name>.a to let people know that these are not
9443      # typical AIX shared libraries.
9444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445    else
9446      # We preserve .a as extension for shared libraries through AIX4.2
9447      # and later when we are not doing run time linking.
9448      library_names_spec='${libname}${release}.a $libname.a'
9449      soname_spec='${libname}${release}${shared_ext}$major'
9450    fi
9451    shlibpath_var=LIBPATH
9452  fi
9453  ;;
9454
9455amigaos*)
9456  library_names_spec='$libname.ixlibrary $libname.a'
9457  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9458  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'
9459  ;;
9460
9461beos*)
9462  library_names_spec='${libname}${shared_ext}'
9463  dynamic_linker="$host_os ld.so"
9464  shlibpath_var=LIBRARY_PATH
9465  ;;
9466
9467bsdi[45]*)
9468  version_type=linux
9469  need_version=no
9470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471  soname_spec='${libname}${release}${shared_ext}$major'
9472  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9473  shlibpath_var=LD_LIBRARY_PATH
9474  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9475  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9476  # the default ld.so.conf also contains /usr/contrib/lib and
9477  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9478  # libtool to hard-code these into programs
9479  ;;
9480
9481cygwin* | mingw* | pw32*)
9482  version_type=windows
9483  shrext_cmds=".dll"
9484  need_version=no
9485  need_lib_prefix=no
9486
9487  case $GCC,$host_os in
9488  yes,cygwin* | yes,mingw* | yes,pw32*)
9489    library_names_spec='$libname.dll.a'
9490    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9491    postinstall_cmds='base_file=`basename \${file}`~
9492      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9493      dldir=$destdir/`dirname \$dlpath`~
9494      test -d \$dldir || mkdir -p \$dldir~
9495      $install_prog $dir/$dlname \$dldir/$dlname~
9496      chmod a+x \$dldir/$dlname'
9497    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9498      dlpath=$dir/\$dldll~
9499       $rm \$dlpath'
9500    shlibpath_overrides_runpath=yes
9501
9502    case $host_os in
9503    cygwin*)
9504      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9505      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9506      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9507      ;;
9508    mingw*)
9509      # MinGW DLLs use traditional 'lib' prefix
9510      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9511      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9512      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9513        # It is most probably a Windows format PATH printed by
9514        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9515        # path with ; separators, and with drive letters. We can handle the
9516        # drive letters (cygwin fileutils understands them), so leave them,
9517        # especially as we might pass files found there to a mingw objdump,
9518        # which wouldn't understand a cygwinified path. Ahh.
9519        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9520      else
9521        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9522      fi
9523      ;;
9524    pw32*)
9525      # pw32 DLLs use 'pw' prefix rather than 'lib'
9526      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527      ;;
9528    esac
9529    ;;
9530
9531  *)
9532    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9533    ;;
9534  esac
9535  dynamic_linker='Win32 ld.exe'
9536  # FIXME: first we should search . and the directory the executable is in
9537  shlibpath_var=PATH
9538  ;;
9539
9540darwin* | rhapsody*)
9541  dynamic_linker="$host_os dyld"
9542  version_type=darwin
9543  need_lib_prefix=no
9544  need_version=no
9545  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9546  soname_spec='${libname}${release}${major}$shared_ext'
9547  shlibpath_overrides_runpath=yes
9548  shlibpath_var=DYLD_LIBRARY_PATH
9549  shrext_cmds='.dylib'
9550  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9551  if test "$GCC" = yes; then
9552    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"`
9553  else
9554    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9555  fi
9556  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9557  ;;
9558
9559dgux*)
9560  version_type=linux
9561  need_lib_prefix=no
9562  need_version=no
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9564  soname_spec='${libname}${release}${shared_ext}$major'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  ;;
9567
9568freebsd1*)
9569  dynamic_linker=no
9570  ;;
9571
9572kfreebsd*-gnu)
9573  version_type=linux
9574  need_lib_prefix=no
9575  need_version=no
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577  soname_spec='${libname}${release}${shared_ext}$major'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  shlibpath_overrides_runpath=no
9580  hardcode_into_libs=yes
9581  dynamic_linker='GNU ld.so'
9582  ;;
9583
9584freebsd* | dragonfly*)
9585  # DragonFly does not have aout.  When/if they implement a new
9586  # versioning mechanism, adjust this.
9587  if test -x /usr/bin/objformat; then
9588    objformat=`/usr/bin/objformat`
9589  else
9590    case $host_os in
9591    freebsd[123]*) objformat=aout ;;
9592    *) objformat=elf ;;
9593    esac
9594  fi
9595  version_type=freebsd-$objformat
9596  case $version_type in
9597    freebsd-elf*)
9598      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9599      need_version=no
9600      need_lib_prefix=no
9601      ;;
9602    freebsd-*)
9603      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9604      need_version=yes
9605      ;;
9606  esac
9607  shlibpath_var=LD_LIBRARY_PATH
9608  case $host_os in
9609  freebsd2*)
9610    shlibpath_overrides_runpath=yes
9611    ;;
9612  freebsd3.[01]* | freebsdelf3.[01]*)
9613    shlibpath_overrides_runpath=yes
9614    hardcode_into_libs=yes
9615    ;;
9616  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9617  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9618    shlibpath_overrides_runpath=no
9619    hardcode_into_libs=yes
9620    ;;
9621  freebsd*) # from 4.6 on
9622    shlibpath_overrides_runpath=yes
9623    hardcode_into_libs=yes
9624    ;;
9625  esac
9626  ;;
9627
9628gnu*)
9629  version_type=linux
9630  need_lib_prefix=no
9631  need_version=no
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9633  soname_spec='${libname}${release}${shared_ext}$major'
9634  shlibpath_var=LD_LIBRARY_PATH
9635  hardcode_into_libs=yes
9636  ;;
9637
9638hpux9* | hpux10* | hpux11*)
9639  # Give a soname corresponding to the major version so that dld.sl refuses to
9640  # link against other versions.
9641  version_type=sunos
9642  need_lib_prefix=no
9643  need_version=no
9644  case $host_cpu in
9645  ia64*)
9646    shrext_cmds='.so'
9647    hardcode_into_libs=yes
9648    dynamic_linker="$host_os dld.so"
9649    shlibpath_var=LD_LIBRARY_PATH
9650    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652    soname_spec='${libname}${release}${shared_ext}$major'
9653    if test "X$HPUX_IA64_MODE" = X32; then
9654      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9655    else
9656      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9657    fi
9658    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9659    ;;
9660   hppa*64*)
9661     shrext_cmds='.sl'
9662     hardcode_into_libs=yes
9663     dynamic_linker="$host_os dld.sl"
9664     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9665     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667     soname_spec='${libname}${release}${shared_ext}$major'
9668     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9669     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9670     ;;
9671   *)
9672    shrext_cmds='.sl'
9673    dynamic_linker="$host_os dld.sl"
9674    shlibpath_var=SHLIB_PATH
9675    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677    soname_spec='${libname}${release}${shared_ext}$major'
9678    ;;
9679  esac
9680  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9681  postinstall_cmds='chmod 555 $lib'
9682  ;;
9683
9684interix3*)
9685  version_type=linux
9686  need_lib_prefix=no
9687  need_version=no
9688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9689  soname_spec='${libname}${release}${shared_ext}$major'
9690  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  shlibpath_overrides_runpath=no
9693  hardcode_into_libs=yes
9694  ;;
9695
9696irix5* | irix6* | nonstopux*)
9697  case $host_os in
9698    nonstopux*) version_type=nonstopux ;;
9699    *)
9700	if test "$lt_cv_prog_gnu_ld" = yes; then
9701		version_type=linux
9702	else
9703		version_type=irix
9704	fi ;;
9705  esac
9706  need_lib_prefix=no
9707  need_version=no
9708  soname_spec='${libname}${release}${shared_ext}$major'
9709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9710  case $host_os in
9711  irix5* | nonstopux*)
9712    libsuff= shlibsuff=
9713    ;;
9714  *)
9715    case $LD in # libtool.m4 will add one of these switches to LD
9716    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9717      libsuff= shlibsuff= libmagic=32-bit;;
9718    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9719      libsuff=32 shlibsuff=N32 libmagic=N32;;
9720    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9721      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9722    *) libsuff= shlibsuff= libmagic=never-match;;
9723    esac
9724    ;;
9725  esac
9726  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9727  shlibpath_overrides_runpath=no
9728  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9729  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9730  hardcode_into_libs=yes
9731  ;;
9732
9733# No shared lib support for Linux oldld, aout, or coff.
9734linux*oldld* | linux*aout* | linux*coff*)
9735  dynamic_linker=no
9736  ;;
9737
9738# This must be Linux ELF.
9739linux*)
9740  version_type=linux
9741  need_lib_prefix=no
9742  need_version=no
9743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744  soname_spec='${libname}${release}${shared_ext}$major'
9745  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9746  shlibpath_var=LD_LIBRARY_PATH
9747  shlibpath_overrides_runpath=no
9748  # This implies no fast_install, which is unacceptable.
9749  # Some rework will be needed to allow for fast_install
9750  # before this can be enabled.
9751  hardcode_into_libs=yes
9752
9753  # Append ld.so.conf contents to the search path
9754  if test -f /etc/ld.so.conf; then
9755    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' ' '`
9756    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9757  fi
9758
9759  # We used to test for /lib/ld.so.1 and disable shared libraries on
9760  # powerpc, because MkLinux only supported shared libraries with the
9761  # GNU dynamic linker.  Since this was broken with cross compilers,
9762  # most powerpc-linux boxes support dynamic linking these days and
9763  # people can always --disable-shared, the test was removed, and we
9764  # assume the GNU/Linux dynamic linker is in use.
9765  dynamic_linker='GNU/Linux ld.so'
9766  ;;
9767
9768knetbsd*-gnu)
9769  version_type=linux
9770  need_lib_prefix=no
9771  need_version=no
9772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9773  soname_spec='${libname}${release}${shared_ext}$major'
9774  shlibpath_var=LD_LIBRARY_PATH
9775  shlibpath_overrides_runpath=no
9776  hardcode_into_libs=yes
9777  dynamic_linker='GNU ld.so'
9778  ;;
9779
9780netbsd*)
9781  version_type=sunos
9782  need_lib_prefix=no
9783  need_version=no
9784  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9786    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9787    dynamic_linker='NetBSD (a.out) ld.so'
9788  else
9789    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9790    soname_spec='${libname}${release}${shared_ext}$major'
9791    dynamic_linker='NetBSD ld.elf_so'
9792  fi
9793  shlibpath_var=LD_LIBRARY_PATH
9794  shlibpath_overrides_runpath=yes
9795  hardcode_into_libs=yes
9796  ;;
9797
9798newsos6)
9799  version_type=linux
9800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801  shlibpath_var=LD_LIBRARY_PATH
9802  shlibpath_overrides_runpath=yes
9803  ;;
9804
9805nto-qnx*)
9806  version_type=linux
9807  need_lib_prefix=no
9808  need_version=no
9809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810  soname_spec='${libname}${release}${shared_ext}$major'
9811  shlibpath_var=LD_LIBRARY_PATH
9812  shlibpath_overrides_runpath=yes
9813  ;;
9814
9815openbsd*)
9816  version_type=sunos
9817  sys_lib_dlsearch_path_spec="/usr/lib"
9818  need_lib_prefix=no
9819  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9820  case $host_os in
9821    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9822    *)                         need_version=no  ;;
9823  esac
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9826  shlibpath_var=LD_LIBRARY_PATH
9827  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9828    case $host_os in
9829      openbsd2.[89] | openbsd2.[89].*)
9830	shlibpath_overrides_runpath=no
9831	;;
9832      *)
9833	shlibpath_overrides_runpath=yes
9834	;;
9835      esac
9836  else
9837    shlibpath_overrides_runpath=yes
9838  fi
9839  ;;
9840
9841os2*)
9842  libname_spec='$name'
9843  shrext_cmds=".dll"
9844  need_lib_prefix=no
9845  library_names_spec='$libname${shared_ext} $libname.a'
9846  dynamic_linker='OS/2 ld.exe'
9847  shlibpath_var=LIBPATH
9848  ;;
9849
9850osf3* | osf4* | osf5*)
9851  version_type=osf
9852  need_lib_prefix=no
9853  need_version=no
9854  soname_spec='${libname}${release}${shared_ext}$major'
9855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856  shlibpath_var=LD_LIBRARY_PATH
9857  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9858  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9859  ;;
9860
9861solaris*)
9862  version_type=linux
9863  need_lib_prefix=no
9864  need_version=no
9865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  shlibpath_var=LD_LIBRARY_PATH
9868  shlibpath_overrides_runpath=yes
9869  hardcode_into_libs=yes
9870  # ldd complains unless libraries are executable
9871  postinstall_cmds='chmod +x $lib'
9872  ;;
9873
9874sunos4*)
9875  version_type=sunos
9876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9877  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9878  shlibpath_var=LD_LIBRARY_PATH
9879  shlibpath_overrides_runpath=yes
9880  if test "$with_gnu_ld" = yes; then
9881    need_lib_prefix=no
9882  fi
9883  need_version=yes
9884  ;;
9885
9886sysv4 | sysv4.3*)
9887  version_type=linux
9888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889  soname_spec='${libname}${release}${shared_ext}$major'
9890  shlibpath_var=LD_LIBRARY_PATH
9891  case $host_vendor in
9892    sni)
9893      shlibpath_overrides_runpath=no
9894      need_lib_prefix=no
9895      export_dynamic_flag_spec='${wl}-Blargedynsym'
9896      runpath_var=LD_RUN_PATH
9897      ;;
9898    siemens)
9899      need_lib_prefix=no
9900      ;;
9901    motorola)
9902      need_lib_prefix=no
9903      need_version=no
9904      shlibpath_overrides_runpath=no
9905      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9906      ;;
9907  esac
9908  ;;
9909
9910sysv4*MP*)
9911  if test -d /usr/nec ;then
9912    version_type=linux
9913    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914    soname_spec='$libname${shared_ext}.$major'
9915    shlibpath_var=LD_LIBRARY_PATH
9916  fi
9917  ;;
9918
9919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920  version_type=freebsd-elf
9921  need_lib_prefix=no
9922  need_version=no
9923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924  soname_spec='${libname}${release}${shared_ext}$major'
9925  shlibpath_var=LD_LIBRARY_PATH
9926  hardcode_into_libs=yes
9927  if test "$with_gnu_ld" = yes; then
9928    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9929    shlibpath_overrides_runpath=no
9930  else
9931    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932    shlibpath_overrides_runpath=yes
9933    case $host_os in
9934      sco3.2v5*)
9935        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9936	;;
9937    esac
9938  fi
9939  sys_lib_dlsearch_path_spec='/usr/lib'
9940  ;;
9941
9942uts4*)
9943  version_type=linux
9944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945  soname_spec='${libname}${release}${shared_ext}$major'
9946  shlibpath_var=LD_LIBRARY_PATH
9947  ;;
9948
9949*)
9950  dynamic_linker=no
9951  ;;
9952esac
9953{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9954echo "${ECHO_T}$dynamic_linker" >&6; }
9955test "$dynamic_linker" = no && can_build_shared=no
9956
9957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9958if test "$GCC" = yes; then
9959  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9960fi
9961
9962
9963{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9964echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9965if test "${libltdl_cv_shlibext+set}" = set; then
9966  echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968
9969module=yes
9970eval libltdl_cv_shlibext=$shrext_cmds
9971
9972fi
9973{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9974echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9975if test -n "$libltdl_cv_shlibext"; then
9976
9977cat >>confdefs.h <<_ACEOF
9978#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9979_ACEOF
9980
9981fi
9982
9983
9984{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9985echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9986if test "${libltdl_cv_shlibpath_var+set}" = set; then
9987  echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989  libltdl_cv_shlibpath_var="$shlibpath_var"
9990fi
9991{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9992echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9993if test -n "$libltdl_cv_shlibpath_var"; then
9994
9995cat >>confdefs.h <<_ACEOF
9996#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9997_ACEOF
9998
9999fi
10000
10001
10002{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10003echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10004if test "${libltdl_cv_sys_search_path+set}" = set; then
10005  echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10008fi
10009{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10010echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10011if test -n "$libltdl_cv_sys_search_path"; then
10012  sys_search_path=
10013  for dir in $libltdl_cv_sys_search_path; do
10014    if test -z "$sys_search_path"; then
10015      sys_search_path="$dir"
10016    else
10017      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10018    fi
10019  done
10020
10021cat >>confdefs.h <<_ACEOF
10022#define LTDL_SYSSEARCHPATH "$sys_search_path"
10023_ACEOF
10024
10025fi
10026
10027{ echo "$as_me:$LINENO: checking for objdir" >&5
10028echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10029if test "${libltdl_cv_objdir+set}" = set; then
10030  echo $ECHO_N "(cached) $ECHO_C" >&6
10031else
10032  libltdl_cv_objdir="$objdir"
10033  if test -n "$objdir"; then
10034    :
10035  else
10036    rm -f .libs 2>/dev/null
10037    mkdir .libs 2>/dev/null
10038    if test -d .libs; then
10039      libltdl_cv_objdir=.libs
10040    else
10041      # MS-DOS does not allow filenames that begin with a dot.
10042      libltdl_cv_objdir=_libs
10043    fi
10044  rmdir .libs 2>/dev/null
10045  fi
10046
10047fi
10048{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10049echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10050
10051cat >>confdefs.h <<_ACEOF
10052#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10053_ACEOF
10054
10055
10056
10057
10058
10059
10060# Check for command to grab the raw symbol name followed by C symbol from nm.
10061{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10062echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10063if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066
10067# These are sane defaults that work on at least a few old systems.
10068# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10069
10070# Character class describing NM global symbol codes.
10071symcode='[BCDEGRST]'
10072
10073# Regexp to match symbols that can be accessed directly from C.
10074sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10075
10076# Transform an extracted symbol line into a proper C declaration
10077lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10078
10079# Transform an extracted symbol line into symbol name and symbol address
10080lt_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'"
10081
10082# Define system-specific variables.
10083case $host_os in
10084aix*)
10085  symcode='[BCDT]'
10086  ;;
10087cygwin* | mingw* | pw32*)
10088  symcode='[ABCDGISTW]'
10089  ;;
10090hpux*) # Its linker distinguishes data from code symbols
10091  if test "$host_cpu" = ia64; then
10092    symcode='[ABCDEGRST]'
10093  fi
10094  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10095  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'"
10096  ;;
10097linux*)
10098  if test "$host_cpu" = ia64; then
10099    symcode='[ABCDGIRSTW]'
10100    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10101    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'"
10102  fi
10103  ;;
10104irix* | nonstopux*)
10105  symcode='[BCDEGRST]'
10106  ;;
10107osf*)
10108  symcode='[BCDEGQRST]'
10109  ;;
10110solaris*)
10111  symcode='[BDRT]'
10112  ;;
10113sco3.2v5*)
10114  symcode='[DT]'
10115  ;;
10116sysv4.2uw2*)
10117  symcode='[DT]'
10118  ;;
10119sysv5* | sco5v6* | unixware* | OpenUNIX*)
10120  symcode='[ABDT]'
10121  ;;
10122sysv4)
10123  symcode='[DFNSTU]'
10124  ;;
10125esac
10126
10127# Handle CRLF in mingw tool chain
10128opt_cr=
10129case $build_os in
10130mingw*)
10131  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10132  ;;
10133esac
10134
10135# If we're using GNU nm, then use its standard symbol codes.
10136case `$NM -V 2>&1` in
10137*GNU* | *'with BFD'*)
10138  symcode='[ABCDGIRSTW]' ;;
10139esac
10140
10141# Try without a prefix undercore, then with it.
10142for ac_symprfx in "" "_"; do
10143
10144  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10145  symxfrm="\\1 $ac_symprfx\\2 \\2"
10146
10147  # Write the raw and C identifiers.
10148  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10149
10150  # Check to see that the pipe works correctly.
10151  pipe_works=no
10152
10153  rm -f conftest*
10154  cat > conftest.$ac_ext <<EOF
10155#ifdef __cplusplus
10156extern "C" {
10157#endif
10158char nm_test_var;
10159void nm_test_func(){}
10160#ifdef __cplusplus
10161}
10162#endif
10163int main(){nm_test_var='a';nm_test_func();return(0);}
10164EOF
10165
10166  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167  (eval $ac_compile) 2>&5
10168  ac_status=$?
10169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170  (exit $ac_status); }; then
10171    # Now try to grab the symbols.
10172    nlist=conftest.nm
10173    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10174  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10175  ac_status=$?
10176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); } && test -s "$nlist"; then
10178      # Try sorting and uniquifying the output.
10179      if sort "$nlist" | uniq > "$nlist"T; then
10180	mv -f "$nlist"T "$nlist"
10181      else
10182	rm -f "$nlist"T
10183      fi
10184
10185      # Make sure that we snagged all the symbols we need.
10186      if grep ' nm_test_var$' "$nlist" >/dev/null; then
10187	if grep ' nm_test_func$' "$nlist" >/dev/null; then
10188	  cat <<EOF > conftest.$ac_ext
10189#ifdef __cplusplus
10190extern "C" {
10191#endif
10192
10193EOF
10194	  # Now generate the symbol file.
10195	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10196
10197	  cat <<EOF >> conftest.$ac_ext
10198#if defined (__STDC__) && __STDC__
10199# define lt_ptr_t void *
10200#else
10201# define lt_ptr_t char *
10202# define const
10203#endif
10204
10205/* The mapping between symbol names and symbols. */
10206const struct {
10207  const char *name;
10208  lt_ptr_t address;
10209}
10210lt_preloaded_symbols[] =
10211{
10212EOF
10213	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10214	  cat <<\EOF >> conftest.$ac_ext
10215  {0, (lt_ptr_t) 0}
10216};
10217
10218#ifdef __cplusplus
10219}
10220#endif
10221EOF
10222	  # Now try linking the two files.
10223	  mv conftest.$ac_objext conftstm.$ac_objext
10224	  lt_save_LIBS="$LIBS"
10225	  lt_save_CFLAGS="$CFLAGS"
10226	  LIBS="conftstm.$ac_objext"
10227	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10228	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229  (eval $ac_link) 2>&5
10230  ac_status=$?
10231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10233	    pipe_works=yes
10234	  fi
10235	  LIBS="$lt_save_LIBS"
10236	  CFLAGS="$lt_save_CFLAGS"
10237	else
10238	  echo "cannot find nm_test_func in $nlist" >&5
10239	fi
10240      else
10241	echo "cannot find nm_test_var in $nlist" >&5
10242      fi
10243    else
10244      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10245    fi
10246  else
10247    echo "$progname: failed program was:" >&5
10248    cat conftest.$ac_ext >&5
10249  fi
10250  rm -f conftest* conftst*
10251
10252  # Do not use the global_symbol_pipe unless it works.
10253  if test "$pipe_works" = yes; then
10254    break
10255  else
10256    lt_cv_sys_global_symbol_pipe=
10257  fi
10258done
10259
10260fi
10261
10262if test -z "$lt_cv_sys_global_symbol_pipe"; then
10263  lt_cv_sys_global_symbol_to_cdecl=
10264fi
10265if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10266  { echo "$as_me:$LINENO: result: failed" >&5
10267echo "${ECHO_T}failed" >&6; }
10268else
10269  { echo "$as_me:$LINENO: result: ok" >&5
10270echo "${ECHO_T}ok" >&6; }
10271fi
10272
10273
10274{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10275echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10276if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10277  echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10280    libltdl_cv_preloaded_symbols=yes
10281  else
10282    libltdl_cv_preloaded_symbols=no
10283  fi
10284
10285fi
10286{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10287echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10288if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10289
10290cat >>confdefs.h <<\_ACEOF
10291#define HAVE_PRELOADED_SYMBOLS 1
10292_ACEOF
10293
10294fi
10295
10296LIBADD_DL=
10297
10298ac_ext=c
10299ac_cpp='$CPP $CPPFLAGS'
10300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304
10305{ echo "$as_me:$LINENO: checking for shl_load" >&5
10306echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10307if test "${ac_cv_func_shl_load+set}" = set; then
10308  echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310  cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h.  */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h.  */
10316/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10317   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10318#define shl_load innocuous_shl_load
10319
10320/* System header to define __stub macros and hopefully few prototypes,
10321    which can conflict with char shl_load (); below.
10322    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10323    <limits.h> exists even on freestanding compilers.  */
10324
10325#ifdef __STDC__
10326# include <limits.h>
10327#else
10328# include <assert.h>
10329#endif
10330
10331#undef shl_load
10332
10333/* Override any GCC internal prototype to avoid an error.
10334   Use char because int might match the return type of a GCC
10335   builtin and then its argument prototype would still apply.  */
10336#ifdef __cplusplus
10337extern "C"
10338#endif
10339char shl_load ();
10340/* The GNU C library defines this for functions which it implements
10341    to always fail with ENOSYS.  Some functions are actually named
10342    something starting with __ and the normal name is an alias.  */
10343#if defined __stub_shl_load || defined __stub___shl_load
10344choke me
10345#endif
10346
10347int
10348main ()
10349{
10350return shl_load ();
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext conftest$ac_exeext
10356if { (ac_try="$ac_link"
10357case "(($ac_try" in
10358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359  *) ac_try_echo=$ac_try;;
10360esac
10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362  (eval "$ac_link") 2>conftest.er1
10363  ac_status=$?
10364  grep -v '^ *+' conftest.er1 >conftest.err
10365  rm -f conftest.er1
10366  cat conftest.err >&5
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); } &&
10369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10370  { (case "(($ac_try" in
10371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372  *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375  (eval "$ac_try") 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); }; } &&
10379	 { ac_try='test -s conftest$ac_exeext'
10380  { (case "(($ac_try" in
10381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382  *) ac_try_echo=$ac_try;;
10383esac
10384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385  (eval "$ac_try") 2>&5
10386  ac_status=$?
10387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388  (exit $ac_status); }; }; then
10389  ac_cv_func_shl_load=yes
10390else
10391  echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394	ac_cv_func_shl_load=no
10395fi
10396
10397rm -f core conftest.err conftest.$ac_objext \
10398      conftest$ac_exeext conftest.$ac_ext
10399fi
10400{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10401echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10402if test $ac_cv_func_shl_load = yes; then
10403
10404cat >>confdefs.h <<\_ACEOF
10405#define HAVE_SHL_LOAD 1
10406_ACEOF
10407
10408else
10409  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10411if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412  echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414  ac_check_lib_save_LIBS=$LIBS
10415LIBS="-ldld  $LIBS"
10416cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h.  */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h.  */
10422
10423/* Override any GCC internal prototype to avoid an error.
10424   Use char because int might match the return type of a GCC
10425   builtin and then its argument prototype would still apply.  */
10426#ifdef __cplusplus
10427extern "C"
10428#endif
10429char shl_load ();
10430int
10431main ()
10432{
10433return shl_load ();
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext conftest$ac_exeext
10439if { (ac_try="$ac_link"
10440case "(($ac_try" in
10441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442  *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445  (eval "$ac_link") 2>conftest.er1
10446  ac_status=$?
10447  grep -v '^ *+' conftest.er1 >conftest.err
10448  rm -f conftest.er1
10449  cat conftest.err >&5
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); } &&
10452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453  { (case "(($ac_try" in
10454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455  *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458  (eval "$ac_try") 2>&5
10459  ac_status=$?
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); }; } &&
10462	 { ac_try='test -s conftest$ac_exeext'
10463  { (case "(($ac_try" in
10464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465  *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468  (eval "$ac_try") 2>&5
10469  ac_status=$?
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); }; }; then
10472  ac_cv_lib_dld_shl_load=yes
10473else
10474  echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477	ac_cv_lib_dld_shl_load=no
10478fi
10479
10480rm -f core conftest.err conftest.$ac_objext \
10481      conftest$ac_exeext conftest.$ac_ext
10482LIBS=$ac_check_lib_save_LIBS
10483fi
10484{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10485echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10486if test $ac_cv_lib_dld_shl_load = yes; then
10487
10488cat >>confdefs.h <<\_ACEOF
10489#define HAVE_SHL_LOAD 1
10490_ACEOF
10491
10492	LIBADD_DL="$LIBADD_DL -ldld"
10493else
10494  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10495echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10496if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10497  echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499  ac_check_lib_save_LIBS=$LIBS
10500LIBS="-ldl  $LIBS"
10501cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h.  */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h.  */
10507
10508/* Override any GCC internal prototype to avoid an error.
10509   Use char because int might match the return type of a GCC
10510   builtin and then its argument prototype would still apply.  */
10511#ifdef __cplusplus
10512extern "C"
10513#endif
10514char dlopen ();
10515int
10516main ()
10517{
10518return dlopen ();
10519  ;
10520  return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext conftest$ac_exeext
10524if { (ac_try="$ac_link"
10525case "(($ac_try" in
10526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527  *) ac_try_echo=$ac_try;;
10528esac
10529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530  (eval "$ac_link") 2>conftest.er1
10531  ac_status=$?
10532  grep -v '^ *+' conftest.er1 >conftest.err
10533  rm -f conftest.er1
10534  cat conftest.err >&5
10535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); } &&
10537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10538  { (case "(($ac_try" in
10539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540  *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543  (eval "$ac_try") 2>&5
10544  ac_status=$?
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); }; } &&
10547	 { ac_try='test -s conftest$ac_exeext'
10548  { (case "(($ac_try" in
10549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550  *) ac_try_echo=$ac_try;;
10551esac
10552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553  (eval "$ac_try") 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); }; }; then
10557  ac_cv_lib_dl_dlopen=yes
10558else
10559  echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
10562	ac_cv_lib_dl_dlopen=no
10563fi
10564
10565rm -f core conftest.err conftest.$ac_objext \
10566      conftest$ac_exeext conftest.$ac_ext
10567LIBS=$ac_check_lib_save_LIBS
10568fi
10569{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10570echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10571if test $ac_cv_lib_dl_dlopen = yes; then
10572
10573cat >>confdefs.h <<\_ACEOF
10574#define HAVE_LIBDL 1
10575_ACEOF
10576
10577	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10578else
10579  cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h.  */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h.  */
10585#if HAVE_DLFCN_H
10586#  include <dlfcn.h>
10587#endif
10588
10589int
10590main ()
10591{
10592dlopen(0, 0);
10593  ;
10594  return 0;
10595}
10596_ACEOF
10597rm -f conftest.$ac_objext conftest$ac_exeext
10598if { (ac_try="$ac_link"
10599case "(($ac_try" in
10600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601  *) ac_try_echo=$ac_try;;
10602esac
10603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604  (eval "$ac_link") 2>conftest.er1
10605  ac_status=$?
10606  grep -v '^ *+' conftest.er1 >conftest.err
10607  rm -f conftest.er1
10608  cat conftest.err >&5
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); } &&
10611	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612  { (case "(($ac_try" in
10613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614  *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617  (eval "$ac_try") 2>&5
10618  ac_status=$?
10619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620  (exit $ac_status); }; } &&
10621	 { ac_try='test -s conftest$ac_exeext'
10622  { (case "(($ac_try" in
10623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624  *) ac_try_echo=$ac_try;;
10625esac
10626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627  (eval "$ac_try") 2>&5
10628  ac_status=$?
10629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630  (exit $ac_status); }; }; then
10631
10632cat >>confdefs.h <<\_ACEOF
10633#define HAVE_LIBDL 1
10634_ACEOF
10635 libltdl_cv_func_dlopen="yes"
10636else
10637  echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10641echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10642if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10643  echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645  ac_check_lib_save_LIBS=$LIBS
10646LIBS="-lsvld  $LIBS"
10647cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h.  */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h.  */
10653
10654/* Override any GCC internal prototype to avoid an error.
10655   Use char because int might match the return type of a GCC
10656   builtin and then its argument prototype would still apply.  */
10657#ifdef __cplusplus
10658extern "C"
10659#endif
10660char dlopen ();
10661int
10662main ()
10663{
10664return dlopen ();
10665  ;
10666  return 0;
10667}
10668_ACEOF
10669rm -f conftest.$ac_objext conftest$ac_exeext
10670if { (ac_try="$ac_link"
10671case "(($ac_try" in
10672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673  *) ac_try_echo=$ac_try;;
10674esac
10675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676  (eval "$ac_link") 2>conftest.er1
10677  ac_status=$?
10678  grep -v '^ *+' conftest.er1 >conftest.err
10679  rm -f conftest.er1
10680  cat conftest.err >&5
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); } &&
10683	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684  { (case "(($ac_try" in
10685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686  *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689  (eval "$ac_try") 2>&5
10690  ac_status=$?
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); }; } &&
10693	 { ac_try='test -s conftest$ac_exeext'
10694  { (case "(($ac_try" in
10695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696  *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699  (eval "$ac_try") 2>&5
10700  ac_status=$?
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); }; }; then
10703  ac_cv_lib_svld_dlopen=yes
10704else
10705  echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708	ac_cv_lib_svld_dlopen=no
10709fi
10710
10711rm -f core conftest.err conftest.$ac_objext \
10712      conftest$ac_exeext conftest.$ac_ext
10713LIBS=$ac_check_lib_save_LIBS
10714fi
10715{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10716echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10717if test $ac_cv_lib_svld_dlopen = yes; then
10718
10719cat >>confdefs.h <<\_ACEOF
10720#define HAVE_LIBDL 1
10721_ACEOF
10722
10723	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10724else
10725  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10726echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10727if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10728  echo $ECHO_N "(cached) $ECHO_C" >&6
10729else
10730  ac_check_lib_save_LIBS=$LIBS
10731LIBS="-ldld  $LIBS"
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h.  */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h.  */
10738
10739/* Override any GCC internal prototype to avoid an error.
10740   Use char because int might match the return type of a GCC
10741   builtin and then its argument prototype would still apply.  */
10742#ifdef __cplusplus
10743extern "C"
10744#endif
10745char dld_link ();
10746int
10747main ()
10748{
10749return dld_link ();
10750  ;
10751  return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext conftest$ac_exeext
10755if { (ac_try="$ac_link"
10756case "(($ac_try" in
10757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758  *) ac_try_echo=$ac_try;;
10759esac
10760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761  (eval "$ac_link") 2>conftest.er1
10762  ac_status=$?
10763  grep -v '^ *+' conftest.er1 >conftest.err
10764  rm -f conftest.er1
10765  cat conftest.err >&5
10766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767  (exit $ac_status); } &&
10768	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10769  { (case "(($ac_try" in
10770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771  *) ac_try_echo=$ac_try;;
10772esac
10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774  (eval "$ac_try") 2>&5
10775  ac_status=$?
10776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777  (exit $ac_status); }; } &&
10778	 { ac_try='test -s conftest$ac_exeext'
10779  { (case "(($ac_try" in
10780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781  *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784  (eval "$ac_try") 2>&5
10785  ac_status=$?
10786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787  (exit $ac_status); }; }; then
10788  ac_cv_lib_dld_dld_link=yes
10789else
10790  echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
10793	ac_cv_lib_dld_dld_link=no
10794fi
10795
10796rm -f core conftest.err conftest.$ac_objext \
10797      conftest$ac_exeext conftest.$ac_ext
10798LIBS=$ac_check_lib_save_LIBS
10799fi
10800{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10801echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10802if test $ac_cv_lib_dld_dld_link = yes; then
10803
10804cat >>confdefs.h <<\_ACEOF
10805#define HAVE_DLD 1
10806_ACEOF
10807
10808	 	LIBADD_DL="$LIBADD_DL -ldld"
10809else
10810  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10811echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10812if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10813  echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815  cat >conftest.$ac_ext <<_ACEOF
10816/* confdefs.h.  */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h.  */
10821/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10823#define _dyld_func_lookup innocuous__dyld_func_lookup
10824
10825/* System header to define __stub macros and hopefully few prototypes,
10826    which can conflict with char _dyld_func_lookup (); below.
10827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828    <limits.h> exists even on freestanding compilers.  */
10829
10830#ifdef __STDC__
10831# include <limits.h>
10832#else
10833# include <assert.h>
10834#endif
10835
10836#undef _dyld_func_lookup
10837
10838/* Override any GCC internal prototype to avoid an error.
10839   Use char because int might match the return type of a GCC
10840   builtin and then its argument prototype would still apply.  */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char _dyld_func_lookup ();
10845/* The GNU C library defines this for functions which it implements
10846    to always fail with ENOSYS.  Some functions are actually named
10847    something starting with __ and the normal name is an alias.  */
10848#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10849choke me
10850#endif
10851
10852int
10853main ()
10854{
10855return _dyld_func_lookup ();
10856  ;
10857  return 0;
10858}
10859_ACEOF
10860rm -f conftest.$ac_objext conftest$ac_exeext
10861if { (ac_try="$ac_link"
10862case "(($ac_try" in
10863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864  *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867  (eval "$ac_link") 2>conftest.er1
10868  ac_status=$?
10869  grep -v '^ *+' conftest.er1 >conftest.err
10870  rm -f conftest.er1
10871  cat conftest.err >&5
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); } &&
10874	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875  { (case "(($ac_try" in
10876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877  *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880  (eval "$ac_try") 2>&5
10881  ac_status=$?
10882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883  (exit $ac_status); }; } &&
10884	 { ac_try='test -s conftest$ac_exeext'
10885  { (case "(($ac_try" in
10886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887  *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890  (eval "$ac_try") 2>&5
10891  ac_status=$?
10892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893  (exit $ac_status); }; }; then
10894  ac_cv_func__dyld_func_lookup=yes
10895else
10896  echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899	ac_cv_func__dyld_func_lookup=no
10900fi
10901
10902rm -f core conftest.err conftest.$ac_objext \
10903      conftest$ac_exeext conftest.$ac_ext
10904fi
10905{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10906echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10907if test $ac_cv_func__dyld_func_lookup = yes; then
10908
10909cat >>confdefs.h <<\_ACEOF
10910#define HAVE_DYLD 1
10911_ACEOF
10912
10913fi
10914
10915
10916fi
10917
10918
10919fi
10920
10921
10922fi
10923
10924rm -f core conftest.err conftest.$ac_objext \
10925      conftest$ac_exeext conftest.$ac_ext
10926
10927fi
10928
10929
10930fi
10931
10932
10933fi
10934
10935
10936if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10937then
10938  lt_save_LIBS="$LIBS"
10939  LIBS="$LIBS $LIBADD_DL"
10940
10941for ac_func in dlerror
10942do
10943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10947  echo $ECHO_N "(cached) $ECHO_C" >&6
10948else
10949  cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h.  */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h.  */
10955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10956   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10957#define $ac_func innocuous_$ac_func
10958
10959/* System header to define __stub macros and hopefully few prototypes,
10960    which can conflict with char $ac_func (); below.
10961    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962    <limits.h> exists even on freestanding compilers.  */
10963
10964#ifdef __STDC__
10965# include <limits.h>
10966#else
10967# include <assert.h>
10968#endif
10969
10970#undef $ac_func
10971
10972/* Override any GCC internal prototype to avoid an error.
10973   Use char because int might match the return type of a GCC
10974   builtin and then its argument prototype would still apply.  */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978char $ac_func ();
10979/* The GNU C library defines this for functions which it implements
10980    to always fail with ENOSYS.  Some functions are actually named
10981    something starting with __ and the normal name is an alias.  */
10982#if defined __stub_$ac_func || defined __stub___$ac_func
10983choke me
10984#endif
10985
10986int
10987main ()
10988{
10989return $ac_func ();
10990  ;
10991  return 0;
10992}
10993_ACEOF
10994rm -f conftest.$ac_objext conftest$ac_exeext
10995if { (ac_try="$ac_link"
10996case "(($ac_try" in
10997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998  *) ac_try_echo=$ac_try;;
10999esac
11000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001  (eval "$ac_link") 2>conftest.er1
11002  ac_status=$?
11003  grep -v '^ *+' conftest.er1 >conftest.err
11004  rm -f conftest.er1
11005  cat conftest.err >&5
11006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007  (exit $ac_status); } &&
11008	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009  { (case "(($ac_try" in
11010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011  *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014  (eval "$ac_try") 2>&5
11015  ac_status=$?
11016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017  (exit $ac_status); }; } &&
11018	 { ac_try='test -s conftest$ac_exeext'
11019  { (case "(($ac_try" in
11020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021  *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024  (eval "$ac_try") 2>&5
11025  ac_status=$?
11026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027  (exit $ac_status); }; }; then
11028  eval "$as_ac_var=yes"
11029else
11030  echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033	eval "$as_ac_var=no"
11034fi
11035
11036rm -f core conftest.err conftest.$ac_objext \
11037      conftest$ac_exeext conftest.$ac_ext
11038fi
11039ac_res=`eval echo '${'$as_ac_var'}'`
11040	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11041echo "${ECHO_T}$ac_res" >&6; }
11042if test `eval echo '${'$as_ac_var'}'` = yes; then
11043  cat >>confdefs.h <<_ACEOF
11044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045_ACEOF
11046
11047fi
11048done
11049
11050  LIBS="$lt_save_LIBS"
11051fi
11052ac_ext=c
11053ac_cpp='$CPP $CPPFLAGS'
11054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11056ac_compiler_gnu=$ac_cv_c_compiler_gnu
11057
11058
11059
11060{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11061echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11062if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11063  echo $ECHO_N "(cached) $ECHO_C" >&6
11064else
11065  ac_cv_sys_symbol_underscore=no
11066  cat > conftest.$ac_ext <<EOF
11067void nm_test_func(){}
11068int main(){nm_test_func;return 0;}
11069EOF
11070  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071  (eval $ac_compile) 2>&5
11072  ac_status=$?
11073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074  (exit $ac_status); }; then
11075    # Now try to grab the symbols.
11076    ac_nlist=conftest.nm
11077    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11078  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11079  ac_status=$?
11080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081  (exit $ac_status); } && test -s "$ac_nlist"; then
11082      # See whether the symbols have a leading underscore.
11083      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11084        ac_cv_sys_symbol_underscore=yes
11085      else
11086        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11087	  :
11088        else
11089	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11090        fi
11091      fi
11092    else
11093      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11094    fi
11095  else
11096    echo "configure: failed program was:" >&5
11097    cat conftest.c >&5
11098  fi
11099  rm -rf conftest*
11100
11101fi
11102{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11103echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11104
11105
11106if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11107  if test x"$libltdl_cv_func_dlopen" = xyes ||
11108     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11109	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11110echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11111if test "${libltdl_cv_need_uscore+set}" = set; then
11112  echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114  libltdl_cv_need_uscore=unknown
11115          save_LIBS="$LIBS"
11116          LIBS="$LIBS $LIBADD_DL"
11117	  if test "$cross_compiling" = yes; then :
11118  libltdl_cv_need_uscore=cross
11119else
11120  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11121  lt_status=$lt_dlunknown
11122  cat > conftest.$ac_ext <<EOF
11123#line 11123 "configure"
11124#include "confdefs.h"
11125
11126#if HAVE_DLFCN_H
11127#include <dlfcn.h>
11128#endif
11129
11130#include <stdio.h>
11131
11132#ifdef RTLD_GLOBAL
11133#  define LT_DLGLOBAL		RTLD_GLOBAL
11134#else
11135#  ifdef DL_GLOBAL
11136#    define LT_DLGLOBAL		DL_GLOBAL
11137#  else
11138#    define LT_DLGLOBAL		0
11139#  endif
11140#endif
11141
11142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11143   find out it does not work in some platform. */
11144#ifndef LT_DLLAZY_OR_NOW
11145#  ifdef RTLD_LAZY
11146#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11147#  else
11148#    ifdef DL_LAZY
11149#      define LT_DLLAZY_OR_NOW		DL_LAZY
11150#    else
11151#      ifdef RTLD_NOW
11152#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11153#      else
11154#        ifdef DL_NOW
11155#          define LT_DLLAZY_OR_NOW	DL_NOW
11156#        else
11157#          define LT_DLLAZY_OR_NOW	0
11158#        endif
11159#      endif
11160#    endif
11161#  endif
11162#endif
11163
11164#ifdef __cplusplus
11165extern "C" void exit (int);
11166#endif
11167
11168void fnord() { int i=42;}
11169int main ()
11170{
11171  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172  int status = $lt_dlunknown;
11173
11174  if (self)
11175    {
11176      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11177      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178      /* dlclose (self); */
11179    }
11180  else
11181    puts (dlerror ());
11182
11183    exit (status);
11184}
11185EOF
11186  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187  (eval $ac_link) 2>&5
11188  ac_status=$?
11189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11191    (./conftest; exit; ) >&5 2>/dev/null
11192    lt_status=$?
11193    case x$lt_status in
11194      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11195      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11196      x$lt_dlunknown|x*)  ;;
11197    esac
11198  else :
11199    # compilation failed
11200
11201  fi
11202fi
11203rm -fr conftest*
11204
11205	  LIBS="$save_LIBS"
11206
11207fi
11208{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11209echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11210  fi
11211fi
11212
11213if test x"$libltdl_cv_need_uscore" = xyes; then
11214
11215cat >>confdefs.h <<\_ACEOF
11216#define NEED_USCORE 1
11217_ACEOF
11218
11219fi
11220
11221
11222{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11223echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11224if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11225  echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227  # PORTME does your system automatically load deplibs for dlopen?
11228  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11229  # For now, we just catch OSes we know something about -- in the
11230  # future, we'll try test this programmatically.
11231  libltdl_cv_sys_dlopen_deplibs=unknown
11232  case "$host_os" in
11233  aix3*|aix4.1.*|aix4.2.*)
11234    # Unknown whether this is true for these versions of AIX, but
11235    # we want this `case' here to explicitly catch those versions.
11236    libltdl_cv_sys_dlopen_deplibs=unknown
11237    ;;
11238  aix[45]*)
11239    libltdl_cv_sys_dlopen_deplibs=yes
11240    ;;
11241  darwin*)
11242    # Assuming the user has installed a libdl from somewhere, this is true
11243    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11244    libltdl_cv_sys_dlopen_deplibs=yes
11245    ;;
11246  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11247    # GNU and its variants, using gnu ld.so (Glibc)
11248    libltdl_cv_sys_dlopen_deplibs=yes
11249    ;;
11250  hpux10*|hpux11*)
11251    libltdl_cv_sys_dlopen_deplibs=yes
11252    ;;
11253  interix*)
11254    libltdl_cv_sys_dlopen_deplibs=yes
11255    ;;
11256  irix[12345]*|irix6.[01]*)
11257    # Catch all versions of IRIX before 6.2, and indicate that we don't
11258    # know how it worked for any of those versions.
11259    libltdl_cv_sys_dlopen_deplibs=unknown
11260    ;;
11261  irix*)
11262    # The case above catches anything before 6.2, and it's known that
11263    # at 6.2 and later dlopen does load deplibs.
11264    libltdl_cv_sys_dlopen_deplibs=yes
11265    ;;
11266  netbsd*)
11267    libltdl_cv_sys_dlopen_deplibs=yes
11268    ;;
11269  openbsd*)
11270    libltdl_cv_sys_dlopen_deplibs=yes
11271    ;;
11272  osf[1234]*)
11273    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11274    # it did *not* use an RPATH in a shared library to find objects the
11275    # library depends on, so we explictly say `no'.
11276    libltdl_cv_sys_dlopen_deplibs=no
11277    ;;
11278  osf5.0|osf5.0a|osf5.1)
11279    # dlopen *does* load deplibs and with the right loader patch applied
11280    # it even uses RPATH in a shared library to search for shared objects
11281    # that the library depends on, but there's no easy way to know if that
11282    # patch is installed.  Since this is the case, all we can really
11283    # say is unknown -- it depends on the patch being installed.  If
11284    # it is, this changes to `yes'.  Without it, it would be `no'.
11285    libltdl_cv_sys_dlopen_deplibs=unknown
11286    ;;
11287  osf*)
11288    # the two cases above should catch all versions of osf <= 5.1.  Read
11289    # the comments above for what we know about them.
11290    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11291    # is used to find them so we can finally say `yes'.
11292    libltdl_cv_sys_dlopen_deplibs=yes
11293    ;;
11294  solaris*)
11295    libltdl_cv_sys_dlopen_deplibs=yes
11296    ;;
11297  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11298    libltdl_cv_sys_dlopen_deplibs=yes
11299    ;;
11300  esac
11301
11302fi
11303{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11304echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11305if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11306
11307cat >>confdefs.h <<\_ACEOF
11308#define LTDL_DLOPEN_DEPLIBS 1
11309_ACEOF
11310
11311fi
11312
11313
11314for ac_header in argz.h
11315do
11316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321  echo $ECHO_N "(cached) $ECHO_C" >&6
11322fi
11323ac_res=`eval echo '${'$as_ac_Header'}'`
11324	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11325echo "${ECHO_T}$ac_res" >&6; }
11326else
11327  # Is the header compilable?
11328{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h.  */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h.  */
11336$ac_includes_default
11337#include <$ac_header>
11338_ACEOF
11339rm -f conftest.$ac_objext
11340if { (ac_try="$ac_compile"
11341case "(($ac_try" in
11342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343  *) ac_try_echo=$ac_try;;
11344esac
11345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346  (eval "$ac_compile") 2>conftest.er1
11347  ac_status=$?
11348  grep -v '^ *+' conftest.er1 >conftest.err
11349  rm -f conftest.er1
11350  cat conftest.err >&5
11351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352  (exit $ac_status); } &&
11353	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11354  { (case "(($ac_try" in
11355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356  *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359  (eval "$ac_try") 2>&5
11360  ac_status=$?
11361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362  (exit $ac_status); }; } &&
11363	 { ac_try='test -s conftest.$ac_objext'
11364  { (case "(($ac_try" in
11365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366  *) ac_try_echo=$ac_try;;
11367esac
11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369  (eval "$ac_try") 2>&5
11370  ac_status=$?
11371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372  (exit $ac_status); }; }; then
11373  ac_header_compiler=yes
11374else
11375  echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378	ac_header_compiler=no
11379fi
11380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11383echo "${ECHO_T}$ac_header_compiler" >&6; }
11384
11385# Is the header present?
11386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11388cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h.  */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h.  */
11394#include <$ac_header>
11395_ACEOF
11396if { (ac_try="$ac_cpp conftest.$ac_ext"
11397case "(($ac_try" in
11398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399  *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11403  ac_status=$?
11404  grep -v '^ *+' conftest.er1 >conftest.err
11405  rm -f conftest.er1
11406  cat conftest.err >&5
11407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408  (exit $ac_status); } >/dev/null; then
11409  if test -s conftest.err; then
11410    ac_cpp_err=$ac_c_preproc_warn_flag
11411    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11412  else
11413    ac_cpp_err=
11414  fi
11415else
11416  ac_cpp_err=yes
11417fi
11418if test -z "$ac_cpp_err"; then
11419  ac_header_preproc=yes
11420else
11421  echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
11424  ac_header_preproc=no
11425fi
11426
11427rm -f conftest.err conftest.$ac_ext
11428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11429echo "${ECHO_T}$ac_header_preproc" >&6; }
11430
11431# So?  What about this header?
11432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11433  yes:no: )
11434    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11436    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11438    ac_header_preproc=yes
11439    ;;
11440  no:yes:* )
11441    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11444echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11445    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11447    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11448echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11451    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11453    ( cat <<\_ASBOX
11454## ----------------------------------- ##
11455## Report this to llvmbugs@cs.uiuc.edu ##
11456## ----------------------------------- ##
11457_ASBOX
11458     ) | sed "s/^/$as_me: WARNING:     /" >&2
11459    ;;
11460esac
11461{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464  echo $ECHO_N "(cached) $ECHO_C" >&6
11465else
11466  eval "$as_ac_Header=\$ac_header_preproc"
11467fi
11468ac_res=`eval echo '${'$as_ac_Header'}'`
11469	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11470echo "${ECHO_T}$ac_res" >&6; }
11471
11472fi
11473if test `eval echo '${'$as_ac_Header'}'` = yes; then
11474  cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479
11480done
11481
11482
11483{ echo "$as_me:$LINENO: checking for error_t" >&5
11484echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11485if test "${ac_cv_type_error_t+set}" = set; then
11486  echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488  cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h.  */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h.  */
11494#if HAVE_ARGZ_H
11495#  include <argz.h>
11496#endif
11497
11498typedef error_t ac__type_new_;
11499int
11500main ()
11501{
11502if ((ac__type_new_ *) 0)
11503  return 0;
11504if (sizeof (ac__type_new_))
11505  return 0;
11506  ;
11507  return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (ac_try="$ac_compile"
11512case "(($ac_try" in
11513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514  *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517  (eval "$ac_compile") 2>conftest.er1
11518  ac_status=$?
11519  grep -v '^ *+' conftest.er1 >conftest.err
11520  rm -f conftest.er1
11521  cat conftest.err >&5
11522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523  (exit $ac_status); } &&
11524	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525  { (case "(($ac_try" in
11526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527  *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530  (eval "$ac_try") 2>&5
11531  ac_status=$?
11532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533  (exit $ac_status); }; } &&
11534	 { ac_try='test -s conftest.$ac_objext'
11535  { (case "(($ac_try" in
11536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537  *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540  (eval "$ac_try") 2>&5
11541  ac_status=$?
11542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543  (exit $ac_status); }; }; then
11544  ac_cv_type_error_t=yes
11545else
11546  echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
11549	ac_cv_type_error_t=no
11550fi
11551
11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553fi
11554{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11555echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11556if test $ac_cv_type_error_t = yes; then
11557
11558cat >>confdefs.h <<_ACEOF
11559#define HAVE_ERROR_T 1
11560_ACEOF
11561
11562
11563else
11564
11565cat >>confdefs.h <<\_ACEOF
11566#define error_t int
11567_ACEOF
11568
11569fi
11570
11571
11572
11573
11574
11575
11576
11577for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11578do
11579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11580{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11582if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11583  echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585  cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h.  */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h.  */
11591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11592   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11593#define $ac_func innocuous_$ac_func
11594
11595/* System header to define __stub macros and hopefully few prototypes,
11596    which can conflict with char $ac_func (); below.
11597    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598    <limits.h> exists even on freestanding compilers.  */
11599
11600#ifdef __STDC__
11601# include <limits.h>
11602#else
11603# include <assert.h>
11604#endif
11605
11606#undef $ac_func
11607
11608/* Override any GCC internal prototype to avoid an error.
11609   Use char because int might match the return type of a GCC
11610   builtin and then its argument prototype would still apply.  */
11611#ifdef __cplusplus
11612extern "C"
11613#endif
11614char $ac_func ();
11615/* The GNU C library defines this for functions which it implements
11616    to always fail with ENOSYS.  Some functions are actually named
11617    something starting with __ and the normal name is an alias.  */
11618#if defined __stub_$ac_func || defined __stub___$ac_func
11619choke me
11620#endif
11621
11622int
11623main ()
11624{
11625return $ac_func ();
11626  ;
11627  return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext conftest$ac_exeext
11631if { (ac_try="$ac_link"
11632case "(($ac_try" in
11633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634  *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637  (eval "$ac_link") 2>conftest.er1
11638  ac_status=$?
11639  grep -v '^ *+' conftest.er1 >conftest.err
11640  rm -f conftest.er1
11641  cat conftest.err >&5
11642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643  (exit $ac_status); } &&
11644	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11645  { (case "(($ac_try" in
11646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647  *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650  (eval "$ac_try") 2>&5
11651  ac_status=$?
11652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); }; } &&
11654	 { ac_try='test -s conftest$ac_exeext'
11655  { (case "(($ac_try" in
11656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657  *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660  (eval "$ac_try") 2>&5
11661  ac_status=$?
11662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663  (exit $ac_status); }; }; then
11664  eval "$as_ac_var=yes"
11665else
11666  echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669	eval "$as_ac_var=no"
11670fi
11671
11672rm -f core conftest.err conftest.$ac_objext \
11673      conftest$ac_exeext conftest.$ac_ext
11674fi
11675ac_res=`eval echo '${'$as_ac_var'}'`
11676	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11677echo "${ECHO_T}$ac_res" >&6; }
11678if test `eval echo '${'$as_ac_var'}'` = yes; then
11679  cat >>confdefs.h <<_ACEOF
11680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11681_ACEOF
11682
11683fi
11684done
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11714		  stdio.h unistd.h
11715do
11716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721  echo $ECHO_N "(cached) $ECHO_C" >&6
11722fi
11723ac_res=`eval echo '${'$as_ac_Header'}'`
11724	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11725echo "${ECHO_T}$ac_res" >&6; }
11726else
11727  # Is the header compilable?
11728{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11730cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h.  */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h.  */
11736$ac_includes_default
11737#include <$ac_header>
11738_ACEOF
11739rm -f conftest.$ac_objext
11740if { (ac_try="$ac_compile"
11741case "(($ac_try" in
11742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743  *) ac_try_echo=$ac_try;;
11744esac
11745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746  (eval "$ac_compile") 2>conftest.er1
11747  ac_status=$?
11748  grep -v '^ *+' conftest.er1 >conftest.err
11749  rm -f conftest.er1
11750  cat conftest.err >&5
11751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752  (exit $ac_status); } &&
11753	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11754  { (case "(($ac_try" in
11755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756  *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759  (eval "$ac_try") 2>&5
11760  ac_status=$?
11761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762  (exit $ac_status); }; } &&
11763	 { ac_try='test -s conftest.$ac_objext'
11764  { (case "(($ac_try" in
11765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766  *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769  (eval "$ac_try") 2>&5
11770  ac_status=$?
11771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772  (exit $ac_status); }; }; then
11773  ac_header_compiler=yes
11774else
11775  echo "$as_me: failed program was:" >&5
11776sed 's/^/| /' conftest.$ac_ext >&5
11777
11778	ac_header_compiler=no
11779fi
11780
11781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783echo "${ECHO_T}$ac_header_compiler" >&6; }
11784
11785# Is the header present?
11786{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11788cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h.  */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h.  */
11794#include <$ac_header>
11795_ACEOF
11796if { (ac_try="$ac_cpp conftest.$ac_ext"
11797case "(($ac_try" in
11798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799  *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11803  ac_status=$?
11804  grep -v '^ *+' conftest.er1 >conftest.err
11805  rm -f conftest.er1
11806  cat conftest.err >&5
11807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808  (exit $ac_status); } >/dev/null; then
11809  if test -s conftest.err; then
11810    ac_cpp_err=$ac_c_preproc_warn_flag
11811    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812  else
11813    ac_cpp_err=
11814  fi
11815else
11816  ac_cpp_err=yes
11817fi
11818if test -z "$ac_cpp_err"; then
11819  ac_header_preproc=yes
11820else
11821  echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824  ac_header_preproc=no
11825fi
11826
11827rm -f conftest.err conftest.$ac_ext
11828{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829echo "${ECHO_T}$ac_header_preproc" >&6; }
11830
11831# So?  What about this header?
11832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833  yes:no: )
11834    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11838    ac_header_preproc=yes
11839    ;;
11840  no:yes:* )
11841    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11843    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11844echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11845    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11847    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11848echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11849    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11851    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11853    ( cat <<\_ASBOX
11854## ----------------------------------- ##
11855## Report this to llvmbugs@cs.uiuc.edu ##
11856## ----------------------------------- ##
11857_ASBOX
11858     ) | sed "s/^/$as_me: WARNING:     /" >&2
11859    ;;
11860esac
11861{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11864  echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
11866  eval "$as_ac_Header=\$ac_header_preproc"
11867fi
11868ac_res=`eval echo '${'$as_ac_Header'}'`
11869	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11870echo "${ECHO_T}$ac_res" >&6; }
11871
11872fi
11873if test `eval echo '${'$as_ac_Header'}'` = yes; then
11874  cat >>confdefs.h <<_ACEOF
11875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876_ACEOF
11877
11878fi
11879
11880done
11881
11882
11883
11884
11885
11886for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11887do
11888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893  echo $ECHO_N "(cached) $ECHO_C" >&6
11894fi
11895ac_res=`eval echo '${'$as_ac_Header'}'`
11896	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11897echo "${ECHO_T}$ac_res" >&6; }
11898else
11899  # Is the header compilable?
11900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11902cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h.  */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h.  */
11908$ac_includes_default
11909#include <$ac_header>
11910_ACEOF
11911rm -f conftest.$ac_objext
11912if { (ac_try="$ac_compile"
11913case "(($ac_try" in
11914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915  *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918  (eval "$ac_compile") 2>conftest.er1
11919  ac_status=$?
11920  grep -v '^ *+' conftest.er1 >conftest.err
11921  rm -f conftest.er1
11922  cat conftest.err >&5
11923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924  (exit $ac_status); } &&
11925	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926  { (case "(($ac_try" in
11927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928  *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931  (eval "$ac_try") 2>&5
11932  ac_status=$?
11933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); }; } &&
11935	 { ac_try='test -s conftest.$ac_objext'
11936  { (case "(($ac_try" in
11937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938  *) ac_try_echo=$ac_try;;
11939esac
11940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941  (eval "$ac_try") 2>&5
11942  ac_status=$?
11943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944  (exit $ac_status); }; }; then
11945  ac_header_compiler=yes
11946else
11947  echo "$as_me: failed program was:" >&5
11948sed 's/^/| /' conftest.$ac_ext >&5
11949
11950	ac_header_compiler=no
11951fi
11952
11953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11955echo "${ECHO_T}$ac_header_compiler" >&6; }
11956
11957# Is the header present?
11958{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11960cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h.  */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h.  */
11966#include <$ac_header>
11967_ACEOF
11968if { (ac_try="$ac_cpp conftest.$ac_ext"
11969case "(($ac_try" in
11970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971  *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11975  ac_status=$?
11976  grep -v '^ *+' conftest.er1 >conftest.err
11977  rm -f conftest.er1
11978  cat conftest.err >&5
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); } >/dev/null; then
11981  if test -s conftest.err; then
11982    ac_cpp_err=$ac_c_preproc_warn_flag
11983    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11984  else
11985    ac_cpp_err=
11986  fi
11987else
11988  ac_cpp_err=yes
11989fi
11990if test -z "$ac_cpp_err"; then
11991  ac_header_preproc=yes
11992else
11993  echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996  ac_header_preproc=no
11997fi
11998
11999rm -f conftest.err conftest.$ac_ext
12000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001echo "${ECHO_T}$ac_header_preproc" >&6; }
12002
12003# So?  What about this header?
12004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005  yes:no: )
12006    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010    ac_header_preproc=yes
12011    ;;
12012  no:yes:* )
12013    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12016echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12017    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12020echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12021    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12025    ( cat <<\_ASBOX
12026## ----------------------------------- ##
12027## Report this to llvmbugs@cs.uiuc.edu ##
12028## ----------------------------------- ##
12029_ASBOX
12030     ) | sed "s/^/$as_me: WARNING:     /" >&2
12031    ;;
12032esac
12033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12036  echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038  eval "$as_ac_Header=\$ac_header_preproc"
12039fi
12040ac_res=`eval echo '${'$as_ac_Header'}'`
12041	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12042echo "${ECHO_T}$ac_res" >&6; }
12043
12044fi
12045if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046  cat >>confdefs.h <<_ACEOF
12047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048_ACEOF
12049
12050fi
12051
12052done
12053
12054
12055
12056for ac_header in string.h strings.h
12057do
12058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12060  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12063  echo $ECHO_N "(cached) $ECHO_C" >&6
12064fi
12065ac_res=`eval echo '${'$as_ac_Header'}'`
12066	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12067echo "${ECHO_T}$ac_res" >&6; }
12068else
12069  # Is the header compilable?
12070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12072cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h.  */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h.  */
12078$ac_includes_default
12079#include <$ac_header>
12080_ACEOF
12081rm -f conftest.$ac_objext
12082if { (ac_try="$ac_compile"
12083case "(($ac_try" in
12084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085  *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088  (eval "$ac_compile") 2>conftest.er1
12089  ac_status=$?
12090  grep -v '^ *+' conftest.er1 >conftest.err
12091  rm -f conftest.er1
12092  cat conftest.err >&5
12093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094  (exit $ac_status); } &&
12095	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096  { (case "(($ac_try" in
12097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098  *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101  (eval "$ac_try") 2>&5
12102  ac_status=$?
12103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104  (exit $ac_status); }; } &&
12105	 { ac_try='test -s conftest.$ac_objext'
12106  { (case "(($ac_try" in
12107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108  *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111  (eval "$ac_try") 2>&5
12112  ac_status=$?
12113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114  (exit $ac_status); }; }; then
12115  ac_header_compiler=yes
12116else
12117  echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120	ac_header_compiler=no
12121fi
12122
12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125echo "${ECHO_T}$ac_header_compiler" >&6; }
12126
12127# Is the header present?
12128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12130cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h.  */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h.  */
12136#include <$ac_header>
12137_ACEOF
12138if { (ac_try="$ac_cpp conftest.$ac_ext"
12139case "(($ac_try" in
12140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141  *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12145  ac_status=$?
12146  grep -v '^ *+' conftest.er1 >conftest.err
12147  rm -f conftest.er1
12148  cat conftest.err >&5
12149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150  (exit $ac_status); } >/dev/null; then
12151  if test -s conftest.err; then
12152    ac_cpp_err=$ac_c_preproc_warn_flag
12153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154  else
12155    ac_cpp_err=
12156  fi
12157else
12158  ac_cpp_err=yes
12159fi
12160if test -z "$ac_cpp_err"; then
12161  ac_header_preproc=yes
12162else
12163  echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166  ac_header_preproc=no
12167fi
12168
12169rm -f conftest.err conftest.$ac_ext
12170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171echo "${ECHO_T}$ac_header_preproc" >&6; }
12172
12173# So?  What about this header?
12174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12175  yes:no: )
12176    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180    ac_header_preproc=yes
12181    ;;
12182  no:yes:* )
12183    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12186echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12187    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12190echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12191    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12195    ( cat <<\_ASBOX
12196## ----------------------------------- ##
12197## Report this to llvmbugs@cs.uiuc.edu ##
12198## ----------------------------------- ##
12199_ASBOX
12200     ) | sed "s/^/$as_me: WARNING:     /" >&2
12201    ;;
12202esac
12203{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12206  echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208  eval "$as_ac_Header=\$ac_header_preproc"
12209fi
12210ac_res=`eval echo '${'$as_ac_Header'}'`
12211	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12212echo "${ECHO_T}$ac_res" >&6; }
12213
12214fi
12215if test `eval echo '${'$as_ac_Header'}'` = yes; then
12216  cat >>confdefs.h <<_ACEOF
12217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218_ACEOF
12219 break
12220fi
12221
12222done
12223
12224
12225
12226
12227for ac_func in strchr index
12228do
12229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12233  echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235  cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h.  */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h.  */
12241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12242   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12243#define $ac_func innocuous_$ac_func
12244
12245/* System header to define __stub macros and hopefully few prototypes,
12246    which can conflict with char $ac_func (); below.
12247    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12248    <limits.h> exists even on freestanding compilers.  */
12249
12250#ifdef __STDC__
12251# include <limits.h>
12252#else
12253# include <assert.h>
12254#endif
12255
12256#undef $ac_func
12257
12258/* Override any GCC internal prototype to avoid an error.
12259   Use char because int might match the return type of a GCC
12260   builtin and then its argument prototype would still apply.  */
12261#ifdef __cplusplus
12262extern "C"
12263#endif
12264char $ac_func ();
12265/* The GNU C library defines this for functions which it implements
12266    to always fail with ENOSYS.  Some functions are actually named
12267    something starting with __ and the normal name is an alias.  */
12268#if defined __stub_$ac_func || defined __stub___$ac_func
12269choke me
12270#endif
12271
12272int
12273main ()
12274{
12275return $ac_func ();
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280rm -f conftest.$ac_objext conftest$ac_exeext
12281if { (ac_try="$ac_link"
12282case "(($ac_try" in
12283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284  *) ac_try_echo=$ac_try;;
12285esac
12286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287  (eval "$ac_link") 2>conftest.er1
12288  ac_status=$?
12289  grep -v '^ *+' conftest.er1 >conftest.err
12290  rm -f conftest.er1
12291  cat conftest.err >&5
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); } &&
12294	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295  { (case "(($ac_try" in
12296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297  *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300  (eval "$ac_try") 2>&5
12301  ac_status=$?
12302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303  (exit $ac_status); }; } &&
12304	 { ac_try='test -s conftest$ac_exeext'
12305  { (case "(($ac_try" in
12306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307  *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310  (eval "$ac_try") 2>&5
12311  ac_status=$?
12312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313  (exit $ac_status); }; }; then
12314  eval "$as_ac_var=yes"
12315else
12316  echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319	eval "$as_ac_var=no"
12320fi
12321
12322rm -f core conftest.err conftest.$ac_objext \
12323      conftest$ac_exeext conftest.$ac_ext
12324fi
12325ac_res=`eval echo '${'$as_ac_var'}'`
12326	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12327echo "${ECHO_T}$ac_res" >&6; }
12328if test `eval echo '${'$as_ac_var'}'` = yes; then
12329  cat >>confdefs.h <<_ACEOF
12330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12331_ACEOF
12332 break
12333fi
12334done
12335
12336
12337
12338for ac_func in strrchr rindex
12339do
12340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12341{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12344  echo $ECHO_N "(cached) $ECHO_C" >&6
12345else
12346  cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h.  */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h.  */
12352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12353   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12354#define $ac_func innocuous_$ac_func
12355
12356/* System header to define __stub macros and hopefully few prototypes,
12357    which can conflict with char $ac_func (); below.
12358    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12359    <limits.h> exists even on freestanding compilers.  */
12360
12361#ifdef __STDC__
12362# include <limits.h>
12363#else
12364# include <assert.h>
12365#endif
12366
12367#undef $ac_func
12368
12369/* Override any GCC internal prototype to avoid an error.
12370   Use char because int might match the return type of a GCC
12371   builtin and then its argument prototype would still apply.  */
12372#ifdef __cplusplus
12373extern "C"
12374#endif
12375char $ac_func ();
12376/* The GNU C library defines this for functions which it implements
12377    to always fail with ENOSYS.  Some functions are actually named
12378    something starting with __ and the normal name is an alias.  */
12379#if defined __stub_$ac_func || defined __stub___$ac_func
12380choke me
12381#endif
12382
12383int
12384main ()
12385{
12386return $ac_func ();
12387  ;
12388  return 0;
12389}
12390_ACEOF
12391rm -f conftest.$ac_objext conftest$ac_exeext
12392if { (ac_try="$ac_link"
12393case "(($ac_try" in
12394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395  *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398  (eval "$ac_link") 2>conftest.er1
12399  ac_status=$?
12400  grep -v '^ *+' conftest.er1 >conftest.err
12401  rm -f conftest.er1
12402  cat conftest.err >&5
12403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404  (exit $ac_status); } &&
12405	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12406  { (case "(($ac_try" in
12407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408  *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411  (eval "$ac_try") 2>&5
12412  ac_status=$?
12413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414  (exit $ac_status); }; } &&
12415	 { ac_try='test -s conftest$ac_exeext'
12416  { (case "(($ac_try" in
12417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418  *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421  (eval "$ac_try") 2>&5
12422  ac_status=$?
12423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424  (exit $ac_status); }; }; then
12425  eval "$as_ac_var=yes"
12426else
12427  echo "$as_me: failed program was:" >&5
12428sed 's/^/| /' conftest.$ac_ext >&5
12429
12430	eval "$as_ac_var=no"
12431fi
12432
12433rm -f core conftest.err conftest.$ac_objext \
12434      conftest$ac_exeext conftest.$ac_ext
12435fi
12436ac_res=`eval echo '${'$as_ac_var'}'`
12437	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12438echo "${ECHO_T}$ac_res" >&6; }
12439if test `eval echo '${'$as_ac_var'}'` = yes; then
12440  cat >>confdefs.h <<_ACEOF
12441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12442_ACEOF
12443 break
12444fi
12445done
12446
12447
12448
12449for ac_func in memcpy bcopy
12450do
12451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12455  echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457  cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h.  */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h.  */
12463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12465#define $ac_func innocuous_$ac_func
12466
12467/* System header to define __stub macros and hopefully few prototypes,
12468    which can conflict with char $ac_func (); below.
12469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470    <limits.h> exists even on freestanding compilers.  */
12471
12472#ifdef __STDC__
12473# include <limits.h>
12474#else
12475# include <assert.h>
12476#endif
12477
12478#undef $ac_func
12479
12480/* Override any GCC internal prototype to avoid an error.
12481   Use char because int might match the return type of a GCC
12482   builtin and then its argument prototype would still apply.  */
12483#ifdef __cplusplus
12484extern "C"
12485#endif
12486char $ac_func ();
12487/* The GNU C library defines this for functions which it implements
12488    to always fail with ENOSYS.  Some functions are actually named
12489    something starting with __ and the normal name is an alias.  */
12490#if defined __stub_$ac_func || defined __stub___$ac_func
12491choke me
12492#endif
12493
12494int
12495main ()
12496{
12497return $ac_func ();
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506  *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509  (eval "$ac_link") 2>conftest.er1
12510  ac_status=$?
12511  grep -v '^ *+' conftest.er1 >conftest.err
12512  rm -f conftest.er1
12513  cat conftest.err >&5
12514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515  (exit $ac_status); } &&
12516	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12517  { (case "(($ac_try" in
12518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519  *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522  (eval "$ac_try") 2>&5
12523  ac_status=$?
12524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525  (exit $ac_status); }; } &&
12526	 { ac_try='test -s conftest$ac_exeext'
12527  { (case "(($ac_try" in
12528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529  *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532  (eval "$ac_try") 2>&5
12533  ac_status=$?
12534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535  (exit $ac_status); }; }; then
12536  eval "$as_ac_var=yes"
12537else
12538  echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
12541	eval "$as_ac_var=no"
12542fi
12543
12544rm -f core conftest.err conftest.$ac_objext \
12545      conftest$ac_exeext conftest.$ac_ext
12546fi
12547ac_res=`eval echo '${'$as_ac_var'}'`
12548	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12549echo "${ECHO_T}$ac_res" >&6; }
12550if test `eval echo '${'$as_ac_var'}'` = yes; then
12551  cat >>confdefs.h <<_ACEOF
12552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553_ACEOF
12554 break
12555fi
12556done
12557
12558
12559
12560for ac_func in memmove strcmp
12561do
12562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12566  echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568  cat >conftest.$ac_ext <<_ACEOF
12569/* confdefs.h.  */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h.  */
12574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12576#define $ac_func innocuous_$ac_func
12577
12578/* System header to define __stub macros and hopefully few prototypes,
12579    which can conflict with char $ac_func (); below.
12580    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581    <limits.h> exists even on freestanding compilers.  */
12582
12583#ifdef __STDC__
12584# include <limits.h>
12585#else
12586# include <assert.h>
12587#endif
12588
12589#undef $ac_func
12590
12591/* Override any GCC internal prototype to avoid an error.
12592   Use char because int might match the return type of a GCC
12593   builtin and then its argument prototype would still apply.  */
12594#ifdef __cplusplus
12595extern "C"
12596#endif
12597char $ac_func ();
12598/* The GNU C library defines this for functions which it implements
12599    to always fail with ENOSYS.  Some functions are actually named
12600    something starting with __ and the normal name is an alias.  */
12601#if defined __stub_$ac_func || defined __stub___$ac_func
12602choke me
12603#endif
12604
12605int
12606main ()
12607{
12608return $ac_func ();
12609  ;
12610  return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext conftest$ac_exeext
12614if { (ac_try="$ac_link"
12615case "(($ac_try" in
12616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617  *) ac_try_echo=$ac_try;;
12618esac
12619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620  (eval "$ac_link") 2>conftest.er1
12621  ac_status=$?
12622  grep -v '^ *+' conftest.er1 >conftest.err
12623  rm -f conftest.er1
12624  cat conftest.err >&5
12625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626  (exit $ac_status); } &&
12627	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628  { (case "(($ac_try" in
12629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630  *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633  (eval "$ac_try") 2>&5
12634  ac_status=$?
12635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636  (exit $ac_status); }; } &&
12637	 { ac_try='test -s conftest$ac_exeext'
12638  { (case "(($ac_try" in
12639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640  *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643  (eval "$ac_try") 2>&5
12644  ac_status=$?
12645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646  (exit $ac_status); }; }; then
12647  eval "$as_ac_var=yes"
12648else
12649  echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
12652	eval "$as_ac_var=no"
12653fi
12654
12655rm -f core conftest.err conftest.$ac_objext \
12656      conftest$ac_exeext conftest.$ac_ext
12657fi
12658ac_res=`eval echo '${'$as_ac_var'}'`
12659	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12660echo "${ECHO_T}$ac_res" >&6; }
12661if test `eval echo '${'$as_ac_var'}'` = yes; then
12662  cat >>confdefs.h <<_ACEOF
12663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664_ACEOF
12665
12666fi
12667done
12668
12669
12670
12671
12672for ac_func in closedir opendir readdir
12673do
12674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12675{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12678  echo $ECHO_N "(cached) $ECHO_C" >&6
12679else
12680  cat >conftest.$ac_ext <<_ACEOF
12681/* confdefs.h.  */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h.  */
12686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12687   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12688#define $ac_func innocuous_$ac_func
12689
12690/* System header to define __stub macros and hopefully few prototypes,
12691    which can conflict with char $ac_func (); below.
12692    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693    <limits.h> exists even on freestanding compilers.  */
12694
12695#ifdef __STDC__
12696# include <limits.h>
12697#else
12698# include <assert.h>
12699#endif
12700
12701#undef $ac_func
12702
12703/* Override any GCC internal prototype to avoid an error.
12704   Use char because int might match the return type of a GCC
12705   builtin and then its argument prototype would still apply.  */
12706#ifdef __cplusplus
12707extern "C"
12708#endif
12709char $ac_func ();
12710/* The GNU C library defines this for functions which it implements
12711    to always fail with ENOSYS.  Some functions are actually named
12712    something starting with __ and the normal name is an alias.  */
12713#if defined __stub_$ac_func || defined __stub___$ac_func
12714choke me
12715#endif
12716
12717int
12718main ()
12719{
12720return $ac_func ();
12721  ;
12722  return 0;
12723}
12724_ACEOF
12725rm -f conftest.$ac_objext conftest$ac_exeext
12726if { (ac_try="$ac_link"
12727case "(($ac_try" in
12728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729  *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732  (eval "$ac_link") 2>conftest.er1
12733  ac_status=$?
12734  grep -v '^ *+' conftest.er1 >conftest.err
12735  rm -f conftest.er1
12736  cat conftest.err >&5
12737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738  (exit $ac_status); } &&
12739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740  { (case "(($ac_try" in
12741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742  *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745  (eval "$ac_try") 2>&5
12746  ac_status=$?
12747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748  (exit $ac_status); }; } &&
12749	 { ac_try='test -s conftest$ac_exeext'
12750  { (case "(($ac_try" in
12751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752  *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755  (eval "$ac_try") 2>&5
12756  ac_status=$?
12757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758  (exit $ac_status); }; }; then
12759  eval "$as_ac_var=yes"
12760else
12761  echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764	eval "$as_ac_var=no"
12765fi
12766
12767rm -f core conftest.err conftest.$ac_objext \
12768      conftest$ac_exeext conftest.$ac_ext
12769fi
12770ac_res=`eval echo '${'$as_ac_var'}'`
12771	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12772echo "${ECHO_T}$ac_res" >&6; }
12773if test `eval echo '${'$as_ac_var'}'` = yes; then
12774  cat >>confdefs.h <<_ACEOF
12775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12776_ACEOF
12777
12778fi
12779done
12780
12781
12782# Check whether --enable-shared was given.
12783if test "${enable_shared+set}" = set; then
12784  enableval=$enable_shared; p=${PACKAGE-default}
12785    case $enableval in
12786    yes) enable_shared=yes ;;
12787    no) enable_shared=no ;;
12788    *)
12789      enable_shared=no
12790      # Look at the argument we got.  We use all the common list separators.
12791      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12792      for pkg in $enableval; do
12793	IFS="$lt_save_ifs"
12794	if test "X$pkg" = "X$p"; then
12795	  enable_shared=yes
12796	fi
12797      done
12798      IFS="$lt_save_ifs"
12799      ;;
12800    esac
12801else
12802  enable_shared=yes
12803fi
12804
12805
12806# Check whether --enable-static was given.
12807if test "${enable_static+set}" = set; then
12808  enableval=$enable_static; p=${PACKAGE-default}
12809    case $enableval in
12810    yes) enable_static=yes ;;
12811    no) enable_static=no ;;
12812    *)
12813     enable_static=no
12814      # Look at the argument we got.  We use all the common list separators.
12815      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12816      for pkg in $enableval; do
12817	IFS="$lt_save_ifs"
12818	if test "X$pkg" = "X$p"; then
12819	  enable_static=yes
12820	fi
12821      done
12822      IFS="$lt_save_ifs"
12823      ;;
12824    esac
12825else
12826  enable_static=yes
12827fi
12828
12829
12830# Check whether --enable-fast-install was given.
12831if test "${enable_fast_install+set}" = set; then
12832  enableval=$enable_fast_install; p=${PACKAGE-default}
12833    case $enableval in
12834    yes) enable_fast_install=yes ;;
12835    no) enable_fast_install=no ;;
12836    *)
12837      enable_fast_install=no
12838      # Look at the argument we got.  We use all the common list separators.
12839      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12840      for pkg in $enableval; do
12841	IFS="$lt_save_ifs"
12842	if test "X$pkg" = "X$p"; then
12843	  enable_fast_install=yes
12844	fi
12845      done
12846      IFS="$lt_save_ifs"
12847      ;;
12848    esac
12849else
12850  enable_fast_install=yes
12851fi
12852
12853
12854{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12855echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12856if test "${lt_cv_path_SED+set}" = set; then
12857  echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859  # Loop through the user's path and test for sed and gsed.
12860# Then use that list of sed's as ones to test for truncation.
12861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862for as_dir in $PATH
12863do
12864  IFS=$as_save_IFS
12865  test -z "$as_dir" && as_dir=.
12866  for lt_ac_prog in sed gsed; do
12867    for ac_exec_ext in '' $ac_executable_extensions; do
12868      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12869        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12870      fi
12871    done
12872  done
12873done
12874lt_ac_max=0
12875lt_ac_count=0
12876# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12877# along with /bin/sed that truncates output.
12878for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12879  test ! -f $lt_ac_sed && continue
12880  cat /dev/null > conftest.in
12881  lt_ac_count=0
12882  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12883  # Check for GNU sed and select it if it is found.
12884  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12885    lt_cv_path_SED=$lt_ac_sed
12886    break
12887  fi
12888  while true; do
12889    cat conftest.in conftest.in >conftest.tmp
12890    mv conftest.tmp conftest.in
12891    cp conftest.in conftest.nl
12892    echo >>conftest.nl
12893    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12894    cmp -s conftest.out conftest.nl || break
12895    # 10000 chars as input seems more than enough
12896    test $lt_ac_count -gt 10 && break
12897    lt_ac_count=`expr $lt_ac_count + 1`
12898    if test $lt_ac_count -gt $lt_ac_max; then
12899      lt_ac_max=$lt_ac_count
12900      lt_cv_path_SED=$lt_ac_sed
12901    fi
12902  done
12903done
12904
12905fi
12906
12907SED=$lt_cv_path_SED
12908{ echo "$as_me:$LINENO: result: $SED" >&5
12909echo "${ECHO_T}$SED" >&6; }
12910
12911
12912# Check whether --with-gnu-ld was given.
12913if test "${with_gnu_ld+set}" = set; then
12914  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12915else
12916  with_gnu_ld=no
12917fi
12918
12919ac_prog=ld
12920if test "$GCC" = yes; then
12921  # Check if gcc -print-prog-name=ld gives a path.
12922  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12923echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12924  case $host in
12925  *-*-mingw*)
12926    # gcc leaves a trailing carriage return which upsets mingw
12927    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12928  *)
12929    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12930  esac
12931  case $ac_prog in
12932    # Accept absolute paths.
12933    [\\/]* | ?:[\\/]*)
12934      re_direlt='/[^/][^/]*/\.\./'
12935      # Canonicalize the pathname of ld
12936      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12937      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12938	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12939      done
12940      test -z "$LD" && LD="$ac_prog"
12941      ;;
12942  "")
12943    # If it fails, then pretend we aren't using GCC.
12944    ac_prog=ld
12945    ;;
12946  *)
12947    # If it is relative, then search for the first ld in PATH.
12948    with_gnu_ld=unknown
12949    ;;
12950  esac
12951elif test "$with_gnu_ld" = yes; then
12952  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12953echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12954else
12955  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12956echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12957fi
12958if test "${lt_cv_path_LD+set}" = set; then
12959  echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961  if test -z "$LD"; then
12962  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12963  for ac_dir in $PATH; do
12964    IFS="$lt_save_ifs"
12965    test -z "$ac_dir" && ac_dir=.
12966    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12967      lt_cv_path_LD="$ac_dir/$ac_prog"
12968      # Check to see if the program is GNU ld.  I'd rather use --version,
12969      # but apparently some variants of GNU ld only accept -v.
12970      # Break only if it was the GNU/non-GNU ld that we prefer.
12971      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12972      *GNU* | *'with BFD'*)
12973	test "$with_gnu_ld" != no && break
12974	;;
12975      *)
12976	test "$with_gnu_ld" != yes && break
12977	;;
12978      esac
12979    fi
12980  done
12981  IFS="$lt_save_ifs"
12982else
12983  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12984fi
12985fi
12986
12987LD="$lt_cv_path_LD"
12988if test -n "$LD"; then
12989  { echo "$as_me:$LINENO: result: $LD" >&5
12990echo "${ECHO_T}$LD" >&6; }
12991else
12992  { echo "$as_me:$LINENO: result: no" >&5
12993echo "${ECHO_T}no" >&6; }
12994fi
12995test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12996echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12997   { (exit 1); exit 1; }; }
12998{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12999echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13000if test "${lt_cv_prog_gnu_ld+set}" = set; then
13001  echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13004case `$LD -v 2>&1 </dev/null` in
13005*GNU* | *'with BFD'*)
13006  lt_cv_prog_gnu_ld=yes
13007  ;;
13008*)
13009  lt_cv_prog_gnu_ld=no
13010  ;;
13011esac
13012fi
13013{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13014echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13015with_gnu_ld=$lt_cv_prog_gnu_ld
13016
13017
13018{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13019echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
13020if test "${lt_cv_ld_reload_flag+set}" = set; then
13021  echo $ECHO_N "(cached) $ECHO_C" >&6
13022else
13023  lt_cv_ld_reload_flag='-r'
13024fi
13025{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13026echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
13027reload_flag=$lt_cv_ld_reload_flag
13028case $reload_flag in
13029"" | " "*) ;;
13030*) reload_flag=" $reload_flag" ;;
13031esac
13032reload_cmds='$LD$reload_flag -o $output$reload_objs'
13033case $host_os in
13034  darwin*)
13035    if test "$GCC" = yes; then
13036      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13037    else
13038      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13039    fi
13040    ;;
13041esac
13042
13043{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13044echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13045if test "${lt_cv_deplibs_check_method+set}" = set; then
13046  echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048  lt_cv_file_magic_cmd='$MAGIC_CMD'
13049lt_cv_file_magic_test_file=
13050lt_cv_deplibs_check_method='unknown'
13051# Need to set the preceding variable on all platforms that support
13052# interlibrary dependencies.
13053# 'none' -- dependencies not supported.
13054# `unknown' -- same as none, but documents that we really don't know.
13055# 'pass_all' -- all dependencies passed with no checks.
13056# 'test_compile' -- check by making test program.
13057# 'file_magic [[regex]]' -- check by looking for files in library path
13058# which responds to the $file_magic_cmd with a given extended regex.
13059# If you have `file' or equivalent on your system and you're not sure
13060# whether `pass_all' will *always* work, you probably want this one.
13061
13062case $host_os in
13063aix4* | aix5*)
13064  lt_cv_deplibs_check_method=pass_all
13065  ;;
13066
13067beos*)
13068  lt_cv_deplibs_check_method=pass_all
13069  ;;
13070
13071bsdi[45]*)
13072  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13073  lt_cv_file_magic_cmd='/usr/bin/file -L'
13074  lt_cv_file_magic_test_file=/shlib/libc.so
13075  ;;
13076
13077cygwin*)
13078  # func_win32_libid is a shell function defined in ltmain.sh
13079  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13080  lt_cv_file_magic_cmd='func_win32_libid'
13081  ;;
13082
13083mingw* | pw32*)
13084  # Base MSYS/MinGW do not provide the 'file' command needed by
13085  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13086  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13087  lt_cv_file_magic_cmd='$OBJDUMP -f'
13088  ;;
13089
13090darwin* | rhapsody*)
13091  lt_cv_deplibs_check_method=pass_all
13092  ;;
13093
13094freebsd* | kfreebsd*-gnu | dragonfly*)
13095  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13096    case $host_cpu in
13097    i*86 )
13098      # Not sure whether the presence of OpenBSD here was a mistake.
13099      # Let's accept both of them until this is cleared up.
13100      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13101      lt_cv_file_magic_cmd=/usr/bin/file
13102      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13103      ;;
13104    esac
13105  else
13106    lt_cv_deplibs_check_method=pass_all
13107  fi
13108  ;;
13109
13110gnu*)
13111  lt_cv_deplibs_check_method=pass_all
13112  ;;
13113
13114hpux10.20* | hpux11*)
13115  lt_cv_file_magic_cmd=/usr/bin/file
13116  case $host_cpu in
13117  ia64*)
13118    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13119    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13120    ;;
13121  hppa*64*)
13122    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
13123    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13124    ;;
13125  *)
13126    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13127    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13128    ;;
13129  esac
13130  ;;
13131
13132interix3*)
13133  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13134  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13135  ;;
13136
13137irix5* | irix6* | nonstopux*)
13138  case $LD in
13139  *-32|*"-32 ") libmagic=32-bit;;
13140  *-n32|*"-n32 ") libmagic=N32;;
13141  *-64|*"-64 ") libmagic=64-bit;;
13142  *) libmagic=never-match;;
13143  esac
13144  lt_cv_deplibs_check_method=pass_all
13145  ;;
13146
13147# This must be Linux ELF.
13148linux*)
13149  lt_cv_deplibs_check_method=pass_all
13150  ;;
13151
13152netbsd*)
13153  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13154    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13155  else
13156    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13157  fi
13158  ;;
13159
13160newos6*)
13161  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13162  lt_cv_file_magic_cmd=/usr/bin/file
13163  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13164  ;;
13165
13166nto-qnx*)
13167  lt_cv_deplibs_check_method=unknown
13168  ;;
13169
13170openbsd*)
13171  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13172    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13173  else
13174    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13175  fi
13176  ;;
13177
13178osf3* | osf4* | osf5*)
13179  lt_cv_deplibs_check_method=pass_all
13180  ;;
13181
13182solaris*)
13183  lt_cv_deplibs_check_method=pass_all
13184  ;;
13185
13186sysv4 | sysv4.3*)
13187  case $host_vendor in
13188  motorola)
13189    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
13190    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13191    ;;
13192  ncr)
13193    lt_cv_deplibs_check_method=pass_all
13194    ;;
13195  sequent)
13196    lt_cv_file_magic_cmd='/bin/file'
13197    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13198    ;;
13199  sni)
13200    lt_cv_file_magic_cmd='/bin/file'
13201    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13202    lt_cv_file_magic_test_file=/lib/libc.so
13203    ;;
13204  siemens)
13205    lt_cv_deplibs_check_method=pass_all
13206    ;;
13207  pc)
13208    lt_cv_deplibs_check_method=pass_all
13209    ;;
13210  esac
13211  ;;
13212
13213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13214  lt_cv_deplibs_check_method=pass_all
13215  ;;
13216esac
13217
13218fi
13219{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13220echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13221file_magic_cmd=$lt_cv_file_magic_cmd
13222deplibs_check_method=$lt_cv_deplibs_check_method
13223test -z "$deplibs_check_method" && deplibs_check_method=unknown
13224
13225
13226
13227# If no C compiler was specified, use CC.
13228LTCC=${LTCC-"$CC"}
13229
13230# If no C compiler flags were specified, use CFLAGS.
13231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13232
13233# Allow CC to be a program name with arguments.
13234compiler=$CC
13235
13236# Check whether --enable-libtool-lock was given.
13237if test "${enable_libtool_lock+set}" = set; then
13238  enableval=$enable_libtool_lock;
13239fi
13240
13241test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13242
13243# Some flags need to be propagated to the compiler or linker for good
13244# libtool support.
13245case $host in
13246ia64-*-hpux*)
13247  # Find out which ABI we are using.
13248  echo 'int i;' > conftest.$ac_ext
13249  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250  (eval $ac_compile) 2>&5
13251  ac_status=$?
13252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253  (exit $ac_status); }; then
13254    case `/usr/bin/file conftest.$ac_objext` in
13255    *ELF-32*)
13256      HPUX_IA64_MODE="32"
13257      ;;
13258    *ELF-64*)
13259      HPUX_IA64_MODE="64"
13260      ;;
13261    esac
13262  fi
13263  rm -rf conftest*
13264  ;;
13265*-*-irix6*)
13266  # Find out which ABI we are using.
13267  echo '#line 13267 "configure"' > conftest.$ac_ext
13268  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269  (eval $ac_compile) 2>&5
13270  ac_status=$?
13271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272  (exit $ac_status); }; then
13273   if test "$lt_cv_prog_gnu_ld" = yes; then
13274    case `/usr/bin/file conftest.$ac_objext` in
13275    *32-bit*)
13276      LD="${LD-ld} -melf32bsmip"
13277      ;;
13278    *N32*)
13279      LD="${LD-ld} -melf32bmipn32"
13280      ;;
13281    *64-bit*)
13282      LD="${LD-ld} -melf64bmip"
13283      ;;
13284    esac
13285   else
13286    case `/usr/bin/file conftest.$ac_objext` in
13287    *32-bit*)
13288      LD="${LD-ld} -32"
13289      ;;
13290    *N32*)
13291      LD="${LD-ld} -n32"
13292      ;;
13293    *64-bit*)
13294      LD="${LD-ld} -64"
13295      ;;
13296    esac
13297   fi
13298  fi
13299  rm -rf conftest*
13300  ;;
13301
13302x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13303  # Find out which ABI we are using.
13304  echo 'int i;' > conftest.$ac_ext
13305  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306  (eval $ac_compile) 2>&5
13307  ac_status=$?
13308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309  (exit $ac_status); }; then
13310    case `/usr/bin/file conftest.o` in
13311    *32-bit*)
13312      case $host in
13313        x86_64-*linux*)
13314          LD="${LD-ld} -m elf_i386"
13315          ;;
13316        ppc64-*linux*|powerpc64-*linux*)
13317          LD="${LD-ld} -m elf32ppclinux"
13318          ;;
13319        s390x-*linux*)
13320          LD="${LD-ld} -m elf_s390"
13321          ;;
13322        sparc64-*linux*)
13323          LD="${LD-ld} -m elf32_sparc"
13324          ;;
13325      esac
13326      ;;
13327    *64-bit*)
13328      case $host in
13329        x86_64-*linux*)
13330          LD="${LD-ld} -m elf_x86_64"
13331          ;;
13332        ppc*-*linux*|powerpc*-*linux*)
13333          LD="${LD-ld} -m elf64ppc"
13334          ;;
13335        s390*-*linux*)
13336          LD="${LD-ld} -m elf64_s390"
13337          ;;
13338        sparc*-*linux*)
13339          LD="${LD-ld} -m elf64_sparc"
13340          ;;
13341      esac
13342      ;;
13343    esac
13344  fi
13345  rm -rf conftest*
13346  ;;
13347
13348*-*-sco3.2v5*)
13349  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13350  SAVE_CFLAGS="$CFLAGS"
13351  CFLAGS="$CFLAGS -belf"
13352  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13353echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13354if test "${lt_cv_cc_needs_belf+set}" = set; then
13355  echo $ECHO_N "(cached) $ECHO_C" >&6
13356else
13357  ac_ext=c
13358ac_cpp='$CPP $CPPFLAGS'
13359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361ac_compiler_gnu=$ac_cv_c_compiler_gnu
13362
13363     cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h.  */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h.  */
13369
13370int
13371main ()
13372{
13373
13374  ;
13375  return 0;
13376}
13377_ACEOF
13378rm -f conftest.$ac_objext conftest$ac_exeext
13379if { (ac_try="$ac_link"
13380case "(($ac_try" in
13381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382  *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385  (eval "$ac_link") 2>conftest.er1
13386  ac_status=$?
13387  grep -v '^ *+' conftest.er1 >conftest.err
13388  rm -f conftest.er1
13389  cat conftest.err >&5
13390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391  (exit $ac_status); } &&
13392	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393  { (case "(($ac_try" in
13394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395  *) ac_try_echo=$ac_try;;
13396esac
13397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398  (eval "$ac_try") 2>&5
13399  ac_status=$?
13400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401  (exit $ac_status); }; } &&
13402	 { ac_try='test -s conftest$ac_exeext'
13403  { (case "(($ac_try" in
13404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405  *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408  (eval "$ac_try") 2>&5
13409  ac_status=$?
13410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411  (exit $ac_status); }; }; then
13412  lt_cv_cc_needs_belf=yes
13413else
13414  echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417	lt_cv_cc_needs_belf=no
13418fi
13419
13420rm -f core conftest.err conftest.$ac_objext \
13421      conftest$ac_exeext conftest.$ac_ext
13422     ac_ext=c
13423ac_cpp='$CPP $CPPFLAGS'
13424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_c_compiler_gnu
13427
13428fi
13429{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13430echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13431  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13432    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13433    CFLAGS="$SAVE_CFLAGS"
13434  fi
13435  ;;
13436sparc*-*solaris*)
13437  # Find out which ABI we are using.
13438  echo 'int i;' > conftest.$ac_ext
13439  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440  (eval $ac_compile) 2>&5
13441  ac_status=$?
13442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443  (exit $ac_status); }; then
13444    case `/usr/bin/file conftest.o` in
13445    *64-bit*)
13446      case $lt_cv_prog_gnu_ld in
13447      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13448      *)    LD="${LD-ld} -64" ;;
13449      esac
13450      ;;
13451    esac
13452  fi
13453  rm -rf conftest*
13454  ;;
13455
13456
13457esac
13458
13459need_locks="$enable_libtool_lock"
13460
13461
13462
13463
13464if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13465    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13466    (test "X$CXX" != "Xg++"))) ; then
13467  ac_ext=cpp
13468ac_cpp='$CXXCPP $CPPFLAGS'
13469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13472{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13473echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13474if test -z "$CXXCPP"; then
13475  if test "${ac_cv_prog_CXXCPP+set}" = set; then
13476  echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478      # Double quotes because CXXCPP needs to be expanded
13479    for CXXCPP in "$CXX -E" "/lib/cpp"
13480    do
13481      ac_preproc_ok=false
13482for ac_cxx_preproc_warn_flag in '' yes
13483do
13484  # Use a header file that comes with gcc, so configuring glibc
13485  # with a fresh cross-compiler works.
13486  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487  # <limits.h> exists even on freestanding compilers.
13488  # On the NeXT, cc -E runs the code through the compiler's parser,
13489  # not just through cpp. "Syntax error" is here to catch this case.
13490  cat >conftest.$ac_ext <<_ACEOF
13491/* confdefs.h.  */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h.  */
13496#ifdef __STDC__
13497# include <limits.h>
13498#else
13499# include <assert.h>
13500#endif
13501		     Syntax error
13502_ACEOF
13503if { (ac_try="$ac_cpp conftest.$ac_ext"
13504case "(($ac_try" in
13505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506  *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13510  ac_status=$?
13511  grep -v '^ *+' conftest.er1 >conftest.err
13512  rm -f conftest.er1
13513  cat conftest.err >&5
13514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515  (exit $ac_status); } >/dev/null; then
13516  if test -s conftest.err; then
13517    ac_cpp_err=$ac_cxx_preproc_warn_flag
13518    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13519  else
13520    ac_cpp_err=
13521  fi
13522else
13523  ac_cpp_err=yes
13524fi
13525if test -z "$ac_cpp_err"; then
13526  :
13527else
13528  echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
13531  # Broken: fails on valid input.
13532continue
13533fi
13534
13535rm -f conftest.err conftest.$ac_ext
13536
13537  # OK, works on sane cases.  Now check whether nonexistent headers
13538  # can be detected and how.
13539  cat >conftest.$ac_ext <<_ACEOF
13540/* confdefs.h.  */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h.  */
13545#include <ac_nonexistent.h>
13546_ACEOF
13547if { (ac_try="$ac_cpp conftest.$ac_ext"
13548case "(($ac_try" in
13549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550  *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13554  ac_status=$?
13555  grep -v '^ *+' conftest.er1 >conftest.err
13556  rm -f conftest.er1
13557  cat conftest.err >&5
13558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559  (exit $ac_status); } >/dev/null; then
13560  if test -s conftest.err; then
13561    ac_cpp_err=$ac_cxx_preproc_warn_flag
13562    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13563  else
13564    ac_cpp_err=
13565  fi
13566else
13567  ac_cpp_err=yes
13568fi
13569if test -z "$ac_cpp_err"; then
13570  # Broken: success on invalid input.
13571continue
13572else
13573  echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576  # Passes both tests.
13577ac_preproc_ok=:
13578break
13579fi
13580
13581rm -f conftest.err conftest.$ac_ext
13582
13583done
13584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585rm -f conftest.err conftest.$ac_ext
13586if $ac_preproc_ok; then
13587  break
13588fi
13589
13590    done
13591    ac_cv_prog_CXXCPP=$CXXCPP
13592
13593fi
13594  CXXCPP=$ac_cv_prog_CXXCPP
13595else
13596  ac_cv_prog_CXXCPP=$CXXCPP
13597fi
13598{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13599echo "${ECHO_T}$CXXCPP" >&6; }
13600ac_preproc_ok=false
13601for ac_cxx_preproc_warn_flag in '' yes
13602do
13603  # Use a header file that comes with gcc, so configuring glibc
13604  # with a fresh cross-compiler works.
13605  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606  # <limits.h> exists even on freestanding compilers.
13607  # On the NeXT, cc -E runs the code through the compiler's parser,
13608  # not just through cpp. "Syntax error" is here to catch this case.
13609  cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h.  */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h.  */
13615#ifdef __STDC__
13616# include <limits.h>
13617#else
13618# include <assert.h>
13619#endif
13620		     Syntax error
13621_ACEOF
13622if { (ac_try="$ac_cpp conftest.$ac_ext"
13623case "(($ac_try" in
13624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625  *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13629  ac_status=$?
13630  grep -v '^ *+' conftest.er1 >conftest.err
13631  rm -f conftest.er1
13632  cat conftest.err >&5
13633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634  (exit $ac_status); } >/dev/null; then
13635  if test -s conftest.err; then
13636    ac_cpp_err=$ac_cxx_preproc_warn_flag
13637    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13638  else
13639    ac_cpp_err=
13640  fi
13641else
13642  ac_cpp_err=yes
13643fi
13644if test -z "$ac_cpp_err"; then
13645  :
13646else
13647  echo "$as_me: failed program was:" >&5
13648sed 's/^/| /' conftest.$ac_ext >&5
13649
13650  # Broken: fails on valid input.
13651continue
13652fi
13653
13654rm -f conftest.err conftest.$ac_ext
13655
13656  # OK, works on sane cases.  Now check whether nonexistent headers
13657  # can be detected and how.
13658  cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h.  */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h.  */
13664#include <ac_nonexistent.h>
13665_ACEOF
13666if { (ac_try="$ac_cpp conftest.$ac_ext"
13667case "(($ac_try" in
13668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669  *) ac_try_echo=$ac_try;;
13670esac
13671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13673  ac_status=$?
13674  grep -v '^ *+' conftest.er1 >conftest.err
13675  rm -f conftest.er1
13676  cat conftest.err >&5
13677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678  (exit $ac_status); } >/dev/null; then
13679  if test -s conftest.err; then
13680    ac_cpp_err=$ac_cxx_preproc_warn_flag
13681    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13682  else
13683    ac_cpp_err=
13684  fi
13685else
13686  ac_cpp_err=yes
13687fi
13688if test -z "$ac_cpp_err"; then
13689  # Broken: success on invalid input.
13690continue
13691else
13692  echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
13695  # Passes both tests.
13696ac_preproc_ok=:
13697break
13698fi
13699
13700rm -f conftest.err conftest.$ac_ext
13701
13702done
13703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13704rm -f conftest.err conftest.$ac_ext
13705if $ac_preproc_ok; then
13706  :
13707else
13708  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13709See \`config.log' for more details." >&5
13710echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13711See \`config.log' for more details." >&2;}
13712   { (exit 1); exit 1; }; }
13713fi
13714
13715ac_ext=cpp
13716ac_cpp='$CXXCPP $CPPFLAGS'
13717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13720
13721fi
13722
13723
13724ac_ext=f
13725ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13726ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13728if test -n "$ac_tool_prefix"; then
13729  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13730  do
13731    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13735if test "${ac_cv_prog_F77+set}" = set; then
13736  echo $ECHO_N "(cached) $ECHO_C" >&6
13737else
13738  if test -n "$F77"; then
13739  ac_cv_prog_F77="$F77" # Let the user override the test.
13740else
13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742for as_dir in $PATH
13743do
13744  IFS=$as_save_IFS
13745  test -z "$as_dir" && as_dir=.
13746  for ac_exec_ext in '' $ac_executable_extensions; do
13747  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13748    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750    break 2
13751  fi
13752done
13753done
13754IFS=$as_save_IFS
13755
13756fi
13757fi
13758F77=$ac_cv_prog_F77
13759if test -n "$F77"; then
13760  { echo "$as_me:$LINENO: result: $F77" >&5
13761echo "${ECHO_T}$F77" >&6; }
13762else
13763  { echo "$as_me:$LINENO: result: no" >&5
13764echo "${ECHO_T}no" >&6; }
13765fi
13766
13767
13768    test -n "$F77" && break
13769  done
13770fi
13771if test -z "$F77"; then
13772  ac_ct_F77=$F77
13773  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13774do
13775  # Extract the first word of "$ac_prog", so it can be a program name with args.
13776set dummy $ac_prog; ac_word=$2
13777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13779if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13780  echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782  if test -n "$ac_ct_F77"; then
13783  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13784else
13785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786for as_dir in $PATH
13787do
13788  IFS=$as_save_IFS
13789  test -z "$as_dir" && as_dir=.
13790  for ac_exec_ext in '' $ac_executable_extensions; do
13791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13792    ac_cv_prog_ac_ct_F77="$ac_prog"
13793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13794    break 2
13795  fi
13796done
13797done
13798IFS=$as_save_IFS
13799
13800fi
13801fi
13802ac_ct_F77=$ac_cv_prog_ac_ct_F77
13803if test -n "$ac_ct_F77"; then
13804  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13805echo "${ECHO_T}$ac_ct_F77" >&6; }
13806else
13807  { echo "$as_me:$LINENO: result: no" >&5
13808echo "${ECHO_T}no" >&6; }
13809fi
13810
13811
13812  test -n "$ac_ct_F77" && break
13813done
13814
13815  if test "x$ac_ct_F77" = x; then
13816    F77=""
13817  else
13818    case $cross_compiling:$ac_tool_warned in
13819yes:)
13820{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13821whose name does not start with the host triplet.  If you think this
13822configuration is useful to you, please write to autoconf@gnu.org." >&5
13823echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13824whose name does not start with the host triplet.  If you think this
13825configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13826ac_tool_warned=yes ;;
13827esac
13828    F77=$ac_ct_F77
13829  fi
13830fi
13831
13832
13833# Provide some information about the compiler.
13834echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13835ac_compiler=`set X $ac_compile; echo $2`
13836{ (ac_try="$ac_compiler --version >&5"
13837case "(($ac_try" in
13838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839  *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842  (eval "$ac_compiler --version >&5") 2>&5
13843  ac_status=$?
13844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845  (exit $ac_status); }
13846{ (ac_try="$ac_compiler -v >&5"
13847case "(($ac_try" in
13848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849  *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852  (eval "$ac_compiler -v >&5") 2>&5
13853  ac_status=$?
13854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855  (exit $ac_status); }
13856{ (ac_try="$ac_compiler -V >&5"
13857case "(($ac_try" in
13858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859  *) ac_try_echo=$ac_try;;
13860esac
13861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862  (eval "$ac_compiler -V >&5") 2>&5
13863  ac_status=$?
13864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865  (exit $ac_status); }
13866rm -f a.out
13867
13868# If we don't use `.F' as extension, the preprocessor is not run on the
13869# input file.  (Note that this only needs to work for GNU compilers.)
13870ac_save_ext=$ac_ext
13871ac_ext=F
13872{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13873echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13874if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13875  echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877  cat >conftest.$ac_ext <<_ACEOF
13878      program main
13879#ifndef __GNUC__
13880       choke me
13881#endif
13882
13883      end
13884_ACEOF
13885rm -f conftest.$ac_objext
13886if { (ac_try="$ac_compile"
13887case "(($ac_try" in
13888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889  *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892  (eval "$ac_compile") 2>conftest.er1
13893  ac_status=$?
13894  grep -v '^ *+' conftest.er1 >conftest.err
13895  rm -f conftest.er1
13896  cat conftest.err >&5
13897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898  (exit $ac_status); } &&
13899	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13900  { (case "(($ac_try" in
13901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902  *) ac_try_echo=$ac_try;;
13903esac
13904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905  (eval "$ac_try") 2>&5
13906  ac_status=$?
13907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908  (exit $ac_status); }; } &&
13909	 { ac_try='test -s conftest.$ac_objext'
13910  { (case "(($ac_try" in
13911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912  *) ac_try_echo=$ac_try;;
13913esac
13914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915  (eval "$ac_try") 2>&5
13916  ac_status=$?
13917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918  (exit $ac_status); }; }; then
13919  ac_compiler_gnu=yes
13920else
13921  echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924	ac_compiler_gnu=no
13925fi
13926
13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13929
13930fi
13931{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13932echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13933ac_ext=$ac_save_ext
13934ac_test_FFLAGS=${FFLAGS+set}
13935ac_save_FFLAGS=$FFLAGS
13936FFLAGS=
13937{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13938echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13939if test "${ac_cv_prog_f77_g+set}" = set; then
13940  echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942  FFLAGS=-g
13943cat >conftest.$ac_ext <<_ACEOF
13944      program main
13945
13946      end
13947_ACEOF
13948rm -f conftest.$ac_objext
13949if { (ac_try="$ac_compile"
13950case "(($ac_try" in
13951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952  *) ac_try_echo=$ac_try;;
13953esac
13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955  (eval "$ac_compile") 2>conftest.er1
13956  ac_status=$?
13957  grep -v '^ *+' conftest.er1 >conftest.err
13958  rm -f conftest.er1
13959  cat conftest.err >&5
13960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961  (exit $ac_status); } &&
13962	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13963  { (case "(($ac_try" in
13964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965  *) ac_try_echo=$ac_try;;
13966esac
13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968  (eval "$ac_try") 2>&5
13969  ac_status=$?
13970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971  (exit $ac_status); }; } &&
13972	 { ac_try='test -s conftest.$ac_objext'
13973  { (case "(($ac_try" in
13974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975  *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978  (eval "$ac_try") 2>&5
13979  ac_status=$?
13980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981  (exit $ac_status); }; }; then
13982  ac_cv_prog_f77_g=yes
13983else
13984  echo "$as_me: failed program was:" >&5
13985sed 's/^/| /' conftest.$ac_ext >&5
13986
13987	ac_cv_prog_f77_g=no
13988fi
13989
13990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991
13992fi
13993{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13994echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13995if test "$ac_test_FFLAGS" = set; then
13996  FFLAGS=$ac_save_FFLAGS
13997elif test $ac_cv_prog_f77_g = yes; then
13998  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13999    FFLAGS="-g -O2"
14000  else
14001    FFLAGS="-g"
14002  fi
14003else
14004  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14005    FFLAGS="-O2"
14006  else
14007    FFLAGS=
14008  fi
14009fi
14010
14011G77=`test $ac_compiler_gnu = yes && echo yes`
14012ac_ext=c
14013ac_cpp='$CPP $CPPFLAGS'
14014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018
14019
14020# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14021
14022# find the maximum length of command line arguments
14023{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14024echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14025if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14026  echo $ECHO_N "(cached) $ECHO_C" >&6
14027else
14028    i=0
14029  teststring="ABCD"
14030
14031  case $build_os in
14032  msdosdjgpp*)
14033    # On DJGPP, this test can blow up pretty badly due to problems in libc
14034    # (any single argument exceeding 2000 bytes causes a buffer overrun
14035    # during glob expansion).  Even if it were fixed, the result of this
14036    # check would be larger than it should be.
14037    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14038    ;;
14039
14040  gnu*)
14041    # Under GNU Hurd, this test is not required because there is
14042    # no limit to the length of command line arguments.
14043    # Libtool will interpret -1 as no limit whatsoever
14044    lt_cv_sys_max_cmd_len=-1;
14045    ;;
14046
14047  cygwin* | mingw*)
14048    # On Win9x/ME, this test blows up -- it succeeds, but takes
14049    # about 5 minutes as the teststring grows exponentially.
14050    # Worse, since 9x/ME are not pre-emptively multitasking,
14051    # you end up with a "frozen" computer, even though with patience
14052    # the test eventually succeeds (with a max line length of 256k).
14053    # Instead, let's just punt: use the minimum linelength reported by
14054    # all of the supported platforms: 8192 (on NT/2K/XP).
14055    lt_cv_sys_max_cmd_len=8192;
14056    ;;
14057
14058  amigaos*)
14059    # On AmigaOS with pdksh, this test takes hours, literally.
14060    # So we just punt and use a minimum line length of 8192.
14061    lt_cv_sys_max_cmd_len=8192;
14062    ;;
14063
14064  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14065    # This has been around since 386BSD, at least.  Likely further.
14066    if test -x /sbin/sysctl; then
14067      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14068    elif test -x /usr/sbin/sysctl; then
14069      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14070    else
14071      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
14072    fi
14073    # And add a safety zone
14074    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14075    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14076    ;;
14077
14078  interix*)
14079    # We know the value 262144 and hardcode it with a safety zone (like BSD)
14080    lt_cv_sys_max_cmd_len=196608
14081    ;;
14082
14083  osf*)
14084    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14085    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14086    # nice to cause kernel panics so lets avoid the loop below.
14087    # First set a reasonable default.
14088    lt_cv_sys_max_cmd_len=16384
14089    #
14090    if test -x /sbin/sysconfig; then
14091      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14092        *1*) lt_cv_sys_max_cmd_len=-1 ;;
14093      esac
14094    fi
14095    ;;
14096  sco3.2v5*)
14097    lt_cv_sys_max_cmd_len=102400
14098    ;;
14099  sysv5* | sco5v6* | sysv4.2uw2*)
14100    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14101    if test -n "$kargmax"; then
14102      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
14103    else
14104      lt_cv_sys_max_cmd_len=32768
14105    fi
14106    ;;
14107  *)
14108    # If test is not a shell built-in, we'll probably end up computing a
14109    # maximum length that is only half of the actual maximum length, but
14110    # we can't tell.
14111    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14112    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14113	       = "XX$teststring") >/dev/null 2>&1 &&
14114	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
14115	    lt_cv_sys_max_cmd_len=$new_result &&
14116	    test $i != 17 # 1/2 MB should be enough
14117    do
14118      i=`expr $i + 1`
14119      teststring=$teststring$teststring
14120    done
14121    teststring=
14122    # Add a significant safety factor because C++ compilers can tack on massive
14123    # amounts of additional arguments before passing them to the linker.
14124    # It appears as though 1/2 is a usable value.
14125    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14126    ;;
14127  esac
14128
14129fi
14130
14131if test -n $lt_cv_sys_max_cmd_len ; then
14132  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14133echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14134else
14135  { echo "$as_me:$LINENO: result: none" >&5
14136echo "${ECHO_T}none" >&6; }
14137fi
14138
14139
14140
14141
14142# Check for command to grab the raw symbol name followed by C symbol from nm.
14143{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14144echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14145if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14146  echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148
14149# These are sane defaults that work on at least a few old systems.
14150# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14151
14152# Character class describing NM global symbol codes.
14153symcode='[BCDEGRST]'
14154
14155# Regexp to match symbols that can be accessed directly from C.
14156sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14157
14158# Transform an extracted symbol line into a proper C declaration
14159lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14160
14161# Transform an extracted symbol line into symbol name and symbol address
14162lt_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'"
14163
14164# Define system-specific variables.
14165case $host_os in
14166aix*)
14167  symcode='[BCDT]'
14168  ;;
14169cygwin* | mingw* | pw32*)
14170  symcode='[ABCDGISTW]'
14171  ;;
14172hpux*) # Its linker distinguishes data from code symbols
14173  if test "$host_cpu" = ia64; then
14174    symcode='[ABCDEGRST]'
14175  fi
14176  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14177  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'"
14178  ;;
14179linux*)
14180  if test "$host_cpu" = ia64; then
14181    symcode='[ABCDGIRSTW]'
14182    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14183    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'"
14184  fi
14185  ;;
14186irix* | nonstopux*)
14187  symcode='[BCDEGRST]'
14188  ;;
14189osf*)
14190  symcode='[BCDEGQRST]'
14191  ;;
14192solaris*)
14193  symcode='[BDRT]'
14194  ;;
14195sco3.2v5*)
14196  symcode='[DT]'
14197  ;;
14198sysv4.2uw2*)
14199  symcode='[DT]'
14200  ;;
14201sysv5* | sco5v6* | unixware* | OpenUNIX*)
14202  symcode='[ABDT]'
14203  ;;
14204sysv4)
14205  symcode='[DFNSTU]'
14206  ;;
14207esac
14208
14209# Handle CRLF in mingw tool chain
14210opt_cr=
14211case $build_os in
14212mingw*)
14213  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14214  ;;
14215esac
14216
14217# If we're using GNU nm, then use its standard symbol codes.
14218case `$NM -V 2>&1` in
14219*GNU* | *'with BFD'*)
14220  symcode='[ABCDGIRSTW]' ;;
14221esac
14222
14223# Try without a prefix undercore, then with it.
14224for ac_symprfx in "" "_"; do
14225
14226  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14227  symxfrm="\\1 $ac_symprfx\\2 \\2"
14228
14229  # Write the raw and C identifiers.
14230  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14231
14232  # Check to see that the pipe works correctly.
14233  pipe_works=no
14234
14235  rm -f conftest*
14236  cat > conftest.$ac_ext <<EOF
14237#ifdef __cplusplus
14238extern "C" {
14239#endif
14240char nm_test_var;
14241void nm_test_func(){}
14242#ifdef __cplusplus
14243}
14244#endif
14245int main(){nm_test_var='a';nm_test_func();return(0);}
14246EOF
14247
14248  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249  (eval $ac_compile) 2>&5
14250  ac_status=$?
14251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252  (exit $ac_status); }; then
14253    # Now try to grab the symbols.
14254    nlist=conftest.nm
14255    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14256  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14257  ac_status=$?
14258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259  (exit $ac_status); } && test -s "$nlist"; then
14260      # Try sorting and uniquifying the output.
14261      if sort "$nlist" | uniq > "$nlist"T; then
14262	mv -f "$nlist"T "$nlist"
14263      else
14264	rm -f "$nlist"T
14265      fi
14266
14267      # Make sure that we snagged all the symbols we need.
14268      if grep ' nm_test_var$' "$nlist" >/dev/null; then
14269	if grep ' nm_test_func$' "$nlist" >/dev/null; then
14270	  cat <<EOF > conftest.$ac_ext
14271#ifdef __cplusplus
14272extern "C" {
14273#endif
14274
14275EOF
14276	  # Now generate the symbol file.
14277	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14278
14279	  cat <<EOF >> conftest.$ac_ext
14280#if defined (__STDC__) && __STDC__
14281# define lt_ptr_t void *
14282#else
14283# define lt_ptr_t char *
14284# define const
14285#endif
14286
14287/* The mapping between symbol names and symbols. */
14288const struct {
14289  const char *name;
14290  lt_ptr_t address;
14291}
14292lt_preloaded_symbols[] =
14293{
14294EOF
14295	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14296	  cat <<\EOF >> conftest.$ac_ext
14297  {0, (lt_ptr_t) 0}
14298};
14299
14300#ifdef __cplusplus
14301}
14302#endif
14303EOF
14304	  # Now try linking the two files.
14305	  mv conftest.$ac_objext conftstm.$ac_objext
14306	  lt_save_LIBS="$LIBS"
14307	  lt_save_CFLAGS="$CFLAGS"
14308	  LIBS="conftstm.$ac_objext"
14309	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14310	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311  (eval $ac_link) 2>&5
14312  ac_status=$?
14313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314  (exit $ac_status); } && test -s conftest${ac_exeext}; then
14315	    pipe_works=yes
14316	  fi
14317	  LIBS="$lt_save_LIBS"
14318	  CFLAGS="$lt_save_CFLAGS"
14319	else
14320	  echo "cannot find nm_test_func in $nlist" >&5
14321	fi
14322      else
14323	echo "cannot find nm_test_var in $nlist" >&5
14324      fi
14325    else
14326      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14327    fi
14328  else
14329    echo "$progname: failed program was:" >&5
14330    cat conftest.$ac_ext >&5
14331  fi
14332  rm -f conftest* conftst*
14333
14334  # Do not use the global_symbol_pipe unless it works.
14335  if test "$pipe_works" = yes; then
14336    break
14337  else
14338    lt_cv_sys_global_symbol_pipe=
14339  fi
14340done
14341
14342fi
14343
14344if test -z "$lt_cv_sys_global_symbol_pipe"; then
14345  lt_cv_sys_global_symbol_to_cdecl=
14346fi
14347if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14348  { echo "$as_me:$LINENO: result: failed" >&5
14349echo "${ECHO_T}failed" >&6; }
14350else
14351  { echo "$as_me:$LINENO: result: ok" >&5
14352echo "${ECHO_T}ok" >&6; }
14353fi
14354
14355{ echo "$as_me:$LINENO: checking for objdir" >&5
14356echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14357if test "${lt_cv_objdir+set}" = set; then
14358  echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
14360  rm -f .libs 2>/dev/null
14361mkdir .libs 2>/dev/null
14362if test -d .libs; then
14363  lt_cv_objdir=.libs
14364else
14365  # MS-DOS does not allow filenames that begin with a dot.
14366  lt_cv_objdir=_libs
14367fi
14368rmdir .libs 2>/dev/null
14369fi
14370{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14371echo "${ECHO_T}$lt_cv_objdir" >&6; }
14372objdir=$lt_cv_objdir
14373
14374
14375
14376
14377
14378case $host_os in
14379aix3*)
14380  # AIX sometimes has problems with the GCC collect2 program.  For some
14381  # reason, if we set the COLLECT_NAMES environment variable, the problems
14382  # vanish in a puff of smoke.
14383  if test "X${COLLECT_NAMES+set}" != Xset; then
14384    COLLECT_NAMES=
14385    export COLLECT_NAMES
14386  fi
14387  ;;
14388esac
14389
14390# Sed substitution that helps us do robust quoting.  It backslashifies
14391# metacharacters that are still active within double-quoted strings.
14392Xsed='sed -e 1s/^X//'
14393sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14394
14395# Same as above, but do not quote variable references.
14396double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14397
14398# Sed substitution to delay expansion of an escaped shell variable in a
14399# double_quote_subst'ed string.
14400delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14401
14402# Sed substitution to avoid accidental globbing in evaled expressions
14403no_glob_subst='s/\*/\\\*/g'
14404
14405# Constants:
14406rm="rm -f"
14407
14408# Global variables:
14409default_ofile=mklib
14410can_build_shared=yes
14411
14412# All known linkers require a `.a' archive for static linking (except MSVC,
14413# which needs '.lib').
14414libext=a
14415ltmain="$ac_aux_dir/ltmain.sh"
14416ofile="$default_ofile"
14417with_gnu_ld="$lt_cv_prog_gnu_ld"
14418
14419if test -n "$ac_tool_prefix"; then
14420  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14421set dummy ${ac_tool_prefix}ar; ac_word=$2
14422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14424if test "${ac_cv_prog_AR+set}" = set; then
14425  echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427  if test -n "$AR"; then
14428  ac_cv_prog_AR="$AR" # Let the user override the test.
14429else
14430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431for as_dir in $PATH
14432do
14433  IFS=$as_save_IFS
14434  test -z "$as_dir" && as_dir=.
14435  for ac_exec_ext in '' $ac_executable_extensions; do
14436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14437    ac_cv_prog_AR="${ac_tool_prefix}ar"
14438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14439    break 2
14440  fi
14441done
14442done
14443IFS=$as_save_IFS
14444
14445fi
14446fi
14447AR=$ac_cv_prog_AR
14448if test -n "$AR"; then
14449  { echo "$as_me:$LINENO: result: $AR" >&5
14450echo "${ECHO_T}$AR" >&6; }
14451else
14452  { echo "$as_me:$LINENO: result: no" >&5
14453echo "${ECHO_T}no" >&6; }
14454fi
14455
14456
14457fi
14458if test -z "$ac_cv_prog_AR"; then
14459  ac_ct_AR=$AR
14460  # Extract the first word of "ar", so it can be a program name with args.
14461set dummy ar; ac_word=$2
14462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14464if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14465  echo $ECHO_N "(cached) $ECHO_C" >&6
14466else
14467  if test -n "$ac_ct_AR"; then
14468  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14469else
14470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471for as_dir in $PATH
14472do
14473  IFS=$as_save_IFS
14474  test -z "$as_dir" && as_dir=.
14475  for ac_exec_ext in '' $ac_executable_extensions; do
14476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14477    ac_cv_prog_ac_ct_AR="ar"
14478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14479    break 2
14480  fi
14481done
14482done
14483IFS=$as_save_IFS
14484
14485fi
14486fi
14487ac_ct_AR=$ac_cv_prog_ac_ct_AR
14488if test -n "$ac_ct_AR"; then
14489  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14490echo "${ECHO_T}$ac_ct_AR" >&6; }
14491else
14492  { echo "$as_me:$LINENO: result: no" >&5
14493echo "${ECHO_T}no" >&6; }
14494fi
14495
14496  if test "x$ac_ct_AR" = x; then
14497    AR="false"
14498  else
14499    case $cross_compiling:$ac_tool_warned in
14500yes:)
14501{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14502whose name does not start with the host triplet.  If you think this
14503configuration is useful to you, please write to autoconf@gnu.org." >&5
14504echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14505whose name does not start with the host triplet.  If you think this
14506configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14507ac_tool_warned=yes ;;
14508esac
14509    AR=$ac_ct_AR
14510  fi
14511else
14512  AR="$ac_cv_prog_AR"
14513fi
14514
14515if test -n "$ac_tool_prefix"; then
14516  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14517set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14520if test "${ac_cv_prog_RANLIB+set}" = set; then
14521  echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523  if test -n "$RANLIB"; then
14524  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14525else
14526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527for as_dir in $PATH
14528do
14529  IFS=$as_save_IFS
14530  test -z "$as_dir" && as_dir=.
14531  for ac_exec_ext in '' $ac_executable_extensions; do
14532  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14533    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14535    break 2
14536  fi
14537done
14538done
14539IFS=$as_save_IFS
14540
14541fi
14542fi
14543RANLIB=$ac_cv_prog_RANLIB
14544if test -n "$RANLIB"; then
14545  { echo "$as_me:$LINENO: result: $RANLIB" >&5
14546echo "${ECHO_T}$RANLIB" >&6; }
14547else
14548  { echo "$as_me:$LINENO: result: no" >&5
14549echo "${ECHO_T}no" >&6; }
14550fi
14551
14552
14553fi
14554if test -z "$ac_cv_prog_RANLIB"; then
14555  ac_ct_RANLIB=$RANLIB
14556  # Extract the first word of "ranlib", so it can be a program name with args.
14557set dummy ranlib; ac_word=$2
14558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14560if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14561  echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563  if test -n "$ac_ct_RANLIB"; then
14564  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14565else
14566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567for as_dir in $PATH
14568do
14569  IFS=$as_save_IFS
14570  test -z "$as_dir" && as_dir=.
14571  for ac_exec_ext in '' $ac_executable_extensions; do
14572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14573    ac_cv_prog_ac_ct_RANLIB="ranlib"
14574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14575    break 2
14576  fi
14577done
14578done
14579IFS=$as_save_IFS
14580
14581fi
14582fi
14583ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14584if test -n "$ac_ct_RANLIB"; then
14585  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14586echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14587else
14588  { echo "$as_me:$LINENO: result: no" >&5
14589echo "${ECHO_T}no" >&6; }
14590fi
14591
14592  if test "x$ac_ct_RANLIB" = x; then
14593    RANLIB=":"
14594  else
14595    case $cross_compiling:$ac_tool_warned in
14596yes:)
14597{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14598whose name does not start with the host triplet.  If you think this
14599configuration is useful to you, please write to autoconf@gnu.org." >&5
14600echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14601whose name does not start with the host triplet.  If you think this
14602configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14603ac_tool_warned=yes ;;
14604esac
14605    RANLIB=$ac_ct_RANLIB
14606  fi
14607else
14608  RANLIB="$ac_cv_prog_RANLIB"
14609fi
14610
14611if test -n "$ac_tool_prefix"; then
14612  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14613set dummy ${ac_tool_prefix}strip; ac_word=$2
14614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14616if test "${ac_cv_prog_STRIP+set}" = set; then
14617  echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619  if test -n "$STRIP"; then
14620  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14621else
14622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623for as_dir in $PATH
14624do
14625  IFS=$as_save_IFS
14626  test -z "$as_dir" && as_dir=.
14627  for ac_exec_ext in '' $ac_executable_extensions; do
14628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14629    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14631    break 2
14632  fi
14633done
14634done
14635IFS=$as_save_IFS
14636
14637fi
14638fi
14639STRIP=$ac_cv_prog_STRIP
14640if test -n "$STRIP"; then
14641  { echo "$as_me:$LINENO: result: $STRIP" >&5
14642echo "${ECHO_T}$STRIP" >&6; }
14643else
14644  { echo "$as_me:$LINENO: result: no" >&5
14645echo "${ECHO_T}no" >&6; }
14646fi
14647
14648
14649fi
14650if test -z "$ac_cv_prog_STRIP"; then
14651  ac_ct_STRIP=$STRIP
14652  # Extract the first word of "strip", so it can be a program name with args.
14653set dummy strip; ac_word=$2
14654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14657  echo $ECHO_N "(cached) $ECHO_C" >&6
14658else
14659  if test -n "$ac_ct_STRIP"; then
14660  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14661else
14662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663for as_dir in $PATH
14664do
14665  IFS=$as_save_IFS
14666  test -z "$as_dir" && as_dir=.
14667  for ac_exec_ext in '' $ac_executable_extensions; do
14668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14669    ac_cv_prog_ac_ct_STRIP="strip"
14670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14671    break 2
14672  fi
14673done
14674done
14675IFS=$as_save_IFS
14676
14677fi
14678fi
14679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14680if test -n "$ac_ct_STRIP"; then
14681  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14682echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14683else
14684  { echo "$as_me:$LINENO: result: no" >&5
14685echo "${ECHO_T}no" >&6; }
14686fi
14687
14688  if test "x$ac_ct_STRIP" = x; then
14689    STRIP=":"
14690  else
14691    case $cross_compiling:$ac_tool_warned in
14692yes:)
14693{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14694whose name does not start with the host triplet.  If you think this
14695configuration is useful to you, please write to autoconf@gnu.org." >&5
14696echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14697whose name does not start with the host triplet.  If you think this
14698configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14699ac_tool_warned=yes ;;
14700esac
14701    STRIP=$ac_ct_STRIP
14702  fi
14703else
14704  STRIP="$ac_cv_prog_STRIP"
14705fi
14706
14707
14708old_CC="$CC"
14709old_CFLAGS="$CFLAGS"
14710
14711# Set sane defaults for various variables
14712test -z "$AR" && AR=ar
14713test -z "$AR_FLAGS" && AR_FLAGS=cru
14714test -z "$AS" && AS=as
14715test -z "$CC" && CC=cc
14716test -z "$LTCC" && LTCC=$CC
14717test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14718test -z "$DLLTOOL" && DLLTOOL=dlltool
14719test -z "$LD" && LD=ld
14720test -z "$LN_S" && LN_S="ln -s"
14721test -z "$MAGIC_CMD" && MAGIC_CMD=file
14722test -z "$NM" && NM=nm
14723test -z "$SED" && SED=sed
14724test -z "$OBJDUMP" && OBJDUMP=objdump
14725test -z "$RANLIB" && RANLIB=:
14726test -z "$STRIP" && STRIP=:
14727test -z "$ac_objext" && ac_objext=o
14728
14729# Determine commands to create old-style static archives.
14730old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14731old_postinstall_cmds='chmod 644 $oldlib'
14732old_postuninstall_cmds=
14733
14734if test -n "$RANLIB"; then
14735  case $host_os in
14736  openbsd*)
14737    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14738    ;;
14739  *)
14740    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14741    ;;
14742  esac
14743  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14744fi
14745
14746for cc_temp in $compiler""; do
14747  case $cc_temp in
14748    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14749    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14750    \-*) ;;
14751    *) break;;
14752  esac
14753done
14754cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14755
14756
14757# Only perform the check for file, if the check method requires it
14758case $deplibs_check_method in
14759file_magic*)
14760  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14761    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14762echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14763if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14764  echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766  case $MAGIC_CMD in
14767[\\/*] |  ?:[\\/]*)
14768  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14769  ;;
14770*)
14771  lt_save_MAGIC_CMD="$MAGIC_CMD"
14772  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774  for ac_dir in $ac_dummy; do
14775    IFS="$lt_save_ifs"
14776    test -z "$ac_dir" && ac_dir=.
14777    if test -f $ac_dir/${ac_tool_prefix}file; then
14778      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14779      if test -n "$file_magic_test_file"; then
14780	case $deplibs_check_method in
14781	"file_magic "*)
14782	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14783	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785	    $EGREP "$file_magic_regex" > /dev/null; then
14786	    :
14787	  else
14788	    cat <<EOF 1>&2
14789
14790*** Warning: the command libtool uses to detect shared libraries,
14791*** $file_magic_cmd, produces output that libtool cannot recognize.
14792*** The result is that libtool may fail to recognize shared libraries
14793*** as such.  This will affect the creation of libtool libraries that
14794*** depend on shared libraries, but programs linked with such libtool
14795*** libraries will work regardless of this problem.  Nevertheless, you
14796*** may want to report the problem to your system manager and/or to
14797*** bug-libtool@gnu.org
14798
14799EOF
14800	  fi ;;
14801	esac
14802      fi
14803      break
14804    fi
14805  done
14806  IFS="$lt_save_ifs"
14807  MAGIC_CMD="$lt_save_MAGIC_CMD"
14808  ;;
14809esac
14810fi
14811
14812MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813if test -n "$MAGIC_CMD"; then
14814  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14815echo "${ECHO_T}$MAGIC_CMD" >&6; }
14816else
14817  { echo "$as_me:$LINENO: result: no" >&5
14818echo "${ECHO_T}no" >&6; }
14819fi
14820
14821if test -z "$lt_cv_path_MAGIC_CMD"; then
14822  if test -n "$ac_tool_prefix"; then
14823    { echo "$as_me:$LINENO: checking for file" >&5
14824echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14825if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14826  echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828  case $MAGIC_CMD in
14829[\\/*] |  ?:[\\/]*)
14830  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14831  ;;
14832*)
14833  lt_save_MAGIC_CMD="$MAGIC_CMD"
14834  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14835  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14836  for ac_dir in $ac_dummy; do
14837    IFS="$lt_save_ifs"
14838    test -z "$ac_dir" && ac_dir=.
14839    if test -f $ac_dir/file; then
14840      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14841      if test -n "$file_magic_test_file"; then
14842	case $deplibs_check_method in
14843	"file_magic "*)
14844	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14845	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14846	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14847	    $EGREP "$file_magic_regex" > /dev/null; then
14848	    :
14849	  else
14850	    cat <<EOF 1>&2
14851
14852*** Warning: the command libtool uses to detect shared libraries,
14853*** $file_magic_cmd, produces output that libtool cannot recognize.
14854*** The result is that libtool may fail to recognize shared libraries
14855*** as such.  This will affect the creation of libtool libraries that
14856*** depend on shared libraries, but programs linked with such libtool
14857*** libraries will work regardless of this problem.  Nevertheless, you
14858*** may want to report the problem to your system manager and/or to
14859*** bug-libtool@gnu.org
14860
14861EOF
14862	  fi ;;
14863	esac
14864      fi
14865      break
14866    fi
14867  done
14868  IFS="$lt_save_ifs"
14869  MAGIC_CMD="$lt_save_MAGIC_CMD"
14870  ;;
14871esac
14872fi
14873
14874MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14875if test -n "$MAGIC_CMD"; then
14876  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14877echo "${ECHO_T}$MAGIC_CMD" >&6; }
14878else
14879  { echo "$as_me:$LINENO: result: no" >&5
14880echo "${ECHO_T}no" >&6; }
14881fi
14882
14883  else
14884    MAGIC_CMD=:
14885  fi
14886fi
14887
14888  fi
14889  ;;
14890esac
14891
14892enable_dlopen=yes
14893enable_win32_dll=no
14894
14895# Check whether --enable-libtool-lock was given.
14896if test "${enable_libtool_lock+set}" = set; then
14897  enableval=$enable_libtool_lock;
14898fi
14899
14900test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14901
14902
14903# Check whether --with-pic was given.
14904if test "${with_pic+set}" = set; then
14905  withval=$with_pic; pic_mode="$withval"
14906else
14907  pic_mode=default
14908fi
14909
14910test -z "$pic_mode" && pic_mode=default
14911
14912# Use C for the default configuration in the libtool script
14913tagname=
14914lt_save_CC="$CC"
14915ac_ext=c
14916ac_cpp='$CPP $CPPFLAGS'
14917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920
14921
14922# Source file extension for C test sources.
14923ac_ext=c
14924
14925# Object file extension for compiled C test sources.
14926objext=o
14927objext=$objext
14928
14929# Code to be used in simple compile tests
14930lt_simple_compile_test_code="int some_variable = 0;\n"
14931
14932# Code to be used in simple link tests
14933lt_simple_link_test_code='int main(){return(0);}\n'
14934
14935
14936# If no C compiler was specified, use CC.
14937LTCC=${LTCC-"$CC"}
14938
14939# If no C compiler flags were specified, use CFLAGS.
14940LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14941
14942# Allow CC to be a program name with arguments.
14943compiler=$CC
14944
14945
14946# save warnings/boilerplate of simple test code
14947ac_outfile=conftest.$ac_objext
14948printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950_lt_compiler_boilerplate=`cat conftest.err`
14951$rm conftest*
14952
14953ac_outfile=conftest.$ac_objext
14954printf "$lt_simple_link_test_code" >conftest.$ac_ext
14955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14956_lt_linker_boilerplate=`cat conftest.err`
14957$rm conftest*
14958
14959
14960
14961lt_prog_compiler_no_builtin_flag=
14962
14963if test "$GCC" = yes; then
14964  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14965
14966
14967{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14968echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14969if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14970  echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972  lt_cv_prog_compiler_rtti_exceptions=no
14973  ac_outfile=conftest.$ac_objext
14974   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14975   lt_compiler_flag="-fno-rtti -fno-exceptions"
14976   # Insert the option either (1) after the last *FLAGS variable, or
14977   # (2) before a word containing "conftest.", or (3) at the end.
14978   # Note that $ac_compile itself does not contain backslashes and begins
14979   # with a dollar sign (not a hyphen), so the echo should work correctly.
14980   # The option is referenced via a variable to avoid confusing sed.
14981   lt_compile=`echo "$ac_compile" | $SED \
14982   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14983   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14984   -e 's:$: $lt_compiler_flag:'`
14985   (eval echo "\"\$as_me:14985: $lt_compile\"" >&5)
14986   (eval "$lt_compile" 2>conftest.err)
14987   ac_status=$?
14988   cat conftest.err >&5
14989   echo "$as_me:14989: \$? = $ac_status" >&5
14990   if (exit $ac_status) && test -s "$ac_outfile"; then
14991     # The compiler can only warn and ignore the option if not recognized
14992     # So say no if there are warnings other than the usual output.
14993     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14994     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14995     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14996       lt_cv_prog_compiler_rtti_exceptions=yes
14997     fi
14998   fi
14999   $rm conftest*
15000
15001fi
15002{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15003echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15004
15005if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15006    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15007else
15008    :
15009fi
15010
15011fi
15012
15013lt_prog_compiler_wl=
15014lt_prog_compiler_pic=
15015lt_prog_compiler_static=
15016
15017{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15018echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15019
15020  if test "$GCC" = yes; then
15021    lt_prog_compiler_wl='-Wl,'
15022    lt_prog_compiler_static='-static'
15023
15024    case $host_os in
15025      aix*)
15026      # All AIX code is PIC.
15027      if test "$host_cpu" = ia64; then
15028	# AIX 5 now supports IA64 processor
15029	lt_prog_compiler_static='-Bstatic'
15030      fi
15031      ;;
15032
15033    amigaos*)
15034      # FIXME: we need at least 68020 code to build shared libraries, but
15035      # adding the `-m68020' flag to GCC prevents building anything better,
15036      # like `-m68040'.
15037      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15038      ;;
15039
15040    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15041      # PIC is the default for these OSes.
15042      ;;
15043
15044    mingw* | pw32* | os2*)
15045      # This hack is so that the source file can tell whether it is being
15046      # built for inclusion in a dll (and should export symbols for example).
15047      lt_prog_compiler_pic='-DDLL_EXPORT'
15048      ;;
15049
15050    darwin* | rhapsody*)
15051      # PIC is the default on this platform
15052      # Common symbols not allowed in MH_DYLIB files
15053      lt_prog_compiler_pic='-fno-common'
15054      ;;
15055
15056    interix3*)
15057      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15058      # Instead, we relocate shared libraries at runtime.
15059      ;;
15060
15061    msdosdjgpp*)
15062      # Just because we use GCC doesn't mean we suddenly get shared libraries
15063      # on systems that don't support them.
15064      lt_prog_compiler_can_build_shared=no
15065      enable_shared=no
15066      ;;
15067
15068    sysv4*MP*)
15069      if test -d /usr/nec; then
15070	lt_prog_compiler_pic=-Kconform_pic
15071      fi
15072      ;;
15073
15074    hpux*)
15075      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15076      # not for PA HP-UX.
15077      case $host_cpu in
15078      hppa*64*|ia64*)
15079	# +Z the default
15080	;;
15081      *)
15082	lt_prog_compiler_pic='-fPIC'
15083	;;
15084      esac
15085      ;;
15086
15087    *)
15088      lt_prog_compiler_pic='-fPIC'
15089      ;;
15090    esac
15091  else
15092    # PORTME Check for flag to pass linker flags through the system compiler.
15093    case $host_os in
15094    aix*)
15095      lt_prog_compiler_wl='-Wl,'
15096      if test "$host_cpu" = ia64; then
15097	# AIX 5 now supports IA64 processor
15098	lt_prog_compiler_static='-Bstatic'
15099      else
15100	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15101      fi
15102      ;;
15103      darwin*)
15104        # PIC is the default on this platform
15105        # Common symbols not allowed in MH_DYLIB files
15106       case $cc_basename in
15107         xlc*)
15108         lt_prog_compiler_pic='-qnocommon'
15109         lt_prog_compiler_wl='-Wl,'
15110         ;;
15111       esac
15112       ;;
15113
15114    mingw* | pw32* | os2*)
15115      # This hack is so that the source file can tell whether it is being
15116      # built for inclusion in a dll (and should export symbols for example).
15117      lt_prog_compiler_pic='-DDLL_EXPORT'
15118      ;;
15119
15120    hpux9* | hpux10* | hpux11*)
15121      lt_prog_compiler_wl='-Wl,'
15122      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15123      # not for PA HP-UX.
15124      case $host_cpu in
15125      hppa*64*|ia64*)
15126	# +Z the default
15127	;;
15128      *)
15129	lt_prog_compiler_pic='+Z'
15130	;;
15131      esac
15132      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15133      lt_prog_compiler_static='${wl}-a ${wl}archive'
15134      ;;
15135
15136    irix5* | irix6* | nonstopux*)
15137      lt_prog_compiler_wl='-Wl,'
15138      # PIC (with -KPIC) is the default.
15139      lt_prog_compiler_static='-non_shared'
15140      ;;
15141
15142    newsos6)
15143      lt_prog_compiler_pic='-KPIC'
15144      lt_prog_compiler_static='-Bstatic'
15145      ;;
15146
15147    linux*)
15148      case $cc_basename in
15149      icc* | ecc*)
15150	lt_prog_compiler_wl='-Wl,'
15151	lt_prog_compiler_pic='-KPIC'
15152	lt_prog_compiler_static='-static'
15153        ;;
15154      pgcc* | pgf77* | pgf90* | pgf95*)
15155        # Portland Group compilers (*not* the Pentium gcc compiler,
15156	# which looks to be a dead project)
15157	lt_prog_compiler_wl='-Wl,'
15158	lt_prog_compiler_pic='-fpic'
15159	lt_prog_compiler_static='-Bstatic'
15160        ;;
15161      ccc*)
15162        lt_prog_compiler_wl='-Wl,'
15163        # All Alpha code is PIC.
15164        lt_prog_compiler_static='-non_shared'
15165        ;;
15166      esac
15167      ;;
15168
15169    osf3* | osf4* | osf5*)
15170      lt_prog_compiler_wl='-Wl,'
15171      # All OSF/1 code is PIC.
15172      lt_prog_compiler_static='-non_shared'
15173      ;;
15174
15175    solaris*)
15176      lt_prog_compiler_pic='-KPIC'
15177      lt_prog_compiler_static='-Bstatic'
15178      case $cc_basename in
15179      f77* | f90* | f95*)
15180	lt_prog_compiler_wl='-Qoption ld ';;
15181      *)
15182	lt_prog_compiler_wl='-Wl,';;
15183      esac
15184      ;;
15185
15186    sunos4*)
15187      lt_prog_compiler_wl='-Qoption ld '
15188      lt_prog_compiler_pic='-PIC'
15189      lt_prog_compiler_static='-Bstatic'
15190      ;;
15191
15192    sysv4 | sysv4.2uw2* | sysv4.3*)
15193      lt_prog_compiler_wl='-Wl,'
15194      lt_prog_compiler_pic='-KPIC'
15195      lt_prog_compiler_static='-Bstatic'
15196      ;;
15197
15198    sysv4*MP*)
15199      if test -d /usr/nec ;then
15200	lt_prog_compiler_pic='-Kconform_pic'
15201	lt_prog_compiler_static='-Bstatic'
15202      fi
15203      ;;
15204
15205    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15206      lt_prog_compiler_wl='-Wl,'
15207      lt_prog_compiler_pic='-KPIC'
15208      lt_prog_compiler_static='-Bstatic'
15209      ;;
15210
15211    unicos*)
15212      lt_prog_compiler_wl='-Wl,'
15213      lt_prog_compiler_can_build_shared=no
15214      ;;
15215
15216    uts4*)
15217      lt_prog_compiler_pic='-pic'
15218      lt_prog_compiler_static='-Bstatic'
15219      ;;
15220
15221    *)
15222      lt_prog_compiler_can_build_shared=no
15223      ;;
15224    esac
15225  fi
15226
15227{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15228echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15229
15230#
15231# Check to make sure the PIC flag actually works.
15232#
15233if test -n "$lt_prog_compiler_pic"; then
15234
15235{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15236echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15237if test "${lt_prog_compiler_pic_works+set}" = set; then
15238  echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240  lt_prog_compiler_pic_works=no
15241  ac_outfile=conftest.$ac_objext
15242   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15243   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15244   # Insert the option either (1) after the last *FLAGS variable, or
15245   # (2) before a word containing "conftest.", or (3) at the end.
15246   # Note that $ac_compile itself does not contain backslashes and begins
15247   # with a dollar sign (not a hyphen), so the echo should work correctly.
15248   # The option is referenced via a variable to avoid confusing sed.
15249   lt_compile=`echo "$ac_compile" | $SED \
15250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15252   -e 's:$: $lt_compiler_flag:'`
15253   (eval echo "\"\$as_me:15253: $lt_compile\"" >&5)
15254   (eval "$lt_compile" 2>conftest.err)
15255   ac_status=$?
15256   cat conftest.err >&5
15257   echo "$as_me:15257: \$? = $ac_status" >&5
15258   if (exit $ac_status) && test -s "$ac_outfile"; then
15259     # The compiler can only warn and ignore the option if not recognized
15260     # So say no if there are warnings other than the usual output.
15261     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15262     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15264       lt_prog_compiler_pic_works=yes
15265     fi
15266   fi
15267   $rm conftest*
15268
15269fi
15270{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15271echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15272
15273if test x"$lt_prog_compiler_pic_works" = xyes; then
15274    case $lt_prog_compiler_pic in
15275     "" | " "*) ;;
15276     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15277     esac
15278else
15279    lt_prog_compiler_pic=
15280     lt_prog_compiler_can_build_shared=no
15281fi
15282
15283fi
15284case $host_os in
15285  # For platforms which do not support PIC, -DPIC is meaningless:
15286  *djgpp*)
15287    lt_prog_compiler_pic=
15288    ;;
15289  *)
15290    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15291    ;;
15292esac
15293
15294#
15295# Check to make sure the static flag actually works.
15296#
15297wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15298{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15299echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15300if test "${lt_prog_compiler_static_works+set}" = set; then
15301  echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303  lt_prog_compiler_static_works=no
15304   save_LDFLAGS="$LDFLAGS"
15305   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15306   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15307   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15308     # The linker can only warn and ignore the option if not recognized
15309     # So say no if there are warnings
15310     if test -s conftest.err; then
15311       # Append any errors to the config.log.
15312       cat conftest.err 1>&5
15313       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15314       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15315       if diff conftest.exp conftest.er2 >/dev/null; then
15316         lt_prog_compiler_static_works=yes
15317       fi
15318     else
15319       lt_prog_compiler_static_works=yes
15320     fi
15321   fi
15322   $rm conftest*
15323   LDFLAGS="$save_LDFLAGS"
15324
15325fi
15326{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15327echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15328
15329if test x"$lt_prog_compiler_static_works" = xyes; then
15330    :
15331else
15332    lt_prog_compiler_static=
15333fi
15334
15335
15336{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15338if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15339  echo $ECHO_N "(cached) $ECHO_C" >&6
15340else
15341  lt_cv_prog_compiler_c_o=no
15342   $rm -r conftest 2>/dev/null
15343   mkdir conftest
15344   cd conftest
15345   mkdir out
15346   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15347
15348   lt_compiler_flag="-o out/conftest2.$ac_objext"
15349   # Insert the option either (1) after the last *FLAGS variable, or
15350   # (2) before a word containing "conftest.", or (3) at the end.
15351   # Note that $ac_compile itself does not contain backslashes and begins
15352   # with a dollar sign (not a hyphen), so the echo should work correctly.
15353   lt_compile=`echo "$ac_compile" | $SED \
15354   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15355   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356   -e 's:$: $lt_compiler_flag:'`
15357   (eval echo "\"\$as_me:15357: $lt_compile\"" >&5)
15358   (eval "$lt_compile" 2>out/conftest.err)
15359   ac_status=$?
15360   cat out/conftest.err >&5
15361   echo "$as_me:15361: \$? = $ac_status" >&5
15362   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15363   then
15364     # The compiler can only warn and ignore the option if not recognized
15365     # So say no if there are warnings
15366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15367     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15368     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15369       lt_cv_prog_compiler_c_o=yes
15370     fi
15371   fi
15372   chmod u+w . 2>&5
15373   $rm conftest*
15374   # SGI C++ compiler will create directory out/ii_files/ for
15375   # template instantiation
15376   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15377   $rm out/* && rmdir out
15378   cd ..
15379   rmdir conftest
15380   $rm conftest*
15381
15382fi
15383{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15384echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15385
15386
15387hard_links="nottested"
15388if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15389  # do not overwrite the value of need_locks provided by the user
15390  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15391echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15392  hard_links=yes
15393  $rm conftest*
15394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15395  touch conftest.a
15396  ln conftest.a conftest.b 2>&5 || hard_links=no
15397  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15398  { echo "$as_me:$LINENO: result: $hard_links" >&5
15399echo "${ECHO_T}$hard_links" >&6; }
15400  if test "$hard_links" = no; then
15401    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15402echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15403    need_locks=warn
15404  fi
15405else
15406  need_locks=no
15407fi
15408
15409{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15410echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15411
15412  runpath_var=
15413  allow_undefined_flag=
15414  enable_shared_with_static_runtimes=no
15415  archive_cmds=
15416  archive_expsym_cmds=
15417  old_archive_From_new_cmds=
15418  old_archive_from_expsyms_cmds=
15419  export_dynamic_flag_spec=
15420  whole_archive_flag_spec=
15421  thread_safe_flag_spec=
15422  hardcode_libdir_flag_spec=
15423  hardcode_libdir_flag_spec_ld=
15424  hardcode_libdir_separator=
15425  hardcode_direct=no
15426  hardcode_minus_L=no
15427  hardcode_shlibpath_var=unsupported
15428  link_all_deplibs=unknown
15429  hardcode_automatic=no
15430  module_cmds=
15431  module_expsym_cmds=
15432  always_export_symbols=no
15433  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15434  # include_expsyms should be a list of space-separated symbols to be *always*
15435  # included in the symbol list
15436  include_expsyms=
15437  # exclude_expsyms can be an extended regexp of symbols to exclude
15438  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15439  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15440  # as well as any symbol that contains `d'.
15441  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15442  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15443  # platforms (ab)use it in PIC code, but their linkers get confused if
15444  # the symbol is explicitly referenced.  Since portable code cannot
15445  # rely on this symbol name, it's probably fine to never include it in
15446  # preloaded symbol tables.
15447  extract_expsyms_cmds=
15448  # Just being paranoid about ensuring that cc_basename is set.
15449  for cc_temp in $compiler""; do
15450  case $cc_temp in
15451    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15452    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15453    \-*) ;;
15454    *) break;;
15455  esac
15456done
15457cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15458
15459  case $host_os in
15460  cygwin* | mingw* | pw32*)
15461    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15462    # When not using gcc, we currently assume that we are using
15463    # Microsoft Visual C++.
15464    if test "$GCC" != yes; then
15465      with_gnu_ld=no
15466    fi
15467    ;;
15468  interix*)
15469    # we just hope/assume this is gcc and not c89 (= MSVC++)
15470    with_gnu_ld=yes
15471    ;;
15472  openbsd*)
15473    with_gnu_ld=no
15474    ;;
15475  esac
15476
15477  ld_shlibs=yes
15478  if test "$with_gnu_ld" = yes; then
15479    # If archive_cmds runs LD, not CC, wlarc should be empty
15480    wlarc='${wl}'
15481
15482    # Set some defaults for GNU ld with shared library support. These
15483    # are reset later if shared libraries are not supported. Putting them
15484    # here allows them to be overridden if necessary.
15485    runpath_var=LD_RUN_PATH
15486    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15487    export_dynamic_flag_spec='${wl}--export-dynamic'
15488    # ancient GNU ld didn't support --whole-archive et. al.
15489    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15490	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15491      else
15492  	whole_archive_flag_spec=
15493    fi
15494    supports_anon_versioning=no
15495    case `$LD -v 2>/dev/null` in
15496      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15497      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15498      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15499      *\ 2.11.*) ;; # other 2.11 versions
15500      *) supports_anon_versioning=yes ;;
15501    esac
15502
15503    # See if GNU ld supports shared libraries.
15504    case $host_os in
15505    aix3* | aix4* | aix5*)
15506      # On AIX/PPC, the GNU linker is very broken
15507      if test "$host_cpu" != ia64; then
15508	ld_shlibs=no
15509	cat <<EOF 1>&2
15510
15511*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15512*** to be unable to reliably create shared libraries on AIX.
15513*** Therefore, libtool is disabling shared libraries support.  If you
15514*** really care for shared libraries, you may want to modify your PATH
15515*** so that a non-GNU linker is found, and then restart.
15516
15517EOF
15518      fi
15519      ;;
15520
15521    amigaos*)
15522      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15523      hardcode_libdir_flag_spec='-L$libdir'
15524      hardcode_minus_L=yes
15525
15526      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15527      # that the semantics of dynamic libraries on AmigaOS, at least up
15528      # to version 4, is to share data among multiple programs linked
15529      # with the same dynamic library.  Since this doesn't match the
15530      # behavior of shared libraries on other platforms, we can't use
15531      # them.
15532      ld_shlibs=no
15533      ;;
15534
15535    beos*)
15536      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537	allow_undefined_flag=unsupported
15538	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15539	# support --undefined.  This deserves some investigation.  FIXME
15540	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541      else
15542	ld_shlibs=no
15543      fi
15544      ;;
15545
15546    cygwin* | mingw* | pw32*)
15547      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15548      # as there is no search path for DLLs.
15549      hardcode_libdir_flag_spec='-L$libdir'
15550      allow_undefined_flag=unsupported
15551      always_export_symbols=no
15552      enable_shared_with_static_runtimes=yes
15553      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15554
15555      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15556        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15557	# If the export-symbols file already is a .def file (1st line
15558	# is EXPORTS), use it as is; otherwise, prepend...
15559	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560	  cp $export_symbols $output_objdir/$soname.def;
15561	else
15562	  echo EXPORTS > $output_objdir/$soname.def;
15563	  cat $export_symbols >> $output_objdir/$soname.def;
15564	fi~
15565	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15566      else
15567	ld_shlibs=no
15568      fi
15569      ;;
15570
15571    interix3*)
15572      hardcode_direct=no
15573      hardcode_shlibpath_var=no
15574      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15575      export_dynamic_flag_spec='${wl}-E'
15576      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15577      # Instead, shared libraries are loaded at an image base (0x10000000 by
15578      # default) and relocated if they conflict, which is a slow very memory
15579      # consuming and fragmenting process.  To avoid this, we pick a random,
15580      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15581      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15582      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15583      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15584      ;;
15585
15586    linux*)
15587      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15588	tmp_addflag=
15589	case $cc_basename,$host_cpu in
15590	pgcc*)				# Portland Group C compiler
15591	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15592	  tmp_addflag=' $pic_flag'
15593	  ;;
15594	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15595	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15596	  tmp_addflag=' $pic_flag -Mnomain' ;;
15597	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15598	  tmp_addflag=' -i_dynamic' ;;
15599	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15600	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15601	ifc* | ifort*)			# Intel Fortran compiler
15602	  tmp_addflag=' -nofor_main' ;;
15603	esac
15604	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605
15606	if test $supports_anon_versioning = yes; then
15607	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15608  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15609  $echo "local: *; };" >> $output_objdir/$libname.ver~
15610	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15611	fi
15612      else
15613	ld_shlibs=no
15614      fi
15615      ;;
15616
15617    netbsd*)
15618      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15620	wlarc=
15621      else
15622	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15623	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15624      fi
15625      ;;
15626
15627    solaris*)
15628      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15629	ld_shlibs=no
15630	cat <<EOF 1>&2
15631
15632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15633*** create shared libraries on Solaris systems.  Therefore, libtool
15634*** is disabling shared libraries support.  We urge you to upgrade GNU
15635*** binutils to release 2.9.1 or newer.  Another option is to modify
15636*** your PATH or compiler configuration so that the native linker is
15637*** used, and then restart.
15638
15639EOF
15640      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15641	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15642	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15643      else
15644	ld_shlibs=no
15645      fi
15646      ;;
15647
15648    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15649      case `$LD -v 2>&1` in
15650        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15651	ld_shlibs=no
15652	cat <<_LT_EOF 1>&2
15653
15654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15655*** reliably create shared libraries on SCO systems.  Therefore, libtool
15656*** is disabling shared libraries support.  We urge you to upgrade GNU
15657*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15658*** your PATH or compiler configuration so that the native linker is
15659*** used, and then restart.
15660
15661_LT_EOF
15662	;;
15663	*)
15664	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15666	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15667	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15668	  else
15669	    ld_shlibs=no
15670	  fi
15671	;;
15672      esac
15673      ;;
15674
15675    sunos4*)
15676      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15677      wlarc=
15678      hardcode_direct=yes
15679      hardcode_shlibpath_var=no
15680      ;;
15681
15682    *)
15683      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15684	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686      else
15687	ld_shlibs=no
15688      fi
15689      ;;
15690    esac
15691
15692    if test "$ld_shlibs" = no; then
15693      runpath_var=
15694      hardcode_libdir_flag_spec=
15695      export_dynamic_flag_spec=
15696      whole_archive_flag_spec=
15697    fi
15698  else
15699    # PORTME fill in a description of your system's linker (not GNU ld)
15700    case $host_os in
15701    aix3*)
15702      allow_undefined_flag=unsupported
15703      always_export_symbols=yes
15704      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15705      # Note: this linker hardcodes the directories in LIBPATH if there
15706      # are no directories specified by -L.
15707      hardcode_minus_L=yes
15708      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15709	# Neither direct hardcoding nor static linking is supported with a
15710	# broken collect2.
15711	hardcode_direct=unsupported
15712      fi
15713      ;;
15714
15715    aix4* | aix5*)
15716      if test "$host_cpu" = ia64; then
15717	# On IA64, the linker does run time linking by default, so we don't
15718	# have to do anything special.
15719	aix_use_runtimelinking=no
15720	exp_sym_flag='-Bexport'
15721	no_entry_flag=""
15722      else
15723	# If we're using GNU nm, then we don't want the "-C" option.
15724	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15725	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15726	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15727	else
15728	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15729	fi
15730	aix_use_runtimelinking=no
15731
15732	# Test if we are trying to use run time linking or normal
15733	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15734	# need to do runtime linking.
15735	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15736	  for ld_flag in $LDFLAGS; do
15737  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15738  	    aix_use_runtimelinking=yes
15739  	    break
15740  	  fi
15741	  done
15742	  ;;
15743	esac
15744
15745	exp_sym_flag='-bexport'
15746	no_entry_flag='-bnoentry'
15747      fi
15748
15749      # When large executables or shared objects are built, AIX ld can
15750      # have problems creating the table of contents.  If linking a library
15751      # or program results in "error TOC overflow" add -mminimal-toc to
15752      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15753      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15754
15755      archive_cmds=''
15756      hardcode_direct=yes
15757      hardcode_libdir_separator=':'
15758      link_all_deplibs=yes
15759
15760      if test "$GCC" = yes; then
15761	case $host_os in aix4.[012]|aix4.[012].*)
15762	# We only want to do this on AIX 4.2 and lower, the check
15763	# below for broken collect2 doesn't work under 4.3+
15764	  collect2name=`${CC} -print-prog-name=collect2`
15765	  if test -f "$collect2name" && \
15766  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15767	  then
15768  	  # We have reworked collect2
15769  	  hardcode_direct=yes
15770	  else
15771  	  # We have old collect2
15772  	  hardcode_direct=unsupported
15773  	  # It fails to find uninstalled libraries when the uninstalled
15774  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15775  	  # to unsupported forces relinking
15776  	  hardcode_minus_L=yes
15777  	  hardcode_libdir_flag_spec='-L$libdir'
15778  	  hardcode_libdir_separator=
15779	  fi
15780	  ;;
15781	esac
15782	shared_flag='-shared'
15783	if test "$aix_use_runtimelinking" = yes; then
15784	  shared_flag="$shared_flag "'${wl}-G'
15785	fi
15786      else
15787	# not using gcc
15788	if test "$host_cpu" = ia64; then
15789  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15790  	# chokes on -Wl,-G. The following line is correct:
15791	  shared_flag='-G'
15792	else
15793	  if test "$aix_use_runtimelinking" = yes; then
15794	    shared_flag='${wl}-G'
15795	  else
15796	    shared_flag='${wl}-bM:SRE'
15797	  fi
15798	fi
15799      fi
15800
15801      # It seems that -bexpall does not export symbols beginning with
15802      # underscore (_), so it is better to generate a list of symbols to export.
15803      always_export_symbols=yes
15804      if test "$aix_use_runtimelinking" = yes; then
15805	# Warning - without using the other runtime loading flags (-brtl),
15806	# -berok will link without error, but may produce a broken library.
15807	allow_undefined_flag='-berok'
15808       # Determine the default libpath from the value encoded in an empty executable.
15809       cat >conftest.$ac_ext <<_ACEOF
15810/* confdefs.h.  */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h.  */
15815
15816int
15817main ()
15818{
15819
15820  ;
15821  return 0;
15822}
15823_ACEOF
15824rm -f conftest.$ac_objext conftest$ac_exeext
15825if { (ac_try="$ac_link"
15826case "(($ac_try" in
15827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828  *) ac_try_echo=$ac_try;;
15829esac
15830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831  (eval "$ac_link") 2>conftest.er1
15832  ac_status=$?
15833  grep -v '^ *+' conftest.er1 >conftest.err
15834  rm -f conftest.er1
15835  cat conftest.err >&5
15836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837  (exit $ac_status); } &&
15838	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839  { (case "(($ac_try" in
15840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841  *) ac_try_echo=$ac_try;;
15842esac
15843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844  (eval "$ac_try") 2>&5
15845  ac_status=$?
15846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847  (exit $ac_status); }; } &&
15848	 { ac_try='test -s conftest$ac_exeext'
15849  { (case "(($ac_try" in
15850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851  *) ac_try_echo=$ac_try;;
15852esac
15853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854  (eval "$ac_try") 2>&5
15855  ac_status=$?
15856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857  (exit $ac_status); }; }; then
15858
15859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15860}'`
15861# Check for a 64-bit object if we didn't find anything.
15862if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15863}'`; fi
15864else
15865  echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868
15869fi
15870
15871rm -f core conftest.err conftest.$ac_objext \
15872      conftest$ac_exeext conftest.$ac_ext
15873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15874
15875       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15876	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15877       else
15878	if test "$host_cpu" = ia64; then
15879	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15880	  allow_undefined_flag="-z nodefs"
15881	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15882	else
15883	 # Determine the default libpath from the value encoded in an empty executable.
15884	 cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h.  */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h.  */
15890
15891int
15892main ()
15893{
15894
15895  ;
15896  return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext conftest$ac_exeext
15900if { (ac_try="$ac_link"
15901case "(($ac_try" in
15902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903  *) ac_try_echo=$ac_try;;
15904esac
15905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906  (eval "$ac_link") 2>conftest.er1
15907  ac_status=$?
15908  grep -v '^ *+' conftest.er1 >conftest.err
15909  rm -f conftest.er1
15910  cat conftest.err >&5
15911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912  (exit $ac_status); } &&
15913	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914  { (case "(($ac_try" in
15915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916  *) ac_try_echo=$ac_try;;
15917esac
15918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919  (eval "$ac_try") 2>&5
15920  ac_status=$?
15921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922  (exit $ac_status); }; } &&
15923	 { ac_try='test -s conftest$ac_exeext'
15924  { (case "(($ac_try" in
15925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926  *) ac_try_echo=$ac_try;;
15927esac
15928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929  (eval "$ac_try") 2>&5
15930  ac_status=$?
15931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932  (exit $ac_status); }; }; then
15933
15934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15935}'`
15936# Check for a 64-bit object if we didn't find anything.
15937if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15938}'`; fi
15939else
15940  echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943
15944fi
15945
15946rm -f core conftest.err conftest.$ac_objext \
15947      conftest$ac_exeext conftest.$ac_ext
15948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15949
15950	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15951	  # Warning - without using the other run time loading flags,
15952	  # -berok will link without error, but may produce a broken library.
15953	  no_undefined_flag=' ${wl}-bernotok'
15954	  allow_undefined_flag=' ${wl}-berok'
15955	  # Exported symbols can be pulled into shared objects from archives
15956	  whole_archive_flag_spec='$convenience'
15957	  archive_cmds_need_lc=yes
15958	  # This is similar to how AIX traditionally builds its shared libraries.
15959	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15960	fi
15961      fi
15962      ;;
15963
15964    amigaos*)
15965      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15966      hardcode_libdir_flag_spec='-L$libdir'
15967      hardcode_minus_L=yes
15968      # see comment about different semantics on the GNU ld section
15969      ld_shlibs=no
15970      ;;
15971
15972    bsdi[45]*)
15973      export_dynamic_flag_spec=-rdynamic
15974      ;;
15975
15976    cygwin* | mingw* | pw32*)
15977      # When not using gcc, we currently assume that we are using
15978      # Microsoft Visual C++.
15979      # hardcode_libdir_flag_spec is actually meaningless, as there is
15980      # no search path for DLLs.
15981      hardcode_libdir_flag_spec=' '
15982      allow_undefined_flag=unsupported
15983      # Tell ltmain to make .lib files, not .a files.
15984      libext=lib
15985      # Tell ltmain to make .dll files, not .so files.
15986      shrext_cmds=".dll"
15987      # FIXME: Setting linknames here is a bad hack.
15988      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15989      # The linker will automatically build a .lib file if we build a DLL.
15990      old_archive_From_new_cmds='true'
15991      # FIXME: Should let the user specify the lib program.
15992      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15993      fix_srcfile_path='`cygpath -w "$srcfile"`'
15994      enable_shared_with_static_runtimes=yes
15995      ;;
15996
15997    darwin* | rhapsody*)
15998      case $host_os in
15999        rhapsody* | darwin1.[012])
16000         allow_undefined_flag='${wl}-undefined ${wl}suppress'
16001         ;;
16002       *) # Darwin 1.3 on
16003         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16004           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16005         else
16006           case ${MACOSX_DEPLOYMENT_TARGET} in
16007             10.[012])
16008               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16009               ;;
16010             10.*)
16011               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16012               ;;
16013           esac
16014         fi
16015         ;;
16016      esac
16017      archive_cmds_need_lc=no
16018      hardcode_direct=no
16019      hardcode_automatic=yes
16020      hardcode_shlibpath_var=unsupported
16021      whole_archive_flag_spec=''
16022      link_all_deplibs=yes
16023    if test "$GCC" = yes ; then
16024    	output_verbose_link_cmd='echo'
16025        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16026      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16027      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16028      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16029      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16030    else
16031      case $cc_basename in
16032        xlc*)
16033         output_verbose_link_cmd='echo'
16034         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16035         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16036          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16037         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16038          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16039          ;;
16040       *)
16041         ld_shlibs=no
16042          ;;
16043      esac
16044    fi
16045      ;;
16046
16047    dgux*)
16048      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049      hardcode_libdir_flag_spec='-L$libdir'
16050      hardcode_shlibpath_var=no
16051      ;;
16052
16053    freebsd1*)
16054      ld_shlibs=no
16055      ;;
16056
16057    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16058    # support.  Future versions do this automatically, but an explicit c++rt0.o
16059    # does not break anything, and helps significantly (at the cost of a little
16060    # extra space).
16061    freebsd2.2*)
16062      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16063      hardcode_libdir_flag_spec='-R$libdir'
16064      hardcode_direct=yes
16065      hardcode_shlibpath_var=no
16066      ;;
16067
16068    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16069    freebsd2*)
16070      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16071      hardcode_direct=yes
16072      hardcode_minus_L=yes
16073      hardcode_shlibpath_var=no
16074      ;;
16075
16076    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16077    freebsd* | kfreebsd*-gnu | dragonfly*)
16078      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16079      hardcode_libdir_flag_spec='-R$libdir'
16080      hardcode_direct=yes
16081      hardcode_shlibpath_var=no
16082      ;;
16083
16084    hpux9*)
16085      if test "$GCC" = yes; then
16086	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16087      else
16088	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16089      fi
16090      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16091      hardcode_libdir_separator=:
16092      hardcode_direct=yes
16093
16094      # hardcode_minus_L: Not really in the search PATH,
16095      # but as the default location of the library.
16096      hardcode_minus_L=yes
16097      export_dynamic_flag_spec='${wl}-E'
16098      ;;
16099
16100    hpux10*)
16101      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16102	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16103      else
16104	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16105      fi
16106      if test "$with_gnu_ld" = no; then
16107	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16108	hardcode_libdir_separator=:
16109
16110	hardcode_direct=yes
16111	export_dynamic_flag_spec='${wl}-E'
16112
16113	# hardcode_minus_L: Not really in the search PATH,
16114	# but as the default location of the library.
16115	hardcode_minus_L=yes
16116      fi
16117      ;;
16118
16119    hpux11*)
16120      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16121	case $host_cpu in
16122	hppa*64*)
16123	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124	  ;;
16125	ia64*)
16126	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16127	  ;;
16128	*)
16129	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16130	  ;;
16131	esac
16132      else
16133	case $host_cpu in
16134	hppa*64*)
16135	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136	  ;;
16137	ia64*)
16138	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16139	  ;;
16140	*)
16141	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16142	  ;;
16143	esac
16144      fi
16145      if test "$with_gnu_ld" = no; then
16146	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16147	hardcode_libdir_separator=:
16148
16149	case $host_cpu in
16150	hppa*64*|ia64*)
16151	  hardcode_libdir_flag_spec_ld='+b $libdir'
16152	  hardcode_direct=no
16153	  hardcode_shlibpath_var=no
16154	  ;;
16155	*)
16156	  hardcode_direct=yes
16157	  export_dynamic_flag_spec='${wl}-E'
16158
16159	  # hardcode_minus_L: Not really in the search PATH,
16160	  # but as the default location of the library.
16161	  hardcode_minus_L=yes
16162	  ;;
16163	esac
16164      fi
16165      ;;
16166
16167    irix5* | irix6* | nonstopux*)
16168      if test "$GCC" = yes; then
16169	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16170      else
16171	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16172	hardcode_libdir_flag_spec_ld='-rpath $libdir'
16173      fi
16174      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16175      hardcode_libdir_separator=:
16176      link_all_deplibs=yes
16177      ;;
16178
16179    netbsd*)
16180      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16181	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16182      else
16183	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16184      fi
16185      hardcode_libdir_flag_spec='-R$libdir'
16186      hardcode_direct=yes
16187      hardcode_shlibpath_var=no
16188      ;;
16189
16190    newsos6)
16191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192      hardcode_direct=yes
16193      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16194      hardcode_libdir_separator=:
16195      hardcode_shlibpath_var=no
16196      ;;
16197
16198    openbsd*)
16199      hardcode_direct=yes
16200      hardcode_shlibpath_var=no
16201      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16202	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16203	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16204	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16205	export_dynamic_flag_spec='${wl}-E'
16206      else
16207       case $host_os in
16208	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16209	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16210	   hardcode_libdir_flag_spec='-R$libdir'
16211	   ;;
16212	 *)
16213	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16214	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16215	   ;;
16216       esac
16217      fi
16218      ;;
16219
16220    os2*)
16221      hardcode_libdir_flag_spec='-L$libdir'
16222      hardcode_minus_L=yes
16223      allow_undefined_flag=unsupported
16224      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16225      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16226      ;;
16227
16228    osf3*)
16229      if test "$GCC" = yes; then
16230	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16231	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16232      else
16233	allow_undefined_flag=' -expect_unresolved \*'
16234	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16235      fi
16236      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16237      hardcode_libdir_separator=:
16238      ;;
16239
16240    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16241      if test "$GCC" = yes; then
16242	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16243	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16244	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16245      else
16246	allow_undefined_flag=' -expect_unresolved \*'
16247	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16248	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16249	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16250
16251	# Both c and cxx compiler support -rpath directly
16252	hardcode_libdir_flag_spec='-rpath $libdir'
16253      fi
16254      hardcode_libdir_separator=:
16255      ;;
16256
16257    solaris*)
16258      no_undefined_flag=' -z text'
16259      if test "$GCC" = yes; then
16260	wlarc='${wl}'
16261	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16262	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16263	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16264      else
16265	wlarc=''
16266	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16268  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16269      fi
16270      hardcode_libdir_flag_spec='-R$libdir'
16271      hardcode_shlibpath_var=no
16272      case $host_os in
16273      solaris2.[0-5] | solaris2.[0-5].*) ;;
16274      *)
16275 	# The compiler driver will combine linker options so we
16276 	# cannot just pass the convience library names through
16277 	# without $wl, iff we do not link with $LD.
16278 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16279 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16280 	case $wlarc in
16281 	'')
16282 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16283 	*)
16284 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16285 	esac ;;
16286      esac
16287      link_all_deplibs=yes
16288      ;;
16289
16290    sunos4*)
16291      if test "x$host_vendor" = xsequent; then
16292	# Use $CC to link under sequent, because it throws in some extra .o
16293	# files that make .init and .fini sections work.
16294	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16295      else
16296	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16297      fi
16298      hardcode_libdir_flag_spec='-L$libdir'
16299      hardcode_direct=yes
16300      hardcode_minus_L=yes
16301      hardcode_shlibpath_var=no
16302      ;;
16303
16304    sysv4)
16305      case $host_vendor in
16306	sni)
16307	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308	  hardcode_direct=yes # is this really true???
16309	;;
16310	siemens)
16311	  ## LD is ld it makes a PLAMLIB
16312	  ## CC just makes a GrossModule.
16313	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16314	  reload_cmds='$CC -r -o $output$reload_objs'
16315	  hardcode_direct=no
16316        ;;
16317	motorola)
16318	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16319	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16320	;;
16321      esac
16322      runpath_var='LD_RUN_PATH'
16323      hardcode_shlibpath_var=no
16324      ;;
16325
16326    sysv4.3*)
16327      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328      hardcode_shlibpath_var=no
16329      export_dynamic_flag_spec='-Bexport'
16330      ;;
16331
16332    sysv4*MP*)
16333      if test -d /usr/nec; then
16334	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335	hardcode_shlibpath_var=no
16336	runpath_var=LD_RUN_PATH
16337	hardcode_runpath_var=yes
16338	ld_shlibs=yes
16339      fi
16340      ;;
16341
16342    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16343      no_undefined_flag='${wl}-z,text'
16344      archive_cmds_need_lc=no
16345      hardcode_shlibpath_var=no
16346      runpath_var='LD_RUN_PATH'
16347
16348      if test "$GCC" = yes; then
16349	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16351      else
16352	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16353	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16354      fi
16355      ;;
16356
16357    sysv5* | sco3.2v5* | sco5v6*)
16358      # Note: We can NOT use -z defs as we might desire, because we do not
16359      # link with -lc, and that would cause any symbols used from libc to
16360      # always be unresolved, which means just about no library would
16361      # ever link correctly.  If we're not using GNU ld we use -z text
16362      # though, which does catch some bad symbols but isn't as heavy-handed
16363      # as -z defs.
16364      no_undefined_flag='${wl}-z,text'
16365      allow_undefined_flag='${wl}-z,nodefs'
16366      archive_cmds_need_lc=no
16367      hardcode_shlibpath_var=no
16368      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16369      hardcode_libdir_separator=':'
16370      link_all_deplibs=yes
16371      export_dynamic_flag_spec='${wl}-Bexport'
16372      runpath_var='LD_RUN_PATH'
16373
16374      if test "$GCC" = yes; then
16375	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16377      else
16378	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16379	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16380      fi
16381      ;;
16382
16383    uts4*)
16384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385      hardcode_libdir_flag_spec='-L$libdir'
16386      hardcode_shlibpath_var=no
16387      ;;
16388
16389    *)
16390      ld_shlibs=no
16391      ;;
16392    esac
16393  fi
16394
16395{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16396echo "${ECHO_T}$ld_shlibs" >&6; }
16397test "$ld_shlibs" = no && can_build_shared=no
16398
16399#
16400# Do we need to explicitly link libc?
16401#
16402case "x$archive_cmds_need_lc" in
16403x|xyes)
16404  # Assume -lc should be added
16405  archive_cmds_need_lc=yes
16406
16407  if test "$enable_shared" = yes && test "$GCC" = yes; then
16408    case $archive_cmds in
16409    *'~'*)
16410      # FIXME: we may have to deal with multi-command sequences.
16411      ;;
16412    '$CC '*)
16413      # Test whether the compiler implicitly links with -lc since on some
16414      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16415      # to ld, don't add -lc before -lgcc.
16416      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16418      $rm conftest*
16419      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16420
16421      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422  (eval $ac_compile) 2>&5
16423  ac_status=$?
16424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425  (exit $ac_status); } 2>conftest.err; then
16426        soname=conftest
16427        lib=conftest
16428        libobjs=conftest.$ac_objext
16429        deplibs=
16430        wl=$lt_prog_compiler_wl
16431	pic_flag=$lt_prog_compiler_pic
16432        compiler_flags=-v
16433        linker_flags=-v
16434        verstring=
16435        output_objdir=.
16436        libname=conftest
16437        lt_save_allow_undefined_flag=$allow_undefined_flag
16438        allow_undefined_flag=
16439        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16440  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16441  ac_status=$?
16442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443  (exit $ac_status); }
16444        then
16445	  archive_cmds_need_lc=no
16446        else
16447	  archive_cmds_need_lc=yes
16448        fi
16449        allow_undefined_flag=$lt_save_allow_undefined_flag
16450      else
16451        cat conftest.err 1>&5
16452      fi
16453      $rm conftest*
16454      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16455echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16456      ;;
16457    esac
16458  fi
16459  ;;
16460esac
16461
16462{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16464library_names_spec=
16465libname_spec='lib$name'
16466soname_spec=
16467shrext_cmds=".so"
16468postinstall_cmds=
16469postuninstall_cmds=
16470finish_cmds=
16471finish_eval=
16472shlibpath_var=
16473shlibpath_overrides_runpath=unknown
16474version_type=none
16475dynamic_linker="$host_os ld.so"
16476sys_lib_dlsearch_path_spec="/lib /usr/lib"
16477if test "$GCC" = yes; then
16478  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480    # if the path contains ";" then we assume it to be the separator
16481    # otherwise default to the standard path separator (i.e. ":") - it is
16482    # assumed that no part of a normal pathname contains ";" but that should
16483    # okay in the real world where ";" in dirpaths is itself problematic.
16484    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485  else
16486    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16487  fi
16488else
16489  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16490fi
16491need_lib_prefix=unknown
16492hardcode_into_libs=no
16493
16494# when you set need_version to no, make sure it does not cause -set_version
16495# flags to be left without arguments
16496need_version=unknown
16497
16498case $host_os in
16499aix3*)
16500  version_type=linux
16501  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16502  shlibpath_var=LIBPATH
16503
16504  # AIX 3 has no versioning support, so we append a major version to the name.
16505  soname_spec='${libname}${release}${shared_ext}$major'
16506  ;;
16507
16508aix4* | aix5*)
16509  version_type=linux
16510  need_lib_prefix=no
16511  need_version=no
16512  hardcode_into_libs=yes
16513  if test "$host_cpu" = ia64; then
16514    # AIX 5 supports IA64
16515    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16516    shlibpath_var=LD_LIBRARY_PATH
16517  else
16518    # With GCC up to 2.95.x, collect2 would create an import file
16519    # for dependence libraries.  The import file would start with
16520    # the line `#! .'.  This would cause the generated library to
16521    # depend on `.', always an invalid library.  This was fixed in
16522    # development snapshots of GCC prior to 3.0.
16523    case $host_os in
16524      aix4 | aix4.[01] | aix4.[01].*)
16525      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16526	   echo ' yes '
16527	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16528	:
16529      else
16530	can_build_shared=no
16531      fi
16532      ;;
16533    esac
16534    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535    # soname into executable. Probably we can add versioning support to
16536    # collect2, so additional links can be useful in future.
16537    if test "$aix_use_runtimelinking" = yes; then
16538      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539      # instead of lib<name>.a to let people know that these are not
16540      # typical AIX shared libraries.
16541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542    else
16543      # We preserve .a as extension for shared libraries through AIX4.2
16544      # and later when we are not doing run time linking.
16545      library_names_spec='${libname}${release}.a $libname.a'
16546      soname_spec='${libname}${release}${shared_ext}$major'
16547    fi
16548    shlibpath_var=LIBPATH
16549  fi
16550  ;;
16551
16552amigaos*)
16553  library_names_spec='$libname.ixlibrary $libname.a'
16554  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16555  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'
16556  ;;
16557
16558beos*)
16559  library_names_spec='${libname}${shared_ext}'
16560  dynamic_linker="$host_os ld.so"
16561  shlibpath_var=LIBRARY_PATH
16562  ;;
16563
16564bsdi[45]*)
16565  version_type=linux
16566  need_version=no
16567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568  soname_spec='${libname}${release}${shared_ext}$major'
16569  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570  shlibpath_var=LD_LIBRARY_PATH
16571  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16573  # the default ld.so.conf also contains /usr/contrib/lib and
16574  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575  # libtool to hard-code these into programs
16576  ;;
16577
16578cygwin* | mingw* | pw32*)
16579  version_type=windows
16580  shrext_cmds=".dll"
16581  need_version=no
16582  need_lib_prefix=no
16583
16584  case $GCC,$host_os in
16585  yes,cygwin* | yes,mingw* | yes,pw32*)
16586    library_names_spec='$libname.dll.a'
16587    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588    postinstall_cmds='base_file=`basename \${file}`~
16589      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590      dldir=$destdir/`dirname \$dlpath`~
16591      test -d \$dldir || mkdir -p \$dldir~
16592      $install_prog $dir/$dlname \$dldir/$dlname~
16593      chmod a+x \$dldir/$dlname'
16594    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16595      dlpath=$dir/\$dldll~
16596       $rm \$dlpath'
16597    shlibpath_overrides_runpath=yes
16598
16599    case $host_os in
16600    cygwin*)
16601      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16602      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16604      ;;
16605    mingw*)
16606      # MinGW DLLs use traditional 'lib' prefix
16607      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16609      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16610        # It is most probably a Windows format PATH printed by
16611        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16612        # path with ; separators, and with drive letters. We can handle the
16613        # drive letters (cygwin fileutils understands them), so leave them,
16614        # especially as we might pass files found there to a mingw objdump,
16615        # which wouldn't understand a cygwinified path. Ahh.
16616        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617      else
16618        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16619      fi
16620      ;;
16621    pw32*)
16622      # pw32 DLLs use 'pw' prefix rather than 'lib'
16623      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16624      ;;
16625    esac
16626    ;;
16627
16628  *)
16629    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16630    ;;
16631  esac
16632  dynamic_linker='Win32 ld.exe'
16633  # FIXME: first we should search . and the directory the executable is in
16634  shlibpath_var=PATH
16635  ;;
16636
16637darwin* | rhapsody*)
16638  dynamic_linker="$host_os dyld"
16639  version_type=darwin
16640  need_lib_prefix=no
16641  need_version=no
16642  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16643  soname_spec='${libname}${release}${major}$shared_ext'
16644  shlibpath_overrides_runpath=yes
16645  shlibpath_var=DYLD_LIBRARY_PATH
16646  shrext_cmds='.dylib'
16647  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16648  if test "$GCC" = yes; then
16649    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"`
16650  else
16651    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16652  fi
16653  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16654  ;;
16655
16656dgux*)
16657  version_type=linux
16658  need_lib_prefix=no
16659  need_version=no
16660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661  soname_spec='${libname}${release}${shared_ext}$major'
16662  shlibpath_var=LD_LIBRARY_PATH
16663  ;;
16664
16665freebsd1*)
16666  dynamic_linker=no
16667  ;;
16668
16669kfreebsd*-gnu)
16670  version_type=linux
16671  need_lib_prefix=no
16672  need_version=no
16673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674  soname_spec='${libname}${release}${shared_ext}$major'
16675  shlibpath_var=LD_LIBRARY_PATH
16676  shlibpath_overrides_runpath=no
16677  hardcode_into_libs=yes
16678  dynamic_linker='GNU ld.so'
16679  ;;
16680
16681freebsd* | dragonfly*)
16682  # DragonFly does not have aout.  When/if they implement a new
16683  # versioning mechanism, adjust this.
16684  if test -x /usr/bin/objformat; then
16685    objformat=`/usr/bin/objformat`
16686  else
16687    case $host_os in
16688    freebsd[123]*) objformat=aout ;;
16689    *) objformat=elf ;;
16690    esac
16691  fi
16692  version_type=freebsd-$objformat
16693  case $version_type in
16694    freebsd-elf*)
16695      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16696      need_version=no
16697      need_lib_prefix=no
16698      ;;
16699    freebsd-*)
16700      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16701      need_version=yes
16702      ;;
16703  esac
16704  shlibpath_var=LD_LIBRARY_PATH
16705  case $host_os in
16706  freebsd2*)
16707    shlibpath_overrides_runpath=yes
16708    ;;
16709  freebsd3.[01]* | freebsdelf3.[01]*)
16710    shlibpath_overrides_runpath=yes
16711    hardcode_into_libs=yes
16712    ;;
16713  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16714  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16715    shlibpath_overrides_runpath=no
16716    hardcode_into_libs=yes
16717    ;;
16718  freebsd*) # from 4.6 on
16719    shlibpath_overrides_runpath=yes
16720    hardcode_into_libs=yes
16721    ;;
16722  esac
16723  ;;
16724
16725gnu*)
16726  version_type=linux
16727  need_lib_prefix=no
16728  need_version=no
16729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16730  soname_spec='${libname}${release}${shared_ext}$major'
16731  shlibpath_var=LD_LIBRARY_PATH
16732  hardcode_into_libs=yes
16733  ;;
16734
16735hpux9* | hpux10* | hpux11*)
16736  # Give a soname corresponding to the major version so that dld.sl refuses to
16737  # link against other versions.
16738  version_type=sunos
16739  need_lib_prefix=no
16740  need_version=no
16741  case $host_cpu in
16742  ia64*)
16743    shrext_cmds='.so'
16744    hardcode_into_libs=yes
16745    dynamic_linker="$host_os dld.so"
16746    shlibpath_var=LD_LIBRARY_PATH
16747    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749    soname_spec='${libname}${release}${shared_ext}$major'
16750    if test "X$HPUX_IA64_MODE" = X32; then
16751      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16752    else
16753      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16754    fi
16755    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16756    ;;
16757   hppa*64*)
16758     shrext_cmds='.sl'
16759     hardcode_into_libs=yes
16760     dynamic_linker="$host_os dld.sl"
16761     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16762     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764     soname_spec='${libname}${release}${shared_ext}$major'
16765     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16766     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16767     ;;
16768   *)
16769    shrext_cmds='.sl'
16770    dynamic_linker="$host_os dld.sl"
16771    shlibpath_var=SHLIB_PATH
16772    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774    soname_spec='${libname}${release}${shared_ext}$major'
16775    ;;
16776  esac
16777  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16778  postinstall_cmds='chmod 555 $lib'
16779  ;;
16780
16781interix3*)
16782  version_type=linux
16783  need_lib_prefix=no
16784  need_version=no
16785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786  soname_spec='${libname}${release}${shared_ext}$major'
16787  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16788  shlibpath_var=LD_LIBRARY_PATH
16789  shlibpath_overrides_runpath=no
16790  hardcode_into_libs=yes
16791  ;;
16792
16793irix5* | irix6* | nonstopux*)
16794  case $host_os in
16795    nonstopux*) version_type=nonstopux ;;
16796    *)
16797	if test "$lt_cv_prog_gnu_ld" = yes; then
16798		version_type=linux
16799	else
16800		version_type=irix
16801	fi ;;
16802  esac
16803  need_lib_prefix=no
16804  need_version=no
16805  soname_spec='${libname}${release}${shared_ext}$major'
16806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16807  case $host_os in
16808  irix5* | nonstopux*)
16809    libsuff= shlibsuff=
16810    ;;
16811  *)
16812    case $LD in # libtool.m4 will add one of these switches to LD
16813    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16814      libsuff= shlibsuff= libmagic=32-bit;;
16815    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16816      libsuff=32 shlibsuff=N32 libmagic=N32;;
16817    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16818      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16819    *) libsuff= shlibsuff= libmagic=never-match;;
16820    esac
16821    ;;
16822  esac
16823  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16824  shlibpath_overrides_runpath=no
16825  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16826  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16827  hardcode_into_libs=yes
16828  ;;
16829
16830# No shared lib support for Linux oldld, aout, or coff.
16831linux*oldld* | linux*aout* | linux*coff*)
16832  dynamic_linker=no
16833  ;;
16834
16835# This must be Linux ELF.
16836linux*)
16837  version_type=linux
16838  need_lib_prefix=no
16839  need_version=no
16840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841  soname_spec='${libname}${release}${shared_ext}$major'
16842  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16843  shlibpath_var=LD_LIBRARY_PATH
16844  shlibpath_overrides_runpath=no
16845  # This implies no fast_install, which is unacceptable.
16846  # Some rework will be needed to allow for fast_install
16847  # before this can be enabled.
16848  hardcode_into_libs=yes
16849
16850  # Append ld.so.conf contents to the search path
16851  if test -f /etc/ld.so.conf; then
16852    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' ' '`
16853    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16854  fi
16855
16856  # We used to test for /lib/ld.so.1 and disable shared libraries on
16857  # powerpc, because MkLinux only supported shared libraries with the
16858  # GNU dynamic linker.  Since this was broken with cross compilers,
16859  # most powerpc-linux boxes support dynamic linking these days and
16860  # people can always --disable-shared, the test was removed, and we
16861  # assume the GNU/Linux dynamic linker is in use.
16862  dynamic_linker='GNU/Linux ld.so'
16863  ;;
16864
16865knetbsd*-gnu)
16866  version_type=linux
16867  need_lib_prefix=no
16868  need_version=no
16869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16870  soname_spec='${libname}${release}${shared_ext}$major'
16871  shlibpath_var=LD_LIBRARY_PATH
16872  shlibpath_overrides_runpath=no
16873  hardcode_into_libs=yes
16874  dynamic_linker='GNU ld.so'
16875  ;;
16876
16877netbsd*)
16878  version_type=sunos
16879  need_lib_prefix=no
16880  need_version=no
16881  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16882    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16883    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16884    dynamic_linker='NetBSD (a.out) ld.so'
16885  else
16886    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16887    soname_spec='${libname}${release}${shared_ext}$major'
16888    dynamic_linker='NetBSD ld.elf_so'
16889  fi
16890  shlibpath_var=LD_LIBRARY_PATH
16891  shlibpath_overrides_runpath=yes
16892  hardcode_into_libs=yes
16893  ;;
16894
16895newsos6)
16896  version_type=linux
16897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898  shlibpath_var=LD_LIBRARY_PATH
16899  shlibpath_overrides_runpath=yes
16900  ;;
16901
16902nto-qnx*)
16903  version_type=linux
16904  need_lib_prefix=no
16905  need_version=no
16906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907  soname_spec='${libname}${release}${shared_ext}$major'
16908  shlibpath_var=LD_LIBRARY_PATH
16909  shlibpath_overrides_runpath=yes
16910  ;;
16911
16912openbsd*)
16913  version_type=sunos
16914  sys_lib_dlsearch_path_spec="/usr/lib"
16915  need_lib_prefix=no
16916  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16917  case $host_os in
16918    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16919    *)                         need_version=no  ;;
16920  esac
16921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16922  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16923  shlibpath_var=LD_LIBRARY_PATH
16924  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16925    case $host_os in
16926      openbsd2.[89] | openbsd2.[89].*)
16927	shlibpath_overrides_runpath=no
16928	;;
16929      *)
16930	shlibpath_overrides_runpath=yes
16931	;;
16932      esac
16933  else
16934    shlibpath_overrides_runpath=yes
16935  fi
16936  ;;
16937
16938os2*)
16939  libname_spec='$name'
16940  shrext_cmds=".dll"
16941  need_lib_prefix=no
16942  library_names_spec='$libname${shared_ext} $libname.a'
16943  dynamic_linker='OS/2 ld.exe'
16944  shlibpath_var=LIBPATH
16945  ;;
16946
16947osf3* | osf4* | osf5*)
16948  version_type=osf
16949  need_lib_prefix=no
16950  need_version=no
16951  soname_spec='${libname}${release}${shared_ext}$major'
16952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953  shlibpath_var=LD_LIBRARY_PATH
16954  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16955  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16956  ;;
16957
16958solaris*)
16959  version_type=linux
16960  need_lib_prefix=no
16961  need_version=no
16962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963  soname_spec='${libname}${release}${shared_ext}$major'
16964  shlibpath_var=LD_LIBRARY_PATH
16965  shlibpath_overrides_runpath=yes
16966  hardcode_into_libs=yes
16967  # ldd complains unless libraries are executable
16968  postinstall_cmds='chmod +x $lib'
16969  ;;
16970
16971sunos4*)
16972  version_type=sunos
16973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16974  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16975  shlibpath_var=LD_LIBRARY_PATH
16976  shlibpath_overrides_runpath=yes
16977  if test "$with_gnu_ld" = yes; then
16978    need_lib_prefix=no
16979  fi
16980  need_version=yes
16981  ;;
16982
16983sysv4 | sysv4.3*)
16984  version_type=linux
16985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986  soname_spec='${libname}${release}${shared_ext}$major'
16987  shlibpath_var=LD_LIBRARY_PATH
16988  case $host_vendor in
16989    sni)
16990      shlibpath_overrides_runpath=no
16991      need_lib_prefix=no
16992      export_dynamic_flag_spec='${wl}-Blargedynsym'
16993      runpath_var=LD_RUN_PATH
16994      ;;
16995    siemens)
16996      need_lib_prefix=no
16997      ;;
16998    motorola)
16999      need_lib_prefix=no
17000      need_version=no
17001      shlibpath_overrides_runpath=no
17002      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17003      ;;
17004  esac
17005  ;;
17006
17007sysv4*MP*)
17008  if test -d /usr/nec ;then
17009    version_type=linux
17010    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17011    soname_spec='$libname${shared_ext}.$major'
17012    shlibpath_var=LD_LIBRARY_PATH
17013  fi
17014  ;;
17015
17016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17017  version_type=freebsd-elf
17018  need_lib_prefix=no
17019  need_version=no
17020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021  soname_spec='${libname}${release}${shared_ext}$major'
17022  shlibpath_var=LD_LIBRARY_PATH
17023  hardcode_into_libs=yes
17024  if test "$with_gnu_ld" = yes; then
17025    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17026    shlibpath_overrides_runpath=no
17027  else
17028    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17029    shlibpath_overrides_runpath=yes
17030    case $host_os in
17031      sco3.2v5*)
17032        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17033	;;
17034    esac
17035  fi
17036  sys_lib_dlsearch_path_spec='/usr/lib'
17037  ;;
17038
17039uts4*)
17040  version_type=linux
17041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042  soname_spec='${libname}${release}${shared_ext}$major'
17043  shlibpath_var=LD_LIBRARY_PATH
17044  ;;
17045
17046*)
17047  dynamic_linker=no
17048  ;;
17049esac
17050{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17051echo "${ECHO_T}$dynamic_linker" >&6; }
17052test "$dynamic_linker" = no && can_build_shared=no
17053
17054variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17055if test "$GCC" = yes; then
17056  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17057fi
17058
17059{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17060echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17061hardcode_action=
17062if test -n "$hardcode_libdir_flag_spec" || \
17063   test -n "$runpath_var" || \
17064   test "X$hardcode_automatic" = "Xyes" ; then
17065
17066  # We can hardcode non-existant directories.
17067  if test "$hardcode_direct" != no &&
17068     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17069     # have to relink, otherwise we might link with an installed library
17070     # when we should be linking with a yet-to-be-installed one
17071     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17072     test "$hardcode_minus_L" != no; then
17073    # Linking always hardcodes the temporary library directory.
17074    hardcode_action=relink
17075  else
17076    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17077    hardcode_action=immediate
17078  fi
17079else
17080  # We cannot hardcode anything, or else we can only hardcode existing
17081  # directories.
17082  hardcode_action=unsupported
17083fi
17084{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
17085echo "${ECHO_T}$hardcode_action" >&6; }
17086
17087if test "$hardcode_action" = relink; then
17088  # Fast installation is not supported
17089  enable_fast_install=no
17090elif test "$shlibpath_overrides_runpath" = yes ||
17091     test "$enable_shared" = no; then
17092  # Fast installation is not necessary
17093  enable_fast_install=needless
17094fi
17095
17096striplib=
17097old_striplib=
17098{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17099echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17100if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17101  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17102  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17103  { echo "$as_me:$LINENO: result: yes" >&5
17104echo "${ECHO_T}yes" >&6; }
17105else
17106# FIXME - insert some real tests, host_os isn't really good enough
17107  case $host_os in
17108   darwin*)
17109       if test -n "$STRIP" ; then
17110         striplib="$STRIP -x"
17111         { echo "$as_me:$LINENO: result: yes" >&5
17112echo "${ECHO_T}yes" >&6; }
17113       else
17114  { echo "$as_me:$LINENO: result: no" >&5
17115echo "${ECHO_T}no" >&6; }
17116fi
17117       ;;
17118   *)
17119  { echo "$as_me:$LINENO: result: no" >&5
17120echo "${ECHO_T}no" >&6; }
17121    ;;
17122  esac
17123fi
17124
17125if test "x$enable_dlopen" != xyes; then
17126  enable_dlopen=unknown
17127  enable_dlopen_self=unknown
17128  enable_dlopen_self_static=unknown
17129else
17130  lt_cv_dlopen=no
17131  lt_cv_dlopen_libs=
17132
17133  case $host_os in
17134  beos*)
17135    lt_cv_dlopen="load_add_on"
17136    lt_cv_dlopen_libs=
17137    lt_cv_dlopen_self=yes
17138    ;;
17139
17140  mingw* | pw32*)
17141    lt_cv_dlopen="LoadLibrary"
17142    lt_cv_dlopen_libs=
17143   ;;
17144
17145  cygwin*)
17146    lt_cv_dlopen="dlopen"
17147    lt_cv_dlopen_libs=
17148   ;;
17149
17150  darwin*)
17151  # if libdl is installed we need to link against it
17152    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155  echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157  ac_check_lib_save_LIBS=$LIBS
17158LIBS="-ldl  $LIBS"
17159cat >conftest.$ac_ext <<_ACEOF
17160/* confdefs.h.  */
17161_ACEOF
17162cat confdefs.h >>conftest.$ac_ext
17163cat >>conftest.$ac_ext <<_ACEOF
17164/* end confdefs.h.  */
17165
17166/* Override any GCC internal prototype to avoid an error.
17167   Use char because int might match the return type of a GCC
17168   builtin and then its argument prototype would still apply.  */
17169#ifdef __cplusplus
17170extern "C"
17171#endif
17172char dlopen ();
17173int
17174main ()
17175{
17176return dlopen ();
17177  ;
17178  return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext conftest$ac_exeext
17182if { (ac_try="$ac_link"
17183case "(($ac_try" in
17184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185  *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188  (eval "$ac_link") 2>conftest.er1
17189  ac_status=$?
17190  grep -v '^ *+' conftest.er1 >conftest.err
17191  rm -f conftest.er1
17192  cat conftest.err >&5
17193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194  (exit $ac_status); } &&
17195	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196  { (case "(($ac_try" in
17197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198  *) ac_try_echo=$ac_try;;
17199esac
17200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201  (eval "$ac_try") 2>&5
17202  ac_status=$?
17203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204  (exit $ac_status); }; } &&
17205	 { ac_try='test -s conftest$ac_exeext'
17206  { (case "(($ac_try" in
17207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208  *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211  (eval "$ac_try") 2>&5
17212  ac_status=$?
17213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214  (exit $ac_status); }; }; then
17215  ac_cv_lib_dl_dlopen=yes
17216else
17217  echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220	ac_cv_lib_dl_dlopen=no
17221fi
17222
17223rm -f core conftest.err conftest.$ac_objext \
17224      conftest$ac_exeext conftest.$ac_ext
17225LIBS=$ac_check_lib_save_LIBS
17226fi
17227{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17228echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17229if test $ac_cv_lib_dl_dlopen = yes; then
17230  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17231else
17232
17233    lt_cv_dlopen="dyld"
17234    lt_cv_dlopen_libs=
17235    lt_cv_dlopen_self=yes
17236
17237fi
17238
17239   ;;
17240
17241  *)
17242    { echo "$as_me:$LINENO: checking for shl_load" >&5
17243echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17244if test "${ac_cv_func_shl_load+set}" = set; then
17245  echo $ECHO_N "(cached) $ECHO_C" >&6
17246else
17247  cat >conftest.$ac_ext <<_ACEOF
17248/* confdefs.h.  */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h.  */
17253/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17254   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17255#define shl_load innocuous_shl_load
17256
17257/* System header to define __stub macros and hopefully few prototypes,
17258    which can conflict with char shl_load (); below.
17259    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260    <limits.h> exists even on freestanding compilers.  */
17261
17262#ifdef __STDC__
17263# include <limits.h>
17264#else
17265# include <assert.h>
17266#endif
17267
17268#undef shl_load
17269
17270/* Override any GCC internal prototype to avoid an error.
17271   Use char because int might match the return type of a GCC
17272   builtin and then its argument prototype would still apply.  */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276char shl_load ();
17277/* The GNU C library defines this for functions which it implements
17278    to always fail with ENOSYS.  Some functions are actually named
17279    something starting with __ and the normal name is an alias.  */
17280#if defined __stub_shl_load || defined __stub___shl_load
17281choke me
17282#endif
17283
17284int
17285main ()
17286{
17287return shl_load ();
17288  ;
17289  return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
17293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296  *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299  (eval "$ac_link") 2>conftest.er1
17300  ac_status=$?
17301  grep -v '^ *+' conftest.er1 >conftest.err
17302  rm -f conftest.er1
17303  cat conftest.err >&5
17304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305  (exit $ac_status); } &&
17306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307  { (case "(($ac_try" in
17308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309  *) ac_try_echo=$ac_try;;
17310esac
17311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312  (eval "$ac_try") 2>&5
17313  ac_status=$?
17314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315  (exit $ac_status); }; } &&
17316	 { ac_try='test -s conftest$ac_exeext'
17317  { (case "(($ac_try" in
17318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319  *) ac_try_echo=$ac_try;;
17320esac
17321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322  (eval "$ac_try") 2>&5
17323  ac_status=$?
17324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325  (exit $ac_status); }; }; then
17326  ac_cv_func_shl_load=yes
17327else
17328  echo "$as_me: failed program was:" >&5
17329sed 's/^/| /' conftest.$ac_ext >&5
17330
17331	ac_cv_func_shl_load=no
17332fi
17333
17334rm -f core conftest.err conftest.$ac_objext \
17335      conftest$ac_exeext conftest.$ac_ext
17336fi
17337{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17338echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17339if test $ac_cv_func_shl_load = yes; then
17340  lt_cv_dlopen="shl_load"
17341else
17342  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17343echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17344if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17345  echo $ECHO_N "(cached) $ECHO_C" >&6
17346else
17347  ac_check_lib_save_LIBS=$LIBS
17348LIBS="-ldld  $LIBS"
17349cat >conftest.$ac_ext <<_ACEOF
17350/* confdefs.h.  */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h.  */
17355
17356/* Override any GCC internal prototype to avoid an error.
17357   Use char because int might match the return type of a GCC
17358   builtin and then its argument prototype would still apply.  */
17359#ifdef __cplusplus
17360extern "C"
17361#endif
17362char shl_load ();
17363int
17364main ()
17365{
17366return shl_load ();
17367  ;
17368  return 0;
17369}
17370_ACEOF
17371rm -f conftest.$ac_objext conftest$ac_exeext
17372if { (ac_try="$ac_link"
17373case "(($ac_try" in
17374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375  *) ac_try_echo=$ac_try;;
17376esac
17377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378  (eval "$ac_link") 2>conftest.er1
17379  ac_status=$?
17380  grep -v '^ *+' conftest.er1 >conftest.err
17381  rm -f conftest.er1
17382  cat conftest.err >&5
17383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384  (exit $ac_status); } &&
17385	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386  { (case "(($ac_try" in
17387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388  *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391  (eval "$ac_try") 2>&5
17392  ac_status=$?
17393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394  (exit $ac_status); }; } &&
17395	 { ac_try='test -s conftest$ac_exeext'
17396  { (case "(($ac_try" in
17397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398  *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401  (eval "$ac_try") 2>&5
17402  ac_status=$?
17403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404  (exit $ac_status); }; }; then
17405  ac_cv_lib_dld_shl_load=yes
17406else
17407  echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410	ac_cv_lib_dld_shl_load=no
17411fi
17412
17413rm -f core conftest.err conftest.$ac_objext \
17414      conftest$ac_exeext conftest.$ac_ext
17415LIBS=$ac_check_lib_save_LIBS
17416fi
17417{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17418echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17419if test $ac_cv_lib_dld_shl_load = yes; then
17420  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17421else
17422  { echo "$as_me:$LINENO: checking for dlopen" >&5
17423echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17424if test "${ac_cv_func_dlopen+set}" = set; then
17425  echo $ECHO_N "(cached) $ECHO_C" >&6
17426else
17427  cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h.  */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h.  */
17433/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17434   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17435#define dlopen innocuous_dlopen
17436
17437/* System header to define __stub macros and hopefully few prototypes,
17438    which can conflict with char dlopen (); below.
17439    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440    <limits.h> exists even on freestanding compilers.  */
17441
17442#ifdef __STDC__
17443# include <limits.h>
17444#else
17445# include <assert.h>
17446#endif
17447
17448#undef dlopen
17449
17450/* Override any GCC internal prototype to avoid an error.
17451   Use char because int might match the return type of a GCC
17452   builtin and then its argument prototype would still apply.  */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456char dlopen ();
17457/* The GNU C library defines this for functions which it implements
17458    to always fail with ENOSYS.  Some functions are actually named
17459    something starting with __ and the normal name is an alias.  */
17460#if defined __stub_dlopen || defined __stub___dlopen
17461choke me
17462#endif
17463
17464int
17465main ()
17466{
17467return dlopen ();
17468  ;
17469  return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext conftest$ac_exeext
17473if { (ac_try="$ac_link"
17474case "(($ac_try" in
17475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476  *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479  (eval "$ac_link") 2>conftest.er1
17480  ac_status=$?
17481  grep -v '^ *+' conftest.er1 >conftest.err
17482  rm -f conftest.er1
17483  cat conftest.err >&5
17484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485  (exit $ac_status); } &&
17486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487  { (case "(($ac_try" in
17488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489  *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492  (eval "$ac_try") 2>&5
17493  ac_status=$?
17494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495  (exit $ac_status); }; } &&
17496	 { ac_try='test -s conftest$ac_exeext'
17497  { (case "(($ac_try" in
17498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499  *) ac_try_echo=$ac_try;;
17500esac
17501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502  (eval "$ac_try") 2>&5
17503  ac_status=$?
17504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505  (exit $ac_status); }; }; then
17506  ac_cv_func_dlopen=yes
17507else
17508  echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511	ac_cv_func_dlopen=no
17512fi
17513
17514rm -f core conftest.err conftest.$ac_objext \
17515      conftest$ac_exeext conftest.$ac_ext
17516fi
17517{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17518echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17519if test $ac_cv_func_dlopen = yes; then
17520  lt_cv_dlopen="dlopen"
17521else
17522  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17523echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17524if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17525  echo $ECHO_N "(cached) $ECHO_C" >&6
17526else
17527  ac_check_lib_save_LIBS=$LIBS
17528LIBS="-ldl  $LIBS"
17529cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h.  */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h.  */
17535
17536/* Override any GCC internal prototype to avoid an error.
17537   Use char because int might match the return type of a GCC
17538   builtin and then its argument prototype would still apply.  */
17539#ifdef __cplusplus
17540extern "C"
17541#endif
17542char dlopen ();
17543int
17544main ()
17545{
17546return dlopen ();
17547  ;
17548  return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
17552if { (ac_try="$ac_link"
17553case "(($ac_try" in
17554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555  *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558  (eval "$ac_link") 2>conftest.er1
17559  ac_status=$?
17560  grep -v '^ *+' conftest.er1 >conftest.err
17561  rm -f conftest.er1
17562  cat conftest.err >&5
17563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564  (exit $ac_status); } &&
17565	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566  { (case "(($ac_try" in
17567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568  *) ac_try_echo=$ac_try;;
17569esac
17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571  (eval "$ac_try") 2>&5
17572  ac_status=$?
17573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574  (exit $ac_status); }; } &&
17575	 { ac_try='test -s conftest$ac_exeext'
17576  { (case "(($ac_try" in
17577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578  *) ac_try_echo=$ac_try;;
17579esac
17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581  (eval "$ac_try") 2>&5
17582  ac_status=$?
17583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584  (exit $ac_status); }; }; then
17585  ac_cv_lib_dl_dlopen=yes
17586else
17587  echo "$as_me: failed program was:" >&5
17588sed 's/^/| /' conftest.$ac_ext >&5
17589
17590	ac_cv_lib_dl_dlopen=no
17591fi
17592
17593rm -f core conftest.err conftest.$ac_objext \
17594      conftest$ac_exeext conftest.$ac_ext
17595LIBS=$ac_check_lib_save_LIBS
17596fi
17597{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17599if test $ac_cv_lib_dl_dlopen = yes; then
17600  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601else
17602  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17603echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17604if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17605  echo $ECHO_N "(cached) $ECHO_C" >&6
17606else
17607  ac_check_lib_save_LIBS=$LIBS
17608LIBS="-lsvld  $LIBS"
17609cat >conftest.$ac_ext <<_ACEOF
17610/* confdefs.h.  */
17611_ACEOF
17612cat confdefs.h >>conftest.$ac_ext
17613cat >>conftest.$ac_ext <<_ACEOF
17614/* end confdefs.h.  */
17615
17616/* Override any GCC internal prototype to avoid an error.
17617   Use char because int might match the return type of a GCC
17618   builtin and then its argument prototype would still apply.  */
17619#ifdef __cplusplus
17620extern "C"
17621#endif
17622char dlopen ();
17623int
17624main ()
17625{
17626return dlopen ();
17627  ;
17628  return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext conftest$ac_exeext
17632if { (ac_try="$ac_link"
17633case "(($ac_try" in
17634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635  *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638  (eval "$ac_link") 2>conftest.er1
17639  ac_status=$?
17640  grep -v '^ *+' conftest.er1 >conftest.err
17641  rm -f conftest.er1
17642  cat conftest.err >&5
17643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644  (exit $ac_status); } &&
17645	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646  { (case "(($ac_try" in
17647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648  *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651  (eval "$ac_try") 2>&5
17652  ac_status=$?
17653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654  (exit $ac_status); }; } &&
17655	 { ac_try='test -s conftest$ac_exeext'
17656  { (case "(($ac_try" in
17657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658  *) ac_try_echo=$ac_try;;
17659esac
17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661  (eval "$ac_try") 2>&5
17662  ac_status=$?
17663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664  (exit $ac_status); }; }; then
17665  ac_cv_lib_svld_dlopen=yes
17666else
17667  echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670	ac_cv_lib_svld_dlopen=no
17671fi
17672
17673rm -f core conftest.err conftest.$ac_objext \
17674      conftest$ac_exeext conftest.$ac_ext
17675LIBS=$ac_check_lib_save_LIBS
17676fi
17677{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17678echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17679if test $ac_cv_lib_svld_dlopen = yes; then
17680  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17681else
17682  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17683echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17684if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17685  echo $ECHO_N "(cached) $ECHO_C" >&6
17686else
17687  ac_check_lib_save_LIBS=$LIBS
17688LIBS="-ldld  $LIBS"
17689cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h.  */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h.  */
17695
17696/* Override any GCC internal prototype to avoid an error.
17697   Use char because int might match the return type of a GCC
17698   builtin and then its argument prototype would still apply.  */
17699#ifdef __cplusplus
17700extern "C"
17701#endif
17702char dld_link ();
17703int
17704main ()
17705{
17706return dld_link ();
17707  ;
17708  return 0;
17709}
17710_ACEOF
17711rm -f conftest.$ac_objext conftest$ac_exeext
17712if { (ac_try="$ac_link"
17713case "(($ac_try" in
17714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715  *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718  (eval "$ac_link") 2>conftest.er1
17719  ac_status=$?
17720  grep -v '^ *+' conftest.er1 >conftest.err
17721  rm -f conftest.er1
17722  cat conftest.err >&5
17723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724  (exit $ac_status); } &&
17725	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726  { (case "(($ac_try" in
17727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728  *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731  (eval "$ac_try") 2>&5
17732  ac_status=$?
17733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734  (exit $ac_status); }; } &&
17735	 { ac_try='test -s conftest$ac_exeext'
17736  { (case "(($ac_try" in
17737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738  *) ac_try_echo=$ac_try;;
17739esac
17740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741  (eval "$ac_try") 2>&5
17742  ac_status=$?
17743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744  (exit $ac_status); }; }; then
17745  ac_cv_lib_dld_dld_link=yes
17746else
17747  echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750	ac_cv_lib_dld_dld_link=no
17751fi
17752
17753rm -f core conftest.err conftest.$ac_objext \
17754      conftest$ac_exeext conftest.$ac_ext
17755LIBS=$ac_check_lib_save_LIBS
17756fi
17757{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17758echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17759if test $ac_cv_lib_dld_dld_link = yes; then
17760  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17761fi
17762
17763
17764fi
17765
17766
17767fi
17768
17769
17770fi
17771
17772
17773fi
17774
17775
17776fi
17777
17778    ;;
17779  esac
17780
17781  if test "x$lt_cv_dlopen" != xno; then
17782    enable_dlopen=yes
17783  else
17784    enable_dlopen=no
17785  fi
17786
17787  case $lt_cv_dlopen in
17788  dlopen)
17789    save_CPPFLAGS="$CPPFLAGS"
17790    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17791
17792    save_LDFLAGS="$LDFLAGS"
17793    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17794
17795    save_LIBS="$LIBS"
17796    LIBS="$lt_cv_dlopen_libs $LIBS"
17797
17798    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17799echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17800if test "${lt_cv_dlopen_self+set}" = set; then
17801  echo $ECHO_N "(cached) $ECHO_C" >&6
17802else
17803  	  if test "$cross_compiling" = yes; then :
17804  lt_cv_dlopen_self=cross
17805else
17806  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17807  lt_status=$lt_dlunknown
17808  cat > conftest.$ac_ext <<EOF
17809#line 17809 "configure"
17810#include "confdefs.h"
17811
17812#if HAVE_DLFCN_H
17813#include <dlfcn.h>
17814#endif
17815
17816#include <stdio.h>
17817
17818#ifdef RTLD_GLOBAL
17819#  define LT_DLGLOBAL		RTLD_GLOBAL
17820#else
17821#  ifdef DL_GLOBAL
17822#    define LT_DLGLOBAL		DL_GLOBAL
17823#  else
17824#    define LT_DLGLOBAL		0
17825#  endif
17826#endif
17827
17828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17829   find out it does not work in some platform. */
17830#ifndef LT_DLLAZY_OR_NOW
17831#  ifdef RTLD_LAZY
17832#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17833#  else
17834#    ifdef DL_LAZY
17835#      define LT_DLLAZY_OR_NOW		DL_LAZY
17836#    else
17837#      ifdef RTLD_NOW
17838#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17839#      else
17840#        ifdef DL_NOW
17841#          define LT_DLLAZY_OR_NOW	DL_NOW
17842#        else
17843#          define LT_DLLAZY_OR_NOW	0
17844#        endif
17845#      endif
17846#    endif
17847#  endif
17848#endif
17849
17850#ifdef __cplusplus
17851extern "C" void exit (int);
17852#endif
17853
17854void fnord() { int i=42;}
17855int main ()
17856{
17857  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17858  int status = $lt_dlunknown;
17859
17860  if (self)
17861    {
17862      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17863      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17864      /* dlclose (self); */
17865    }
17866  else
17867    puts (dlerror ());
17868
17869    exit (status);
17870}
17871EOF
17872  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873  (eval $ac_link) 2>&5
17874  ac_status=$?
17875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17877    (./conftest; exit; ) >&5 2>/dev/null
17878    lt_status=$?
17879    case x$lt_status in
17880      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17881      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17882      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17883    esac
17884  else :
17885    # compilation failed
17886    lt_cv_dlopen_self=no
17887  fi
17888fi
17889rm -fr conftest*
17890
17891
17892fi
17893{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17894echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17895
17896    if test "x$lt_cv_dlopen_self" = xyes; then
17897      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17898      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17899echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17900if test "${lt_cv_dlopen_self_static+set}" = set; then
17901  echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903  	  if test "$cross_compiling" = yes; then :
17904  lt_cv_dlopen_self_static=cross
17905else
17906  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17907  lt_status=$lt_dlunknown
17908  cat > conftest.$ac_ext <<EOF
17909#line 17909 "configure"
17910#include "confdefs.h"
17911
17912#if HAVE_DLFCN_H
17913#include <dlfcn.h>
17914#endif
17915
17916#include <stdio.h>
17917
17918#ifdef RTLD_GLOBAL
17919#  define LT_DLGLOBAL		RTLD_GLOBAL
17920#else
17921#  ifdef DL_GLOBAL
17922#    define LT_DLGLOBAL		DL_GLOBAL
17923#  else
17924#    define LT_DLGLOBAL		0
17925#  endif
17926#endif
17927
17928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17929   find out it does not work in some platform. */
17930#ifndef LT_DLLAZY_OR_NOW
17931#  ifdef RTLD_LAZY
17932#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17933#  else
17934#    ifdef DL_LAZY
17935#      define LT_DLLAZY_OR_NOW		DL_LAZY
17936#    else
17937#      ifdef RTLD_NOW
17938#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17939#      else
17940#        ifdef DL_NOW
17941#          define LT_DLLAZY_OR_NOW	DL_NOW
17942#        else
17943#          define LT_DLLAZY_OR_NOW	0
17944#        endif
17945#      endif
17946#    endif
17947#  endif
17948#endif
17949
17950#ifdef __cplusplus
17951extern "C" void exit (int);
17952#endif
17953
17954void fnord() { int i=42;}
17955int main ()
17956{
17957  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17958  int status = $lt_dlunknown;
17959
17960  if (self)
17961    {
17962      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17963      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17964      /* dlclose (self); */
17965    }
17966  else
17967    puts (dlerror ());
17968
17969    exit (status);
17970}
17971EOF
17972  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973  (eval $ac_link) 2>&5
17974  ac_status=$?
17975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17977    (./conftest; exit; ) >&5 2>/dev/null
17978    lt_status=$?
17979    case x$lt_status in
17980      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17981      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17982      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17983    esac
17984  else :
17985    # compilation failed
17986    lt_cv_dlopen_self_static=no
17987  fi
17988fi
17989rm -fr conftest*
17990
17991
17992fi
17993{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17994echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17995    fi
17996
17997    CPPFLAGS="$save_CPPFLAGS"
17998    LDFLAGS="$save_LDFLAGS"
17999    LIBS="$save_LIBS"
18000    ;;
18001  esac
18002
18003  case $lt_cv_dlopen_self in
18004  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18005  *) enable_dlopen_self=unknown ;;
18006  esac
18007
18008  case $lt_cv_dlopen_self_static in
18009  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18010  *) enable_dlopen_self_static=unknown ;;
18011  esac
18012fi
18013
18014
18015# Report which library types will actually be built
18016{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18017echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18018{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
18019echo "${ECHO_T}$can_build_shared" >&6; }
18020
18021{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18022echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18023test "$can_build_shared" = "no" && enable_shared=no
18024
18025# On AIX, shared libraries and static libraries use the same namespace, and
18026# are all built from PIC.
18027case $host_os in
18028aix3*)
18029  test "$enable_shared" = yes && enable_static=no
18030  if test -n "$RANLIB"; then
18031    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18032    postinstall_cmds='$RANLIB $lib'
18033  fi
18034  ;;
18035
18036aix4* | aix5*)
18037  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18038    test "$enable_shared" = yes && enable_static=no
18039  fi
18040    ;;
18041esac
18042{ echo "$as_me:$LINENO: result: $enable_shared" >&5
18043echo "${ECHO_T}$enable_shared" >&6; }
18044
18045{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18046echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18047# Make sure either enable_shared or enable_static is yes.
18048test "$enable_shared" = yes || enable_static=yes
18049{ echo "$as_me:$LINENO: result: $enable_static" >&5
18050echo "${ECHO_T}$enable_static" >&6; }
18051
18052# The else clause should only fire when bootstrapping the
18053# libtool distribution, otherwise you forgot to ship ltmain.sh
18054# with your package, and you will get complaints that there are
18055# no rules to generate ltmain.sh.
18056if test -f "$ltmain"; then
18057  # See if we are running on zsh, and set the options which allow our commands through
18058  # without removal of \ escapes.
18059  if test -n "${ZSH_VERSION+set}" ; then
18060    setopt NO_GLOB_SUBST
18061  fi
18062  # Now quote all the things that may contain metacharacters while being
18063  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18064  # variables and quote the copies for generation of the libtool script.
18065  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18066    SED SHELL STRIP \
18067    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18068    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18069    deplibs_check_method reload_flag reload_cmds need_locks \
18070    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18071    lt_cv_sys_global_symbol_to_c_name_address \
18072    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18073    old_postinstall_cmds old_postuninstall_cmds \
18074    compiler \
18075    CC \
18076    LD \
18077    lt_prog_compiler_wl \
18078    lt_prog_compiler_pic \
18079    lt_prog_compiler_static \
18080    lt_prog_compiler_no_builtin_flag \
18081    export_dynamic_flag_spec \
18082    thread_safe_flag_spec \
18083    whole_archive_flag_spec \
18084    enable_shared_with_static_runtimes \
18085    old_archive_cmds \
18086    old_archive_from_new_cmds \
18087    predep_objects \
18088    postdep_objects \
18089    predeps \
18090    postdeps \
18091    compiler_lib_search_path \
18092    archive_cmds \
18093    archive_expsym_cmds \
18094    postinstall_cmds \
18095    postuninstall_cmds \
18096    old_archive_from_expsyms_cmds \
18097    allow_undefined_flag \
18098    no_undefined_flag \
18099    export_symbols_cmds \
18100    hardcode_libdir_flag_spec \
18101    hardcode_libdir_flag_spec_ld \
18102    hardcode_libdir_separator \
18103    hardcode_automatic \
18104    module_cmds \
18105    module_expsym_cmds \
18106    lt_cv_prog_compiler_c_o \
18107    exclude_expsyms \
18108    include_expsyms; do
18109
18110    case $var in
18111    old_archive_cmds | \
18112    old_archive_from_new_cmds | \
18113    archive_cmds | \
18114    archive_expsym_cmds | \
18115    module_cmds | \
18116    module_expsym_cmds | \
18117    old_archive_from_expsyms_cmds | \
18118    export_symbols_cmds | \
18119    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18120    postinstall_cmds | postuninstall_cmds | \
18121    old_postinstall_cmds | old_postuninstall_cmds | \
18122    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18123      # Double-quote double-evaled strings.
18124      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18125      ;;
18126    *)
18127      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18128      ;;
18129    esac
18130  done
18131
18132  case $lt_echo in
18133  *'\$0 --fallback-echo"')
18134    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18135    ;;
18136  esac
18137
18138cfgfile="${ofile}T"
18139  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18140  $rm -f "$cfgfile"
18141  { echo "$as_me:$LINENO: creating $ofile" >&5
18142echo "$as_me: creating $ofile" >&6;}
18143
18144  cat <<__EOF__ >> "$cfgfile"
18145#! $SHELL
18146
18147# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18148# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18149# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18150#
18151# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18152# Free Software Foundation, Inc.
18153#
18154# This file is part of GNU Libtool:
18155# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18156#
18157# This program is free software; you can redistribute it and/or modify
18158# it under the terms of the GNU General Public License as published by
18159# the Free Software Foundation; either version 2 of the License, or
18160# (at your option) any later version.
18161#
18162# This program is distributed in the hope that it will be useful, but
18163# WITHOUT ANY WARRANTY; without even the implied warranty of
18164# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18165# General Public License for more details.
18166#
18167# You should have received a copy of the GNU General Public License
18168# along with this program; if not, write to the Free Software
18169# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18170#
18171# As a special exception to the GNU General Public License, if you
18172# distribute this file as part of a program that contains a
18173# configuration script generated by Autoconf, you may include it under
18174# the same distribution terms that you use for the rest of that program.
18175
18176# A sed program that does not truncate output.
18177SED=$lt_SED
18178
18179# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18180Xsed="$SED -e 1s/^X//"
18181
18182# The HP-UX ksh and POSIX shell print the target directory to stdout
18183# if CDPATH is set.
18184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18185
18186# The names of the tagged configurations supported by this script.
18187available_tags=
18188
18189# ### BEGIN LIBTOOL CONFIG
18190
18191# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18192
18193# Shell to use when invoking shell scripts.
18194SHELL=$lt_SHELL
18195
18196# Whether or not to build shared libraries.
18197build_libtool_libs=$enable_shared
18198
18199# Whether or not to build static libraries.
18200build_old_libs=$enable_static
18201
18202# Whether or not to add -lc for building shared libraries.
18203build_libtool_need_lc=$archive_cmds_need_lc
18204
18205# Whether or not to disallow shared libs when runtime libs are static
18206allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18207
18208# Whether or not to optimize for fast installation.
18209fast_install=$enable_fast_install
18210
18211# The host system.
18212host_alias=$host_alias
18213host=$host
18214host_os=$host_os
18215
18216# The build system.
18217build_alias=$build_alias
18218build=$build
18219build_os=$build_os
18220
18221# An echo program that does not interpret backslashes.
18222echo=$lt_echo
18223
18224# The archiver.
18225AR=$lt_AR
18226AR_FLAGS=$lt_AR_FLAGS
18227
18228# A C compiler.
18229LTCC=$lt_LTCC
18230
18231# LTCC compiler flags.
18232LTCFLAGS=$lt_LTCFLAGS
18233
18234# A language-specific compiler.
18235CC=$lt_compiler
18236
18237# Is the compiler the GNU C compiler?
18238with_gcc=$GCC
18239
18240# An ERE matcher.
18241EGREP=$lt_EGREP
18242
18243# The linker used to build libraries.
18244LD=$lt_LD
18245
18246# Whether we need hard or soft links.
18247LN_S=$lt_LN_S
18248
18249# A BSD-compatible nm program.
18250NM=$lt_NM
18251
18252# A symbol stripping program
18253STRIP=$lt_STRIP
18254
18255# Used to examine libraries when file_magic_cmd begins "file"
18256MAGIC_CMD=$MAGIC_CMD
18257
18258# Used on cygwin: DLL creation program.
18259DLLTOOL="$DLLTOOL"
18260
18261# Used on cygwin: object dumper.
18262OBJDUMP="$OBJDUMP"
18263
18264# Used on cygwin: assembler.
18265AS="$AS"
18266
18267# The name of the directory that contains temporary libtool files.
18268objdir=$objdir
18269
18270# How to create reloadable object files.
18271reload_flag=$lt_reload_flag
18272reload_cmds=$lt_reload_cmds
18273
18274# How to pass a linker flag through the compiler.
18275wl=$lt_lt_prog_compiler_wl
18276
18277# Object file suffix (normally "o").
18278objext="$ac_objext"
18279
18280# Old archive suffix (normally "a").
18281libext="$libext"
18282
18283# Shared library suffix (normally ".so").
18284shrext_cmds='$shrext_cmds'
18285
18286# Executable file suffix (normally "").
18287exeext="$exeext"
18288
18289# Additional compiler flags for building library objects.
18290pic_flag=$lt_lt_prog_compiler_pic
18291pic_mode=$pic_mode
18292
18293# What is the maximum length of a command?
18294max_cmd_len=$lt_cv_sys_max_cmd_len
18295
18296# Does compiler simultaneously support -c and -o options?
18297compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18298
18299# Must we lock files when doing compilation?
18300need_locks=$lt_need_locks
18301
18302# Do we need the lib prefix for modules?
18303need_lib_prefix=$need_lib_prefix
18304
18305# Do we need a version for libraries?
18306need_version=$need_version
18307
18308# Whether dlopen is supported.
18309dlopen_support=$enable_dlopen
18310
18311# Whether dlopen of programs is supported.
18312dlopen_self=$enable_dlopen_self
18313
18314# Whether dlopen of statically linked programs is supported.
18315dlopen_self_static=$enable_dlopen_self_static
18316
18317# Compiler flag to prevent dynamic linking.
18318link_static_flag=$lt_lt_prog_compiler_static
18319
18320# Compiler flag to turn off builtin functions.
18321no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18322
18323# Compiler flag to allow reflexive dlopens.
18324export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18325
18326# Compiler flag to generate shared objects directly from archives.
18327whole_archive_flag_spec=$lt_whole_archive_flag_spec
18328
18329# Compiler flag to generate thread-safe objects.
18330thread_safe_flag_spec=$lt_thread_safe_flag_spec
18331
18332# Library versioning type.
18333version_type=$version_type
18334
18335# Format of library name prefix.
18336libname_spec=$lt_libname_spec
18337
18338# List of archive names.  First name is the real one, the rest are links.
18339# The last name is the one that the linker finds with -lNAME.
18340library_names_spec=$lt_library_names_spec
18341
18342# The coded name of the library, if different from the real name.
18343soname_spec=$lt_soname_spec
18344
18345# Commands used to build and install an old-style archive.
18346RANLIB=$lt_RANLIB
18347old_archive_cmds=$lt_old_archive_cmds
18348old_postinstall_cmds=$lt_old_postinstall_cmds
18349old_postuninstall_cmds=$lt_old_postuninstall_cmds
18350
18351# Create an old-style archive from a shared archive.
18352old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18353
18354# Create a temporary old-style archive to link instead of a shared archive.
18355old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18356
18357# Commands used to build and install a shared archive.
18358archive_cmds=$lt_archive_cmds
18359archive_expsym_cmds=$lt_archive_expsym_cmds
18360postinstall_cmds=$lt_postinstall_cmds
18361postuninstall_cmds=$lt_postuninstall_cmds
18362
18363# Commands used to build a loadable module (assumed same as above if empty)
18364module_cmds=$lt_module_cmds
18365module_expsym_cmds=$lt_module_expsym_cmds
18366
18367# Commands to strip libraries.
18368old_striplib=$lt_old_striplib
18369striplib=$lt_striplib
18370
18371# Dependencies to place before the objects being linked to create a
18372# shared library.
18373predep_objects=$lt_predep_objects
18374
18375# Dependencies to place after the objects being linked to create a
18376# shared library.
18377postdep_objects=$lt_postdep_objects
18378
18379# Dependencies to place before the objects being linked to create a
18380# shared library.
18381predeps=$lt_predeps
18382
18383# Dependencies to place after the objects being linked to create a
18384# shared library.
18385postdeps=$lt_postdeps
18386
18387# The library search path used internally by the compiler when linking
18388# a shared library.
18389compiler_lib_search_path=$lt_compiler_lib_search_path
18390
18391# Method to check whether dependent libraries are shared objects.
18392deplibs_check_method=$lt_deplibs_check_method
18393
18394# Command to use when deplibs_check_method == file_magic.
18395file_magic_cmd=$lt_file_magic_cmd
18396
18397# Flag that allows shared libraries with undefined symbols to be built.
18398allow_undefined_flag=$lt_allow_undefined_flag
18399
18400# Flag that forces no undefined symbols.
18401no_undefined_flag=$lt_no_undefined_flag
18402
18403# Commands used to finish a libtool library installation in a directory.
18404finish_cmds=$lt_finish_cmds
18405
18406# Same as above, but a single script fragment to be evaled but not shown.
18407finish_eval=$lt_finish_eval
18408
18409# Take the output of nm and produce a listing of raw symbols and C names.
18410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18411
18412# Transform the output of nm in a proper C declaration
18413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18414
18415# Transform the output of nm in a C name address pair
18416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18417
18418# This is the shared library runtime path variable.
18419runpath_var=$runpath_var
18420
18421# This is the shared library path variable.
18422shlibpath_var=$shlibpath_var
18423
18424# Is shlibpath searched before the hard-coded library search path?
18425shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18426
18427# How to hardcode a shared library path into an executable.
18428hardcode_action=$hardcode_action
18429
18430# Whether we should hardcode library paths into libraries.
18431hardcode_into_libs=$hardcode_into_libs
18432
18433# Flag to hardcode \$libdir into a binary during linking.
18434# This must work even if \$libdir does not exist.
18435hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18436
18437# If ld is used when linking, flag to hardcode \$libdir into
18438# a binary during linking. This must work even if \$libdir does
18439# not exist.
18440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18441
18442# Whether we need a single -rpath flag with a separated argument.
18443hardcode_libdir_separator=$lt_hardcode_libdir_separator
18444
18445# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18446# resulting binary.
18447hardcode_direct=$hardcode_direct
18448
18449# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18450# resulting binary.
18451hardcode_minus_L=$hardcode_minus_L
18452
18453# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18454# the resulting binary.
18455hardcode_shlibpath_var=$hardcode_shlibpath_var
18456
18457# Set to yes if building a shared library automatically hardcodes DIR into the library
18458# and all subsequent libraries and executables linked against it.
18459hardcode_automatic=$hardcode_automatic
18460
18461# Variables whose values should be saved in libtool wrapper scripts and
18462# restored at relink time.
18463variables_saved_for_relink="$variables_saved_for_relink"
18464
18465# Whether libtool must link a program against all its dependency libraries.
18466link_all_deplibs=$link_all_deplibs
18467
18468# Compile-time system search path for libraries
18469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18470
18471# Run-time system search path for libraries
18472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18473
18474# Fix the shell variable \$srcfile for the compiler.
18475fix_srcfile_path="$fix_srcfile_path"
18476
18477# Set to yes if exported symbols are required.
18478always_export_symbols=$always_export_symbols
18479
18480# The commands to list exported symbols.
18481export_symbols_cmds=$lt_export_symbols_cmds
18482
18483# The commands to extract the exported symbol list from a shared archive.
18484extract_expsyms_cmds=$lt_extract_expsyms_cmds
18485
18486# Symbols that should not be listed in the preloaded symbols.
18487exclude_expsyms=$lt_exclude_expsyms
18488
18489# Symbols that must always be exported.
18490include_expsyms=$lt_include_expsyms
18491
18492# ### END LIBTOOL CONFIG
18493
18494__EOF__
18495
18496
18497  case $host_os in
18498  aix3*)
18499    cat <<\EOF >> "$cfgfile"
18500
18501# AIX sometimes has problems with the GCC collect2 program.  For some
18502# reason, if we set the COLLECT_NAMES environment variable, the problems
18503# vanish in a puff of smoke.
18504if test "X${COLLECT_NAMES+set}" != Xset; then
18505  COLLECT_NAMES=
18506  export COLLECT_NAMES
18507fi
18508EOF
18509    ;;
18510  esac
18511
18512  # We use sed instead of cat because bash on DJGPP gets confused if
18513  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18514  # text mode, it properly converts lines to CR/LF.  This bash problem
18515  # is reportedly fixed, but why not run on old versions too?
18516  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18517
18518  mv -f "$cfgfile" "$ofile" || \
18519    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18520  chmod +x "$ofile"
18521
18522else
18523  # If there is no Makefile yet, we rely on a make rule to execute
18524  # `config.status --recheck' to rerun these tests and create the
18525  # libtool script then.
18526  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18527  if test -f "$ltmain_in"; then
18528    test -f Makefile && make "$ltmain"
18529  fi
18530fi
18531
18532
18533ac_ext=c
18534ac_cpp='$CPP $CPPFLAGS'
18535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537ac_compiler_gnu=$ac_cv_c_compiler_gnu
18538
18539CC="$lt_save_CC"
18540
18541
18542# Check whether --with-tags was given.
18543if test "${with_tags+set}" = set; then
18544  withval=$with_tags; tagnames="$withval"
18545fi
18546
18547
18548if test -f "$ltmain" && test -n "$tagnames"; then
18549  if test ! -f "${ofile}"; then
18550    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18551echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18552  fi
18553
18554  if test -z "$LTCC"; then
18555    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18556    if test -z "$LTCC"; then
18557      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18558echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18559    else
18560      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18561echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18562    fi
18563  fi
18564  if test -z "$LTCFLAGS"; then
18565    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18566  fi
18567
18568  # Extract list of available tagged configurations in $ofile.
18569  # Note that this assumes the entire list is on one line.
18570  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18571
18572  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18573  for tagname in $tagnames; do
18574    IFS="$lt_save_ifs"
18575    # Check whether tagname contains only valid characters
18576    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18577    "") ;;
18578    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18579echo "$as_me: error: invalid tag name: $tagname" >&2;}
18580   { (exit 1); exit 1; }; }
18581	;;
18582    esac
18583
18584    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18585    then
18586      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18587echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18588   { (exit 1); exit 1; }; }
18589    fi
18590
18591    # Update the list of available tags.
18592    if test -n "$tagname"; then
18593      echo appending configuration tag \"$tagname\" to $ofile
18594
18595      case $tagname in
18596      CXX)
18597	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18598	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18599	    (test "X$CXX" != "Xg++"))) ; then
18600	  ac_ext=cpp
18601ac_cpp='$CXXCPP $CPPFLAGS'
18602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18605
18606
18607
18608
18609archive_cmds_need_lc_CXX=no
18610allow_undefined_flag_CXX=
18611always_export_symbols_CXX=no
18612archive_expsym_cmds_CXX=
18613export_dynamic_flag_spec_CXX=
18614hardcode_direct_CXX=no
18615hardcode_libdir_flag_spec_CXX=
18616hardcode_libdir_flag_spec_ld_CXX=
18617hardcode_libdir_separator_CXX=
18618hardcode_minus_L_CXX=no
18619hardcode_shlibpath_var_CXX=unsupported
18620hardcode_automatic_CXX=no
18621module_cmds_CXX=
18622module_expsym_cmds_CXX=
18623link_all_deplibs_CXX=unknown
18624old_archive_cmds_CXX=$old_archive_cmds
18625no_undefined_flag_CXX=
18626whole_archive_flag_spec_CXX=
18627enable_shared_with_static_runtimes_CXX=no
18628
18629# Dependencies to place before and after the object being linked:
18630predep_objects_CXX=
18631postdep_objects_CXX=
18632predeps_CXX=
18633postdeps_CXX=
18634compiler_lib_search_path_CXX=
18635
18636# Source file extension for C++ test sources.
18637ac_ext=cpp
18638
18639# Object file extension for compiled C++ test sources.
18640objext=o
18641objext_CXX=$objext
18642
18643# Code to be used in simple compile tests
18644lt_simple_compile_test_code="int some_variable = 0;\n"
18645
18646# Code to be used in simple link tests
18647lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18648
18649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18650
18651# If no C compiler was specified, use CC.
18652LTCC=${LTCC-"$CC"}
18653
18654# If no C compiler flags were specified, use CFLAGS.
18655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18656
18657# Allow CC to be a program name with arguments.
18658compiler=$CC
18659
18660
18661# save warnings/boilerplate of simple test code
18662ac_outfile=conftest.$ac_objext
18663printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665_lt_compiler_boilerplate=`cat conftest.err`
18666$rm conftest*
18667
18668ac_outfile=conftest.$ac_objext
18669printf "$lt_simple_link_test_code" >conftest.$ac_ext
18670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18671_lt_linker_boilerplate=`cat conftest.err`
18672$rm conftest*
18673
18674
18675# Allow CC to be a program name with arguments.
18676lt_save_CC=$CC
18677lt_save_LD=$LD
18678lt_save_GCC=$GCC
18679GCC=$GXX
18680lt_save_with_gnu_ld=$with_gnu_ld
18681lt_save_path_LD=$lt_cv_path_LD
18682if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18683  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18684else
18685  $as_unset lt_cv_prog_gnu_ld
18686fi
18687if test -n "${lt_cv_path_LDCXX+set}"; then
18688  lt_cv_path_LD=$lt_cv_path_LDCXX
18689else
18690  $as_unset lt_cv_path_LD
18691fi
18692test -z "${LDCXX+set}" || LD=$LDCXX
18693CC=${CXX-"c++"}
18694compiler=$CC
18695compiler_CXX=$CC
18696for cc_temp in $compiler""; do
18697  case $cc_temp in
18698    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18699    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18700    \-*) ;;
18701    *) break;;
18702  esac
18703done
18704cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18705
18706
18707# We don't want -fno-exception wen compiling C++ code, so set the
18708# no_builtin_flag separately
18709if test "$GXX" = yes; then
18710  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18711else
18712  lt_prog_compiler_no_builtin_flag_CXX=
18713fi
18714
18715if test "$GXX" = yes; then
18716  # Set up default GNU C++ configuration
18717
18718
18719# Check whether --with-gnu-ld was given.
18720if test "${with_gnu_ld+set}" = set; then
18721  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18722else
18723  with_gnu_ld=no
18724fi
18725
18726ac_prog=ld
18727if test "$GCC" = yes; then
18728  # Check if gcc -print-prog-name=ld gives a path.
18729  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18730echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18731  case $host in
18732  *-*-mingw*)
18733    # gcc leaves a trailing carriage return which upsets mingw
18734    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18735  *)
18736    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18737  esac
18738  case $ac_prog in
18739    # Accept absolute paths.
18740    [\\/]* | ?:[\\/]*)
18741      re_direlt='/[^/][^/]*/\.\./'
18742      # Canonicalize the pathname of ld
18743      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18744      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18745	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18746      done
18747      test -z "$LD" && LD="$ac_prog"
18748      ;;
18749  "")
18750    # If it fails, then pretend we aren't using GCC.
18751    ac_prog=ld
18752    ;;
18753  *)
18754    # If it is relative, then search for the first ld in PATH.
18755    with_gnu_ld=unknown
18756    ;;
18757  esac
18758elif test "$with_gnu_ld" = yes; then
18759  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18760echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18761else
18762  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18763echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18764fi
18765if test "${lt_cv_path_LD+set}" = set; then
18766  echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768  if test -z "$LD"; then
18769  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18770  for ac_dir in $PATH; do
18771    IFS="$lt_save_ifs"
18772    test -z "$ac_dir" && ac_dir=.
18773    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18774      lt_cv_path_LD="$ac_dir/$ac_prog"
18775      # Check to see if the program is GNU ld.  I'd rather use --version,
18776      # but apparently some variants of GNU ld only accept -v.
18777      # Break only if it was the GNU/non-GNU ld that we prefer.
18778      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18779      *GNU* | *'with BFD'*)
18780	test "$with_gnu_ld" != no && break
18781	;;
18782      *)
18783	test "$with_gnu_ld" != yes && break
18784	;;
18785      esac
18786    fi
18787  done
18788  IFS="$lt_save_ifs"
18789else
18790  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18791fi
18792fi
18793
18794LD="$lt_cv_path_LD"
18795if test -n "$LD"; then
18796  { echo "$as_me:$LINENO: result: $LD" >&5
18797echo "${ECHO_T}$LD" >&6; }
18798else
18799  { echo "$as_me:$LINENO: result: no" >&5
18800echo "${ECHO_T}no" >&6; }
18801fi
18802test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18803echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18804   { (exit 1); exit 1; }; }
18805{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18806echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18807if test "${lt_cv_prog_gnu_ld+set}" = set; then
18808  echo $ECHO_N "(cached) $ECHO_C" >&6
18809else
18810  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18811case `$LD -v 2>&1 </dev/null` in
18812*GNU* | *'with BFD'*)
18813  lt_cv_prog_gnu_ld=yes
18814  ;;
18815*)
18816  lt_cv_prog_gnu_ld=no
18817  ;;
18818esac
18819fi
18820{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18821echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18822with_gnu_ld=$lt_cv_prog_gnu_ld
18823
18824
18825
18826  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18827  # archiving commands below assume that GNU ld is being used.
18828  if test "$with_gnu_ld" = yes; then
18829    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18830    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18831
18832    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18833    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18834
18835    # If archive_cmds runs LD, not CC, wlarc should be empty
18836    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18837    #     investigate it a little bit more. (MM)
18838    wlarc='${wl}'
18839
18840    # ancient GNU ld didn't support --whole-archive et. al.
18841    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18842	grep 'no-whole-archive' > /dev/null; then
18843      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18844    else
18845      whole_archive_flag_spec_CXX=
18846    fi
18847  else
18848    with_gnu_ld=no
18849    wlarc=
18850
18851    # A generic and very simple default shared library creation
18852    # command for GNU C++ for the case where it uses the native
18853    # linker, instead of GNU ld.  If possible, this setting should
18854    # overridden to take advantage of the native linker features on
18855    # the platform it is being used on.
18856    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18857  fi
18858
18859  # Commands to make compiler produce verbose output that lists
18860  # what "hidden" libraries, object files and flags are used when
18861  # linking a shared library.
18862  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18863
18864else
18865  GXX=no
18866  with_gnu_ld=no
18867  wlarc=
18868fi
18869
18870# PORTME: fill in a description of your system's C++ link characteristics
18871{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18872echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18873ld_shlibs_CXX=yes
18874case $host_os in
18875  aix3*)
18876    # FIXME: insert proper C++ library support
18877    ld_shlibs_CXX=no
18878    ;;
18879  aix4* | aix5*)
18880    if test "$host_cpu" = ia64; then
18881      # On IA64, the linker does run time linking by default, so we don't
18882      # have to do anything special.
18883      aix_use_runtimelinking=no
18884      exp_sym_flag='-Bexport'
18885      no_entry_flag=""
18886    else
18887      aix_use_runtimelinking=no
18888
18889      # Test if we are trying to use run time linking or normal
18890      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18891      # need to do runtime linking.
18892      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18893	for ld_flag in $LDFLAGS; do
18894	  case $ld_flag in
18895	  *-brtl*)
18896	    aix_use_runtimelinking=yes
18897	    break
18898	    ;;
18899	  esac
18900	done
18901	;;
18902      esac
18903
18904      exp_sym_flag='-bexport'
18905      no_entry_flag='-bnoentry'
18906    fi
18907
18908    # When large executables or shared objects are built, AIX ld can
18909    # have problems creating the table of contents.  If linking a library
18910    # or program results in "error TOC overflow" add -mminimal-toc to
18911    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18912    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18913
18914    archive_cmds_CXX=''
18915    hardcode_direct_CXX=yes
18916    hardcode_libdir_separator_CXX=':'
18917    link_all_deplibs_CXX=yes
18918
18919    if test "$GXX" = yes; then
18920      case $host_os in aix4.[012]|aix4.[012].*)
18921      # We only want to do this on AIX 4.2 and lower, the check
18922      # below for broken collect2 doesn't work under 4.3+
18923	collect2name=`${CC} -print-prog-name=collect2`
18924	if test -f "$collect2name" && \
18925	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18926	then
18927	  # We have reworked collect2
18928	  hardcode_direct_CXX=yes
18929	else
18930	  # We have old collect2
18931	  hardcode_direct_CXX=unsupported
18932	  # It fails to find uninstalled libraries when the uninstalled
18933	  # path is not listed in the libpath.  Setting hardcode_minus_L
18934	  # to unsupported forces relinking
18935	  hardcode_minus_L_CXX=yes
18936	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18937	  hardcode_libdir_separator_CXX=
18938	fi
18939	;;
18940      esac
18941      shared_flag='-shared'
18942      if test "$aix_use_runtimelinking" = yes; then
18943	shared_flag="$shared_flag "'${wl}-G'
18944      fi
18945    else
18946      # not using gcc
18947      if test "$host_cpu" = ia64; then
18948	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18949	# chokes on -Wl,-G. The following line is correct:
18950	shared_flag='-G'
18951      else
18952	if test "$aix_use_runtimelinking" = yes; then
18953	  shared_flag='${wl}-G'
18954	else
18955	  shared_flag='${wl}-bM:SRE'
18956	fi
18957      fi
18958    fi
18959
18960    # It seems that -bexpall does not export symbols beginning with
18961    # underscore (_), so it is better to generate a list of symbols to export.
18962    always_export_symbols_CXX=yes
18963    if test "$aix_use_runtimelinking" = yes; then
18964      # Warning - without using the other runtime loading flags (-brtl),
18965      # -berok will link without error, but may produce a broken library.
18966      allow_undefined_flag_CXX='-berok'
18967      # Determine the default libpath from the value encoded in an empty executable.
18968      cat >conftest.$ac_ext <<_ACEOF
18969/* confdefs.h.  */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h.  */
18974
18975int
18976main ()
18977{
18978
18979  ;
18980  return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext conftest$ac_exeext
18984if { (ac_try="$ac_link"
18985case "(($ac_try" in
18986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987  *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990  (eval "$ac_link") 2>conftest.er1
18991  ac_status=$?
18992  grep -v '^ *+' conftest.er1 >conftest.err
18993  rm -f conftest.er1
18994  cat conftest.err >&5
18995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996  (exit $ac_status); } &&
18997	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18998  { (case "(($ac_try" in
18999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000  *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003  (eval "$ac_try") 2>&5
19004  ac_status=$?
19005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006  (exit $ac_status); }; } &&
19007	 { ac_try='test -s conftest$ac_exeext'
19008  { (case "(($ac_try" in
19009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010  *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013  (eval "$ac_try") 2>&5
19014  ac_status=$?
19015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016  (exit $ac_status); }; }; then
19017
19018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19019}'`
19020# Check for a 64-bit object if we didn't find anything.
19021if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19022}'`; fi
19023else
19024  echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027
19028fi
19029
19030rm -f core conftest.err conftest.$ac_objext \
19031      conftest$ac_exeext conftest.$ac_ext
19032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19033
19034      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19035
19036      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19037     else
19038      if test "$host_cpu" = ia64; then
19039	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19040	allow_undefined_flag_CXX="-z nodefs"
19041	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19042      else
19043	# Determine the default libpath from the value encoded in an empty executable.
19044	cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h.  */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h.  */
19050
19051int
19052main ()
19053{
19054
19055  ;
19056  return 0;
19057}
19058_ACEOF
19059rm -f conftest.$ac_objext conftest$ac_exeext
19060if { (ac_try="$ac_link"
19061case "(($ac_try" in
19062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063  *) ac_try_echo=$ac_try;;
19064esac
19065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066  (eval "$ac_link") 2>conftest.er1
19067  ac_status=$?
19068  grep -v '^ *+' conftest.er1 >conftest.err
19069  rm -f conftest.er1
19070  cat conftest.err >&5
19071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072  (exit $ac_status); } &&
19073	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19074  { (case "(($ac_try" in
19075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076  *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079  (eval "$ac_try") 2>&5
19080  ac_status=$?
19081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082  (exit $ac_status); }; } &&
19083	 { ac_try='test -s conftest$ac_exeext'
19084  { (case "(($ac_try" in
19085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086  *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089  (eval "$ac_try") 2>&5
19090  ac_status=$?
19091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092  (exit $ac_status); }; }; then
19093
19094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19095}'`
19096# Check for a 64-bit object if we didn't find anything.
19097if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19098}'`; fi
19099else
19100  echo "$as_me: failed program was:" >&5
19101sed 's/^/| /' conftest.$ac_ext >&5
19102
19103
19104fi
19105
19106rm -f core conftest.err conftest.$ac_objext \
19107      conftest$ac_exeext conftest.$ac_ext
19108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19109
19110	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19111	# Warning - without using the other run time loading flags,
19112	# -berok will link without error, but may produce a broken library.
19113	no_undefined_flag_CXX=' ${wl}-bernotok'
19114	allow_undefined_flag_CXX=' ${wl}-berok'
19115	# Exported symbols can be pulled into shared objects from archives
19116	whole_archive_flag_spec_CXX='$convenience'
19117	archive_cmds_need_lc_CXX=yes
19118	# This is similar to how AIX traditionally builds its shared libraries.
19119	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19120      fi
19121    fi
19122    ;;
19123
19124  beos*)
19125    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19126      allow_undefined_flag_CXX=unsupported
19127      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19128      # support --undefined.  This deserves some investigation.  FIXME
19129      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130    else
19131      ld_shlibs_CXX=no
19132    fi
19133    ;;
19134
19135  chorus*)
19136    case $cc_basename in
19137      *)
19138	# FIXME: insert proper C++ library support
19139	ld_shlibs_CXX=no
19140	;;
19141    esac
19142    ;;
19143
19144  cygwin* | mingw* | pw32*)
19145    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19146    # as there is no search path for DLLs.
19147    hardcode_libdir_flag_spec_CXX='-L$libdir'
19148    allow_undefined_flag_CXX=unsupported
19149    always_export_symbols_CXX=no
19150    enable_shared_with_static_runtimes_CXX=yes
19151
19152    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19153      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19154      # If the export-symbols file already is a .def file (1st line
19155      # is EXPORTS), use it as is; otherwise, prepend...
19156      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19157	cp $export_symbols $output_objdir/$soname.def;
19158      else
19159	echo EXPORTS > $output_objdir/$soname.def;
19160	cat $export_symbols >> $output_objdir/$soname.def;
19161      fi~
19162      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19163    else
19164      ld_shlibs_CXX=no
19165    fi
19166  ;;
19167      darwin* | rhapsody*)
19168        case $host_os in
19169        rhapsody* | darwin1.[012])
19170         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19171         ;;
19172       *) # Darwin 1.3 on
19173         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19174           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19175         else
19176           case ${MACOSX_DEPLOYMENT_TARGET} in
19177             10.[012])
19178               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19179               ;;
19180             10.*)
19181               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19182               ;;
19183           esac
19184         fi
19185         ;;
19186        esac
19187      archive_cmds_need_lc_CXX=no
19188      hardcode_direct_CXX=no
19189      hardcode_automatic_CXX=yes
19190      hardcode_shlibpath_var_CXX=unsupported
19191      whole_archive_flag_spec_CXX=''
19192      link_all_deplibs_CXX=yes
19193
19194    if test "$GXX" = yes ; then
19195      lt_int_apple_cc_single_mod=no
19196      output_verbose_link_cmd='echo'
19197      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19198       lt_int_apple_cc_single_mod=yes
19199      fi
19200      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19201       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19202      else
19203          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19204        fi
19205        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19206        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19207          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19208            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19209          else
19210            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19211          fi
19212            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19213      else
19214      case $cc_basename in
19215        xlc*)
19216         output_verbose_link_cmd='echo'
19217          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19218          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19219          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19220          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19221          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19222          ;;
19223       *)
19224         ld_shlibs_CXX=no
19225          ;;
19226      esac
19227      fi
19228        ;;
19229
19230  dgux*)
19231    case $cc_basename in
19232      ec++*)
19233	# FIXME: insert proper C++ library support
19234	ld_shlibs_CXX=no
19235	;;
19236      ghcx*)
19237	# Green Hills C++ Compiler
19238	# FIXME: insert proper C++ library support
19239	ld_shlibs_CXX=no
19240	;;
19241      *)
19242	# FIXME: insert proper C++ library support
19243	ld_shlibs_CXX=no
19244	;;
19245    esac
19246    ;;
19247  freebsd[12]*)
19248    # C++ shared libraries reported to be fairly broken before switch to ELF
19249    ld_shlibs_CXX=no
19250    ;;
19251  freebsd-elf*)
19252    archive_cmds_need_lc_CXX=no
19253    ;;
19254  freebsd* | kfreebsd*-gnu | dragonfly*)
19255    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19256    # conventions
19257    ld_shlibs_CXX=yes
19258    ;;
19259  gnu*)
19260    ;;
19261  hpux9*)
19262    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263    hardcode_libdir_separator_CXX=:
19264    export_dynamic_flag_spec_CXX='${wl}-E'
19265    hardcode_direct_CXX=yes
19266    hardcode_minus_L_CXX=yes # Not in the search PATH,
19267				# but as the default
19268				# location of the library.
19269
19270    case $cc_basename in
19271    CC*)
19272      # FIXME: insert proper C++ library support
19273      ld_shlibs_CXX=no
19274      ;;
19275    aCC*)
19276      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19277      # Commands to make compiler produce verbose output that lists
19278      # what "hidden" libraries, object files and flags are used when
19279      # linking a shared library.
19280      #
19281      # There doesn't appear to be a way to prevent this compiler from
19282      # explicitly linking system object files so we need to strip them
19283      # from the output so that they don't get included in the library
19284      # dependencies.
19285      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19286      ;;
19287    *)
19288      if test "$GXX" = yes; then
19289        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19290      else
19291        # FIXME: insert proper C++ library support
19292        ld_shlibs_CXX=no
19293      fi
19294      ;;
19295    esac
19296    ;;
19297  hpux10*|hpux11*)
19298    if test $with_gnu_ld = no; then
19299      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19300      hardcode_libdir_separator_CXX=:
19301
19302      case $host_cpu in
19303      hppa*64*|ia64*)
19304	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19305        ;;
19306      *)
19307	export_dynamic_flag_spec_CXX='${wl}-E'
19308        ;;
19309      esac
19310    fi
19311    case $host_cpu in
19312    hppa*64*|ia64*)
19313      hardcode_direct_CXX=no
19314      hardcode_shlibpath_var_CXX=no
19315      ;;
19316    *)
19317      hardcode_direct_CXX=yes
19318      hardcode_minus_L_CXX=yes # Not in the search PATH,
19319					      # but as the default
19320					      # location of the library.
19321      ;;
19322    esac
19323
19324    case $cc_basename in
19325      CC*)
19326	# FIXME: insert proper C++ library support
19327	ld_shlibs_CXX=no
19328	;;
19329      aCC*)
19330	case $host_cpu in
19331	hppa*64*)
19332	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19333	  ;;
19334	ia64*)
19335	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19336	  ;;
19337	*)
19338	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19339	  ;;
19340	esac
19341	# Commands to make compiler produce verbose output that lists
19342	# what "hidden" libraries, object files and flags are used when
19343	# linking a shared library.
19344	#
19345	# There doesn't appear to be a way to prevent this compiler from
19346	# explicitly linking system object files so we need to strip them
19347	# from the output so that they don't get included in the library
19348	# dependencies.
19349	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19350	;;
19351      *)
19352	if test "$GXX" = yes; then
19353	  if test $with_gnu_ld = no; then
19354	    case $host_cpu in
19355	    hppa*64*)
19356	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19357	      ;;
19358	    ia64*)
19359	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19360	      ;;
19361	    *)
19362	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19363	      ;;
19364	    esac
19365	  fi
19366	else
19367	  # FIXME: insert proper C++ library support
19368	  ld_shlibs_CXX=no
19369	fi
19370	;;
19371    esac
19372    ;;
19373  interix3*)
19374    hardcode_direct_CXX=no
19375    hardcode_shlibpath_var_CXX=no
19376    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19377    export_dynamic_flag_spec_CXX='${wl}-E'
19378    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19379    # Instead, shared libraries are loaded at an image base (0x10000000 by
19380    # default) and relocated if they conflict, which is a slow very memory
19381    # consuming and fragmenting process.  To avoid this, we pick a random,
19382    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19383    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19384    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19385    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19386    ;;
19387  irix5* | irix6*)
19388    case $cc_basename in
19389      CC*)
19390	# SGI C++
19391	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19392
19393	# Archives containing C++ object files must be created using
19394	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19395	# necessary to make sure instantiated templates are included
19396	# in the archive.
19397	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19398	;;
19399      *)
19400	if test "$GXX" = yes; then
19401	  if test "$with_gnu_ld" = no; then
19402	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19403	  else
19404	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
19405	  fi
19406	fi
19407	link_all_deplibs_CXX=yes
19408	;;
19409    esac
19410    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19411    hardcode_libdir_separator_CXX=:
19412    ;;
19413  linux*)
19414    case $cc_basename in
19415      KCC*)
19416	# Kuck and Associates, Inc. (KAI) C++ Compiler
19417
19418	# KCC will only create a shared library if the output file
19419	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19420	# to its proper name (with version) after linking.
19421	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19422	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19423	# Commands to make compiler produce verbose output that lists
19424	# what "hidden" libraries, object files and flags are used when
19425	# linking a shared library.
19426	#
19427	# There doesn't appear to be a way to prevent this compiler from
19428	# explicitly linking system object files so we need to strip them
19429	# from the output so that they don't get included in the library
19430	# dependencies.
19431	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19432
19433	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19434	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435
19436	# Archives containing C++ object files must be created using
19437	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19439	;;
19440      icpc*)
19441	# Intel C++
19442	with_gnu_ld=yes
19443	# version 8.0 and above of icpc choke on multiply defined symbols
19444	# if we add $predep_objects and $postdep_objects, however 7.1 and
19445	# earlier do not add the objects themselves.
19446	case `$CC -V 2>&1` in
19447	*"Version 7."*)
19448  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19450	  ;;
19451	*)  # Version 8.0 or newer
19452	  tmp_idyn=
19453	  case $host_cpu in
19454	    ia64*) tmp_idyn=' -i_dynamic';;
19455	  esac
19456  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19457	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19458	  ;;
19459	esac
19460	archive_cmds_need_lc_CXX=no
19461	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19462	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19463	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19464	;;
19465      pgCC*)
19466        # Portland Group C++ compiler
19467	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19468  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19469
19470	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19471	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19472	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19473        ;;
19474      cxx*)
19475	# Compaq C++
19476	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19477	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19478
19479	runpath_var=LD_RUN_PATH
19480	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19481	hardcode_libdir_separator_CXX=:
19482
19483	# Commands to make compiler produce verbose output that lists
19484	# what "hidden" libraries, object files and flags are used when
19485	# linking a shared library.
19486	#
19487	# There doesn't appear to be a way to prevent this compiler from
19488	# explicitly linking system object files so we need to strip them
19489	# from the output so that they don't get included in the library
19490	# dependencies.
19491	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19492	;;
19493    esac
19494    ;;
19495  lynxos*)
19496    # FIXME: insert proper C++ library support
19497    ld_shlibs_CXX=no
19498    ;;
19499  m88k*)
19500    # FIXME: insert proper C++ library support
19501    ld_shlibs_CXX=no
19502    ;;
19503  mvs*)
19504    case $cc_basename in
19505      cxx*)
19506	# FIXME: insert proper C++ library support
19507	ld_shlibs_CXX=no
19508	;;
19509      *)
19510	# FIXME: insert proper C++ library support
19511	ld_shlibs_CXX=no
19512	;;
19513    esac
19514    ;;
19515  netbsd*)
19516    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19517      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19518      wlarc=
19519      hardcode_libdir_flag_spec_CXX='-R$libdir'
19520      hardcode_direct_CXX=yes
19521      hardcode_shlibpath_var_CXX=no
19522    fi
19523    # Workaround some broken pre-1.5 toolchains
19524    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19525    ;;
19526  openbsd2*)
19527    # C++ shared libraries are fairly broken
19528    ld_shlibs_CXX=no
19529    ;;
19530  openbsd*)
19531    hardcode_direct_CXX=yes
19532    hardcode_shlibpath_var_CXX=no
19533    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19534    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19535    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19536      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19537      export_dynamic_flag_spec_CXX='${wl}-E'
19538      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19539    fi
19540    output_verbose_link_cmd='echo'
19541    ;;
19542  osf3*)
19543    case $cc_basename in
19544      KCC*)
19545	# Kuck and Associates, Inc. (KAI) C++ Compiler
19546
19547	# KCC will only create a shared library if the output file
19548	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19549	# to its proper name (with version) after linking.
19550	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19551
19552	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19553	hardcode_libdir_separator_CXX=:
19554
19555	# Archives containing C++ object files must be created using
19556	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19557	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19558
19559	;;
19560      RCC*)
19561	# Rational C++ 2.4.1
19562	# FIXME: insert proper C++ library support
19563	ld_shlibs_CXX=no
19564	;;
19565      cxx*)
19566	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19567	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19568
19569	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19570	hardcode_libdir_separator_CXX=:
19571
19572	# Commands to make compiler produce verbose output that lists
19573	# what "hidden" libraries, object files and flags are used when
19574	# linking a shared library.
19575	#
19576	# There doesn't appear to be a way to prevent this compiler from
19577	# explicitly linking system object files so we need to strip them
19578	# from the output so that they don't get included in the library
19579	# dependencies.
19580	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19581	;;
19582      *)
19583	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19584	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19585	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19586
19587	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19588	  hardcode_libdir_separator_CXX=:
19589
19590	  # Commands to make compiler produce verbose output that lists
19591	  # what "hidden" libraries, object files and flags are used when
19592	  # linking a shared library.
19593	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19594
19595	else
19596	  # FIXME: insert proper C++ library support
19597	  ld_shlibs_CXX=no
19598	fi
19599	;;
19600    esac
19601    ;;
19602  osf4* | osf5*)
19603    case $cc_basename in
19604      KCC*)
19605	# Kuck and Associates, Inc. (KAI) C++ Compiler
19606
19607	# KCC will only create a shared library if the output file
19608	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19609	# to its proper name (with version) after linking.
19610	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19611
19612	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19613	hardcode_libdir_separator_CXX=:
19614
19615	# Archives containing C++ object files must be created using
19616	# the KAI C++ compiler.
19617	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19618	;;
19619      RCC*)
19620	# Rational C++ 2.4.1
19621	# FIXME: insert proper C++ library support
19622	ld_shlibs_CXX=no
19623	;;
19624      cxx*)
19625	allow_undefined_flag_CXX=' -expect_unresolved \*'
19626	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19627	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19628	  echo "-hidden">> $lib.exp~
19629	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19630	  $rm $lib.exp'
19631
19632	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19633	hardcode_libdir_separator_CXX=:
19634
19635	# Commands to make compiler produce verbose output that lists
19636	# what "hidden" libraries, object files and flags are used when
19637	# linking a shared library.
19638	#
19639	# There doesn't appear to be a way to prevent this compiler from
19640	# explicitly linking system object files so we need to strip them
19641	# from the output so that they don't get included in the library
19642	# dependencies.
19643	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19644	;;
19645      *)
19646	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19647	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19648	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19649
19650	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19651	  hardcode_libdir_separator_CXX=:
19652
19653	  # Commands to make compiler produce verbose output that lists
19654	  # what "hidden" libraries, object files and flags are used when
19655	  # linking a shared library.
19656	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19657
19658	else
19659	  # FIXME: insert proper C++ library support
19660	  ld_shlibs_CXX=no
19661	fi
19662	;;
19663    esac
19664    ;;
19665  psos*)
19666    # FIXME: insert proper C++ library support
19667    ld_shlibs_CXX=no
19668    ;;
19669  sunos4*)
19670    case $cc_basename in
19671      CC*)
19672	# Sun C++ 4.x
19673	# FIXME: insert proper C++ library support
19674	ld_shlibs_CXX=no
19675	;;
19676      lcc*)
19677	# Lucid
19678	# FIXME: insert proper C++ library support
19679	ld_shlibs_CXX=no
19680	;;
19681      *)
19682	# FIXME: insert proper C++ library support
19683	ld_shlibs_CXX=no
19684	;;
19685    esac
19686    ;;
19687  solaris*)
19688    case $cc_basename in
19689      CC*)
19690	# Sun C++ 4.2, 5.x and Centerline C++
19691        archive_cmds_need_lc_CXX=yes
19692	no_undefined_flag_CXX=' -zdefs'
19693	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19694	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19695	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19696
19697	hardcode_libdir_flag_spec_CXX='-R$libdir'
19698	hardcode_shlibpath_var_CXX=no
19699	case $host_os in
19700	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19701	  *)
19702	    # The C++ compiler is used as linker so we must use $wl
19703	    # flag to pass the commands to the underlying system
19704	    # linker. We must also pass each convience library through
19705	    # to the system linker between allextract/defaultextract.
19706	    # The C++ compiler will combine linker options so we
19707	    # cannot just pass the convience library names through
19708	    # without $wl.
19709	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19710	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19711	    ;;
19712	esac
19713	link_all_deplibs_CXX=yes
19714
19715	output_verbose_link_cmd='echo'
19716
19717	# Archives containing C++ object files must be created using
19718	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19719	# necessary to make sure instantiated templates are included
19720	# in the archive.
19721	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19722	;;
19723      gcx*)
19724	# Green Hills C++ Compiler
19725	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19726
19727	# The C++ compiler must be used to create the archive.
19728	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19729	;;
19730      *)
19731	# GNU C++ compiler with Solaris linker
19732	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19733	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19734	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19735	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19736	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19738
19739	    # Commands to make compiler produce verbose output that lists
19740	    # what "hidden" libraries, object files and flags are used when
19741	    # linking a shared library.
19742	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19743	  else
19744	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19745	    # platform.
19746	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19747	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19748		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19749
19750	    # Commands to make compiler produce verbose output that lists
19751	    # what "hidden" libraries, object files and flags are used when
19752	    # linking a shared library.
19753	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19754	  fi
19755
19756	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19757	fi
19758	;;
19759    esac
19760    ;;
19761  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19762    no_undefined_flag_CXX='${wl}-z,text'
19763    archive_cmds_need_lc_CXX=no
19764    hardcode_shlibpath_var_CXX=no
19765    runpath_var='LD_RUN_PATH'
19766
19767    case $cc_basename in
19768      CC*)
19769	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19771	;;
19772      *)
19773	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19775	;;
19776    esac
19777    ;;
19778  sysv5* | sco3.2v5* | sco5v6*)
19779    # Note: We can NOT use -z defs as we might desire, because we do not
19780    # link with -lc, and that would cause any symbols used from libc to
19781    # always be unresolved, which means just about no library would
19782    # ever link correctly.  If we're not using GNU ld we use -z text
19783    # though, which does catch some bad symbols but isn't as heavy-handed
19784    # as -z defs.
19785    # For security reasons, it is highly recommended that you always
19786    # use absolute paths for naming shared libraries, and exclude the
19787    # DT_RUNPATH tag from executables and libraries.  But doing so
19788    # requires that you compile everything twice, which is a pain.
19789    # So that behaviour is only enabled if SCOABSPATH is set to a
19790    # non-empty value in the environment.  Most likely only useful for
19791    # creating official distributions of packages.
19792    # This is a hack until libtool officially supports absolute path
19793    # names for shared libraries.
19794    no_undefined_flag_CXX='${wl}-z,text'
19795    allow_undefined_flag_CXX='${wl}-z,nodefs'
19796    archive_cmds_need_lc_CXX=no
19797    hardcode_shlibpath_var_CXX=no
19798    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19799    hardcode_libdir_separator_CXX=':'
19800    link_all_deplibs_CXX=yes
19801    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19802    runpath_var='LD_RUN_PATH'
19803
19804    case $cc_basename in
19805      CC*)
19806	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19808	;;
19809      *)
19810	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19812	;;
19813    esac
19814    ;;
19815  tandem*)
19816    case $cc_basename in
19817      NCC*)
19818	# NonStop-UX NCC 3.20
19819	# FIXME: insert proper C++ library support
19820	ld_shlibs_CXX=no
19821	;;
19822      *)
19823	# FIXME: insert proper C++ library support
19824	ld_shlibs_CXX=no
19825	;;
19826    esac
19827    ;;
19828  vxworks*)
19829    # FIXME: insert proper C++ library support
19830    ld_shlibs_CXX=no
19831    ;;
19832  *)
19833    # FIXME: insert proper C++ library support
19834    ld_shlibs_CXX=no
19835    ;;
19836esac
19837{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19839test "$ld_shlibs_CXX" = no && can_build_shared=no
19840
19841GCC_CXX="$GXX"
19842LD_CXX="$LD"
19843
19844
19845cat > conftest.$ac_ext <<EOF
19846class Foo
19847{
19848public:
19849  Foo (void) { a = 0; }
19850private:
19851  int a;
19852};
19853EOF
19854
19855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856  (eval $ac_compile) 2>&5
19857  ac_status=$?
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); }; then
19860  # Parse the compiler output and extract the necessary
19861  # objects, libraries and library flags.
19862
19863  # Sentinel used to keep track of whether or not we are before
19864  # the conftest object file.
19865  pre_test_object_deps_done=no
19866
19867  # The `*' in the case matches for architectures that use `case' in
19868  # $output_verbose_cmd can trigger glob expansion during the loop
19869  # eval without this substitution.
19870  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19871
19872  for p in `eval $output_verbose_link_cmd`; do
19873    case $p in
19874
19875    -L* | -R* | -l*)
19876       # Some compilers place space between "-{L,R}" and the path.
19877       # Remove the space.
19878       if test $p = "-L" \
19879	  || test $p = "-R"; then
19880	 prev=$p
19881	 continue
19882       else
19883	 prev=
19884       fi
19885
19886       if test "$pre_test_object_deps_done" = no; then
19887	 case $p in
19888	 -L* | -R*)
19889	   # Internal compiler library paths should come after those
19890	   # provided the user.  The postdeps already come after the
19891	   # user supplied libs so there is no need to process them.
19892	   if test -z "$compiler_lib_search_path_CXX"; then
19893	     compiler_lib_search_path_CXX="${prev}${p}"
19894	   else
19895	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19896	   fi
19897	   ;;
19898	 # The "-l" case would never come before the object being
19899	 # linked, so don't bother handling this case.
19900	 esac
19901       else
19902	 if test -z "$postdeps_CXX"; then
19903	   postdeps_CXX="${prev}${p}"
19904	 else
19905	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19906	 fi
19907       fi
19908       ;;
19909
19910    *.$objext)
19911       # This assumes that the test object file only shows up
19912       # once in the compiler output.
19913       if test "$p" = "conftest.$objext"; then
19914	 pre_test_object_deps_done=yes
19915	 continue
19916       fi
19917
19918       if test "$pre_test_object_deps_done" = no; then
19919	 if test -z "$predep_objects_CXX"; then
19920	   predep_objects_CXX="$p"
19921	 else
19922	   predep_objects_CXX="$predep_objects_CXX $p"
19923	 fi
19924       else
19925	 if test -z "$postdep_objects_CXX"; then
19926	   postdep_objects_CXX="$p"
19927	 else
19928	   postdep_objects_CXX="$postdep_objects_CXX $p"
19929	 fi
19930       fi
19931       ;;
19932
19933    *) ;; # Ignore the rest.
19934
19935    esac
19936  done
19937
19938  # Clean up.
19939  rm -f a.out a.exe
19940else
19941  echo "libtool.m4: error: problem compiling CXX test program"
19942fi
19943
19944$rm -f confest.$objext
19945
19946# PORTME: override above test on systems where it is broken
19947case $host_os in
19948interix3*)
19949  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19950  # hack all around it, let's just trust "g++" to DTRT.
19951  predep_objects_CXX=
19952  postdep_objects_CXX=
19953  postdeps_CXX=
19954  ;;
19955
19956solaris*)
19957  case $cc_basename in
19958  CC*)
19959    # Adding this requires a known-good setup of shared libraries for
19960    # Sun compiler versions before 5.6, else PIC objects from an old
19961    # archive will be linked into the output, leading to subtle bugs.
19962    postdeps_CXX='-lCstd -lCrun'
19963    ;;
19964  esac
19965  ;;
19966esac
19967
19968
19969case " $postdeps_CXX " in
19970*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19971esac
19972
19973lt_prog_compiler_wl_CXX=
19974lt_prog_compiler_pic_CXX=
19975lt_prog_compiler_static_CXX=
19976
19977{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19978echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19979
19980  # C++ specific cases for pic, static, wl, etc.
19981  if test "$GXX" = yes; then
19982    lt_prog_compiler_wl_CXX='-Wl,'
19983    lt_prog_compiler_static_CXX='-static'
19984
19985    case $host_os in
19986    aix*)
19987      # All AIX code is PIC.
19988      if test "$host_cpu" = ia64; then
19989	# AIX 5 now supports IA64 processor
19990	lt_prog_compiler_static_CXX='-Bstatic'
19991      fi
19992      ;;
19993    amigaos*)
19994      # FIXME: we need at least 68020 code to build shared libraries, but
19995      # adding the `-m68020' flag to GCC prevents building anything better,
19996      # like `-m68040'.
19997      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19998      ;;
19999    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20000      # PIC is the default for these OSes.
20001      ;;
20002    mingw* | os2* | pw32*)
20003      # This hack is so that the source file can tell whether it is being
20004      # built for inclusion in a dll (and should export symbols for example).
20005      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20006      ;;
20007    darwin* | rhapsody*)
20008      # PIC is the default on this platform
20009      # Common symbols not allowed in MH_DYLIB files
20010      lt_prog_compiler_pic_CXX='-fno-common'
20011      ;;
20012    *djgpp*)
20013      # DJGPP does not support shared libraries at all
20014      lt_prog_compiler_pic_CXX=
20015      ;;
20016    interix3*)
20017      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20018      # Instead, we relocate shared libraries at runtime.
20019      ;;
20020    sysv4*MP*)
20021      if test -d /usr/nec; then
20022	lt_prog_compiler_pic_CXX=-Kconform_pic
20023      fi
20024      ;;
20025    hpux*)
20026      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20027      # not for PA HP-UX.
20028      case $host_cpu in
20029      hppa*64*|ia64*)
20030	;;
20031      *)
20032	lt_prog_compiler_pic_CXX='-fPIC'
20033	;;
20034      esac
20035      ;;
20036    *)
20037      lt_prog_compiler_pic_CXX='-fPIC'
20038      ;;
20039    esac
20040  else
20041    case $host_os in
20042      aix4* | aix5*)
20043	# All AIX code is PIC.
20044	if test "$host_cpu" = ia64; then
20045	  # AIX 5 now supports IA64 processor
20046	  lt_prog_compiler_static_CXX='-Bstatic'
20047	else
20048	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20049	fi
20050	;;
20051      chorus*)
20052	case $cc_basename in
20053	cxch68*)
20054	  # Green Hills C++ Compiler
20055	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20056	  ;;
20057	esac
20058	;;
20059       darwin*)
20060         # PIC is the default on this platform
20061         # Common symbols not allowed in MH_DYLIB files
20062         case $cc_basename in
20063           xlc*)
20064           lt_prog_compiler_pic_CXX='-qnocommon'
20065           lt_prog_compiler_wl_CXX='-Wl,'
20066           ;;
20067         esac
20068       ;;
20069      dgux*)
20070	case $cc_basename in
20071	  ec++*)
20072	    lt_prog_compiler_pic_CXX='-KPIC'
20073	    ;;
20074	  ghcx*)
20075	    # Green Hills C++ Compiler
20076	    lt_prog_compiler_pic_CXX='-pic'
20077	    ;;
20078	  *)
20079	    ;;
20080	esac
20081	;;
20082      freebsd* | kfreebsd*-gnu | dragonfly*)
20083	# FreeBSD uses GNU C++
20084	;;
20085      hpux9* | hpux10* | hpux11*)
20086	case $cc_basename in
20087	  CC*)
20088	    lt_prog_compiler_wl_CXX='-Wl,'
20089	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20090	    if test "$host_cpu" != ia64; then
20091	      lt_prog_compiler_pic_CXX='+Z'
20092	    fi
20093	    ;;
20094	  aCC*)
20095	    lt_prog_compiler_wl_CXX='-Wl,'
20096	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20097	    case $host_cpu in
20098	    hppa*64*|ia64*)
20099	      # +Z the default
20100	      ;;
20101	    *)
20102	      lt_prog_compiler_pic_CXX='+Z'
20103	      ;;
20104	    esac
20105	    ;;
20106	  *)
20107	    ;;
20108	esac
20109	;;
20110      interix*)
20111	# This is c89, which is MS Visual C++ (no shared libs)
20112	# Anyone wants to do a port?
20113	;;
20114      irix5* | irix6* | nonstopux*)
20115	case $cc_basename in
20116	  CC*)
20117	    lt_prog_compiler_wl_CXX='-Wl,'
20118	    lt_prog_compiler_static_CXX='-non_shared'
20119	    # CC pic flag -KPIC is the default.
20120	    ;;
20121	  *)
20122	    ;;
20123	esac
20124	;;
20125      linux*)
20126	case $cc_basename in
20127	  KCC*)
20128	    # KAI C++ Compiler
20129	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20130	    lt_prog_compiler_pic_CXX='-fPIC'
20131	    ;;
20132	  icpc* | ecpc*)
20133	    # Intel C++
20134	    lt_prog_compiler_wl_CXX='-Wl,'
20135	    lt_prog_compiler_pic_CXX='-KPIC'
20136	    lt_prog_compiler_static_CXX='-static'
20137	    ;;
20138	  pgCC*)
20139	    # Portland Group C++ compiler.
20140	    lt_prog_compiler_wl_CXX='-Wl,'
20141	    lt_prog_compiler_pic_CXX='-fpic'
20142	    lt_prog_compiler_static_CXX='-Bstatic'
20143	    ;;
20144	  cxx*)
20145	    # Compaq C++
20146	    # Make sure the PIC flag is empty.  It appears that all Alpha
20147	    # Linux and Compaq Tru64 Unix objects are PIC.
20148	    lt_prog_compiler_pic_CXX=
20149	    lt_prog_compiler_static_CXX='-non_shared'
20150	    ;;
20151	  *)
20152	    ;;
20153	esac
20154	;;
20155      lynxos*)
20156	;;
20157      m88k*)
20158	;;
20159      mvs*)
20160	case $cc_basename in
20161	  cxx*)
20162	    lt_prog_compiler_pic_CXX='-W c,exportall'
20163	    ;;
20164	  *)
20165	    ;;
20166	esac
20167	;;
20168      netbsd*)
20169	;;
20170      osf3* | osf4* | osf5*)
20171	case $cc_basename in
20172	  KCC*)
20173	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20174	    ;;
20175	  RCC*)
20176	    # Rational C++ 2.4.1
20177	    lt_prog_compiler_pic_CXX='-pic'
20178	    ;;
20179	  cxx*)
20180	    # Digital/Compaq C++
20181	    lt_prog_compiler_wl_CXX='-Wl,'
20182	    # Make sure the PIC flag is empty.  It appears that all Alpha
20183	    # Linux and Compaq Tru64 Unix objects are PIC.
20184	    lt_prog_compiler_pic_CXX=
20185	    lt_prog_compiler_static_CXX='-non_shared'
20186	    ;;
20187	  *)
20188	    ;;
20189	esac
20190	;;
20191      psos*)
20192	;;
20193      solaris*)
20194	case $cc_basename in
20195	  CC*)
20196	    # Sun C++ 4.2, 5.x and Centerline C++
20197	    lt_prog_compiler_pic_CXX='-KPIC'
20198	    lt_prog_compiler_static_CXX='-Bstatic'
20199	    lt_prog_compiler_wl_CXX='-Qoption ld '
20200	    ;;
20201	  gcx*)
20202	    # Green Hills C++ Compiler
20203	    lt_prog_compiler_pic_CXX='-PIC'
20204	    ;;
20205	  *)
20206	    ;;
20207	esac
20208	;;
20209      sunos4*)
20210	case $cc_basename in
20211	  CC*)
20212	    # Sun C++ 4.x
20213	    lt_prog_compiler_pic_CXX='-pic'
20214	    lt_prog_compiler_static_CXX='-Bstatic'
20215	    ;;
20216	  lcc*)
20217	    # Lucid
20218	    lt_prog_compiler_pic_CXX='-pic'
20219	    ;;
20220	  *)
20221	    ;;
20222	esac
20223	;;
20224      tandem*)
20225	case $cc_basename in
20226	  NCC*)
20227	    # NonStop-UX NCC 3.20
20228	    lt_prog_compiler_pic_CXX='-KPIC'
20229	    ;;
20230	  *)
20231	    ;;
20232	esac
20233	;;
20234      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20235	case $cc_basename in
20236	  CC*)
20237	    lt_prog_compiler_wl_CXX='-Wl,'
20238	    lt_prog_compiler_pic_CXX='-KPIC'
20239	    lt_prog_compiler_static_CXX='-Bstatic'
20240	    ;;
20241	esac
20242	;;
20243      vxworks*)
20244	;;
20245      *)
20246	lt_prog_compiler_can_build_shared_CXX=no
20247	;;
20248    esac
20249  fi
20250
20251{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20252echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20253
20254#
20255# Check to make sure the PIC flag actually works.
20256#
20257if test -n "$lt_prog_compiler_pic_CXX"; then
20258
20259{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20260echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20261if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20262  echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264  lt_prog_compiler_pic_works_CXX=no
20265  ac_outfile=conftest.$ac_objext
20266   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20267   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20268   # Insert the option either (1) after the last *FLAGS variable, or
20269   # (2) before a word containing "conftest.", or (3) at the end.
20270   # Note that $ac_compile itself does not contain backslashes and begins
20271   # with a dollar sign (not a hyphen), so the echo should work correctly.
20272   # The option is referenced via a variable to avoid confusing sed.
20273   lt_compile=`echo "$ac_compile" | $SED \
20274   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20275   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20276   -e 's:$: $lt_compiler_flag:'`
20277   (eval echo "\"\$as_me:20277: $lt_compile\"" >&5)
20278   (eval "$lt_compile" 2>conftest.err)
20279   ac_status=$?
20280   cat conftest.err >&5
20281   echo "$as_me:20281: \$? = $ac_status" >&5
20282   if (exit $ac_status) && test -s "$ac_outfile"; then
20283     # The compiler can only warn and ignore the option if not recognized
20284     # So say no if there are warnings other than the usual output.
20285     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20286     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20287     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20288       lt_prog_compiler_pic_works_CXX=yes
20289     fi
20290   fi
20291   $rm conftest*
20292
20293fi
20294{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20295echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20296
20297if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20298    case $lt_prog_compiler_pic_CXX in
20299     "" | " "*) ;;
20300     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20301     esac
20302else
20303    lt_prog_compiler_pic_CXX=
20304     lt_prog_compiler_can_build_shared_CXX=no
20305fi
20306
20307fi
20308case $host_os in
20309  # For platforms which do not support PIC, -DPIC is meaningless:
20310  *djgpp*)
20311    lt_prog_compiler_pic_CXX=
20312    ;;
20313  *)
20314    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20315    ;;
20316esac
20317
20318#
20319# Check to make sure the static flag actually works.
20320#
20321wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20322{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20323echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20324if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20325  echo $ECHO_N "(cached) $ECHO_C" >&6
20326else
20327  lt_prog_compiler_static_works_CXX=no
20328   save_LDFLAGS="$LDFLAGS"
20329   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20330   printf "$lt_simple_link_test_code" > conftest.$ac_ext
20331   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20332     # The linker can only warn and ignore the option if not recognized
20333     # So say no if there are warnings
20334     if test -s conftest.err; then
20335       # Append any errors to the config.log.
20336       cat conftest.err 1>&5
20337       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20338       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20339       if diff conftest.exp conftest.er2 >/dev/null; then
20340         lt_prog_compiler_static_works_CXX=yes
20341       fi
20342     else
20343       lt_prog_compiler_static_works_CXX=yes
20344     fi
20345   fi
20346   $rm conftest*
20347   LDFLAGS="$save_LDFLAGS"
20348
20349fi
20350{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20351echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20352
20353if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20354    :
20355else
20356    lt_prog_compiler_static_CXX=
20357fi
20358
20359
20360{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20361echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20362if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20363  echo $ECHO_N "(cached) $ECHO_C" >&6
20364else
20365  lt_cv_prog_compiler_c_o_CXX=no
20366   $rm -r conftest 2>/dev/null
20367   mkdir conftest
20368   cd conftest
20369   mkdir out
20370   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20371
20372   lt_compiler_flag="-o out/conftest2.$ac_objext"
20373   # Insert the option either (1) after the last *FLAGS variable, or
20374   # (2) before a word containing "conftest.", or (3) at the end.
20375   # Note that $ac_compile itself does not contain backslashes and begins
20376   # with a dollar sign (not a hyphen), so the echo should work correctly.
20377   lt_compile=`echo "$ac_compile" | $SED \
20378   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20380   -e 's:$: $lt_compiler_flag:'`
20381   (eval echo "\"\$as_me:20381: $lt_compile\"" >&5)
20382   (eval "$lt_compile" 2>out/conftest.err)
20383   ac_status=$?
20384   cat out/conftest.err >&5
20385   echo "$as_me:20385: \$? = $ac_status" >&5
20386   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20387   then
20388     # The compiler can only warn and ignore the option if not recognized
20389     # So say no if there are warnings
20390     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20391     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20392     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20393       lt_cv_prog_compiler_c_o_CXX=yes
20394     fi
20395   fi
20396   chmod u+w . 2>&5
20397   $rm conftest*
20398   # SGI C++ compiler will create directory out/ii_files/ for
20399   # template instantiation
20400   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20401   $rm out/* && rmdir out
20402   cd ..
20403   rmdir conftest
20404   $rm conftest*
20405
20406fi
20407{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20408echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20409
20410
20411hard_links="nottested"
20412if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20413  # do not overwrite the value of need_locks provided by the user
20414  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20415echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20416  hard_links=yes
20417  $rm conftest*
20418  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20419  touch conftest.a
20420  ln conftest.a conftest.b 2>&5 || hard_links=no
20421  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20422  { echo "$as_me:$LINENO: result: $hard_links" >&5
20423echo "${ECHO_T}$hard_links" >&6; }
20424  if test "$hard_links" = no; then
20425    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20426echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20427    need_locks=warn
20428  fi
20429else
20430  need_locks=no
20431fi
20432
20433{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20434echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20435
20436  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20437  case $host_os in
20438  aix4* | aix5*)
20439    # If we're using GNU nm, then we don't want the "-C" option.
20440    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20441    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20442      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20443    else
20444      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20445    fi
20446    ;;
20447  pw32*)
20448    export_symbols_cmds_CXX="$ltdll_cmds"
20449  ;;
20450  cygwin* | mingw*)
20451    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20452  ;;
20453  *)
20454    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20455  ;;
20456  esac
20457
20458{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20459echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20460test "$ld_shlibs_CXX" = no && can_build_shared=no
20461
20462#
20463# Do we need to explicitly link libc?
20464#
20465case "x$archive_cmds_need_lc_CXX" in
20466x|xyes)
20467  # Assume -lc should be added
20468  archive_cmds_need_lc_CXX=yes
20469
20470  if test "$enable_shared" = yes && test "$GCC" = yes; then
20471    case $archive_cmds_CXX in
20472    *'~'*)
20473      # FIXME: we may have to deal with multi-command sequences.
20474      ;;
20475    '$CC '*)
20476      # Test whether the compiler implicitly links with -lc since on some
20477      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20478      # to ld, don't add -lc before -lgcc.
20479      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20480echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20481      $rm conftest*
20482      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20483
20484      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485  (eval $ac_compile) 2>&5
20486  ac_status=$?
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); } 2>conftest.err; then
20489        soname=conftest
20490        lib=conftest
20491        libobjs=conftest.$ac_objext
20492        deplibs=
20493        wl=$lt_prog_compiler_wl_CXX
20494	pic_flag=$lt_prog_compiler_pic_CXX
20495        compiler_flags=-v
20496        linker_flags=-v
20497        verstring=
20498        output_objdir=.
20499        libname=conftest
20500        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20501        allow_undefined_flag_CXX=
20502        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20503  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20504  ac_status=$?
20505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506  (exit $ac_status); }
20507        then
20508	  archive_cmds_need_lc_CXX=no
20509        else
20510	  archive_cmds_need_lc_CXX=yes
20511        fi
20512        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20513      else
20514        cat conftest.err 1>&5
20515      fi
20516      $rm conftest*
20517      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20518echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20519      ;;
20520    esac
20521  fi
20522  ;;
20523esac
20524
20525{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20526echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20527library_names_spec=
20528libname_spec='lib$name'
20529soname_spec=
20530shrext_cmds=".so"
20531postinstall_cmds=
20532postuninstall_cmds=
20533finish_cmds=
20534finish_eval=
20535shlibpath_var=
20536shlibpath_overrides_runpath=unknown
20537version_type=none
20538dynamic_linker="$host_os ld.so"
20539sys_lib_dlsearch_path_spec="/lib /usr/lib"
20540if test "$GCC" = yes; then
20541  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20542  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20543    # if the path contains ";" then we assume it to be the separator
20544    # otherwise default to the standard path separator (i.e. ":") - it is
20545    # assumed that no part of a normal pathname contains ";" but that should
20546    # okay in the real world where ";" in dirpaths is itself problematic.
20547    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20548  else
20549    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20550  fi
20551else
20552  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20553fi
20554need_lib_prefix=unknown
20555hardcode_into_libs=no
20556
20557# when you set need_version to no, make sure it does not cause -set_version
20558# flags to be left without arguments
20559need_version=unknown
20560
20561case $host_os in
20562aix3*)
20563  version_type=linux
20564  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20565  shlibpath_var=LIBPATH
20566
20567  # AIX 3 has no versioning support, so we append a major version to the name.
20568  soname_spec='${libname}${release}${shared_ext}$major'
20569  ;;
20570
20571aix4* | aix5*)
20572  version_type=linux
20573  need_lib_prefix=no
20574  need_version=no
20575  hardcode_into_libs=yes
20576  if test "$host_cpu" = ia64; then
20577    # AIX 5 supports IA64
20578    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20579    shlibpath_var=LD_LIBRARY_PATH
20580  else
20581    # With GCC up to 2.95.x, collect2 would create an import file
20582    # for dependence libraries.  The import file would start with
20583    # the line `#! .'.  This would cause the generated library to
20584    # depend on `.', always an invalid library.  This was fixed in
20585    # development snapshots of GCC prior to 3.0.
20586    case $host_os in
20587      aix4 | aix4.[01] | aix4.[01].*)
20588      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20589	   echo ' yes '
20590	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20591	:
20592      else
20593	can_build_shared=no
20594      fi
20595      ;;
20596    esac
20597    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20598    # soname into executable. Probably we can add versioning support to
20599    # collect2, so additional links can be useful in future.
20600    if test "$aix_use_runtimelinking" = yes; then
20601      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20602      # instead of lib<name>.a to let people know that these are not
20603      # typical AIX shared libraries.
20604      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605    else
20606      # We preserve .a as extension for shared libraries through AIX4.2
20607      # and later when we are not doing run time linking.
20608      library_names_spec='${libname}${release}.a $libname.a'
20609      soname_spec='${libname}${release}${shared_ext}$major'
20610    fi
20611    shlibpath_var=LIBPATH
20612  fi
20613  ;;
20614
20615amigaos*)
20616  library_names_spec='$libname.ixlibrary $libname.a'
20617  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20618  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'
20619  ;;
20620
20621beos*)
20622  library_names_spec='${libname}${shared_ext}'
20623  dynamic_linker="$host_os ld.so"
20624  shlibpath_var=LIBRARY_PATH
20625  ;;
20626
20627bsdi[45]*)
20628  version_type=linux
20629  need_version=no
20630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631  soname_spec='${libname}${release}${shared_ext}$major'
20632  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20633  shlibpath_var=LD_LIBRARY_PATH
20634  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20635  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20636  # the default ld.so.conf also contains /usr/contrib/lib and
20637  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20638  # libtool to hard-code these into programs
20639  ;;
20640
20641cygwin* | mingw* | pw32*)
20642  version_type=windows
20643  shrext_cmds=".dll"
20644  need_version=no
20645  need_lib_prefix=no
20646
20647  case $GCC,$host_os in
20648  yes,cygwin* | yes,mingw* | yes,pw32*)
20649    library_names_spec='$libname.dll.a'
20650    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20651    postinstall_cmds='base_file=`basename \${file}`~
20652      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20653      dldir=$destdir/`dirname \$dlpath`~
20654      test -d \$dldir || mkdir -p \$dldir~
20655      $install_prog $dir/$dlname \$dldir/$dlname~
20656      chmod a+x \$dldir/$dlname'
20657    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20658      dlpath=$dir/\$dldll~
20659       $rm \$dlpath'
20660    shlibpath_overrides_runpath=yes
20661
20662    case $host_os in
20663    cygwin*)
20664      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20665      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20666      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20667      ;;
20668    mingw*)
20669      # MinGW DLLs use traditional 'lib' prefix
20670      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20671      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20672      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20673        # It is most probably a Windows format PATH printed by
20674        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20675        # path with ; separators, and with drive letters. We can handle the
20676        # drive letters (cygwin fileutils understands them), so leave them,
20677        # especially as we might pass files found there to a mingw objdump,
20678        # which wouldn't understand a cygwinified path. Ahh.
20679        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20680      else
20681        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20682      fi
20683      ;;
20684    pw32*)
20685      # pw32 DLLs use 'pw' prefix rather than 'lib'
20686      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20687      ;;
20688    esac
20689    ;;
20690
20691  *)
20692    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20693    ;;
20694  esac
20695  dynamic_linker='Win32 ld.exe'
20696  # FIXME: first we should search . and the directory the executable is in
20697  shlibpath_var=PATH
20698  ;;
20699
20700darwin* | rhapsody*)
20701  dynamic_linker="$host_os dyld"
20702  version_type=darwin
20703  need_lib_prefix=no
20704  need_version=no
20705  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20706  soname_spec='${libname}${release}${major}$shared_ext'
20707  shlibpath_overrides_runpath=yes
20708  shlibpath_var=DYLD_LIBRARY_PATH
20709  shrext_cmds='.dylib'
20710  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20711  if test "$GCC" = yes; then
20712    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"`
20713  else
20714    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20715  fi
20716  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20717  ;;
20718
20719dgux*)
20720  version_type=linux
20721  need_lib_prefix=no
20722  need_version=no
20723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20724  soname_spec='${libname}${release}${shared_ext}$major'
20725  shlibpath_var=LD_LIBRARY_PATH
20726  ;;
20727
20728freebsd1*)
20729  dynamic_linker=no
20730  ;;
20731
20732kfreebsd*-gnu)
20733  version_type=linux
20734  need_lib_prefix=no
20735  need_version=no
20736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737  soname_spec='${libname}${release}${shared_ext}$major'
20738  shlibpath_var=LD_LIBRARY_PATH
20739  shlibpath_overrides_runpath=no
20740  hardcode_into_libs=yes
20741  dynamic_linker='GNU ld.so'
20742  ;;
20743
20744freebsd* | dragonfly*)
20745  # DragonFly does not have aout.  When/if they implement a new
20746  # versioning mechanism, adjust this.
20747  if test -x /usr/bin/objformat; then
20748    objformat=`/usr/bin/objformat`
20749  else
20750    case $host_os in
20751    freebsd[123]*) objformat=aout ;;
20752    *) objformat=elf ;;
20753    esac
20754  fi
20755  version_type=freebsd-$objformat
20756  case $version_type in
20757    freebsd-elf*)
20758      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20759      need_version=no
20760      need_lib_prefix=no
20761      ;;
20762    freebsd-*)
20763      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20764      need_version=yes
20765      ;;
20766  esac
20767  shlibpath_var=LD_LIBRARY_PATH
20768  case $host_os in
20769  freebsd2*)
20770    shlibpath_overrides_runpath=yes
20771    ;;
20772  freebsd3.[01]* | freebsdelf3.[01]*)
20773    shlibpath_overrides_runpath=yes
20774    hardcode_into_libs=yes
20775    ;;
20776  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20777  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20778    shlibpath_overrides_runpath=no
20779    hardcode_into_libs=yes
20780    ;;
20781  freebsd*) # from 4.6 on
20782    shlibpath_overrides_runpath=yes
20783    hardcode_into_libs=yes
20784    ;;
20785  esac
20786  ;;
20787
20788gnu*)
20789  version_type=linux
20790  need_lib_prefix=no
20791  need_version=no
20792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20793  soname_spec='${libname}${release}${shared_ext}$major'
20794  shlibpath_var=LD_LIBRARY_PATH
20795  hardcode_into_libs=yes
20796  ;;
20797
20798hpux9* | hpux10* | hpux11*)
20799  # Give a soname corresponding to the major version so that dld.sl refuses to
20800  # link against other versions.
20801  version_type=sunos
20802  need_lib_prefix=no
20803  need_version=no
20804  case $host_cpu in
20805  ia64*)
20806    shrext_cmds='.so'
20807    hardcode_into_libs=yes
20808    dynamic_linker="$host_os dld.so"
20809    shlibpath_var=LD_LIBRARY_PATH
20810    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812    soname_spec='${libname}${release}${shared_ext}$major'
20813    if test "X$HPUX_IA64_MODE" = X32; then
20814      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20815    else
20816      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20817    fi
20818    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20819    ;;
20820   hppa*64*)
20821     shrext_cmds='.sl'
20822     hardcode_into_libs=yes
20823     dynamic_linker="$host_os dld.sl"
20824     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20827     soname_spec='${libname}${release}${shared_ext}$major'
20828     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20829     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20830     ;;
20831   *)
20832    shrext_cmds='.sl'
20833    dynamic_linker="$host_os dld.sl"
20834    shlibpath_var=SHLIB_PATH
20835    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837    soname_spec='${libname}${release}${shared_ext}$major'
20838    ;;
20839  esac
20840  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20841  postinstall_cmds='chmod 555 $lib'
20842  ;;
20843
20844interix3*)
20845  version_type=linux
20846  need_lib_prefix=no
20847  need_version=no
20848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20849  soname_spec='${libname}${release}${shared_ext}$major'
20850  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20851  shlibpath_var=LD_LIBRARY_PATH
20852  shlibpath_overrides_runpath=no
20853  hardcode_into_libs=yes
20854  ;;
20855
20856irix5* | irix6* | nonstopux*)
20857  case $host_os in
20858    nonstopux*) version_type=nonstopux ;;
20859    *)
20860	if test "$lt_cv_prog_gnu_ld" = yes; then
20861		version_type=linux
20862	else
20863		version_type=irix
20864	fi ;;
20865  esac
20866  need_lib_prefix=no
20867  need_version=no
20868  soname_spec='${libname}${release}${shared_ext}$major'
20869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20870  case $host_os in
20871  irix5* | nonstopux*)
20872    libsuff= shlibsuff=
20873    ;;
20874  *)
20875    case $LD in # libtool.m4 will add one of these switches to LD
20876    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20877      libsuff= shlibsuff= libmagic=32-bit;;
20878    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20879      libsuff=32 shlibsuff=N32 libmagic=N32;;
20880    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20881      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20882    *) libsuff= shlibsuff= libmagic=never-match;;
20883    esac
20884    ;;
20885  esac
20886  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20887  shlibpath_overrides_runpath=no
20888  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20889  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20890  hardcode_into_libs=yes
20891  ;;
20892
20893# No shared lib support for Linux oldld, aout, or coff.
20894linux*oldld* | linux*aout* | linux*coff*)
20895  dynamic_linker=no
20896  ;;
20897
20898# This must be Linux ELF.
20899linux*)
20900  version_type=linux
20901  need_lib_prefix=no
20902  need_version=no
20903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904  soname_spec='${libname}${release}${shared_ext}$major'
20905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20906  shlibpath_var=LD_LIBRARY_PATH
20907  shlibpath_overrides_runpath=no
20908  # This implies no fast_install, which is unacceptable.
20909  # Some rework will be needed to allow for fast_install
20910  # before this can be enabled.
20911  hardcode_into_libs=yes
20912
20913  # Append ld.so.conf contents to the search path
20914  if test -f /etc/ld.so.conf; then
20915    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' ' '`
20916    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20917  fi
20918
20919  # We used to test for /lib/ld.so.1 and disable shared libraries on
20920  # powerpc, because MkLinux only supported shared libraries with the
20921  # GNU dynamic linker.  Since this was broken with cross compilers,
20922  # most powerpc-linux boxes support dynamic linking these days and
20923  # people can always --disable-shared, the test was removed, and we
20924  # assume the GNU/Linux dynamic linker is in use.
20925  dynamic_linker='GNU/Linux ld.so'
20926  ;;
20927
20928knetbsd*-gnu)
20929  version_type=linux
20930  need_lib_prefix=no
20931  need_version=no
20932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20933  soname_spec='${libname}${release}${shared_ext}$major'
20934  shlibpath_var=LD_LIBRARY_PATH
20935  shlibpath_overrides_runpath=no
20936  hardcode_into_libs=yes
20937  dynamic_linker='GNU ld.so'
20938  ;;
20939
20940netbsd*)
20941  version_type=sunos
20942  need_lib_prefix=no
20943  need_version=no
20944  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20945    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20946    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20947    dynamic_linker='NetBSD (a.out) ld.so'
20948  else
20949    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20950    soname_spec='${libname}${release}${shared_ext}$major'
20951    dynamic_linker='NetBSD ld.elf_so'
20952  fi
20953  shlibpath_var=LD_LIBRARY_PATH
20954  shlibpath_overrides_runpath=yes
20955  hardcode_into_libs=yes
20956  ;;
20957
20958newsos6)
20959  version_type=linux
20960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961  shlibpath_var=LD_LIBRARY_PATH
20962  shlibpath_overrides_runpath=yes
20963  ;;
20964
20965nto-qnx*)
20966  version_type=linux
20967  need_lib_prefix=no
20968  need_version=no
20969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20970  soname_spec='${libname}${release}${shared_ext}$major'
20971  shlibpath_var=LD_LIBRARY_PATH
20972  shlibpath_overrides_runpath=yes
20973  ;;
20974
20975openbsd*)
20976  version_type=sunos
20977  sys_lib_dlsearch_path_spec="/usr/lib"
20978  need_lib_prefix=no
20979  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20980  case $host_os in
20981    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20982    *)                         need_version=no  ;;
20983  esac
20984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20985  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20986  shlibpath_var=LD_LIBRARY_PATH
20987  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20988    case $host_os in
20989      openbsd2.[89] | openbsd2.[89].*)
20990	shlibpath_overrides_runpath=no
20991	;;
20992      *)
20993	shlibpath_overrides_runpath=yes
20994	;;
20995      esac
20996  else
20997    shlibpath_overrides_runpath=yes
20998  fi
20999  ;;
21000
21001os2*)
21002  libname_spec='$name'
21003  shrext_cmds=".dll"
21004  need_lib_prefix=no
21005  library_names_spec='$libname${shared_ext} $libname.a'
21006  dynamic_linker='OS/2 ld.exe'
21007  shlibpath_var=LIBPATH
21008  ;;
21009
21010osf3* | osf4* | osf5*)
21011  version_type=osf
21012  need_lib_prefix=no
21013  need_version=no
21014  soname_spec='${libname}${release}${shared_ext}$major'
21015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016  shlibpath_var=LD_LIBRARY_PATH
21017  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21018  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21019  ;;
21020
21021solaris*)
21022  version_type=linux
21023  need_lib_prefix=no
21024  need_version=no
21025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026  soname_spec='${libname}${release}${shared_ext}$major'
21027  shlibpath_var=LD_LIBRARY_PATH
21028  shlibpath_overrides_runpath=yes
21029  hardcode_into_libs=yes
21030  # ldd complains unless libraries are executable
21031  postinstall_cmds='chmod +x $lib'
21032  ;;
21033
21034sunos4*)
21035  version_type=sunos
21036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21037  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21038  shlibpath_var=LD_LIBRARY_PATH
21039  shlibpath_overrides_runpath=yes
21040  if test "$with_gnu_ld" = yes; then
21041    need_lib_prefix=no
21042  fi
21043  need_version=yes
21044  ;;
21045
21046sysv4 | sysv4.3*)
21047  version_type=linux
21048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049  soname_spec='${libname}${release}${shared_ext}$major'
21050  shlibpath_var=LD_LIBRARY_PATH
21051  case $host_vendor in
21052    sni)
21053      shlibpath_overrides_runpath=no
21054      need_lib_prefix=no
21055      export_dynamic_flag_spec='${wl}-Blargedynsym'
21056      runpath_var=LD_RUN_PATH
21057      ;;
21058    siemens)
21059      need_lib_prefix=no
21060      ;;
21061    motorola)
21062      need_lib_prefix=no
21063      need_version=no
21064      shlibpath_overrides_runpath=no
21065      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21066      ;;
21067  esac
21068  ;;
21069
21070sysv4*MP*)
21071  if test -d /usr/nec ;then
21072    version_type=linux
21073    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21074    soname_spec='$libname${shared_ext}.$major'
21075    shlibpath_var=LD_LIBRARY_PATH
21076  fi
21077  ;;
21078
21079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21080  version_type=freebsd-elf
21081  need_lib_prefix=no
21082  need_version=no
21083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21084  soname_spec='${libname}${release}${shared_ext}$major'
21085  shlibpath_var=LD_LIBRARY_PATH
21086  hardcode_into_libs=yes
21087  if test "$with_gnu_ld" = yes; then
21088    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21089    shlibpath_overrides_runpath=no
21090  else
21091    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21092    shlibpath_overrides_runpath=yes
21093    case $host_os in
21094      sco3.2v5*)
21095        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21096	;;
21097    esac
21098  fi
21099  sys_lib_dlsearch_path_spec='/usr/lib'
21100  ;;
21101
21102uts4*)
21103  version_type=linux
21104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105  soname_spec='${libname}${release}${shared_ext}$major'
21106  shlibpath_var=LD_LIBRARY_PATH
21107  ;;
21108
21109*)
21110  dynamic_linker=no
21111  ;;
21112esac
21113{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21114echo "${ECHO_T}$dynamic_linker" >&6; }
21115test "$dynamic_linker" = no && can_build_shared=no
21116
21117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21118if test "$GCC" = yes; then
21119  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21120fi
21121
21122{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21123echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21124hardcode_action_CXX=
21125if test -n "$hardcode_libdir_flag_spec_CXX" || \
21126   test -n "$runpath_var_CXX" || \
21127   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21128
21129  # We can hardcode non-existant directories.
21130  if test "$hardcode_direct_CXX" != no &&
21131     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21132     # have to relink, otherwise we might link with an installed library
21133     # when we should be linking with a yet-to-be-installed one
21134     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21135     test "$hardcode_minus_L_CXX" != no; then
21136    # Linking always hardcodes the temporary library directory.
21137    hardcode_action_CXX=relink
21138  else
21139    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21140    hardcode_action_CXX=immediate
21141  fi
21142else
21143  # We cannot hardcode anything, or else we can only hardcode existing
21144  # directories.
21145  hardcode_action_CXX=unsupported
21146fi
21147{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21148echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21149
21150if test "$hardcode_action_CXX" = relink; then
21151  # Fast installation is not supported
21152  enable_fast_install=no
21153elif test "$shlibpath_overrides_runpath" = yes ||
21154     test "$enable_shared" = no; then
21155  # Fast installation is not necessary
21156  enable_fast_install=needless
21157fi
21158
21159
21160# The else clause should only fire when bootstrapping the
21161# libtool distribution, otherwise you forgot to ship ltmain.sh
21162# with your package, and you will get complaints that there are
21163# no rules to generate ltmain.sh.
21164if test -f "$ltmain"; then
21165  # See if we are running on zsh, and set the options which allow our commands through
21166  # without removal of \ escapes.
21167  if test -n "${ZSH_VERSION+set}" ; then
21168    setopt NO_GLOB_SUBST
21169  fi
21170  # Now quote all the things that may contain metacharacters while being
21171  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21172  # variables and quote the copies for generation of the libtool script.
21173  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21174    SED SHELL STRIP \
21175    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21176    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21177    deplibs_check_method reload_flag reload_cmds need_locks \
21178    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21179    lt_cv_sys_global_symbol_to_c_name_address \
21180    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21181    old_postinstall_cmds old_postuninstall_cmds \
21182    compiler_CXX \
21183    CC_CXX \
21184    LD_CXX \
21185    lt_prog_compiler_wl_CXX \
21186    lt_prog_compiler_pic_CXX \
21187    lt_prog_compiler_static_CXX \
21188    lt_prog_compiler_no_builtin_flag_CXX \
21189    export_dynamic_flag_spec_CXX \
21190    thread_safe_flag_spec_CXX \
21191    whole_archive_flag_spec_CXX \
21192    enable_shared_with_static_runtimes_CXX \
21193    old_archive_cmds_CXX \
21194    old_archive_from_new_cmds_CXX \
21195    predep_objects_CXX \
21196    postdep_objects_CXX \
21197    predeps_CXX \
21198    postdeps_CXX \
21199    compiler_lib_search_path_CXX \
21200    archive_cmds_CXX \
21201    archive_expsym_cmds_CXX \
21202    postinstall_cmds_CXX \
21203    postuninstall_cmds_CXX \
21204    old_archive_from_expsyms_cmds_CXX \
21205    allow_undefined_flag_CXX \
21206    no_undefined_flag_CXX \
21207    export_symbols_cmds_CXX \
21208    hardcode_libdir_flag_spec_CXX \
21209    hardcode_libdir_flag_spec_ld_CXX \
21210    hardcode_libdir_separator_CXX \
21211    hardcode_automatic_CXX \
21212    module_cmds_CXX \
21213    module_expsym_cmds_CXX \
21214    lt_cv_prog_compiler_c_o_CXX \
21215    exclude_expsyms_CXX \
21216    include_expsyms_CXX; do
21217
21218    case $var in
21219    old_archive_cmds_CXX | \
21220    old_archive_from_new_cmds_CXX | \
21221    archive_cmds_CXX | \
21222    archive_expsym_cmds_CXX | \
21223    module_cmds_CXX | \
21224    module_expsym_cmds_CXX | \
21225    old_archive_from_expsyms_cmds_CXX | \
21226    export_symbols_cmds_CXX | \
21227    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21228    postinstall_cmds | postuninstall_cmds | \
21229    old_postinstall_cmds | old_postuninstall_cmds | \
21230    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21231      # Double-quote double-evaled strings.
21232      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21233      ;;
21234    *)
21235      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21236      ;;
21237    esac
21238  done
21239
21240  case $lt_echo in
21241  *'\$0 --fallback-echo"')
21242    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21243    ;;
21244  esac
21245
21246cfgfile="$ofile"
21247
21248  cat <<__EOF__ >> "$cfgfile"
21249# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21250
21251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21252
21253# Shell to use when invoking shell scripts.
21254SHELL=$lt_SHELL
21255
21256# Whether or not to build shared libraries.
21257build_libtool_libs=$enable_shared
21258
21259# Whether or not to build static libraries.
21260build_old_libs=$enable_static
21261
21262# Whether or not to add -lc for building shared libraries.
21263build_libtool_need_lc=$archive_cmds_need_lc_CXX
21264
21265# Whether or not to disallow shared libs when runtime libs are static
21266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21267
21268# Whether or not to optimize for fast installation.
21269fast_install=$enable_fast_install
21270
21271# The host system.
21272host_alias=$host_alias
21273host=$host
21274host_os=$host_os
21275
21276# The build system.
21277build_alias=$build_alias
21278build=$build
21279build_os=$build_os
21280
21281# An echo program that does not interpret backslashes.
21282echo=$lt_echo
21283
21284# The archiver.
21285AR=$lt_AR
21286AR_FLAGS=$lt_AR_FLAGS
21287
21288# A C compiler.
21289LTCC=$lt_LTCC
21290
21291# LTCC compiler flags.
21292LTCFLAGS=$lt_LTCFLAGS
21293
21294# A language-specific compiler.
21295CC=$lt_compiler_CXX
21296
21297# Is the compiler the GNU C compiler?
21298with_gcc=$GCC_CXX
21299
21300# An ERE matcher.
21301EGREP=$lt_EGREP
21302
21303# The linker used to build libraries.
21304LD=$lt_LD_CXX
21305
21306# Whether we need hard or soft links.
21307LN_S=$lt_LN_S
21308
21309# A BSD-compatible nm program.
21310NM=$lt_NM
21311
21312# A symbol stripping program
21313STRIP=$lt_STRIP
21314
21315# Used to examine libraries when file_magic_cmd begins "file"
21316MAGIC_CMD=$MAGIC_CMD
21317
21318# Used on cygwin: DLL creation program.
21319DLLTOOL="$DLLTOOL"
21320
21321# Used on cygwin: object dumper.
21322OBJDUMP="$OBJDUMP"
21323
21324# Used on cygwin: assembler.
21325AS="$AS"
21326
21327# The name of the directory that contains temporary libtool files.
21328objdir=$objdir
21329
21330# How to create reloadable object files.
21331reload_flag=$lt_reload_flag
21332reload_cmds=$lt_reload_cmds
21333
21334# How to pass a linker flag through the compiler.
21335wl=$lt_lt_prog_compiler_wl_CXX
21336
21337# Object file suffix (normally "o").
21338objext="$ac_objext"
21339
21340# Old archive suffix (normally "a").
21341libext="$libext"
21342
21343# Shared library suffix (normally ".so").
21344shrext_cmds='$shrext_cmds'
21345
21346# Executable file suffix (normally "").
21347exeext="$exeext"
21348
21349# Additional compiler flags for building library objects.
21350pic_flag=$lt_lt_prog_compiler_pic_CXX
21351pic_mode=$pic_mode
21352
21353# What is the maximum length of a command?
21354max_cmd_len=$lt_cv_sys_max_cmd_len
21355
21356# Does compiler simultaneously support -c and -o options?
21357compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21358
21359# Must we lock files when doing compilation?
21360need_locks=$lt_need_locks
21361
21362# Do we need the lib prefix for modules?
21363need_lib_prefix=$need_lib_prefix
21364
21365# Do we need a version for libraries?
21366need_version=$need_version
21367
21368# Whether dlopen is supported.
21369dlopen_support=$enable_dlopen
21370
21371# Whether dlopen of programs is supported.
21372dlopen_self=$enable_dlopen_self
21373
21374# Whether dlopen of statically linked programs is supported.
21375dlopen_self_static=$enable_dlopen_self_static
21376
21377# Compiler flag to prevent dynamic linking.
21378link_static_flag=$lt_lt_prog_compiler_static_CXX
21379
21380# Compiler flag to turn off builtin functions.
21381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21382
21383# Compiler flag to allow reflexive dlopens.
21384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21385
21386# Compiler flag to generate shared objects directly from archives.
21387whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21388
21389# Compiler flag to generate thread-safe objects.
21390thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21391
21392# Library versioning type.
21393version_type=$version_type
21394
21395# Format of library name prefix.
21396libname_spec=$lt_libname_spec
21397
21398# List of archive names.  First name is the real one, the rest are links.
21399# The last name is the one that the linker finds with -lNAME.
21400library_names_spec=$lt_library_names_spec
21401
21402# The coded name of the library, if different from the real name.
21403soname_spec=$lt_soname_spec
21404
21405# Commands used to build and install an old-style archive.
21406RANLIB=$lt_RANLIB
21407old_archive_cmds=$lt_old_archive_cmds_CXX
21408old_postinstall_cmds=$lt_old_postinstall_cmds
21409old_postuninstall_cmds=$lt_old_postuninstall_cmds
21410
21411# Create an old-style archive from a shared archive.
21412old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21413
21414# Create a temporary old-style archive to link instead of a shared archive.
21415old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21416
21417# Commands used to build and install a shared archive.
21418archive_cmds=$lt_archive_cmds_CXX
21419archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21420postinstall_cmds=$lt_postinstall_cmds
21421postuninstall_cmds=$lt_postuninstall_cmds
21422
21423# Commands used to build a loadable module (assumed same as above if empty)
21424module_cmds=$lt_module_cmds_CXX
21425module_expsym_cmds=$lt_module_expsym_cmds_CXX
21426
21427# Commands to strip libraries.
21428old_striplib=$lt_old_striplib
21429striplib=$lt_striplib
21430
21431# Dependencies to place before the objects being linked to create a
21432# shared library.
21433predep_objects=$lt_predep_objects_CXX
21434
21435# Dependencies to place after the objects being linked to create a
21436# shared library.
21437postdep_objects=$lt_postdep_objects_CXX
21438
21439# Dependencies to place before the objects being linked to create a
21440# shared library.
21441predeps=$lt_predeps_CXX
21442
21443# Dependencies to place after the objects being linked to create a
21444# shared library.
21445postdeps=$lt_postdeps_CXX
21446
21447# The library search path used internally by the compiler when linking
21448# a shared library.
21449compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21450
21451# Method to check whether dependent libraries are shared objects.
21452deplibs_check_method=$lt_deplibs_check_method
21453
21454# Command to use when deplibs_check_method == file_magic.
21455file_magic_cmd=$lt_file_magic_cmd
21456
21457# Flag that allows shared libraries with undefined symbols to be built.
21458allow_undefined_flag=$lt_allow_undefined_flag_CXX
21459
21460# Flag that forces no undefined symbols.
21461no_undefined_flag=$lt_no_undefined_flag_CXX
21462
21463# Commands used to finish a libtool library installation in a directory.
21464finish_cmds=$lt_finish_cmds
21465
21466# Same as above, but a single script fragment to be evaled but not shown.
21467finish_eval=$lt_finish_eval
21468
21469# Take the output of nm and produce a listing of raw symbols and C names.
21470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21471
21472# Transform the output of nm in a proper C declaration
21473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21474
21475# Transform the output of nm in a C name address pair
21476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21477
21478# This is the shared library runtime path variable.
21479runpath_var=$runpath_var
21480
21481# This is the shared library path variable.
21482shlibpath_var=$shlibpath_var
21483
21484# Is shlibpath searched before the hard-coded library search path?
21485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21486
21487# How to hardcode a shared library path into an executable.
21488hardcode_action=$hardcode_action_CXX
21489
21490# Whether we should hardcode library paths into libraries.
21491hardcode_into_libs=$hardcode_into_libs
21492
21493# Flag to hardcode \$libdir into a binary during linking.
21494# This must work even if \$libdir does not exist.
21495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21496
21497# If ld is used when linking, flag to hardcode \$libdir into
21498# a binary during linking. This must work even if \$libdir does
21499# not exist.
21500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21501
21502# Whether we need a single -rpath flag with a separated argument.
21503hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21504
21505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21506# resulting binary.
21507hardcode_direct=$hardcode_direct_CXX
21508
21509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21510# resulting binary.
21511hardcode_minus_L=$hardcode_minus_L_CXX
21512
21513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21514# the resulting binary.
21515hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21516
21517# Set to yes if building a shared library automatically hardcodes DIR into the library
21518# and all subsequent libraries and executables linked against it.
21519hardcode_automatic=$hardcode_automatic_CXX
21520
21521# Variables whose values should be saved in libtool wrapper scripts and
21522# restored at relink time.
21523variables_saved_for_relink="$variables_saved_for_relink"
21524
21525# Whether libtool must link a program against all its dependency libraries.
21526link_all_deplibs=$link_all_deplibs_CXX
21527
21528# Compile-time system search path for libraries
21529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21530
21531# Run-time system search path for libraries
21532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21533
21534# Fix the shell variable \$srcfile for the compiler.
21535fix_srcfile_path="$fix_srcfile_path_CXX"
21536
21537# Set to yes if exported symbols are required.
21538always_export_symbols=$always_export_symbols_CXX
21539
21540# The commands to list exported symbols.
21541export_symbols_cmds=$lt_export_symbols_cmds_CXX
21542
21543# The commands to extract the exported symbol list from a shared archive.
21544extract_expsyms_cmds=$lt_extract_expsyms_cmds
21545
21546# Symbols that should not be listed in the preloaded symbols.
21547exclude_expsyms=$lt_exclude_expsyms_CXX
21548
21549# Symbols that must always be exported.
21550include_expsyms=$lt_include_expsyms_CXX
21551
21552# ### END LIBTOOL TAG CONFIG: $tagname
21553
21554__EOF__
21555
21556
21557else
21558  # If there is no Makefile yet, we rely on a make rule to execute
21559  # `config.status --recheck' to rerun these tests and create the
21560  # libtool script then.
21561  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21562  if test -f "$ltmain_in"; then
21563    test -f Makefile && make "$ltmain"
21564  fi
21565fi
21566
21567
21568ac_ext=c
21569ac_cpp='$CPP $CPPFLAGS'
21570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572ac_compiler_gnu=$ac_cv_c_compiler_gnu
21573
21574CC=$lt_save_CC
21575LDCXX=$LD
21576LD=$lt_save_LD
21577GCC=$lt_save_GCC
21578with_gnu_ldcxx=$with_gnu_ld
21579with_gnu_ld=$lt_save_with_gnu_ld
21580lt_cv_path_LDCXX=$lt_cv_path_LD
21581lt_cv_path_LD=$lt_save_path_LD
21582lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21583lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21584
21585	else
21586	  tagname=""
21587	fi
21588	;;
21589
21590      F77)
21591	if test -n "$F77" && test "X$F77" != "Xno"; then
21592
21593ac_ext=f
21594ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21595ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21596ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21597
21598
21599archive_cmds_need_lc_F77=no
21600allow_undefined_flag_F77=
21601always_export_symbols_F77=no
21602archive_expsym_cmds_F77=
21603export_dynamic_flag_spec_F77=
21604hardcode_direct_F77=no
21605hardcode_libdir_flag_spec_F77=
21606hardcode_libdir_flag_spec_ld_F77=
21607hardcode_libdir_separator_F77=
21608hardcode_minus_L_F77=no
21609hardcode_automatic_F77=no
21610module_cmds_F77=
21611module_expsym_cmds_F77=
21612link_all_deplibs_F77=unknown
21613old_archive_cmds_F77=$old_archive_cmds
21614no_undefined_flag_F77=
21615whole_archive_flag_spec_F77=
21616enable_shared_with_static_runtimes_F77=no
21617
21618# Source file extension for f77 test sources.
21619ac_ext=f
21620
21621# Object file extension for compiled f77 test sources.
21622objext=o
21623objext_F77=$objext
21624
21625# Code to be used in simple compile tests
21626lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21627
21628# Code to be used in simple link tests
21629lt_simple_link_test_code="      program t\n      end\n"
21630
21631# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21632
21633# If no C compiler was specified, use CC.
21634LTCC=${LTCC-"$CC"}
21635
21636# If no C compiler flags were specified, use CFLAGS.
21637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21638
21639# Allow CC to be a program name with arguments.
21640compiler=$CC
21641
21642
21643# save warnings/boilerplate of simple test code
21644ac_outfile=conftest.$ac_objext
21645printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21647_lt_compiler_boilerplate=`cat conftest.err`
21648$rm conftest*
21649
21650ac_outfile=conftest.$ac_objext
21651printf "$lt_simple_link_test_code" >conftest.$ac_ext
21652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21653_lt_linker_boilerplate=`cat conftest.err`
21654$rm conftest*
21655
21656
21657# Allow CC to be a program name with arguments.
21658lt_save_CC="$CC"
21659CC=${F77-"f77"}
21660compiler=$CC
21661compiler_F77=$CC
21662for cc_temp in $compiler""; do
21663  case $cc_temp in
21664    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21665    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21666    \-*) ;;
21667    *) break;;
21668  esac
21669done
21670cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21671
21672
21673{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21674echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21675{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21676echo "${ECHO_T}$can_build_shared" >&6; }
21677
21678{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21679echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21680test "$can_build_shared" = "no" && enable_shared=no
21681
21682# On AIX, shared libraries and static libraries use the same namespace, and
21683# are all built from PIC.
21684case $host_os in
21685aix3*)
21686  test "$enable_shared" = yes && enable_static=no
21687  if test -n "$RANLIB"; then
21688    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21689    postinstall_cmds='$RANLIB $lib'
21690  fi
21691  ;;
21692aix4* | aix5*)
21693  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21694    test "$enable_shared" = yes && enable_static=no
21695  fi
21696  ;;
21697esac
21698{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21699echo "${ECHO_T}$enable_shared" >&6; }
21700
21701{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21702echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21703# Make sure either enable_shared or enable_static is yes.
21704test "$enable_shared" = yes || enable_static=yes
21705{ echo "$as_me:$LINENO: result: $enable_static" >&5
21706echo "${ECHO_T}$enable_static" >&6; }
21707
21708GCC_F77="$G77"
21709LD_F77="$LD"
21710
21711lt_prog_compiler_wl_F77=
21712lt_prog_compiler_pic_F77=
21713lt_prog_compiler_static_F77=
21714
21715{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21716echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21717
21718  if test "$GCC" = yes; then
21719    lt_prog_compiler_wl_F77='-Wl,'
21720    lt_prog_compiler_static_F77='-static'
21721
21722    case $host_os in
21723      aix*)
21724      # All AIX code is PIC.
21725      if test "$host_cpu" = ia64; then
21726	# AIX 5 now supports IA64 processor
21727	lt_prog_compiler_static_F77='-Bstatic'
21728      fi
21729      ;;
21730
21731    amigaos*)
21732      # FIXME: we need at least 68020 code to build shared libraries, but
21733      # adding the `-m68020' flag to GCC prevents building anything better,
21734      # like `-m68040'.
21735      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21736      ;;
21737
21738    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21739      # PIC is the default for these OSes.
21740      ;;
21741
21742    mingw* | pw32* | os2*)
21743      # This hack is so that the source file can tell whether it is being
21744      # built for inclusion in a dll (and should export symbols for example).
21745      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21746      ;;
21747
21748    darwin* | rhapsody*)
21749      # PIC is the default on this platform
21750      # Common symbols not allowed in MH_DYLIB files
21751      lt_prog_compiler_pic_F77='-fno-common'
21752      ;;
21753
21754    interix3*)
21755      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21756      # Instead, we relocate shared libraries at runtime.
21757      ;;
21758
21759    msdosdjgpp*)
21760      # Just because we use GCC doesn't mean we suddenly get shared libraries
21761      # on systems that don't support them.
21762      lt_prog_compiler_can_build_shared_F77=no
21763      enable_shared=no
21764      ;;
21765
21766    sysv4*MP*)
21767      if test -d /usr/nec; then
21768	lt_prog_compiler_pic_F77=-Kconform_pic
21769      fi
21770      ;;
21771
21772    hpux*)
21773      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21774      # not for PA HP-UX.
21775      case $host_cpu in
21776      hppa*64*|ia64*)
21777	# +Z the default
21778	;;
21779      *)
21780	lt_prog_compiler_pic_F77='-fPIC'
21781	;;
21782      esac
21783      ;;
21784
21785    *)
21786      lt_prog_compiler_pic_F77='-fPIC'
21787      ;;
21788    esac
21789  else
21790    # PORTME Check for flag to pass linker flags through the system compiler.
21791    case $host_os in
21792    aix*)
21793      lt_prog_compiler_wl_F77='-Wl,'
21794      if test "$host_cpu" = ia64; then
21795	# AIX 5 now supports IA64 processor
21796	lt_prog_compiler_static_F77='-Bstatic'
21797      else
21798	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21799      fi
21800      ;;
21801      darwin*)
21802        # PIC is the default on this platform
21803        # Common symbols not allowed in MH_DYLIB files
21804       case $cc_basename in
21805         xlc*)
21806         lt_prog_compiler_pic_F77='-qnocommon'
21807         lt_prog_compiler_wl_F77='-Wl,'
21808         ;;
21809       esac
21810       ;;
21811
21812    mingw* | pw32* | os2*)
21813      # This hack is so that the source file can tell whether it is being
21814      # built for inclusion in a dll (and should export symbols for example).
21815      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21816      ;;
21817
21818    hpux9* | hpux10* | hpux11*)
21819      lt_prog_compiler_wl_F77='-Wl,'
21820      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21821      # not for PA HP-UX.
21822      case $host_cpu in
21823      hppa*64*|ia64*)
21824	# +Z the default
21825	;;
21826      *)
21827	lt_prog_compiler_pic_F77='+Z'
21828	;;
21829      esac
21830      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21831      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21832      ;;
21833
21834    irix5* | irix6* | nonstopux*)
21835      lt_prog_compiler_wl_F77='-Wl,'
21836      # PIC (with -KPIC) is the default.
21837      lt_prog_compiler_static_F77='-non_shared'
21838      ;;
21839
21840    newsos6)
21841      lt_prog_compiler_pic_F77='-KPIC'
21842      lt_prog_compiler_static_F77='-Bstatic'
21843      ;;
21844
21845    linux*)
21846      case $cc_basename in
21847      icc* | ecc*)
21848	lt_prog_compiler_wl_F77='-Wl,'
21849	lt_prog_compiler_pic_F77='-KPIC'
21850	lt_prog_compiler_static_F77='-static'
21851        ;;
21852      pgcc* | pgf77* | pgf90* | pgf95*)
21853        # Portland Group compilers (*not* the Pentium gcc compiler,
21854	# which looks to be a dead project)
21855	lt_prog_compiler_wl_F77='-Wl,'
21856	lt_prog_compiler_pic_F77='-fpic'
21857	lt_prog_compiler_static_F77='-Bstatic'
21858        ;;
21859      ccc*)
21860        lt_prog_compiler_wl_F77='-Wl,'
21861        # All Alpha code is PIC.
21862        lt_prog_compiler_static_F77='-non_shared'
21863        ;;
21864      esac
21865      ;;
21866
21867    osf3* | osf4* | osf5*)
21868      lt_prog_compiler_wl_F77='-Wl,'
21869      # All OSF/1 code is PIC.
21870      lt_prog_compiler_static_F77='-non_shared'
21871      ;;
21872
21873    solaris*)
21874      lt_prog_compiler_pic_F77='-KPIC'
21875      lt_prog_compiler_static_F77='-Bstatic'
21876      case $cc_basename in
21877      f77* | f90* | f95*)
21878	lt_prog_compiler_wl_F77='-Qoption ld ';;
21879      *)
21880	lt_prog_compiler_wl_F77='-Wl,';;
21881      esac
21882      ;;
21883
21884    sunos4*)
21885      lt_prog_compiler_wl_F77='-Qoption ld '
21886      lt_prog_compiler_pic_F77='-PIC'
21887      lt_prog_compiler_static_F77='-Bstatic'
21888      ;;
21889
21890    sysv4 | sysv4.2uw2* | sysv4.3*)
21891      lt_prog_compiler_wl_F77='-Wl,'
21892      lt_prog_compiler_pic_F77='-KPIC'
21893      lt_prog_compiler_static_F77='-Bstatic'
21894      ;;
21895
21896    sysv4*MP*)
21897      if test -d /usr/nec ;then
21898	lt_prog_compiler_pic_F77='-Kconform_pic'
21899	lt_prog_compiler_static_F77='-Bstatic'
21900      fi
21901      ;;
21902
21903    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21904      lt_prog_compiler_wl_F77='-Wl,'
21905      lt_prog_compiler_pic_F77='-KPIC'
21906      lt_prog_compiler_static_F77='-Bstatic'
21907      ;;
21908
21909    unicos*)
21910      lt_prog_compiler_wl_F77='-Wl,'
21911      lt_prog_compiler_can_build_shared_F77=no
21912      ;;
21913
21914    uts4*)
21915      lt_prog_compiler_pic_F77='-pic'
21916      lt_prog_compiler_static_F77='-Bstatic'
21917      ;;
21918
21919    *)
21920      lt_prog_compiler_can_build_shared_F77=no
21921      ;;
21922    esac
21923  fi
21924
21925{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21926echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21927
21928#
21929# Check to make sure the PIC flag actually works.
21930#
21931if test -n "$lt_prog_compiler_pic_F77"; then
21932
21933{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21934echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21935if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21936  echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
21938  lt_prog_compiler_pic_works_F77=no
21939  ac_outfile=conftest.$ac_objext
21940   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21941   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21942   # Insert the option either (1) after the last *FLAGS variable, or
21943   # (2) before a word containing "conftest.", or (3) at the end.
21944   # Note that $ac_compile itself does not contain backslashes and begins
21945   # with a dollar sign (not a hyphen), so the echo should work correctly.
21946   # The option is referenced via a variable to avoid confusing sed.
21947   lt_compile=`echo "$ac_compile" | $SED \
21948   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21950   -e 's:$: $lt_compiler_flag:'`
21951   (eval echo "\"\$as_me:21951: $lt_compile\"" >&5)
21952   (eval "$lt_compile" 2>conftest.err)
21953   ac_status=$?
21954   cat conftest.err >&5
21955   echo "$as_me:21955: \$? = $ac_status" >&5
21956   if (exit $ac_status) && test -s "$ac_outfile"; then
21957     # The compiler can only warn and ignore the option if not recognized
21958     # So say no if there are warnings other than the usual output.
21959     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21960     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21961     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21962       lt_prog_compiler_pic_works_F77=yes
21963     fi
21964   fi
21965   $rm conftest*
21966
21967fi
21968{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21969echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21970
21971if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21972    case $lt_prog_compiler_pic_F77 in
21973     "" | " "*) ;;
21974     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21975     esac
21976else
21977    lt_prog_compiler_pic_F77=
21978     lt_prog_compiler_can_build_shared_F77=no
21979fi
21980
21981fi
21982case $host_os in
21983  # For platforms which do not support PIC, -DPIC is meaningless:
21984  *djgpp*)
21985    lt_prog_compiler_pic_F77=
21986    ;;
21987  *)
21988    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21989    ;;
21990esac
21991
21992#
21993# Check to make sure the static flag actually works.
21994#
21995wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21996{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21997echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21998if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21999  echo $ECHO_N "(cached) $ECHO_C" >&6
22000else
22001  lt_prog_compiler_static_works_F77=no
22002   save_LDFLAGS="$LDFLAGS"
22003   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22004   printf "$lt_simple_link_test_code" > conftest.$ac_ext
22005   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22006     # The linker can only warn and ignore the option if not recognized
22007     # So say no if there are warnings
22008     if test -s conftest.err; then
22009       # Append any errors to the config.log.
22010       cat conftest.err 1>&5
22011       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22012       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22013       if diff conftest.exp conftest.er2 >/dev/null; then
22014         lt_prog_compiler_static_works_F77=yes
22015       fi
22016     else
22017       lt_prog_compiler_static_works_F77=yes
22018     fi
22019   fi
22020   $rm conftest*
22021   LDFLAGS="$save_LDFLAGS"
22022
22023fi
22024{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22025echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22026
22027if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22028    :
22029else
22030    lt_prog_compiler_static_F77=
22031fi
22032
22033
22034{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22035echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22036if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22037  echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039  lt_cv_prog_compiler_c_o_F77=no
22040   $rm -r conftest 2>/dev/null
22041   mkdir conftest
22042   cd conftest
22043   mkdir out
22044   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22045
22046   lt_compiler_flag="-o out/conftest2.$ac_objext"
22047   # Insert the option either (1) after the last *FLAGS variable, or
22048   # (2) before a word containing "conftest.", or (3) at the end.
22049   # Note that $ac_compile itself does not contain backslashes and begins
22050   # with a dollar sign (not a hyphen), so the echo should work correctly.
22051   lt_compile=`echo "$ac_compile" | $SED \
22052   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22053   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22054   -e 's:$: $lt_compiler_flag:'`
22055   (eval echo "\"\$as_me:22055: $lt_compile\"" >&5)
22056   (eval "$lt_compile" 2>out/conftest.err)
22057   ac_status=$?
22058   cat out/conftest.err >&5
22059   echo "$as_me:22059: \$? = $ac_status" >&5
22060   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22061   then
22062     # The compiler can only warn and ignore the option if not recognized
22063     # So say no if there are warnings
22064     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22065     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22066     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22067       lt_cv_prog_compiler_c_o_F77=yes
22068     fi
22069   fi
22070   chmod u+w . 2>&5
22071   $rm conftest*
22072   # SGI C++ compiler will create directory out/ii_files/ for
22073   # template instantiation
22074   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22075   $rm out/* && rmdir out
22076   cd ..
22077   rmdir conftest
22078   $rm conftest*
22079
22080fi
22081{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22082echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22083
22084
22085hard_links="nottested"
22086if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22087  # do not overwrite the value of need_locks provided by the user
22088  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22089echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22090  hard_links=yes
22091  $rm conftest*
22092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22093  touch conftest.a
22094  ln conftest.a conftest.b 2>&5 || hard_links=no
22095  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22096  { echo "$as_me:$LINENO: result: $hard_links" >&5
22097echo "${ECHO_T}$hard_links" >&6; }
22098  if test "$hard_links" = no; then
22099    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22100echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22101    need_locks=warn
22102  fi
22103else
22104  need_locks=no
22105fi
22106
22107{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22108echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22109
22110  runpath_var=
22111  allow_undefined_flag_F77=
22112  enable_shared_with_static_runtimes_F77=no
22113  archive_cmds_F77=
22114  archive_expsym_cmds_F77=
22115  old_archive_From_new_cmds_F77=
22116  old_archive_from_expsyms_cmds_F77=
22117  export_dynamic_flag_spec_F77=
22118  whole_archive_flag_spec_F77=
22119  thread_safe_flag_spec_F77=
22120  hardcode_libdir_flag_spec_F77=
22121  hardcode_libdir_flag_spec_ld_F77=
22122  hardcode_libdir_separator_F77=
22123  hardcode_direct_F77=no
22124  hardcode_minus_L_F77=no
22125  hardcode_shlibpath_var_F77=unsupported
22126  link_all_deplibs_F77=unknown
22127  hardcode_automatic_F77=no
22128  module_cmds_F77=
22129  module_expsym_cmds_F77=
22130  always_export_symbols_F77=no
22131  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22132  # include_expsyms should be a list of space-separated symbols to be *always*
22133  # included in the symbol list
22134  include_expsyms_F77=
22135  # exclude_expsyms can be an extended regexp of symbols to exclude
22136  # it will be wrapped by ` (' and `)$', so one must not match beginning or
22137  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22138  # as well as any symbol that contains `d'.
22139  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22140  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22141  # platforms (ab)use it in PIC code, but their linkers get confused if
22142  # the symbol is explicitly referenced.  Since portable code cannot
22143  # rely on this symbol name, it's probably fine to never include it in
22144  # preloaded symbol tables.
22145  extract_expsyms_cmds=
22146  # Just being paranoid about ensuring that cc_basename is set.
22147  for cc_temp in $compiler""; do
22148  case $cc_temp in
22149    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22150    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22151    \-*) ;;
22152    *) break;;
22153  esac
22154done
22155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22156
22157  case $host_os in
22158  cygwin* | mingw* | pw32*)
22159    # FIXME: the MSVC++ port hasn't been tested in a loooong time
22160    # When not using gcc, we currently assume that we are using
22161    # Microsoft Visual C++.
22162    if test "$GCC" != yes; then
22163      with_gnu_ld=no
22164    fi
22165    ;;
22166  interix*)
22167    # we just hope/assume this is gcc and not c89 (= MSVC++)
22168    with_gnu_ld=yes
22169    ;;
22170  openbsd*)
22171    with_gnu_ld=no
22172    ;;
22173  esac
22174
22175  ld_shlibs_F77=yes
22176  if test "$with_gnu_ld" = yes; then
22177    # If archive_cmds runs LD, not CC, wlarc should be empty
22178    wlarc='${wl}'
22179
22180    # Set some defaults for GNU ld with shared library support. These
22181    # are reset later if shared libraries are not supported. Putting them
22182    # here allows them to be overridden if necessary.
22183    runpath_var=LD_RUN_PATH
22184    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22185    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22186    # ancient GNU ld didn't support --whole-archive et. al.
22187    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22188	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22189      else
22190  	whole_archive_flag_spec_F77=
22191    fi
22192    supports_anon_versioning=no
22193    case `$LD -v 2>/dev/null` in
22194      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22195      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22196      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22197      *\ 2.11.*) ;; # other 2.11 versions
22198      *) supports_anon_versioning=yes ;;
22199    esac
22200
22201    # See if GNU ld supports shared libraries.
22202    case $host_os in
22203    aix3* | aix4* | aix5*)
22204      # On AIX/PPC, the GNU linker is very broken
22205      if test "$host_cpu" != ia64; then
22206	ld_shlibs_F77=no
22207	cat <<EOF 1>&2
22208
22209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22210*** to be unable to reliably create shared libraries on AIX.
22211*** Therefore, libtool is disabling shared libraries support.  If you
22212*** really care for shared libraries, you may want to modify your PATH
22213*** so that a non-GNU linker is found, and then restart.
22214
22215EOF
22216      fi
22217      ;;
22218
22219    amigaos*)
22220      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
22221      hardcode_libdir_flag_spec_F77='-L$libdir'
22222      hardcode_minus_L_F77=yes
22223
22224      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22225      # that the semantics of dynamic libraries on AmigaOS, at least up
22226      # to version 4, is to share data among multiple programs linked
22227      # with the same dynamic library.  Since this doesn't match the
22228      # behavior of shared libraries on other platforms, we can't use
22229      # them.
22230      ld_shlibs_F77=no
22231      ;;
22232
22233    beos*)
22234      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22235	allow_undefined_flag_F77=unsupported
22236	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22237	# support --undefined.  This deserves some investigation.  FIXME
22238	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22239      else
22240	ld_shlibs_F77=no
22241      fi
22242      ;;
22243
22244    cygwin* | mingw* | pw32*)
22245      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22246      # as there is no search path for DLLs.
22247      hardcode_libdir_flag_spec_F77='-L$libdir'
22248      allow_undefined_flag_F77=unsupported
22249      always_export_symbols_F77=no
22250      enable_shared_with_static_runtimes_F77=yes
22251      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22252
22253      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22254        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22255	# If the export-symbols file already is a .def file (1st line
22256	# is EXPORTS), use it as is; otherwise, prepend...
22257	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22258	  cp $export_symbols $output_objdir/$soname.def;
22259	else
22260	  echo EXPORTS > $output_objdir/$soname.def;
22261	  cat $export_symbols >> $output_objdir/$soname.def;
22262	fi~
22263	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22264      else
22265	ld_shlibs_F77=no
22266      fi
22267      ;;
22268
22269    interix3*)
22270      hardcode_direct_F77=no
22271      hardcode_shlibpath_var_F77=no
22272      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22273      export_dynamic_flag_spec_F77='${wl}-E'
22274      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22275      # Instead, shared libraries are loaded at an image base (0x10000000 by
22276      # default) and relocated if they conflict, which is a slow very memory
22277      # consuming and fragmenting process.  To avoid this, we pick a random,
22278      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22279      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22280      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22281      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22282      ;;
22283
22284    linux*)
22285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22286	tmp_addflag=
22287	case $cc_basename,$host_cpu in
22288	pgcc*)				# Portland Group C compiler
22289	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22290	  tmp_addflag=' $pic_flag'
22291	  ;;
22292	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
22293	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22294	  tmp_addflag=' $pic_flag -Mnomain' ;;
22295	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
22296	  tmp_addflag=' -i_dynamic' ;;
22297	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
22298	  tmp_addflag=' -i_dynamic -nofor_main' ;;
22299	ifc* | ifort*)			# Intel Fortran compiler
22300	  tmp_addflag=' -nofor_main' ;;
22301	esac
22302	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22303
22304	if test $supports_anon_versioning = yes; then
22305	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22306  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22307  $echo "local: *; };" >> $output_objdir/$libname.ver~
22308	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22309	fi
22310      else
22311	ld_shlibs_F77=no
22312      fi
22313      ;;
22314
22315    netbsd*)
22316      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22317	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22318	wlarc=
22319      else
22320	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22321	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22322      fi
22323      ;;
22324
22325    solaris*)
22326      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22327	ld_shlibs_F77=no
22328	cat <<EOF 1>&2
22329
22330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22331*** create shared libraries on Solaris systems.  Therefore, libtool
22332*** is disabling shared libraries support.  We urge you to upgrade GNU
22333*** binutils to release 2.9.1 or newer.  Another option is to modify
22334*** your PATH or compiler configuration so that the native linker is
22335*** used, and then restart.
22336
22337EOF
22338      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22339	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22340	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22341      else
22342	ld_shlibs_F77=no
22343      fi
22344      ;;
22345
22346    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22347      case `$LD -v 2>&1` in
22348        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22349	ld_shlibs_F77=no
22350	cat <<_LT_EOF 1>&2
22351
22352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22353*** reliably create shared libraries on SCO systems.  Therefore, libtool
22354*** is disabling shared libraries support.  We urge you to upgrade GNU
22355*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22356*** your PATH or compiler configuration so that the native linker is
22357*** used, and then restart.
22358
22359_LT_EOF
22360	;;
22361	*)
22362	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22363	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22364	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22365	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22366	  else
22367	    ld_shlibs_F77=no
22368	  fi
22369	;;
22370      esac
22371      ;;
22372
22373    sunos4*)
22374      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22375      wlarc=
22376      hardcode_direct_F77=yes
22377      hardcode_shlibpath_var_F77=no
22378      ;;
22379
22380    *)
22381      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22382	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22383	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22384      else
22385	ld_shlibs_F77=no
22386      fi
22387      ;;
22388    esac
22389
22390    if test "$ld_shlibs_F77" = no; then
22391      runpath_var=
22392      hardcode_libdir_flag_spec_F77=
22393      export_dynamic_flag_spec_F77=
22394      whole_archive_flag_spec_F77=
22395    fi
22396  else
22397    # PORTME fill in a description of your system's linker (not GNU ld)
22398    case $host_os in
22399    aix3*)
22400      allow_undefined_flag_F77=unsupported
22401      always_export_symbols_F77=yes
22402      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22403      # Note: this linker hardcodes the directories in LIBPATH if there
22404      # are no directories specified by -L.
22405      hardcode_minus_L_F77=yes
22406      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22407	# Neither direct hardcoding nor static linking is supported with a
22408	# broken collect2.
22409	hardcode_direct_F77=unsupported
22410      fi
22411      ;;
22412
22413    aix4* | aix5*)
22414      if test "$host_cpu" = ia64; then
22415	# On IA64, the linker does run time linking by default, so we don't
22416	# have to do anything special.
22417	aix_use_runtimelinking=no
22418	exp_sym_flag='-Bexport'
22419	no_entry_flag=""
22420      else
22421	# If we're using GNU nm, then we don't want the "-C" option.
22422	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22423	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22424	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22425	else
22426	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22427	fi
22428	aix_use_runtimelinking=no
22429
22430	# Test if we are trying to use run time linking or normal
22431	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22432	# need to do runtime linking.
22433	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22434	  for ld_flag in $LDFLAGS; do
22435  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22436  	    aix_use_runtimelinking=yes
22437  	    break
22438  	  fi
22439	  done
22440	  ;;
22441	esac
22442
22443	exp_sym_flag='-bexport'
22444	no_entry_flag='-bnoentry'
22445      fi
22446
22447      # When large executables or shared objects are built, AIX ld can
22448      # have problems creating the table of contents.  If linking a library
22449      # or program results in "error TOC overflow" add -mminimal-toc to
22450      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22451      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22452
22453      archive_cmds_F77=''
22454      hardcode_direct_F77=yes
22455      hardcode_libdir_separator_F77=':'
22456      link_all_deplibs_F77=yes
22457
22458      if test "$GCC" = yes; then
22459	case $host_os in aix4.[012]|aix4.[012].*)
22460	# We only want to do this on AIX 4.2 and lower, the check
22461	# below for broken collect2 doesn't work under 4.3+
22462	  collect2name=`${CC} -print-prog-name=collect2`
22463	  if test -f "$collect2name" && \
22464  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22465	  then
22466  	  # We have reworked collect2
22467  	  hardcode_direct_F77=yes
22468	  else
22469  	  # We have old collect2
22470  	  hardcode_direct_F77=unsupported
22471  	  # It fails to find uninstalled libraries when the uninstalled
22472  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22473  	  # to unsupported forces relinking
22474  	  hardcode_minus_L_F77=yes
22475  	  hardcode_libdir_flag_spec_F77='-L$libdir'
22476  	  hardcode_libdir_separator_F77=
22477	  fi
22478	  ;;
22479	esac
22480	shared_flag='-shared'
22481	if test "$aix_use_runtimelinking" = yes; then
22482	  shared_flag="$shared_flag "'${wl}-G'
22483	fi
22484      else
22485	# not using gcc
22486	if test "$host_cpu" = ia64; then
22487  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22488  	# chokes on -Wl,-G. The following line is correct:
22489	  shared_flag='-G'
22490	else
22491	  if test "$aix_use_runtimelinking" = yes; then
22492	    shared_flag='${wl}-G'
22493	  else
22494	    shared_flag='${wl}-bM:SRE'
22495	  fi
22496	fi
22497      fi
22498
22499      # It seems that -bexpall does not export symbols beginning with
22500      # underscore (_), so it is better to generate a list of symbols to export.
22501      always_export_symbols_F77=yes
22502      if test "$aix_use_runtimelinking" = yes; then
22503	# Warning - without using the other runtime loading flags (-brtl),
22504	# -berok will link without error, but may produce a broken library.
22505	allow_undefined_flag_F77='-berok'
22506       # Determine the default libpath from the value encoded in an empty executable.
22507       cat >conftest.$ac_ext <<_ACEOF
22508      program main
22509
22510      end
22511_ACEOF
22512rm -f conftest.$ac_objext conftest$ac_exeext
22513if { (ac_try="$ac_link"
22514case "(($ac_try" in
22515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516  *) ac_try_echo=$ac_try;;
22517esac
22518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519  (eval "$ac_link") 2>conftest.er1
22520  ac_status=$?
22521  grep -v '^ *+' conftest.er1 >conftest.err
22522  rm -f conftest.er1
22523  cat conftest.err >&5
22524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525  (exit $ac_status); } &&
22526	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22527  { (case "(($ac_try" in
22528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529  *) ac_try_echo=$ac_try;;
22530esac
22531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532  (eval "$ac_try") 2>&5
22533  ac_status=$?
22534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535  (exit $ac_status); }; } &&
22536	 { ac_try='test -s conftest$ac_exeext'
22537  { (case "(($ac_try" in
22538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539  *) ac_try_echo=$ac_try;;
22540esac
22541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542  (eval "$ac_try") 2>&5
22543  ac_status=$?
22544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545  (exit $ac_status); }; }; then
22546
22547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22548}'`
22549# Check for a 64-bit object if we didn't find anything.
22550if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22551}'`; fi
22552else
22553  echo "$as_me: failed program was:" >&5
22554sed 's/^/| /' conftest.$ac_ext >&5
22555
22556
22557fi
22558
22559rm -f core conftest.err conftest.$ac_objext \
22560      conftest$ac_exeext conftest.$ac_ext
22561if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22562
22563       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22564	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22565       else
22566	if test "$host_cpu" = ia64; then
22567	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22568	  allow_undefined_flag_F77="-z nodefs"
22569	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22570	else
22571	 # Determine the default libpath from the value encoded in an empty executable.
22572	 cat >conftest.$ac_ext <<_ACEOF
22573      program main
22574
22575      end
22576_ACEOF
22577rm -f conftest.$ac_objext conftest$ac_exeext
22578if { (ac_try="$ac_link"
22579case "(($ac_try" in
22580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581  *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584  (eval "$ac_link") 2>conftest.er1
22585  ac_status=$?
22586  grep -v '^ *+' conftest.er1 >conftest.err
22587  rm -f conftest.er1
22588  cat conftest.err >&5
22589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590  (exit $ac_status); } &&
22591	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22592  { (case "(($ac_try" in
22593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594  *) ac_try_echo=$ac_try;;
22595esac
22596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597  (eval "$ac_try") 2>&5
22598  ac_status=$?
22599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600  (exit $ac_status); }; } &&
22601	 { ac_try='test -s conftest$ac_exeext'
22602  { (case "(($ac_try" in
22603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604  *) ac_try_echo=$ac_try;;
22605esac
22606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607  (eval "$ac_try") 2>&5
22608  ac_status=$?
22609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610  (exit $ac_status); }; }; then
22611
22612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22613}'`
22614# Check for a 64-bit object if we didn't find anything.
22615if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22616}'`; fi
22617else
22618  echo "$as_me: failed program was:" >&5
22619sed 's/^/| /' conftest.$ac_ext >&5
22620
22621
22622fi
22623
22624rm -f core conftest.err conftest.$ac_objext \
22625      conftest$ac_exeext conftest.$ac_ext
22626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22627
22628	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22629	  # Warning - without using the other run time loading flags,
22630	  # -berok will link without error, but may produce a broken library.
22631	  no_undefined_flag_F77=' ${wl}-bernotok'
22632	  allow_undefined_flag_F77=' ${wl}-berok'
22633	  # Exported symbols can be pulled into shared objects from archives
22634	  whole_archive_flag_spec_F77='$convenience'
22635	  archive_cmds_need_lc_F77=yes
22636	  # This is similar to how AIX traditionally builds its shared libraries.
22637	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22638	fi
22639      fi
22640      ;;
22641
22642    amigaos*)
22643      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
22644      hardcode_libdir_flag_spec_F77='-L$libdir'
22645      hardcode_minus_L_F77=yes
22646      # see comment about different semantics on the GNU ld section
22647      ld_shlibs_F77=no
22648      ;;
22649
22650    bsdi[45]*)
22651      export_dynamic_flag_spec_F77=-rdynamic
22652      ;;
22653
22654    cygwin* | mingw* | pw32*)
22655      # When not using gcc, we currently assume that we are using
22656      # Microsoft Visual C++.
22657      # hardcode_libdir_flag_spec is actually meaningless, as there is
22658      # no search path for DLLs.
22659      hardcode_libdir_flag_spec_F77=' '
22660      allow_undefined_flag_F77=unsupported
22661      # Tell ltmain to make .lib files, not .a files.
22662      libext=lib
22663      # Tell ltmain to make .dll files, not .so files.
22664      shrext_cmds=".dll"
22665      # FIXME: Setting linknames here is a bad hack.
22666      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22667      # The linker will automatically build a .lib file if we build a DLL.
22668      old_archive_From_new_cmds_F77='true'
22669      # FIXME: Should let the user specify the lib program.
22670      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22671      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22672      enable_shared_with_static_runtimes_F77=yes
22673      ;;
22674
22675    darwin* | rhapsody*)
22676      case $host_os in
22677        rhapsody* | darwin1.[012])
22678         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22679         ;;
22680       *) # Darwin 1.3 on
22681         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22682           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22683         else
22684           case ${MACOSX_DEPLOYMENT_TARGET} in
22685             10.[012])
22686               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22687               ;;
22688             10.*)
22689               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22690               ;;
22691           esac
22692         fi
22693         ;;
22694      esac
22695      archive_cmds_need_lc_F77=no
22696      hardcode_direct_F77=no
22697      hardcode_automatic_F77=yes
22698      hardcode_shlibpath_var_F77=unsupported
22699      whole_archive_flag_spec_F77=''
22700      link_all_deplibs_F77=yes
22701    if test "$GCC" = yes ; then
22702    	output_verbose_link_cmd='echo'
22703        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22704      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22705      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22706      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22707      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22708    else
22709      case $cc_basename in
22710        xlc*)
22711         output_verbose_link_cmd='echo'
22712         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22713         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22714          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22715         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22716          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22717          ;;
22718       *)
22719         ld_shlibs_F77=no
22720          ;;
22721      esac
22722    fi
22723      ;;
22724
22725    dgux*)
22726      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727      hardcode_libdir_flag_spec_F77='-L$libdir'
22728      hardcode_shlibpath_var_F77=no
22729      ;;
22730
22731    freebsd1*)
22732      ld_shlibs_F77=no
22733      ;;
22734
22735    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22736    # support.  Future versions do this automatically, but an explicit c++rt0.o
22737    # does not break anything, and helps significantly (at the cost of a little
22738    # extra space).
22739    freebsd2.2*)
22740      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22741      hardcode_libdir_flag_spec_F77='-R$libdir'
22742      hardcode_direct_F77=yes
22743      hardcode_shlibpath_var_F77=no
22744      ;;
22745
22746    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22747    freebsd2*)
22748      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22749      hardcode_direct_F77=yes
22750      hardcode_minus_L_F77=yes
22751      hardcode_shlibpath_var_F77=no
22752      ;;
22753
22754    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22755    freebsd* | kfreebsd*-gnu | dragonfly*)
22756      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22757      hardcode_libdir_flag_spec_F77='-R$libdir'
22758      hardcode_direct_F77=yes
22759      hardcode_shlibpath_var_F77=no
22760      ;;
22761
22762    hpux9*)
22763      if test "$GCC" = yes; then
22764	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22765      else
22766	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22767      fi
22768      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22769      hardcode_libdir_separator_F77=:
22770      hardcode_direct_F77=yes
22771
22772      # hardcode_minus_L: Not really in the search PATH,
22773      # but as the default location of the library.
22774      hardcode_minus_L_F77=yes
22775      export_dynamic_flag_spec_F77='${wl}-E'
22776      ;;
22777
22778    hpux10*)
22779      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22780	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22781      else
22782	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22783      fi
22784      if test "$with_gnu_ld" = no; then
22785	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22786	hardcode_libdir_separator_F77=:
22787
22788	hardcode_direct_F77=yes
22789	export_dynamic_flag_spec_F77='${wl}-E'
22790
22791	# hardcode_minus_L: Not really in the search PATH,
22792	# but as the default location of the library.
22793	hardcode_minus_L_F77=yes
22794      fi
22795      ;;
22796
22797    hpux11*)
22798      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22799	case $host_cpu in
22800	hppa*64*)
22801	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22802	  ;;
22803	ia64*)
22804	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22805	  ;;
22806	*)
22807	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22808	  ;;
22809	esac
22810      else
22811	case $host_cpu in
22812	hppa*64*)
22813	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22814	  ;;
22815	ia64*)
22816	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22817	  ;;
22818	*)
22819	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22820	  ;;
22821	esac
22822      fi
22823      if test "$with_gnu_ld" = no; then
22824	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22825	hardcode_libdir_separator_F77=:
22826
22827	case $host_cpu in
22828	hppa*64*|ia64*)
22829	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22830	  hardcode_direct_F77=no
22831	  hardcode_shlibpath_var_F77=no
22832	  ;;
22833	*)
22834	  hardcode_direct_F77=yes
22835	  export_dynamic_flag_spec_F77='${wl}-E'
22836
22837	  # hardcode_minus_L: Not really in the search PATH,
22838	  # but as the default location of the library.
22839	  hardcode_minus_L_F77=yes
22840	  ;;
22841	esac
22842      fi
22843      ;;
22844
22845    irix5* | irix6* | nonstopux*)
22846      if test "$GCC" = yes; then
22847	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22848      else
22849	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22850	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22851      fi
22852      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22853      hardcode_libdir_separator_F77=:
22854      link_all_deplibs_F77=yes
22855      ;;
22856
22857    netbsd*)
22858      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22859	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22860      else
22861	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22862      fi
22863      hardcode_libdir_flag_spec_F77='-R$libdir'
22864      hardcode_direct_F77=yes
22865      hardcode_shlibpath_var_F77=no
22866      ;;
22867
22868    newsos6)
22869      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22870      hardcode_direct_F77=yes
22871      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22872      hardcode_libdir_separator_F77=:
22873      hardcode_shlibpath_var_F77=no
22874      ;;
22875
22876    openbsd*)
22877      hardcode_direct_F77=yes
22878      hardcode_shlibpath_var_F77=no
22879      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22880	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22881	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22882	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22883	export_dynamic_flag_spec_F77='${wl}-E'
22884      else
22885       case $host_os in
22886	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22887	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22888	   hardcode_libdir_flag_spec_F77='-R$libdir'
22889	   ;;
22890	 *)
22891	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22892	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22893	   ;;
22894       esac
22895      fi
22896      ;;
22897
22898    os2*)
22899      hardcode_libdir_flag_spec_F77='-L$libdir'
22900      hardcode_minus_L_F77=yes
22901      allow_undefined_flag_F77=unsupported
22902      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
22903      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22904      ;;
22905
22906    osf3*)
22907      if test "$GCC" = yes; then
22908	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22909	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22910      else
22911	allow_undefined_flag_F77=' -expect_unresolved \*'
22912	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22913      fi
22914      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22915      hardcode_libdir_separator_F77=:
22916      ;;
22917
22918    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22919      if test "$GCC" = yes; then
22920	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22921	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22922	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22923      else
22924	allow_undefined_flag_F77=' -expect_unresolved \*'
22925	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22926	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22927	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22928
22929	# Both c and cxx compiler support -rpath directly
22930	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22931      fi
22932      hardcode_libdir_separator_F77=:
22933      ;;
22934
22935    solaris*)
22936      no_undefined_flag_F77=' -z text'
22937      if test "$GCC" = yes; then
22938	wlarc='${wl}'
22939	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22940	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22941	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22942      else
22943	wlarc=''
22944	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22945	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22946  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22947      fi
22948      hardcode_libdir_flag_spec_F77='-R$libdir'
22949      hardcode_shlibpath_var_F77=no
22950      case $host_os in
22951      solaris2.[0-5] | solaris2.[0-5].*) ;;
22952      *)
22953 	# The compiler driver will combine linker options so we
22954 	# cannot just pass the convience library names through
22955 	# without $wl, iff we do not link with $LD.
22956 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22957 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22958 	case $wlarc in
22959 	'')
22960 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22961 	*)
22962 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22963 	esac ;;
22964      esac
22965      link_all_deplibs_F77=yes
22966      ;;
22967
22968    sunos4*)
22969      if test "x$host_vendor" = xsequent; then
22970	# Use $CC to link under sequent, because it throws in some extra .o
22971	# files that make .init and .fini sections work.
22972	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22973      else
22974	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22975      fi
22976      hardcode_libdir_flag_spec_F77='-L$libdir'
22977      hardcode_direct_F77=yes
22978      hardcode_minus_L_F77=yes
22979      hardcode_shlibpath_var_F77=no
22980      ;;
22981
22982    sysv4)
22983      case $host_vendor in
22984	sni)
22985	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22986	  hardcode_direct_F77=yes # is this really true???
22987	;;
22988	siemens)
22989	  ## LD is ld it makes a PLAMLIB
22990	  ## CC just makes a GrossModule.
22991	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22992	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22993	  hardcode_direct_F77=no
22994        ;;
22995	motorola)
22996	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22997	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22998	;;
22999      esac
23000      runpath_var='LD_RUN_PATH'
23001      hardcode_shlibpath_var_F77=no
23002      ;;
23003
23004    sysv4.3*)
23005      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23006      hardcode_shlibpath_var_F77=no
23007      export_dynamic_flag_spec_F77='-Bexport'
23008      ;;
23009
23010    sysv4*MP*)
23011      if test -d /usr/nec; then
23012	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23013	hardcode_shlibpath_var_F77=no
23014	runpath_var=LD_RUN_PATH
23015	hardcode_runpath_var=yes
23016	ld_shlibs_F77=yes
23017      fi
23018      ;;
23019
23020    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23021      no_undefined_flag_F77='${wl}-z,text'
23022      archive_cmds_need_lc_F77=no
23023      hardcode_shlibpath_var_F77=no
23024      runpath_var='LD_RUN_PATH'
23025
23026      if test "$GCC" = yes; then
23027	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23028	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23029      else
23030	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23031	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23032      fi
23033      ;;
23034
23035    sysv5* | sco3.2v5* | sco5v6*)
23036      # Note: We can NOT use -z defs as we might desire, because we do not
23037      # link with -lc, and that would cause any symbols used from libc to
23038      # always be unresolved, which means just about no library would
23039      # ever link correctly.  If we're not using GNU ld we use -z text
23040      # though, which does catch some bad symbols but isn't as heavy-handed
23041      # as -z defs.
23042      no_undefined_flag_F77='${wl}-z,text'
23043      allow_undefined_flag_F77='${wl}-z,nodefs'
23044      archive_cmds_need_lc_F77=no
23045      hardcode_shlibpath_var_F77=no
23046      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23047      hardcode_libdir_separator_F77=':'
23048      link_all_deplibs_F77=yes
23049      export_dynamic_flag_spec_F77='${wl}-Bexport'
23050      runpath_var='LD_RUN_PATH'
23051
23052      if test "$GCC" = yes; then
23053	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23054	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23055      else
23056	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23057	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23058      fi
23059      ;;
23060
23061    uts4*)
23062      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23063      hardcode_libdir_flag_spec_F77='-L$libdir'
23064      hardcode_shlibpath_var_F77=no
23065      ;;
23066
23067    *)
23068      ld_shlibs_F77=no
23069      ;;
23070    esac
23071  fi
23072
23073{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23074echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23075test "$ld_shlibs_F77" = no && can_build_shared=no
23076
23077#
23078# Do we need to explicitly link libc?
23079#
23080case "x$archive_cmds_need_lc_F77" in
23081x|xyes)
23082  # Assume -lc should be added
23083  archive_cmds_need_lc_F77=yes
23084
23085  if test "$enable_shared" = yes && test "$GCC" = yes; then
23086    case $archive_cmds_F77 in
23087    *'~'*)
23088      # FIXME: we may have to deal with multi-command sequences.
23089      ;;
23090    '$CC '*)
23091      # Test whether the compiler implicitly links with -lc since on some
23092      # systems, -lgcc has to come before -lc. If gcc already passes -lc
23093      # to ld, don't add -lc before -lgcc.
23094      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23095echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23096      $rm conftest*
23097      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23098
23099      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100  (eval $ac_compile) 2>&5
23101  ac_status=$?
23102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103  (exit $ac_status); } 2>conftest.err; then
23104        soname=conftest
23105        lib=conftest
23106        libobjs=conftest.$ac_objext
23107        deplibs=
23108        wl=$lt_prog_compiler_wl_F77
23109	pic_flag=$lt_prog_compiler_pic_F77
23110        compiler_flags=-v
23111        linker_flags=-v
23112        verstring=
23113        output_objdir=.
23114        libname=conftest
23115        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23116        allow_undefined_flag_F77=
23117        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23118  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23119  ac_status=$?
23120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121  (exit $ac_status); }
23122        then
23123	  archive_cmds_need_lc_F77=no
23124        else
23125	  archive_cmds_need_lc_F77=yes
23126        fi
23127        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23128      else
23129        cat conftest.err 1>&5
23130      fi
23131      $rm conftest*
23132      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23133echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23134      ;;
23135    esac
23136  fi
23137  ;;
23138esac
23139
23140{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23141echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23142library_names_spec=
23143libname_spec='lib$name'
23144soname_spec=
23145shrext_cmds=".so"
23146postinstall_cmds=
23147postuninstall_cmds=
23148finish_cmds=
23149finish_eval=
23150shlibpath_var=
23151shlibpath_overrides_runpath=unknown
23152version_type=none
23153dynamic_linker="$host_os ld.so"
23154sys_lib_dlsearch_path_spec="/lib /usr/lib"
23155if test "$GCC" = yes; then
23156  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23157  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23158    # if the path contains ";" then we assume it to be the separator
23159    # otherwise default to the standard path separator (i.e. ":") - it is
23160    # assumed that no part of a normal pathname contains ";" but that should
23161    # okay in the real world where ";" in dirpaths is itself problematic.
23162    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23163  else
23164    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23165  fi
23166else
23167  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23168fi
23169need_lib_prefix=unknown
23170hardcode_into_libs=no
23171
23172# when you set need_version to no, make sure it does not cause -set_version
23173# flags to be left without arguments
23174need_version=unknown
23175
23176case $host_os in
23177aix3*)
23178  version_type=linux
23179  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23180  shlibpath_var=LIBPATH
23181
23182  # AIX 3 has no versioning support, so we append a major version to the name.
23183  soname_spec='${libname}${release}${shared_ext}$major'
23184  ;;
23185
23186aix4* | aix5*)
23187  version_type=linux
23188  need_lib_prefix=no
23189  need_version=no
23190  hardcode_into_libs=yes
23191  if test "$host_cpu" = ia64; then
23192    # AIX 5 supports IA64
23193    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23194    shlibpath_var=LD_LIBRARY_PATH
23195  else
23196    # With GCC up to 2.95.x, collect2 would create an import file
23197    # for dependence libraries.  The import file would start with
23198    # the line `#! .'.  This would cause the generated library to
23199    # depend on `.', always an invalid library.  This was fixed in
23200    # development snapshots of GCC prior to 3.0.
23201    case $host_os in
23202      aix4 | aix4.[01] | aix4.[01].*)
23203      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23204	   echo ' yes '
23205	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23206	:
23207      else
23208	can_build_shared=no
23209      fi
23210      ;;
23211    esac
23212    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23213    # soname into executable. Probably we can add versioning support to
23214    # collect2, so additional links can be useful in future.
23215    if test "$aix_use_runtimelinking" = yes; then
23216      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23217      # instead of lib<name>.a to let people know that these are not
23218      # typical AIX shared libraries.
23219      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23220    else
23221      # We preserve .a as extension for shared libraries through AIX4.2
23222      # and later when we are not doing run time linking.
23223      library_names_spec='${libname}${release}.a $libname.a'
23224      soname_spec='${libname}${release}${shared_ext}$major'
23225    fi
23226    shlibpath_var=LIBPATH
23227  fi
23228  ;;
23229
23230amigaos*)
23231  library_names_spec='$libname.ixlibrary $libname.a'
23232  # Create ${libname}_ixlibrary.a entries in /sys/libs.
23233  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'
23234  ;;
23235
23236beos*)
23237  library_names_spec='${libname}${shared_ext}'
23238  dynamic_linker="$host_os ld.so"
23239  shlibpath_var=LIBRARY_PATH
23240  ;;
23241
23242bsdi[45]*)
23243  version_type=linux
23244  need_version=no
23245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246  soname_spec='${libname}${release}${shared_ext}$major'
23247  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23248  shlibpath_var=LD_LIBRARY_PATH
23249  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23250  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23251  # the default ld.so.conf also contains /usr/contrib/lib and
23252  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23253  # libtool to hard-code these into programs
23254  ;;
23255
23256cygwin* | mingw* | pw32*)
23257  version_type=windows
23258  shrext_cmds=".dll"
23259  need_version=no
23260  need_lib_prefix=no
23261
23262  case $GCC,$host_os in
23263  yes,cygwin* | yes,mingw* | yes,pw32*)
23264    library_names_spec='$libname.dll.a'
23265    # DLL is installed to $(libdir)/../bin by postinstall_cmds
23266    postinstall_cmds='base_file=`basename \${file}`~
23267      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23268      dldir=$destdir/`dirname \$dlpath`~
23269      test -d \$dldir || mkdir -p \$dldir~
23270      $install_prog $dir/$dlname \$dldir/$dlname~
23271      chmod a+x \$dldir/$dlname'
23272    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23273      dlpath=$dir/\$dldll~
23274       $rm \$dlpath'
23275    shlibpath_overrides_runpath=yes
23276
23277    case $host_os in
23278    cygwin*)
23279      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23280      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23281      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23282      ;;
23283    mingw*)
23284      # MinGW DLLs use traditional 'lib' prefix
23285      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23286      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23287      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23288        # It is most probably a Windows format PATH printed by
23289        # mingw gcc, but we are running on Cygwin. Gcc prints its search
23290        # path with ; separators, and with drive letters. We can handle the
23291        # drive letters (cygwin fileutils understands them), so leave them,
23292        # especially as we might pass files found there to a mingw objdump,
23293        # which wouldn't understand a cygwinified path. Ahh.
23294        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23295      else
23296        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23297      fi
23298      ;;
23299    pw32*)
23300      # pw32 DLLs use 'pw' prefix rather than 'lib'
23301      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23302      ;;
23303    esac
23304    ;;
23305
23306  *)
23307    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23308    ;;
23309  esac
23310  dynamic_linker='Win32 ld.exe'
23311  # FIXME: first we should search . and the directory the executable is in
23312  shlibpath_var=PATH
23313  ;;
23314
23315darwin* | rhapsody*)
23316  dynamic_linker="$host_os dyld"
23317  version_type=darwin
23318  need_lib_prefix=no
23319  need_version=no
23320  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23321  soname_spec='${libname}${release}${major}$shared_ext'
23322  shlibpath_overrides_runpath=yes
23323  shlibpath_var=DYLD_LIBRARY_PATH
23324  shrext_cmds='.dylib'
23325  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23326  if test "$GCC" = yes; then
23327    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"`
23328  else
23329    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23330  fi
23331  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23332  ;;
23333
23334dgux*)
23335  version_type=linux
23336  need_lib_prefix=no
23337  need_version=no
23338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23339  soname_spec='${libname}${release}${shared_ext}$major'
23340  shlibpath_var=LD_LIBRARY_PATH
23341  ;;
23342
23343freebsd1*)
23344  dynamic_linker=no
23345  ;;
23346
23347kfreebsd*-gnu)
23348  version_type=linux
23349  need_lib_prefix=no
23350  need_version=no
23351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352  soname_spec='${libname}${release}${shared_ext}$major'
23353  shlibpath_var=LD_LIBRARY_PATH
23354  shlibpath_overrides_runpath=no
23355  hardcode_into_libs=yes
23356  dynamic_linker='GNU ld.so'
23357  ;;
23358
23359freebsd* | dragonfly*)
23360  # DragonFly does not have aout.  When/if they implement a new
23361  # versioning mechanism, adjust this.
23362  if test -x /usr/bin/objformat; then
23363    objformat=`/usr/bin/objformat`
23364  else
23365    case $host_os in
23366    freebsd[123]*) objformat=aout ;;
23367    *) objformat=elf ;;
23368    esac
23369  fi
23370  version_type=freebsd-$objformat
23371  case $version_type in
23372    freebsd-elf*)
23373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23374      need_version=no
23375      need_lib_prefix=no
23376      ;;
23377    freebsd-*)
23378      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23379      need_version=yes
23380      ;;
23381  esac
23382  shlibpath_var=LD_LIBRARY_PATH
23383  case $host_os in
23384  freebsd2*)
23385    shlibpath_overrides_runpath=yes
23386    ;;
23387  freebsd3.[01]* | freebsdelf3.[01]*)
23388    shlibpath_overrides_runpath=yes
23389    hardcode_into_libs=yes
23390    ;;
23391  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23392  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23393    shlibpath_overrides_runpath=no
23394    hardcode_into_libs=yes
23395    ;;
23396  freebsd*) # from 4.6 on
23397    shlibpath_overrides_runpath=yes
23398    hardcode_into_libs=yes
23399    ;;
23400  esac
23401  ;;
23402
23403gnu*)
23404  version_type=linux
23405  need_lib_prefix=no
23406  need_version=no
23407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23408  soname_spec='${libname}${release}${shared_ext}$major'
23409  shlibpath_var=LD_LIBRARY_PATH
23410  hardcode_into_libs=yes
23411  ;;
23412
23413hpux9* | hpux10* | hpux11*)
23414  # Give a soname corresponding to the major version so that dld.sl refuses to
23415  # link against other versions.
23416  version_type=sunos
23417  need_lib_prefix=no
23418  need_version=no
23419  case $host_cpu in
23420  ia64*)
23421    shrext_cmds='.so'
23422    hardcode_into_libs=yes
23423    dynamic_linker="$host_os dld.so"
23424    shlibpath_var=LD_LIBRARY_PATH
23425    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23426    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427    soname_spec='${libname}${release}${shared_ext}$major'
23428    if test "X$HPUX_IA64_MODE" = X32; then
23429      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23430    else
23431      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23432    fi
23433    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23434    ;;
23435   hppa*64*)
23436     shrext_cmds='.sl'
23437     hardcode_into_libs=yes
23438     dynamic_linker="$host_os dld.sl"
23439     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23442     soname_spec='${libname}${release}${shared_ext}$major'
23443     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23444     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23445     ;;
23446   *)
23447    shrext_cmds='.sl'
23448    dynamic_linker="$host_os dld.sl"
23449    shlibpath_var=SHLIB_PATH
23450    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23452    soname_spec='${libname}${release}${shared_ext}$major'
23453    ;;
23454  esac
23455  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23456  postinstall_cmds='chmod 555 $lib'
23457  ;;
23458
23459interix3*)
23460  version_type=linux
23461  need_lib_prefix=no
23462  need_version=no
23463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23464  soname_spec='${libname}${release}${shared_ext}$major'
23465  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23466  shlibpath_var=LD_LIBRARY_PATH
23467  shlibpath_overrides_runpath=no
23468  hardcode_into_libs=yes
23469  ;;
23470
23471irix5* | irix6* | nonstopux*)
23472  case $host_os in
23473    nonstopux*) version_type=nonstopux ;;
23474    *)
23475	if test "$lt_cv_prog_gnu_ld" = yes; then
23476		version_type=linux
23477	else
23478		version_type=irix
23479	fi ;;
23480  esac
23481  need_lib_prefix=no
23482  need_version=no
23483  soname_spec='${libname}${release}${shared_ext}$major'
23484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23485  case $host_os in
23486  irix5* | nonstopux*)
23487    libsuff= shlibsuff=
23488    ;;
23489  *)
23490    case $LD in # libtool.m4 will add one of these switches to LD
23491    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23492      libsuff= shlibsuff= libmagic=32-bit;;
23493    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23494      libsuff=32 shlibsuff=N32 libmagic=N32;;
23495    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23496      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23497    *) libsuff= shlibsuff= libmagic=never-match;;
23498    esac
23499    ;;
23500  esac
23501  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23502  shlibpath_overrides_runpath=no
23503  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23504  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23505  hardcode_into_libs=yes
23506  ;;
23507
23508# No shared lib support for Linux oldld, aout, or coff.
23509linux*oldld* | linux*aout* | linux*coff*)
23510  dynamic_linker=no
23511  ;;
23512
23513# This must be Linux ELF.
23514linux*)
23515  version_type=linux
23516  need_lib_prefix=no
23517  need_version=no
23518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23519  soname_spec='${libname}${release}${shared_ext}$major'
23520  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23521  shlibpath_var=LD_LIBRARY_PATH
23522  shlibpath_overrides_runpath=no
23523  # This implies no fast_install, which is unacceptable.
23524  # Some rework will be needed to allow for fast_install
23525  # before this can be enabled.
23526  hardcode_into_libs=yes
23527
23528  # Append ld.so.conf contents to the search path
23529  if test -f /etc/ld.so.conf; then
23530    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' ' '`
23531    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23532  fi
23533
23534  # We used to test for /lib/ld.so.1 and disable shared libraries on
23535  # powerpc, because MkLinux only supported shared libraries with the
23536  # GNU dynamic linker.  Since this was broken with cross compilers,
23537  # most powerpc-linux boxes support dynamic linking these days and
23538  # people can always --disable-shared, the test was removed, and we
23539  # assume the GNU/Linux dynamic linker is in use.
23540  dynamic_linker='GNU/Linux ld.so'
23541  ;;
23542
23543knetbsd*-gnu)
23544  version_type=linux
23545  need_lib_prefix=no
23546  need_version=no
23547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23548  soname_spec='${libname}${release}${shared_ext}$major'
23549  shlibpath_var=LD_LIBRARY_PATH
23550  shlibpath_overrides_runpath=no
23551  hardcode_into_libs=yes
23552  dynamic_linker='GNU ld.so'
23553  ;;
23554
23555netbsd*)
23556  version_type=sunos
23557  need_lib_prefix=no
23558  need_version=no
23559  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23560    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23561    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23562    dynamic_linker='NetBSD (a.out) ld.so'
23563  else
23564    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23565    soname_spec='${libname}${release}${shared_ext}$major'
23566    dynamic_linker='NetBSD ld.elf_so'
23567  fi
23568  shlibpath_var=LD_LIBRARY_PATH
23569  shlibpath_overrides_runpath=yes
23570  hardcode_into_libs=yes
23571  ;;
23572
23573newsos6)
23574  version_type=linux
23575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576  shlibpath_var=LD_LIBRARY_PATH
23577  shlibpath_overrides_runpath=yes
23578  ;;
23579
23580nto-qnx*)
23581  version_type=linux
23582  need_lib_prefix=no
23583  need_version=no
23584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23585  soname_spec='${libname}${release}${shared_ext}$major'
23586  shlibpath_var=LD_LIBRARY_PATH
23587  shlibpath_overrides_runpath=yes
23588  ;;
23589
23590openbsd*)
23591  version_type=sunos
23592  sys_lib_dlsearch_path_spec="/usr/lib"
23593  need_lib_prefix=no
23594  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23595  case $host_os in
23596    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23597    *)                         need_version=no  ;;
23598  esac
23599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23600  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23601  shlibpath_var=LD_LIBRARY_PATH
23602  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23603    case $host_os in
23604      openbsd2.[89] | openbsd2.[89].*)
23605	shlibpath_overrides_runpath=no
23606	;;
23607      *)
23608	shlibpath_overrides_runpath=yes
23609	;;
23610      esac
23611  else
23612    shlibpath_overrides_runpath=yes
23613  fi
23614  ;;
23615
23616os2*)
23617  libname_spec='$name'
23618  shrext_cmds=".dll"
23619  need_lib_prefix=no
23620  library_names_spec='$libname${shared_ext} $libname.a'
23621  dynamic_linker='OS/2 ld.exe'
23622  shlibpath_var=LIBPATH
23623  ;;
23624
23625osf3* | osf4* | osf5*)
23626  version_type=osf
23627  need_lib_prefix=no
23628  need_version=no
23629  soname_spec='${libname}${release}${shared_ext}$major'
23630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23631  shlibpath_var=LD_LIBRARY_PATH
23632  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23633  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23634  ;;
23635
23636solaris*)
23637  version_type=linux
23638  need_lib_prefix=no
23639  need_version=no
23640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23641  soname_spec='${libname}${release}${shared_ext}$major'
23642  shlibpath_var=LD_LIBRARY_PATH
23643  shlibpath_overrides_runpath=yes
23644  hardcode_into_libs=yes
23645  # ldd complains unless libraries are executable
23646  postinstall_cmds='chmod +x $lib'
23647  ;;
23648
23649sunos4*)
23650  version_type=sunos
23651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23652  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23653  shlibpath_var=LD_LIBRARY_PATH
23654  shlibpath_overrides_runpath=yes
23655  if test "$with_gnu_ld" = yes; then
23656    need_lib_prefix=no
23657  fi
23658  need_version=yes
23659  ;;
23660
23661sysv4 | sysv4.3*)
23662  version_type=linux
23663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23664  soname_spec='${libname}${release}${shared_ext}$major'
23665  shlibpath_var=LD_LIBRARY_PATH
23666  case $host_vendor in
23667    sni)
23668      shlibpath_overrides_runpath=no
23669      need_lib_prefix=no
23670      export_dynamic_flag_spec='${wl}-Blargedynsym'
23671      runpath_var=LD_RUN_PATH
23672      ;;
23673    siemens)
23674      need_lib_prefix=no
23675      ;;
23676    motorola)
23677      need_lib_prefix=no
23678      need_version=no
23679      shlibpath_overrides_runpath=no
23680      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23681      ;;
23682  esac
23683  ;;
23684
23685sysv4*MP*)
23686  if test -d /usr/nec ;then
23687    version_type=linux
23688    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23689    soname_spec='$libname${shared_ext}.$major'
23690    shlibpath_var=LD_LIBRARY_PATH
23691  fi
23692  ;;
23693
23694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23695  version_type=freebsd-elf
23696  need_lib_prefix=no
23697  need_version=no
23698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23699  soname_spec='${libname}${release}${shared_ext}$major'
23700  shlibpath_var=LD_LIBRARY_PATH
23701  hardcode_into_libs=yes
23702  if test "$with_gnu_ld" = yes; then
23703    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23704    shlibpath_overrides_runpath=no
23705  else
23706    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23707    shlibpath_overrides_runpath=yes
23708    case $host_os in
23709      sco3.2v5*)
23710        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23711	;;
23712    esac
23713  fi
23714  sys_lib_dlsearch_path_spec='/usr/lib'
23715  ;;
23716
23717uts4*)
23718  version_type=linux
23719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23720  soname_spec='${libname}${release}${shared_ext}$major'
23721  shlibpath_var=LD_LIBRARY_PATH
23722  ;;
23723
23724*)
23725  dynamic_linker=no
23726  ;;
23727esac
23728{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23729echo "${ECHO_T}$dynamic_linker" >&6; }
23730test "$dynamic_linker" = no && can_build_shared=no
23731
23732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23733if test "$GCC" = yes; then
23734  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23735fi
23736
23737{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23738echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23739hardcode_action_F77=
23740if test -n "$hardcode_libdir_flag_spec_F77" || \
23741   test -n "$runpath_var_F77" || \
23742   test "X$hardcode_automatic_F77" = "Xyes" ; then
23743
23744  # We can hardcode non-existant directories.
23745  if test "$hardcode_direct_F77" != no &&
23746     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23747     # have to relink, otherwise we might link with an installed library
23748     # when we should be linking with a yet-to-be-installed one
23749     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23750     test "$hardcode_minus_L_F77" != no; then
23751    # Linking always hardcodes the temporary library directory.
23752    hardcode_action_F77=relink
23753  else
23754    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23755    hardcode_action_F77=immediate
23756  fi
23757else
23758  # We cannot hardcode anything, or else we can only hardcode existing
23759  # directories.
23760  hardcode_action_F77=unsupported
23761fi
23762{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23763echo "${ECHO_T}$hardcode_action_F77" >&6; }
23764
23765if test "$hardcode_action_F77" = relink; then
23766  # Fast installation is not supported
23767  enable_fast_install=no
23768elif test "$shlibpath_overrides_runpath" = yes ||
23769     test "$enable_shared" = no; then
23770  # Fast installation is not necessary
23771  enable_fast_install=needless
23772fi
23773
23774
23775# The else clause should only fire when bootstrapping the
23776# libtool distribution, otherwise you forgot to ship ltmain.sh
23777# with your package, and you will get complaints that there are
23778# no rules to generate ltmain.sh.
23779if test -f "$ltmain"; then
23780  # See if we are running on zsh, and set the options which allow our commands through
23781  # without removal of \ escapes.
23782  if test -n "${ZSH_VERSION+set}" ; then
23783    setopt NO_GLOB_SUBST
23784  fi
23785  # Now quote all the things that may contain metacharacters while being
23786  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23787  # variables and quote the copies for generation of the libtool script.
23788  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23789    SED SHELL STRIP \
23790    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23791    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23792    deplibs_check_method reload_flag reload_cmds need_locks \
23793    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23794    lt_cv_sys_global_symbol_to_c_name_address \
23795    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23796    old_postinstall_cmds old_postuninstall_cmds \
23797    compiler_F77 \
23798    CC_F77 \
23799    LD_F77 \
23800    lt_prog_compiler_wl_F77 \
23801    lt_prog_compiler_pic_F77 \
23802    lt_prog_compiler_static_F77 \
23803    lt_prog_compiler_no_builtin_flag_F77 \
23804    export_dynamic_flag_spec_F77 \
23805    thread_safe_flag_spec_F77 \
23806    whole_archive_flag_spec_F77 \
23807    enable_shared_with_static_runtimes_F77 \
23808    old_archive_cmds_F77 \
23809    old_archive_from_new_cmds_F77 \
23810    predep_objects_F77 \
23811    postdep_objects_F77 \
23812    predeps_F77 \
23813    postdeps_F77 \
23814    compiler_lib_search_path_F77 \
23815    archive_cmds_F77 \
23816    archive_expsym_cmds_F77 \
23817    postinstall_cmds_F77 \
23818    postuninstall_cmds_F77 \
23819    old_archive_from_expsyms_cmds_F77 \
23820    allow_undefined_flag_F77 \
23821    no_undefined_flag_F77 \
23822    export_symbols_cmds_F77 \
23823    hardcode_libdir_flag_spec_F77 \
23824    hardcode_libdir_flag_spec_ld_F77 \
23825    hardcode_libdir_separator_F77 \
23826    hardcode_automatic_F77 \
23827    module_cmds_F77 \
23828    module_expsym_cmds_F77 \
23829    lt_cv_prog_compiler_c_o_F77 \
23830    exclude_expsyms_F77 \
23831    include_expsyms_F77; do
23832
23833    case $var in
23834    old_archive_cmds_F77 | \
23835    old_archive_from_new_cmds_F77 | \
23836    archive_cmds_F77 | \
23837    archive_expsym_cmds_F77 | \
23838    module_cmds_F77 | \
23839    module_expsym_cmds_F77 | \
23840    old_archive_from_expsyms_cmds_F77 | \
23841    export_symbols_cmds_F77 | \
23842    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23843    postinstall_cmds | postuninstall_cmds | \
23844    old_postinstall_cmds | old_postuninstall_cmds | \
23845    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23846      # Double-quote double-evaled strings.
23847      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23848      ;;
23849    *)
23850      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23851      ;;
23852    esac
23853  done
23854
23855  case $lt_echo in
23856  *'\$0 --fallback-echo"')
23857    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23858    ;;
23859  esac
23860
23861cfgfile="$ofile"
23862
23863  cat <<__EOF__ >> "$cfgfile"
23864# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23865
23866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23867
23868# Shell to use when invoking shell scripts.
23869SHELL=$lt_SHELL
23870
23871# Whether or not to build shared libraries.
23872build_libtool_libs=$enable_shared
23873
23874# Whether or not to build static libraries.
23875build_old_libs=$enable_static
23876
23877# Whether or not to add -lc for building shared libraries.
23878build_libtool_need_lc=$archive_cmds_need_lc_F77
23879
23880# Whether or not to disallow shared libs when runtime libs are static
23881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23882
23883# Whether or not to optimize for fast installation.
23884fast_install=$enable_fast_install
23885
23886# The host system.
23887host_alias=$host_alias
23888host=$host
23889host_os=$host_os
23890
23891# The build system.
23892build_alias=$build_alias
23893build=$build
23894build_os=$build_os
23895
23896# An echo program that does not interpret backslashes.
23897echo=$lt_echo
23898
23899# The archiver.
23900AR=$lt_AR
23901AR_FLAGS=$lt_AR_FLAGS
23902
23903# A C compiler.
23904LTCC=$lt_LTCC
23905
23906# LTCC compiler flags.
23907LTCFLAGS=$lt_LTCFLAGS
23908
23909# A language-specific compiler.
23910CC=$lt_compiler_F77
23911
23912# Is the compiler the GNU C compiler?
23913with_gcc=$GCC_F77
23914
23915# An ERE matcher.
23916EGREP=$lt_EGREP
23917
23918# The linker used to build libraries.
23919LD=$lt_LD_F77
23920
23921# Whether we need hard or soft links.
23922LN_S=$lt_LN_S
23923
23924# A BSD-compatible nm program.
23925NM=$lt_NM
23926
23927# A symbol stripping program
23928STRIP=$lt_STRIP
23929
23930# Used to examine libraries when file_magic_cmd begins "file"
23931MAGIC_CMD=$MAGIC_CMD
23932
23933# Used on cygwin: DLL creation program.
23934DLLTOOL="$DLLTOOL"
23935
23936# Used on cygwin: object dumper.
23937OBJDUMP="$OBJDUMP"
23938
23939# Used on cygwin: assembler.
23940AS="$AS"
23941
23942# The name of the directory that contains temporary libtool files.
23943objdir=$objdir
23944
23945# How to create reloadable object files.
23946reload_flag=$lt_reload_flag
23947reload_cmds=$lt_reload_cmds
23948
23949# How to pass a linker flag through the compiler.
23950wl=$lt_lt_prog_compiler_wl_F77
23951
23952# Object file suffix (normally "o").
23953objext="$ac_objext"
23954
23955# Old archive suffix (normally "a").
23956libext="$libext"
23957
23958# Shared library suffix (normally ".so").
23959shrext_cmds='$shrext_cmds'
23960
23961# Executable file suffix (normally "").
23962exeext="$exeext"
23963
23964# Additional compiler flags for building library objects.
23965pic_flag=$lt_lt_prog_compiler_pic_F77
23966pic_mode=$pic_mode
23967
23968# What is the maximum length of a command?
23969max_cmd_len=$lt_cv_sys_max_cmd_len
23970
23971# Does compiler simultaneously support -c and -o options?
23972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23973
23974# Must we lock files when doing compilation?
23975need_locks=$lt_need_locks
23976
23977# Do we need the lib prefix for modules?
23978need_lib_prefix=$need_lib_prefix
23979
23980# Do we need a version for libraries?
23981need_version=$need_version
23982
23983# Whether dlopen is supported.
23984dlopen_support=$enable_dlopen
23985
23986# Whether dlopen of programs is supported.
23987dlopen_self=$enable_dlopen_self
23988
23989# Whether dlopen of statically linked programs is supported.
23990dlopen_self_static=$enable_dlopen_self_static
23991
23992# Compiler flag to prevent dynamic linking.
23993link_static_flag=$lt_lt_prog_compiler_static_F77
23994
23995# Compiler flag to turn off builtin functions.
23996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23997
23998# Compiler flag to allow reflexive dlopens.
23999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24000
24001# Compiler flag to generate shared objects directly from archives.
24002whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24003
24004# Compiler flag to generate thread-safe objects.
24005thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24006
24007# Library versioning type.
24008version_type=$version_type
24009
24010# Format of library name prefix.
24011libname_spec=$lt_libname_spec
24012
24013# List of archive names.  First name is the real one, the rest are links.
24014# The last name is the one that the linker finds with -lNAME.
24015library_names_spec=$lt_library_names_spec
24016
24017# The coded name of the library, if different from the real name.
24018soname_spec=$lt_soname_spec
24019
24020# Commands used to build and install an old-style archive.
24021RANLIB=$lt_RANLIB
24022old_archive_cmds=$lt_old_archive_cmds_F77
24023old_postinstall_cmds=$lt_old_postinstall_cmds
24024old_postuninstall_cmds=$lt_old_postuninstall_cmds
24025
24026# Create an old-style archive from a shared archive.
24027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24028
24029# Create a temporary old-style archive to link instead of a shared archive.
24030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24031
24032# Commands used to build and install a shared archive.
24033archive_cmds=$lt_archive_cmds_F77
24034archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24035postinstall_cmds=$lt_postinstall_cmds
24036postuninstall_cmds=$lt_postuninstall_cmds
24037
24038# Commands used to build a loadable module (assumed same as above if empty)
24039module_cmds=$lt_module_cmds_F77
24040module_expsym_cmds=$lt_module_expsym_cmds_F77
24041
24042# Commands to strip libraries.
24043old_striplib=$lt_old_striplib
24044striplib=$lt_striplib
24045
24046# Dependencies to place before the objects being linked to create a
24047# shared library.
24048predep_objects=$lt_predep_objects_F77
24049
24050# Dependencies to place after the objects being linked to create a
24051# shared library.
24052postdep_objects=$lt_postdep_objects_F77
24053
24054# Dependencies to place before the objects being linked to create a
24055# shared library.
24056predeps=$lt_predeps_F77
24057
24058# Dependencies to place after the objects being linked to create a
24059# shared library.
24060postdeps=$lt_postdeps_F77
24061
24062# The library search path used internally by the compiler when linking
24063# a shared library.
24064compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24065
24066# Method to check whether dependent libraries are shared objects.
24067deplibs_check_method=$lt_deplibs_check_method
24068
24069# Command to use when deplibs_check_method == file_magic.
24070file_magic_cmd=$lt_file_magic_cmd
24071
24072# Flag that allows shared libraries with undefined symbols to be built.
24073allow_undefined_flag=$lt_allow_undefined_flag_F77
24074
24075# Flag that forces no undefined symbols.
24076no_undefined_flag=$lt_no_undefined_flag_F77
24077
24078# Commands used to finish a libtool library installation in a directory.
24079finish_cmds=$lt_finish_cmds
24080
24081# Same as above, but a single script fragment to be evaled but not shown.
24082finish_eval=$lt_finish_eval
24083
24084# Take the output of nm and produce a listing of raw symbols and C names.
24085global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24086
24087# Transform the output of nm in a proper C declaration
24088global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24089
24090# Transform the output of nm in a C name address pair
24091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24092
24093# This is the shared library runtime path variable.
24094runpath_var=$runpath_var
24095
24096# This is the shared library path variable.
24097shlibpath_var=$shlibpath_var
24098
24099# Is shlibpath searched before the hard-coded library search path?
24100shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24101
24102# How to hardcode a shared library path into an executable.
24103hardcode_action=$hardcode_action_F77
24104
24105# Whether we should hardcode library paths into libraries.
24106hardcode_into_libs=$hardcode_into_libs
24107
24108# Flag to hardcode \$libdir into a binary during linking.
24109# This must work even if \$libdir does not exist.
24110hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24111
24112# If ld is used when linking, flag to hardcode \$libdir into
24113# a binary during linking. This must work even if \$libdir does
24114# not exist.
24115hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24116
24117# Whether we need a single -rpath flag with a separated argument.
24118hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24119
24120# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24121# resulting binary.
24122hardcode_direct=$hardcode_direct_F77
24123
24124# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24125# resulting binary.
24126hardcode_minus_L=$hardcode_minus_L_F77
24127
24128# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24129# the resulting binary.
24130hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24131
24132# Set to yes if building a shared library automatically hardcodes DIR into the library
24133# and all subsequent libraries and executables linked against it.
24134hardcode_automatic=$hardcode_automatic_F77
24135
24136# Variables whose values should be saved in libtool wrapper scripts and
24137# restored at relink time.
24138variables_saved_for_relink="$variables_saved_for_relink"
24139
24140# Whether libtool must link a program against all its dependency libraries.
24141link_all_deplibs=$link_all_deplibs_F77
24142
24143# Compile-time system search path for libraries
24144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24145
24146# Run-time system search path for libraries
24147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24148
24149# Fix the shell variable \$srcfile for the compiler.
24150fix_srcfile_path="$fix_srcfile_path_F77"
24151
24152# Set to yes if exported symbols are required.
24153always_export_symbols=$always_export_symbols_F77
24154
24155# The commands to list exported symbols.
24156export_symbols_cmds=$lt_export_symbols_cmds_F77
24157
24158# The commands to extract the exported symbol list from a shared archive.
24159extract_expsyms_cmds=$lt_extract_expsyms_cmds
24160
24161# Symbols that should not be listed in the preloaded symbols.
24162exclude_expsyms=$lt_exclude_expsyms_F77
24163
24164# Symbols that must always be exported.
24165include_expsyms=$lt_include_expsyms_F77
24166
24167# ### END LIBTOOL TAG CONFIG: $tagname
24168
24169__EOF__
24170
24171
24172else
24173  # If there is no Makefile yet, we rely on a make rule to execute
24174  # `config.status --recheck' to rerun these tests and create the
24175  # libtool script then.
24176  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24177  if test -f "$ltmain_in"; then
24178    test -f Makefile && make "$ltmain"
24179  fi
24180fi
24181
24182
24183ac_ext=c
24184ac_cpp='$CPP $CPPFLAGS'
24185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24187ac_compiler_gnu=$ac_cv_c_compiler_gnu
24188
24189CC="$lt_save_CC"
24190
24191	else
24192	  tagname=""
24193	fi
24194	;;
24195
24196      GCJ)
24197	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24198	  ac_ext=c
24199ac_cpp='$CPP $CPPFLAGS'
24200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202ac_compiler_gnu=$ac_cv_c_compiler_gnu
24203
24204
24205# Source file extension for Java test sources.
24206ac_ext=java
24207
24208# Object file extension for compiled Java test sources.
24209objext=o
24210objext_GCJ=$objext
24211
24212# Code to be used in simple compile tests
24213lt_simple_compile_test_code="class foo {}\n"
24214
24215# Code to be used in simple link tests
24216lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24217
24218# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24219
24220# If no C compiler was specified, use CC.
24221LTCC=${LTCC-"$CC"}
24222
24223# If no C compiler flags were specified, use CFLAGS.
24224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24225
24226# Allow CC to be a program name with arguments.
24227compiler=$CC
24228
24229
24230# save warnings/boilerplate of simple test code
24231ac_outfile=conftest.$ac_objext
24232printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24234_lt_compiler_boilerplate=`cat conftest.err`
24235$rm conftest*
24236
24237ac_outfile=conftest.$ac_objext
24238printf "$lt_simple_link_test_code" >conftest.$ac_ext
24239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24240_lt_linker_boilerplate=`cat conftest.err`
24241$rm conftest*
24242
24243
24244# Allow CC to be a program name with arguments.
24245lt_save_CC="$CC"
24246CC=${GCJ-"gcj"}
24247compiler=$CC
24248compiler_GCJ=$CC
24249for cc_temp in $compiler""; do
24250  case $cc_temp in
24251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24253    \-*) ;;
24254    *) break;;
24255  esac
24256done
24257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24258
24259
24260# GCJ did not exist at the time GCC didn't implicitly link libc in.
24261archive_cmds_need_lc_GCJ=no
24262
24263old_archive_cmds_GCJ=$old_archive_cmds
24264
24265
24266lt_prog_compiler_no_builtin_flag_GCJ=
24267
24268if test "$GCC" = yes; then
24269  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24270
24271
24272{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24273echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24274if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24275  echo $ECHO_N "(cached) $ECHO_C" >&6
24276else
24277  lt_cv_prog_compiler_rtti_exceptions=no
24278  ac_outfile=conftest.$ac_objext
24279   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24280   lt_compiler_flag="-fno-rtti -fno-exceptions"
24281   # Insert the option either (1) after the last *FLAGS variable, or
24282   # (2) before a word containing "conftest.", or (3) at the end.
24283   # Note that $ac_compile itself does not contain backslashes and begins
24284   # with a dollar sign (not a hyphen), so the echo should work correctly.
24285   # The option is referenced via a variable to avoid confusing sed.
24286   lt_compile=`echo "$ac_compile" | $SED \
24287   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24288   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24289   -e 's:$: $lt_compiler_flag:'`
24290   (eval echo "\"\$as_me:24290: $lt_compile\"" >&5)
24291   (eval "$lt_compile" 2>conftest.err)
24292   ac_status=$?
24293   cat conftest.err >&5
24294   echo "$as_me:24294: \$? = $ac_status" >&5
24295   if (exit $ac_status) && test -s "$ac_outfile"; then
24296     # The compiler can only warn and ignore the option if not recognized
24297     # So say no if there are warnings other than the usual output.
24298     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24299     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24300     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24301       lt_cv_prog_compiler_rtti_exceptions=yes
24302     fi
24303   fi
24304   $rm conftest*
24305
24306fi
24307{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24308echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24309
24310if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24311    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24312else
24313    :
24314fi
24315
24316fi
24317
24318lt_prog_compiler_wl_GCJ=
24319lt_prog_compiler_pic_GCJ=
24320lt_prog_compiler_static_GCJ=
24321
24322{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24323echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24324
24325  if test "$GCC" = yes; then
24326    lt_prog_compiler_wl_GCJ='-Wl,'
24327    lt_prog_compiler_static_GCJ='-static'
24328
24329    case $host_os in
24330      aix*)
24331      # All AIX code is PIC.
24332      if test "$host_cpu" = ia64; then
24333	# AIX 5 now supports IA64 processor
24334	lt_prog_compiler_static_GCJ='-Bstatic'
24335      fi
24336      ;;
24337
24338    amigaos*)
24339      # FIXME: we need at least 68020 code to build shared libraries, but
24340      # adding the `-m68020' flag to GCC prevents building anything better,
24341      # like `-m68040'.
24342      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24343      ;;
24344
24345    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24346      # PIC is the default for these OSes.
24347      ;;
24348
24349    mingw* | pw32* | os2*)
24350      # This hack is so that the source file can tell whether it is being
24351      # built for inclusion in a dll (and should export symbols for example).
24352      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24353      ;;
24354
24355    darwin* | rhapsody*)
24356      # PIC is the default on this platform
24357      # Common symbols not allowed in MH_DYLIB files
24358      lt_prog_compiler_pic_GCJ='-fno-common'
24359      ;;
24360
24361    interix3*)
24362      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24363      # Instead, we relocate shared libraries at runtime.
24364      ;;
24365
24366    msdosdjgpp*)
24367      # Just because we use GCC doesn't mean we suddenly get shared libraries
24368      # on systems that don't support them.
24369      lt_prog_compiler_can_build_shared_GCJ=no
24370      enable_shared=no
24371      ;;
24372
24373    sysv4*MP*)
24374      if test -d /usr/nec; then
24375	lt_prog_compiler_pic_GCJ=-Kconform_pic
24376      fi
24377      ;;
24378
24379    hpux*)
24380      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24381      # not for PA HP-UX.
24382      case $host_cpu in
24383      hppa*64*|ia64*)
24384	# +Z the default
24385	;;
24386      *)
24387	lt_prog_compiler_pic_GCJ='-fPIC'
24388	;;
24389      esac
24390      ;;
24391
24392    *)
24393      lt_prog_compiler_pic_GCJ='-fPIC'
24394      ;;
24395    esac
24396  else
24397    # PORTME Check for flag to pass linker flags through the system compiler.
24398    case $host_os in
24399    aix*)
24400      lt_prog_compiler_wl_GCJ='-Wl,'
24401      if test "$host_cpu" = ia64; then
24402	# AIX 5 now supports IA64 processor
24403	lt_prog_compiler_static_GCJ='-Bstatic'
24404      else
24405	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24406      fi
24407      ;;
24408      darwin*)
24409        # PIC is the default on this platform
24410        # Common symbols not allowed in MH_DYLIB files
24411       case $cc_basename in
24412         xlc*)
24413         lt_prog_compiler_pic_GCJ='-qnocommon'
24414         lt_prog_compiler_wl_GCJ='-Wl,'
24415         ;;
24416       esac
24417       ;;
24418
24419    mingw* | pw32* | os2*)
24420      # This hack is so that the source file can tell whether it is being
24421      # built for inclusion in a dll (and should export symbols for example).
24422      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24423      ;;
24424
24425    hpux9* | hpux10* | hpux11*)
24426      lt_prog_compiler_wl_GCJ='-Wl,'
24427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24428      # not for PA HP-UX.
24429      case $host_cpu in
24430      hppa*64*|ia64*)
24431	# +Z the default
24432	;;
24433      *)
24434	lt_prog_compiler_pic_GCJ='+Z'
24435	;;
24436      esac
24437      # Is there a better lt_prog_compiler_static that works with the bundled CC?
24438      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24439      ;;
24440
24441    irix5* | irix6* | nonstopux*)
24442      lt_prog_compiler_wl_GCJ='-Wl,'
24443      # PIC (with -KPIC) is the default.
24444      lt_prog_compiler_static_GCJ='-non_shared'
24445      ;;
24446
24447    newsos6)
24448      lt_prog_compiler_pic_GCJ='-KPIC'
24449      lt_prog_compiler_static_GCJ='-Bstatic'
24450      ;;
24451
24452    linux*)
24453      case $cc_basename in
24454      icc* | ecc*)
24455	lt_prog_compiler_wl_GCJ='-Wl,'
24456	lt_prog_compiler_pic_GCJ='-KPIC'
24457	lt_prog_compiler_static_GCJ='-static'
24458        ;;
24459      pgcc* | pgf77* | pgf90* | pgf95*)
24460        # Portland Group compilers (*not* the Pentium gcc compiler,
24461	# which looks to be a dead project)
24462	lt_prog_compiler_wl_GCJ='-Wl,'
24463	lt_prog_compiler_pic_GCJ='-fpic'
24464	lt_prog_compiler_static_GCJ='-Bstatic'
24465        ;;
24466      ccc*)
24467        lt_prog_compiler_wl_GCJ='-Wl,'
24468        # All Alpha code is PIC.
24469        lt_prog_compiler_static_GCJ='-non_shared'
24470        ;;
24471      esac
24472      ;;
24473
24474    osf3* | osf4* | osf5*)
24475      lt_prog_compiler_wl_GCJ='-Wl,'
24476      # All OSF/1 code is PIC.
24477      lt_prog_compiler_static_GCJ='-non_shared'
24478      ;;
24479
24480    solaris*)
24481      lt_prog_compiler_pic_GCJ='-KPIC'
24482      lt_prog_compiler_static_GCJ='-Bstatic'
24483      case $cc_basename in
24484      f77* | f90* | f95*)
24485	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24486      *)
24487	lt_prog_compiler_wl_GCJ='-Wl,';;
24488      esac
24489      ;;
24490
24491    sunos4*)
24492      lt_prog_compiler_wl_GCJ='-Qoption ld '
24493      lt_prog_compiler_pic_GCJ='-PIC'
24494      lt_prog_compiler_static_GCJ='-Bstatic'
24495      ;;
24496
24497    sysv4 | sysv4.2uw2* | sysv4.3*)
24498      lt_prog_compiler_wl_GCJ='-Wl,'
24499      lt_prog_compiler_pic_GCJ='-KPIC'
24500      lt_prog_compiler_static_GCJ='-Bstatic'
24501      ;;
24502
24503    sysv4*MP*)
24504      if test -d /usr/nec ;then
24505	lt_prog_compiler_pic_GCJ='-Kconform_pic'
24506	lt_prog_compiler_static_GCJ='-Bstatic'
24507      fi
24508      ;;
24509
24510    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24511      lt_prog_compiler_wl_GCJ='-Wl,'
24512      lt_prog_compiler_pic_GCJ='-KPIC'
24513      lt_prog_compiler_static_GCJ='-Bstatic'
24514      ;;
24515
24516    unicos*)
24517      lt_prog_compiler_wl_GCJ='-Wl,'
24518      lt_prog_compiler_can_build_shared_GCJ=no
24519      ;;
24520
24521    uts4*)
24522      lt_prog_compiler_pic_GCJ='-pic'
24523      lt_prog_compiler_static_GCJ='-Bstatic'
24524      ;;
24525
24526    *)
24527      lt_prog_compiler_can_build_shared_GCJ=no
24528      ;;
24529    esac
24530  fi
24531
24532{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24533echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24534
24535#
24536# Check to make sure the PIC flag actually works.
24537#
24538if test -n "$lt_prog_compiler_pic_GCJ"; then
24539
24540{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24541echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24542if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24543  echo $ECHO_N "(cached) $ECHO_C" >&6
24544else
24545  lt_prog_compiler_pic_works_GCJ=no
24546  ac_outfile=conftest.$ac_objext
24547   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24548   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24549   # Insert the option either (1) after the last *FLAGS variable, or
24550   # (2) before a word containing "conftest.", or (3) at the end.
24551   # Note that $ac_compile itself does not contain backslashes and begins
24552   # with a dollar sign (not a hyphen), so the echo should work correctly.
24553   # The option is referenced via a variable to avoid confusing sed.
24554   lt_compile=`echo "$ac_compile" | $SED \
24555   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24557   -e 's:$: $lt_compiler_flag:'`
24558   (eval echo "\"\$as_me:24558: $lt_compile\"" >&5)
24559   (eval "$lt_compile" 2>conftest.err)
24560   ac_status=$?
24561   cat conftest.err >&5
24562   echo "$as_me:24562: \$? = $ac_status" >&5
24563   if (exit $ac_status) && test -s "$ac_outfile"; then
24564     # The compiler can only warn and ignore the option if not recognized
24565     # So say no if there are warnings other than the usual output.
24566     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24567     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24568     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24569       lt_prog_compiler_pic_works_GCJ=yes
24570     fi
24571   fi
24572   $rm conftest*
24573
24574fi
24575{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24576echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24577
24578if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24579    case $lt_prog_compiler_pic_GCJ in
24580     "" | " "*) ;;
24581     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24582     esac
24583else
24584    lt_prog_compiler_pic_GCJ=
24585     lt_prog_compiler_can_build_shared_GCJ=no
24586fi
24587
24588fi
24589case $host_os in
24590  # For platforms which do not support PIC, -DPIC is meaningless:
24591  *djgpp*)
24592    lt_prog_compiler_pic_GCJ=
24593    ;;
24594  *)
24595    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24596    ;;
24597esac
24598
24599#
24600# Check to make sure the static flag actually works.
24601#
24602wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24603{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24604echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24605if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24606  echo $ECHO_N "(cached) $ECHO_C" >&6
24607else
24608  lt_prog_compiler_static_works_GCJ=no
24609   save_LDFLAGS="$LDFLAGS"
24610   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24611   printf "$lt_simple_link_test_code" > conftest.$ac_ext
24612   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24613     # The linker can only warn and ignore the option if not recognized
24614     # So say no if there are warnings
24615     if test -s conftest.err; then
24616       # Append any errors to the config.log.
24617       cat conftest.err 1>&5
24618       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24619       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24620       if diff conftest.exp conftest.er2 >/dev/null; then
24621         lt_prog_compiler_static_works_GCJ=yes
24622       fi
24623     else
24624       lt_prog_compiler_static_works_GCJ=yes
24625     fi
24626   fi
24627   $rm conftest*
24628   LDFLAGS="$save_LDFLAGS"
24629
24630fi
24631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24632echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24633
24634if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24635    :
24636else
24637    lt_prog_compiler_static_GCJ=
24638fi
24639
24640
24641{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24642echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24643if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24644  echo $ECHO_N "(cached) $ECHO_C" >&6
24645else
24646  lt_cv_prog_compiler_c_o_GCJ=no
24647   $rm -r conftest 2>/dev/null
24648   mkdir conftest
24649   cd conftest
24650   mkdir out
24651   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24652
24653   lt_compiler_flag="-o out/conftest2.$ac_objext"
24654   # Insert the option either (1) after the last *FLAGS variable, or
24655   # (2) before a word containing "conftest.", or (3) at the end.
24656   # Note that $ac_compile itself does not contain backslashes and begins
24657   # with a dollar sign (not a hyphen), so the echo should work correctly.
24658   lt_compile=`echo "$ac_compile" | $SED \
24659   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24660   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24661   -e 's:$: $lt_compiler_flag:'`
24662   (eval echo "\"\$as_me:24662: $lt_compile\"" >&5)
24663   (eval "$lt_compile" 2>out/conftest.err)
24664   ac_status=$?
24665   cat out/conftest.err >&5
24666   echo "$as_me:24666: \$? = $ac_status" >&5
24667   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24668   then
24669     # The compiler can only warn and ignore the option if not recognized
24670     # So say no if there are warnings
24671     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24672     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24673     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24674       lt_cv_prog_compiler_c_o_GCJ=yes
24675     fi
24676   fi
24677   chmod u+w . 2>&5
24678   $rm conftest*
24679   # SGI C++ compiler will create directory out/ii_files/ for
24680   # template instantiation
24681   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24682   $rm out/* && rmdir out
24683   cd ..
24684   rmdir conftest
24685   $rm conftest*
24686
24687fi
24688{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24689echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24690
24691
24692hard_links="nottested"
24693if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24694  # do not overwrite the value of need_locks provided by the user
24695  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24696echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24697  hard_links=yes
24698  $rm conftest*
24699  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24700  touch conftest.a
24701  ln conftest.a conftest.b 2>&5 || hard_links=no
24702  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24703  { echo "$as_me:$LINENO: result: $hard_links" >&5
24704echo "${ECHO_T}$hard_links" >&6; }
24705  if test "$hard_links" = no; then
24706    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24707echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24708    need_locks=warn
24709  fi
24710else
24711  need_locks=no
24712fi
24713
24714{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24715echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24716
24717  runpath_var=
24718  allow_undefined_flag_GCJ=
24719  enable_shared_with_static_runtimes_GCJ=no
24720  archive_cmds_GCJ=
24721  archive_expsym_cmds_GCJ=
24722  old_archive_From_new_cmds_GCJ=
24723  old_archive_from_expsyms_cmds_GCJ=
24724  export_dynamic_flag_spec_GCJ=
24725  whole_archive_flag_spec_GCJ=
24726  thread_safe_flag_spec_GCJ=
24727  hardcode_libdir_flag_spec_GCJ=
24728  hardcode_libdir_flag_spec_ld_GCJ=
24729  hardcode_libdir_separator_GCJ=
24730  hardcode_direct_GCJ=no
24731  hardcode_minus_L_GCJ=no
24732  hardcode_shlibpath_var_GCJ=unsupported
24733  link_all_deplibs_GCJ=unknown
24734  hardcode_automatic_GCJ=no
24735  module_cmds_GCJ=
24736  module_expsym_cmds_GCJ=
24737  always_export_symbols_GCJ=no
24738  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24739  # include_expsyms should be a list of space-separated symbols to be *always*
24740  # included in the symbol list
24741  include_expsyms_GCJ=
24742  # exclude_expsyms can be an extended regexp of symbols to exclude
24743  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24744  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24745  # as well as any symbol that contains `d'.
24746  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24747  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24748  # platforms (ab)use it in PIC code, but their linkers get confused if
24749  # the symbol is explicitly referenced.  Since portable code cannot
24750  # rely on this symbol name, it's probably fine to never include it in
24751  # preloaded symbol tables.
24752  extract_expsyms_cmds=
24753  # Just being paranoid about ensuring that cc_basename is set.
24754  for cc_temp in $compiler""; do
24755  case $cc_temp in
24756    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24757    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24758    \-*) ;;
24759    *) break;;
24760  esac
24761done
24762cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24763
24764  case $host_os in
24765  cygwin* | mingw* | pw32*)
24766    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24767    # When not using gcc, we currently assume that we are using
24768    # Microsoft Visual C++.
24769    if test "$GCC" != yes; then
24770      with_gnu_ld=no
24771    fi
24772    ;;
24773  interix*)
24774    # we just hope/assume this is gcc and not c89 (= MSVC++)
24775    with_gnu_ld=yes
24776    ;;
24777  openbsd*)
24778    with_gnu_ld=no
24779    ;;
24780  esac
24781
24782  ld_shlibs_GCJ=yes
24783  if test "$with_gnu_ld" = yes; then
24784    # If archive_cmds runs LD, not CC, wlarc should be empty
24785    wlarc='${wl}'
24786
24787    # Set some defaults for GNU ld with shared library support. These
24788    # are reset later if shared libraries are not supported. Putting them
24789    # here allows them to be overridden if necessary.
24790    runpath_var=LD_RUN_PATH
24791    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24792    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24793    # ancient GNU ld didn't support --whole-archive et. al.
24794    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24795	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24796      else
24797  	whole_archive_flag_spec_GCJ=
24798    fi
24799    supports_anon_versioning=no
24800    case `$LD -v 2>/dev/null` in
24801      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24802      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24803      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24804      *\ 2.11.*) ;; # other 2.11 versions
24805      *) supports_anon_versioning=yes ;;
24806    esac
24807
24808    # See if GNU ld supports shared libraries.
24809    case $host_os in
24810    aix3* | aix4* | aix5*)
24811      # On AIX/PPC, the GNU linker is very broken
24812      if test "$host_cpu" != ia64; then
24813	ld_shlibs_GCJ=no
24814	cat <<EOF 1>&2
24815
24816*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24817*** to be unable to reliably create shared libraries on AIX.
24818*** Therefore, libtool is disabling shared libraries support.  If you
24819*** really care for shared libraries, you may want to modify your PATH
24820*** so that a non-GNU linker is found, and then restart.
24821
24822EOF
24823      fi
24824      ;;
24825
24826    amigaos*)
24827      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24828      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829      hardcode_minus_L_GCJ=yes
24830
24831      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24832      # that the semantics of dynamic libraries on AmigaOS, at least up
24833      # to version 4, is to share data among multiple programs linked
24834      # with the same dynamic library.  Since this doesn't match the
24835      # behavior of shared libraries on other platforms, we can't use
24836      # them.
24837      ld_shlibs_GCJ=no
24838      ;;
24839
24840    beos*)
24841      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24842	allow_undefined_flag_GCJ=unsupported
24843	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24844	# support --undefined.  This deserves some investigation.  FIXME
24845	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24846      else
24847	ld_shlibs_GCJ=no
24848      fi
24849      ;;
24850
24851    cygwin* | mingw* | pw32*)
24852      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24853      # as there is no search path for DLLs.
24854      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24855      allow_undefined_flag_GCJ=unsupported
24856      always_export_symbols_GCJ=no
24857      enable_shared_with_static_runtimes_GCJ=yes
24858      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24859
24860      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24861        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24862	# If the export-symbols file already is a .def file (1st line
24863	# is EXPORTS), use it as is; otherwise, prepend...
24864	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24865	  cp $export_symbols $output_objdir/$soname.def;
24866	else
24867	  echo EXPORTS > $output_objdir/$soname.def;
24868	  cat $export_symbols >> $output_objdir/$soname.def;
24869	fi~
24870	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24871      else
24872	ld_shlibs_GCJ=no
24873      fi
24874      ;;
24875
24876    interix3*)
24877      hardcode_direct_GCJ=no
24878      hardcode_shlibpath_var_GCJ=no
24879      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24880      export_dynamic_flag_spec_GCJ='${wl}-E'
24881      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24882      # Instead, shared libraries are loaded at an image base (0x10000000 by
24883      # default) and relocated if they conflict, which is a slow very memory
24884      # consuming and fragmenting process.  To avoid this, we pick a random,
24885      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24886      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24887      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24888      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24889      ;;
24890
24891    linux*)
24892      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24893	tmp_addflag=
24894	case $cc_basename,$host_cpu in
24895	pgcc*)				# Portland Group C compiler
24896	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24897	  tmp_addflag=' $pic_flag'
24898	  ;;
24899	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24900	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24901	  tmp_addflag=' $pic_flag -Mnomain' ;;
24902	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24903	  tmp_addflag=' -i_dynamic' ;;
24904	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24905	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24906	ifc* | ifort*)			# Intel Fortran compiler
24907	  tmp_addflag=' -nofor_main' ;;
24908	esac
24909	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24910
24911	if test $supports_anon_versioning = yes; then
24912	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24913  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24914  $echo "local: *; };" >> $output_objdir/$libname.ver~
24915	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24916	fi
24917      else
24918	ld_shlibs_GCJ=no
24919      fi
24920      ;;
24921
24922    netbsd*)
24923      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24924	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24925	wlarc=
24926      else
24927	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24928	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24929      fi
24930      ;;
24931
24932    solaris*)
24933      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24934	ld_shlibs_GCJ=no
24935	cat <<EOF 1>&2
24936
24937*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24938*** create shared libraries on Solaris systems.  Therefore, libtool
24939*** is disabling shared libraries support.  We urge you to upgrade GNU
24940*** binutils to release 2.9.1 or newer.  Another option is to modify
24941*** your PATH or compiler configuration so that the native linker is
24942*** used, and then restart.
24943
24944EOF
24945      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24946	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24947	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24948      else
24949	ld_shlibs_GCJ=no
24950      fi
24951      ;;
24952
24953    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24954      case `$LD -v 2>&1` in
24955        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24956	ld_shlibs_GCJ=no
24957	cat <<_LT_EOF 1>&2
24958
24959*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24960*** reliably create shared libraries on SCO systems.  Therefore, libtool
24961*** is disabling shared libraries support.  We urge you to upgrade GNU
24962*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24963*** your PATH or compiler configuration so that the native linker is
24964*** used, and then restart.
24965
24966_LT_EOF
24967	;;
24968	*)
24969	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24970	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24971	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24972	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24973	  else
24974	    ld_shlibs_GCJ=no
24975	  fi
24976	;;
24977      esac
24978      ;;
24979
24980    sunos4*)
24981      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24982      wlarc=
24983      hardcode_direct_GCJ=yes
24984      hardcode_shlibpath_var_GCJ=no
24985      ;;
24986
24987    *)
24988      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24989	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24990	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24991      else
24992	ld_shlibs_GCJ=no
24993      fi
24994      ;;
24995    esac
24996
24997    if test "$ld_shlibs_GCJ" = no; then
24998      runpath_var=
24999      hardcode_libdir_flag_spec_GCJ=
25000      export_dynamic_flag_spec_GCJ=
25001      whole_archive_flag_spec_GCJ=
25002    fi
25003  else
25004    # PORTME fill in a description of your system's linker (not GNU ld)
25005    case $host_os in
25006    aix3*)
25007      allow_undefined_flag_GCJ=unsupported
25008      always_export_symbols_GCJ=yes
25009      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
25010      # Note: this linker hardcodes the directories in LIBPATH if there
25011      # are no directories specified by -L.
25012      hardcode_minus_L_GCJ=yes
25013      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25014	# Neither direct hardcoding nor static linking is supported with a
25015	# broken collect2.
25016	hardcode_direct_GCJ=unsupported
25017      fi
25018      ;;
25019
25020    aix4* | aix5*)
25021      if test "$host_cpu" = ia64; then
25022	# On IA64, the linker does run time linking by default, so we don't
25023	# have to do anything special.
25024	aix_use_runtimelinking=no
25025	exp_sym_flag='-Bexport'
25026	no_entry_flag=""
25027      else
25028	# If we're using GNU nm, then we don't want the "-C" option.
25029	# -C means demangle to AIX nm, but means don't demangle with GNU nm
25030	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25031	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25032	else
25033	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25034	fi
25035	aix_use_runtimelinking=no
25036
25037	# Test if we are trying to use run time linking or normal
25038	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
25039	# need to do runtime linking.
25040	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25041	  for ld_flag in $LDFLAGS; do
25042  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25043  	    aix_use_runtimelinking=yes
25044  	    break
25045  	  fi
25046	  done
25047	  ;;
25048	esac
25049
25050	exp_sym_flag='-bexport'
25051	no_entry_flag='-bnoentry'
25052      fi
25053
25054      # When large executables or shared objects are built, AIX ld can
25055      # have problems creating the table of contents.  If linking a library
25056      # or program results in "error TOC overflow" add -mminimal-toc to
25057      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25058      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25059
25060      archive_cmds_GCJ=''
25061      hardcode_direct_GCJ=yes
25062      hardcode_libdir_separator_GCJ=':'
25063      link_all_deplibs_GCJ=yes
25064
25065      if test "$GCC" = yes; then
25066	case $host_os in aix4.[012]|aix4.[012].*)
25067	# We only want to do this on AIX 4.2 and lower, the check
25068	# below for broken collect2 doesn't work under 4.3+
25069	  collect2name=`${CC} -print-prog-name=collect2`
25070	  if test -f "$collect2name" && \
25071  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
25072	  then
25073  	  # We have reworked collect2
25074  	  hardcode_direct_GCJ=yes
25075	  else
25076  	  # We have old collect2
25077  	  hardcode_direct_GCJ=unsupported
25078  	  # It fails to find uninstalled libraries when the uninstalled
25079  	  # path is not listed in the libpath.  Setting hardcode_minus_L
25080  	  # to unsupported forces relinking
25081  	  hardcode_minus_L_GCJ=yes
25082  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
25083  	  hardcode_libdir_separator_GCJ=
25084	  fi
25085	  ;;
25086	esac
25087	shared_flag='-shared'
25088	if test "$aix_use_runtimelinking" = yes; then
25089	  shared_flag="$shared_flag "'${wl}-G'
25090	fi
25091      else
25092	# not using gcc
25093	if test "$host_cpu" = ia64; then
25094  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25095  	# chokes on -Wl,-G. The following line is correct:
25096	  shared_flag='-G'
25097	else
25098	  if test "$aix_use_runtimelinking" = yes; then
25099	    shared_flag='${wl}-G'
25100	  else
25101	    shared_flag='${wl}-bM:SRE'
25102	  fi
25103	fi
25104      fi
25105
25106      # It seems that -bexpall does not export symbols beginning with
25107      # underscore (_), so it is better to generate a list of symbols to export.
25108      always_export_symbols_GCJ=yes
25109      if test "$aix_use_runtimelinking" = yes; then
25110	# Warning - without using the other runtime loading flags (-brtl),
25111	# -berok will link without error, but may produce a broken library.
25112	allow_undefined_flag_GCJ='-berok'
25113       # Determine the default libpath from the value encoded in an empty executable.
25114       cat >conftest.$ac_ext <<_ACEOF
25115/* confdefs.h.  */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h.  */
25120
25121int
25122main ()
25123{
25124
25125  ;
25126  return 0;
25127}
25128_ACEOF
25129rm -f conftest.$ac_objext conftest$ac_exeext
25130if { (ac_try="$ac_link"
25131case "(($ac_try" in
25132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133  *) ac_try_echo=$ac_try;;
25134esac
25135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136  (eval "$ac_link") 2>conftest.er1
25137  ac_status=$?
25138  grep -v '^ *+' conftest.er1 >conftest.err
25139  rm -f conftest.er1
25140  cat conftest.err >&5
25141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142  (exit $ac_status); } &&
25143	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25144  { (case "(($ac_try" in
25145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146  *) ac_try_echo=$ac_try;;
25147esac
25148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149  (eval "$ac_try") 2>&5
25150  ac_status=$?
25151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152  (exit $ac_status); }; } &&
25153	 { ac_try='test -s conftest$ac_exeext'
25154  { (case "(($ac_try" in
25155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156  *) ac_try_echo=$ac_try;;
25157esac
25158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159  (eval "$ac_try") 2>&5
25160  ac_status=$?
25161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162  (exit $ac_status); }; }; then
25163
25164aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25165}'`
25166# Check for a 64-bit object if we didn't find anything.
25167if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25168}'`; fi
25169else
25170  echo "$as_me: failed program was:" >&5
25171sed 's/^/| /' conftest.$ac_ext >&5
25172
25173
25174fi
25175
25176rm -f core conftest.err conftest.$ac_objext \
25177      conftest$ac_exeext conftest.$ac_ext
25178if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25179
25180       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25181	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
25182       else
25183	if test "$host_cpu" = ia64; then
25184	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25185	  allow_undefined_flag_GCJ="-z nodefs"
25186	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
25187	else
25188	 # Determine the default libpath from the value encoded in an empty executable.
25189	 cat >conftest.$ac_ext <<_ACEOF
25190/* confdefs.h.  */
25191_ACEOF
25192cat confdefs.h >>conftest.$ac_ext
25193cat >>conftest.$ac_ext <<_ACEOF
25194/* end confdefs.h.  */
25195
25196int
25197main ()
25198{
25199
25200  ;
25201  return 0;
25202}
25203_ACEOF
25204rm -f conftest.$ac_objext conftest$ac_exeext
25205if { (ac_try="$ac_link"
25206case "(($ac_try" in
25207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208  *) ac_try_echo=$ac_try;;
25209esac
25210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211  (eval "$ac_link") 2>conftest.er1
25212  ac_status=$?
25213  grep -v '^ *+' conftest.er1 >conftest.err
25214  rm -f conftest.er1
25215  cat conftest.err >&5
25216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217  (exit $ac_status); } &&
25218	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25219  { (case "(($ac_try" in
25220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221  *) ac_try_echo=$ac_try;;
25222esac
25223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224  (eval "$ac_try") 2>&5
25225  ac_status=$?
25226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227  (exit $ac_status); }; } &&
25228	 { ac_try='test -s conftest$ac_exeext'
25229  { (case "(($ac_try" in
25230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231  *) ac_try_echo=$ac_try;;
25232esac
25233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234  (eval "$ac_try") 2>&5
25235  ac_status=$?
25236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237  (exit $ac_status); }; }; then
25238
25239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25240}'`
25241# Check for a 64-bit object if we didn't find anything.
25242if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25243}'`; fi
25244else
25245  echo "$as_me: failed program was:" >&5
25246sed 's/^/| /' conftest.$ac_ext >&5
25247
25248
25249fi
25250
25251rm -f core conftest.err conftest.$ac_objext \
25252      conftest$ac_exeext conftest.$ac_ext
25253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25254
25255	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25256	  # Warning - without using the other run time loading flags,
25257	  # -berok will link without error, but may produce a broken library.
25258	  no_undefined_flag_GCJ=' ${wl}-bernotok'
25259	  allow_undefined_flag_GCJ=' ${wl}-berok'
25260	  # Exported symbols can be pulled into shared objects from archives
25261	  whole_archive_flag_spec_GCJ='$convenience'
25262	  archive_cmds_need_lc_GCJ=yes
25263	  # This is similar to how AIX traditionally builds its shared libraries.
25264	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
25265	fi
25266      fi
25267      ;;
25268
25269    amigaos*)
25270      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
25271      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25272      hardcode_minus_L_GCJ=yes
25273      # see comment about different semantics on the GNU ld section
25274      ld_shlibs_GCJ=no
25275      ;;
25276
25277    bsdi[45]*)
25278      export_dynamic_flag_spec_GCJ=-rdynamic
25279      ;;
25280
25281    cygwin* | mingw* | pw32*)
25282      # When not using gcc, we currently assume that we are using
25283      # Microsoft Visual C++.
25284      # hardcode_libdir_flag_spec is actually meaningless, as there is
25285      # no search path for DLLs.
25286      hardcode_libdir_flag_spec_GCJ=' '
25287      allow_undefined_flag_GCJ=unsupported
25288      # Tell ltmain to make .lib files, not .a files.
25289      libext=lib
25290      # Tell ltmain to make .dll files, not .so files.
25291      shrext_cmds=".dll"
25292      # FIXME: Setting linknames here is a bad hack.
25293      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25294      # The linker will automatically build a .lib file if we build a DLL.
25295      old_archive_From_new_cmds_GCJ='true'
25296      # FIXME: Should let the user specify the lib program.
25297      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25298      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25299      enable_shared_with_static_runtimes_GCJ=yes
25300      ;;
25301
25302    darwin* | rhapsody*)
25303      case $host_os in
25304        rhapsody* | darwin1.[012])
25305         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25306         ;;
25307       *) # Darwin 1.3 on
25308         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25309           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25310         else
25311           case ${MACOSX_DEPLOYMENT_TARGET} in
25312             10.[012])
25313               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25314               ;;
25315             10.*)
25316               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25317               ;;
25318           esac
25319         fi
25320         ;;
25321      esac
25322      archive_cmds_need_lc_GCJ=no
25323      hardcode_direct_GCJ=no
25324      hardcode_automatic_GCJ=yes
25325      hardcode_shlibpath_var_GCJ=unsupported
25326      whole_archive_flag_spec_GCJ=''
25327      link_all_deplibs_GCJ=yes
25328    if test "$GCC" = yes ; then
25329    	output_verbose_link_cmd='echo'
25330        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25331      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25332      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25333      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25334      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25335    else
25336      case $cc_basename in
25337        xlc*)
25338         output_verbose_link_cmd='echo'
25339         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25340         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25341          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25342         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25343          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25344          ;;
25345       *)
25346         ld_shlibs_GCJ=no
25347          ;;
25348      esac
25349    fi
25350      ;;
25351
25352    dgux*)
25353      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25355      hardcode_shlibpath_var_GCJ=no
25356      ;;
25357
25358    freebsd1*)
25359      ld_shlibs_GCJ=no
25360      ;;
25361
25362    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25363    # support.  Future versions do this automatically, but an explicit c++rt0.o
25364    # does not break anything, and helps significantly (at the cost of a little
25365    # extra space).
25366    freebsd2.2*)
25367      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25368      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25369      hardcode_direct_GCJ=yes
25370      hardcode_shlibpath_var_GCJ=no
25371      ;;
25372
25373    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25374    freebsd2*)
25375      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25376      hardcode_direct_GCJ=yes
25377      hardcode_minus_L_GCJ=yes
25378      hardcode_shlibpath_var_GCJ=no
25379      ;;
25380
25381    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25382    freebsd* | kfreebsd*-gnu | dragonfly*)
25383      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25384      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25385      hardcode_direct_GCJ=yes
25386      hardcode_shlibpath_var_GCJ=no
25387      ;;
25388
25389    hpux9*)
25390      if test "$GCC" = yes; then
25391	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25392      else
25393	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25394      fi
25395      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25396      hardcode_libdir_separator_GCJ=:
25397      hardcode_direct_GCJ=yes
25398
25399      # hardcode_minus_L: Not really in the search PATH,
25400      # but as the default location of the library.
25401      hardcode_minus_L_GCJ=yes
25402      export_dynamic_flag_spec_GCJ='${wl}-E'
25403      ;;
25404
25405    hpux10*)
25406      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25407	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25408      else
25409	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25410      fi
25411      if test "$with_gnu_ld" = no; then
25412	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25413	hardcode_libdir_separator_GCJ=:
25414
25415	hardcode_direct_GCJ=yes
25416	export_dynamic_flag_spec_GCJ='${wl}-E'
25417
25418	# hardcode_minus_L: Not really in the search PATH,
25419	# but as the default location of the library.
25420	hardcode_minus_L_GCJ=yes
25421      fi
25422      ;;
25423
25424    hpux11*)
25425      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25426	case $host_cpu in
25427	hppa*64*)
25428	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25429	  ;;
25430	ia64*)
25431	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25432	  ;;
25433	*)
25434	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25435	  ;;
25436	esac
25437      else
25438	case $host_cpu in
25439	hppa*64*)
25440	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25441	  ;;
25442	ia64*)
25443	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25444	  ;;
25445	*)
25446	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25447	  ;;
25448	esac
25449      fi
25450      if test "$with_gnu_ld" = no; then
25451	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25452	hardcode_libdir_separator_GCJ=:
25453
25454	case $host_cpu in
25455	hppa*64*|ia64*)
25456	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25457	  hardcode_direct_GCJ=no
25458	  hardcode_shlibpath_var_GCJ=no
25459	  ;;
25460	*)
25461	  hardcode_direct_GCJ=yes
25462	  export_dynamic_flag_spec_GCJ='${wl}-E'
25463
25464	  # hardcode_minus_L: Not really in the search PATH,
25465	  # but as the default location of the library.
25466	  hardcode_minus_L_GCJ=yes
25467	  ;;
25468	esac
25469      fi
25470      ;;
25471
25472    irix5* | irix6* | nonstopux*)
25473      if test "$GCC" = yes; then
25474	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25475      else
25476	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25477	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25478      fi
25479      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25480      hardcode_libdir_separator_GCJ=:
25481      link_all_deplibs_GCJ=yes
25482      ;;
25483
25484    netbsd*)
25485      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25486	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25487      else
25488	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25489      fi
25490      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25491      hardcode_direct_GCJ=yes
25492      hardcode_shlibpath_var_GCJ=no
25493      ;;
25494
25495    newsos6)
25496      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25497      hardcode_direct_GCJ=yes
25498      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25499      hardcode_libdir_separator_GCJ=:
25500      hardcode_shlibpath_var_GCJ=no
25501      ;;
25502
25503    openbsd*)
25504      hardcode_direct_GCJ=yes
25505      hardcode_shlibpath_var_GCJ=no
25506      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25507	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25508	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25509	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25510	export_dynamic_flag_spec_GCJ='${wl}-E'
25511      else
25512       case $host_os in
25513	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25514	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25515	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
25516	   ;;
25517	 *)
25518	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25519	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25520	   ;;
25521       esac
25522      fi
25523      ;;
25524
25525    os2*)
25526      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25527      hardcode_minus_L_GCJ=yes
25528      allow_undefined_flag_GCJ=unsupported
25529      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
25530      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25531      ;;
25532
25533    osf3*)
25534      if test "$GCC" = yes; then
25535	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25536	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25537      else
25538	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25539	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25540      fi
25541      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25542      hardcode_libdir_separator_GCJ=:
25543      ;;
25544
25545    osf4* | osf5*)	# as osf3* with the addition of -msym flag
25546      if test "$GCC" = yes; then
25547	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25548	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25549	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25550      else
25551	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25552	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25553	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25554	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25555
25556	# Both c and cxx compiler support -rpath directly
25557	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25558      fi
25559      hardcode_libdir_separator_GCJ=:
25560      ;;
25561
25562    solaris*)
25563      no_undefined_flag_GCJ=' -z text'
25564      if test "$GCC" = yes; then
25565	wlarc='${wl}'
25566	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25567	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25568	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25569      else
25570	wlarc=''
25571	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25572	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25573  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25574      fi
25575      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25576      hardcode_shlibpath_var_GCJ=no
25577      case $host_os in
25578      solaris2.[0-5] | solaris2.[0-5].*) ;;
25579      *)
25580 	# The compiler driver will combine linker options so we
25581 	# cannot just pass the convience library names through
25582 	# without $wl, iff we do not link with $LD.
25583 	# Luckily, gcc supports the same syntax we need for Sun Studio.
25584 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25585 	case $wlarc in
25586 	'')
25587 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25588 	*)
25589 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25590 	esac ;;
25591      esac
25592      link_all_deplibs_GCJ=yes
25593      ;;
25594
25595    sunos4*)
25596      if test "x$host_vendor" = xsequent; then
25597	# Use $CC to link under sequent, because it throws in some extra .o
25598	# files that make .init and .fini sections work.
25599	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25600      else
25601	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25602      fi
25603      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25604      hardcode_direct_GCJ=yes
25605      hardcode_minus_L_GCJ=yes
25606      hardcode_shlibpath_var_GCJ=no
25607      ;;
25608
25609    sysv4)
25610      case $host_vendor in
25611	sni)
25612	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25613	  hardcode_direct_GCJ=yes # is this really true???
25614	;;
25615	siemens)
25616	  ## LD is ld it makes a PLAMLIB
25617	  ## CC just makes a GrossModule.
25618	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25619	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25620	  hardcode_direct_GCJ=no
25621        ;;
25622	motorola)
25623	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25624	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25625	;;
25626      esac
25627      runpath_var='LD_RUN_PATH'
25628      hardcode_shlibpath_var_GCJ=no
25629      ;;
25630
25631    sysv4.3*)
25632      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25633      hardcode_shlibpath_var_GCJ=no
25634      export_dynamic_flag_spec_GCJ='-Bexport'
25635      ;;
25636
25637    sysv4*MP*)
25638      if test -d /usr/nec; then
25639	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25640	hardcode_shlibpath_var_GCJ=no
25641	runpath_var=LD_RUN_PATH
25642	hardcode_runpath_var=yes
25643	ld_shlibs_GCJ=yes
25644      fi
25645      ;;
25646
25647    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25648      no_undefined_flag_GCJ='${wl}-z,text'
25649      archive_cmds_need_lc_GCJ=no
25650      hardcode_shlibpath_var_GCJ=no
25651      runpath_var='LD_RUN_PATH'
25652
25653      if test "$GCC" = yes; then
25654	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25655	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25656      else
25657	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25658	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25659      fi
25660      ;;
25661
25662    sysv5* | sco3.2v5* | sco5v6*)
25663      # Note: We can NOT use -z defs as we might desire, because we do not
25664      # link with -lc, and that would cause any symbols used from libc to
25665      # always be unresolved, which means just about no library would
25666      # ever link correctly.  If we're not using GNU ld we use -z text
25667      # though, which does catch some bad symbols but isn't as heavy-handed
25668      # as -z defs.
25669      no_undefined_flag_GCJ='${wl}-z,text'
25670      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25671      archive_cmds_need_lc_GCJ=no
25672      hardcode_shlibpath_var_GCJ=no
25673      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25674      hardcode_libdir_separator_GCJ=':'
25675      link_all_deplibs_GCJ=yes
25676      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25677      runpath_var='LD_RUN_PATH'
25678
25679      if test "$GCC" = yes; then
25680	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25681	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25682      else
25683	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25684	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25685      fi
25686      ;;
25687
25688    uts4*)
25689      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25690      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25691      hardcode_shlibpath_var_GCJ=no
25692      ;;
25693
25694    *)
25695      ld_shlibs_GCJ=no
25696      ;;
25697    esac
25698  fi
25699
25700{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25701echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25702test "$ld_shlibs_GCJ" = no && can_build_shared=no
25703
25704#
25705# Do we need to explicitly link libc?
25706#
25707case "x$archive_cmds_need_lc_GCJ" in
25708x|xyes)
25709  # Assume -lc should be added
25710  archive_cmds_need_lc_GCJ=yes
25711
25712  if test "$enable_shared" = yes && test "$GCC" = yes; then
25713    case $archive_cmds_GCJ in
25714    *'~'*)
25715      # FIXME: we may have to deal with multi-command sequences.
25716      ;;
25717    '$CC '*)
25718      # Test whether the compiler implicitly links with -lc since on some
25719      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25720      # to ld, don't add -lc before -lgcc.
25721      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25722echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25723      $rm conftest*
25724      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25725
25726      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727  (eval $ac_compile) 2>&5
25728  ac_status=$?
25729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730  (exit $ac_status); } 2>conftest.err; then
25731        soname=conftest
25732        lib=conftest
25733        libobjs=conftest.$ac_objext
25734        deplibs=
25735        wl=$lt_prog_compiler_wl_GCJ
25736	pic_flag=$lt_prog_compiler_pic_GCJ
25737        compiler_flags=-v
25738        linker_flags=-v
25739        verstring=
25740        output_objdir=.
25741        libname=conftest
25742        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25743        allow_undefined_flag_GCJ=
25744        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25745  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25746  ac_status=$?
25747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748  (exit $ac_status); }
25749        then
25750	  archive_cmds_need_lc_GCJ=no
25751        else
25752	  archive_cmds_need_lc_GCJ=yes
25753        fi
25754        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25755      else
25756        cat conftest.err 1>&5
25757      fi
25758      $rm conftest*
25759      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25760echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25761      ;;
25762    esac
25763  fi
25764  ;;
25765esac
25766
25767{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25768echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25769library_names_spec=
25770libname_spec='lib$name'
25771soname_spec=
25772shrext_cmds=".so"
25773postinstall_cmds=
25774postuninstall_cmds=
25775finish_cmds=
25776finish_eval=
25777shlibpath_var=
25778shlibpath_overrides_runpath=unknown
25779version_type=none
25780dynamic_linker="$host_os ld.so"
25781sys_lib_dlsearch_path_spec="/lib /usr/lib"
25782if test "$GCC" = yes; then
25783  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25784  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25785    # if the path contains ";" then we assume it to be the separator
25786    # otherwise default to the standard path separator (i.e. ":") - it is
25787    # assumed that no part of a normal pathname contains ";" but that should
25788    # okay in the real world where ";" in dirpaths is itself problematic.
25789    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25790  else
25791    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25792  fi
25793else
25794  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25795fi
25796need_lib_prefix=unknown
25797hardcode_into_libs=no
25798
25799# when you set need_version to no, make sure it does not cause -set_version
25800# flags to be left without arguments
25801need_version=unknown
25802
25803case $host_os in
25804aix3*)
25805  version_type=linux
25806  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25807  shlibpath_var=LIBPATH
25808
25809  # AIX 3 has no versioning support, so we append a major version to the name.
25810  soname_spec='${libname}${release}${shared_ext}$major'
25811  ;;
25812
25813aix4* | aix5*)
25814  version_type=linux
25815  need_lib_prefix=no
25816  need_version=no
25817  hardcode_into_libs=yes
25818  if test "$host_cpu" = ia64; then
25819    # AIX 5 supports IA64
25820    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25821    shlibpath_var=LD_LIBRARY_PATH
25822  else
25823    # With GCC up to 2.95.x, collect2 would create an import file
25824    # for dependence libraries.  The import file would start with
25825    # the line `#! .'.  This would cause the generated library to
25826    # depend on `.', always an invalid library.  This was fixed in
25827    # development snapshots of GCC prior to 3.0.
25828    case $host_os in
25829      aix4 | aix4.[01] | aix4.[01].*)
25830      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25831	   echo ' yes '
25832	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25833	:
25834      else
25835	can_build_shared=no
25836      fi
25837      ;;
25838    esac
25839    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25840    # soname into executable. Probably we can add versioning support to
25841    # collect2, so additional links can be useful in future.
25842    if test "$aix_use_runtimelinking" = yes; then
25843      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25844      # instead of lib<name>.a to let people know that these are not
25845      # typical AIX shared libraries.
25846      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25847    else
25848      # We preserve .a as extension for shared libraries through AIX4.2
25849      # and later when we are not doing run time linking.
25850      library_names_spec='${libname}${release}.a $libname.a'
25851      soname_spec='${libname}${release}${shared_ext}$major'
25852    fi
25853    shlibpath_var=LIBPATH
25854  fi
25855  ;;
25856
25857amigaos*)
25858  library_names_spec='$libname.ixlibrary $libname.a'
25859  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25860  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'
25861  ;;
25862
25863beos*)
25864  library_names_spec='${libname}${shared_ext}'
25865  dynamic_linker="$host_os ld.so"
25866  shlibpath_var=LIBRARY_PATH
25867  ;;
25868
25869bsdi[45]*)
25870  version_type=linux
25871  need_version=no
25872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873  soname_spec='${libname}${release}${shared_ext}$major'
25874  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25875  shlibpath_var=LD_LIBRARY_PATH
25876  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25877  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25878  # the default ld.so.conf also contains /usr/contrib/lib and
25879  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25880  # libtool to hard-code these into programs
25881  ;;
25882
25883cygwin* | mingw* | pw32*)
25884  version_type=windows
25885  shrext_cmds=".dll"
25886  need_version=no
25887  need_lib_prefix=no
25888
25889  case $GCC,$host_os in
25890  yes,cygwin* | yes,mingw* | yes,pw32*)
25891    library_names_spec='$libname.dll.a'
25892    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25893    postinstall_cmds='base_file=`basename \${file}`~
25894      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25895      dldir=$destdir/`dirname \$dlpath`~
25896      test -d \$dldir || mkdir -p \$dldir~
25897      $install_prog $dir/$dlname \$dldir/$dlname~
25898      chmod a+x \$dldir/$dlname'
25899    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25900      dlpath=$dir/\$dldll~
25901       $rm \$dlpath'
25902    shlibpath_overrides_runpath=yes
25903
25904    case $host_os in
25905    cygwin*)
25906      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25907      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25908      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25909      ;;
25910    mingw*)
25911      # MinGW DLLs use traditional 'lib' prefix
25912      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25913      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25914      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25915        # It is most probably a Windows format PATH printed by
25916        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25917        # path with ; separators, and with drive letters. We can handle the
25918        # drive letters (cygwin fileutils understands them), so leave them,
25919        # especially as we might pass files found there to a mingw objdump,
25920        # which wouldn't understand a cygwinified path. Ahh.
25921        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25922      else
25923        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25924      fi
25925      ;;
25926    pw32*)
25927      # pw32 DLLs use 'pw' prefix rather than 'lib'
25928      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25929      ;;
25930    esac
25931    ;;
25932
25933  *)
25934    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25935    ;;
25936  esac
25937  dynamic_linker='Win32 ld.exe'
25938  # FIXME: first we should search . and the directory the executable is in
25939  shlibpath_var=PATH
25940  ;;
25941
25942darwin* | rhapsody*)
25943  dynamic_linker="$host_os dyld"
25944  version_type=darwin
25945  need_lib_prefix=no
25946  need_version=no
25947  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25948  soname_spec='${libname}${release}${major}$shared_ext'
25949  shlibpath_overrides_runpath=yes
25950  shlibpath_var=DYLD_LIBRARY_PATH
25951  shrext_cmds='.dylib'
25952  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25953  if test "$GCC" = yes; then
25954    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"`
25955  else
25956    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25957  fi
25958  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25959  ;;
25960
25961dgux*)
25962  version_type=linux
25963  need_lib_prefix=no
25964  need_version=no
25965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25966  soname_spec='${libname}${release}${shared_ext}$major'
25967  shlibpath_var=LD_LIBRARY_PATH
25968  ;;
25969
25970freebsd1*)
25971  dynamic_linker=no
25972  ;;
25973
25974kfreebsd*-gnu)
25975  version_type=linux
25976  need_lib_prefix=no
25977  need_version=no
25978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979  soname_spec='${libname}${release}${shared_ext}$major'
25980  shlibpath_var=LD_LIBRARY_PATH
25981  shlibpath_overrides_runpath=no
25982  hardcode_into_libs=yes
25983  dynamic_linker='GNU ld.so'
25984  ;;
25985
25986freebsd* | dragonfly*)
25987  # DragonFly does not have aout.  When/if they implement a new
25988  # versioning mechanism, adjust this.
25989  if test -x /usr/bin/objformat; then
25990    objformat=`/usr/bin/objformat`
25991  else
25992    case $host_os in
25993    freebsd[123]*) objformat=aout ;;
25994    *) objformat=elf ;;
25995    esac
25996  fi
25997  version_type=freebsd-$objformat
25998  case $version_type in
25999    freebsd-elf*)
26000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26001      need_version=no
26002      need_lib_prefix=no
26003      ;;
26004    freebsd-*)
26005      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26006      need_version=yes
26007      ;;
26008  esac
26009  shlibpath_var=LD_LIBRARY_PATH
26010  case $host_os in
26011  freebsd2*)
26012    shlibpath_overrides_runpath=yes
26013    ;;
26014  freebsd3.[01]* | freebsdelf3.[01]*)
26015    shlibpath_overrides_runpath=yes
26016    hardcode_into_libs=yes
26017    ;;
26018  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26019  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26020    shlibpath_overrides_runpath=no
26021    hardcode_into_libs=yes
26022    ;;
26023  freebsd*) # from 4.6 on
26024    shlibpath_overrides_runpath=yes
26025    hardcode_into_libs=yes
26026    ;;
26027  esac
26028  ;;
26029
26030gnu*)
26031  version_type=linux
26032  need_lib_prefix=no
26033  need_version=no
26034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26035  soname_spec='${libname}${release}${shared_ext}$major'
26036  shlibpath_var=LD_LIBRARY_PATH
26037  hardcode_into_libs=yes
26038  ;;
26039
26040hpux9* | hpux10* | hpux11*)
26041  # Give a soname corresponding to the major version so that dld.sl refuses to
26042  # link against other versions.
26043  version_type=sunos
26044  need_lib_prefix=no
26045  need_version=no
26046  case $host_cpu in
26047  ia64*)
26048    shrext_cmds='.so'
26049    hardcode_into_libs=yes
26050    dynamic_linker="$host_os dld.so"
26051    shlibpath_var=LD_LIBRARY_PATH
26052    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054    soname_spec='${libname}${release}${shared_ext}$major'
26055    if test "X$HPUX_IA64_MODE" = X32; then
26056      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26057    else
26058      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26059    fi
26060    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26061    ;;
26062   hppa*64*)
26063     shrext_cmds='.sl'
26064     hardcode_into_libs=yes
26065     dynamic_linker="$host_os dld.sl"
26066     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26069     soname_spec='${libname}${release}${shared_ext}$major'
26070     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26071     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26072     ;;
26073   *)
26074    shrext_cmds='.sl'
26075    dynamic_linker="$host_os dld.sl"
26076    shlibpath_var=SHLIB_PATH
26077    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26079    soname_spec='${libname}${release}${shared_ext}$major'
26080    ;;
26081  esac
26082  # HP-UX runs *really* slowly unless shared libraries are mode 555.
26083  postinstall_cmds='chmod 555 $lib'
26084  ;;
26085
26086interix3*)
26087  version_type=linux
26088  need_lib_prefix=no
26089  need_version=no
26090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26091  soname_spec='${libname}${release}${shared_ext}$major'
26092  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26093  shlibpath_var=LD_LIBRARY_PATH
26094  shlibpath_overrides_runpath=no
26095  hardcode_into_libs=yes
26096  ;;
26097
26098irix5* | irix6* | nonstopux*)
26099  case $host_os in
26100    nonstopux*) version_type=nonstopux ;;
26101    *)
26102	if test "$lt_cv_prog_gnu_ld" = yes; then
26103		version_type=linux
26104	else
26105		version_type=irix
26106	fi ;;
26107  esac
26108  need_lib_prefix=no
26109  need_version=no
26110  soname_spec='${libname}${release}${shared_ext}$major'
26111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26112  case $host_os in
26113  irix5* | nonstopux*)
26114    libsuff= shlibsuff=
26115    ;;
26116  *)
26117    case $LD in # libtool.m4 will add one of these switches to LD
26118    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26119      libsuff= shlibsuff= libmagic=32-bit;;
26120    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26121      libsuff=32 shlibsuff=N32 libmagic=N32;;
26122    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26123      libsuff=64 shlibsuff=64 libmagic=64-bit;;
26124    *) libsuff= shlibsuff= libmagic=never-match;;
26125    esac
26126    ;;
26127  esac
26128  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26129  shlibpath_overrides_runpath=no
26130  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26131  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26132  hardcode_into_libs=yes
26133  ;;
26134
26135# No shared lib support for Linux oldld, aout, or coff.
26136linux*oldld* | linux*aout* | linux*coff*)
26137  dynamic_linker=no
26138  ;;
26139
26140# This must be Linux ELF.
26141linux*)
26142  version_type=linux
26143  need_lib_prefix=no
26144  need_version=no
26145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26146  soname_spec='${libname}${release}${shared_ext}$major'
26147  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26148  shlibpath_var=LD_LIBRARY_PATH
26149  shlibpath_overrides_runpath=no
26150  # This implies no fast_install, which is unacceptable.
26151  # Some rework will be needed to allow for fast_install
26152  # before this can be enabled.
26153  hardcode_into_libs=yes
26154
26155  # Append ld.so.conf contents to the search path
26156  if test -f /etc/ld.so.conf; then
26157    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' ' '`
26158    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26159  fi
26160
26161  # We used to test for /lib/ld.so.1 and disable shared libraries on
26162  # powerpc, because MkLinux only supported shared libraries with the
26163  # GNU dynamic linker.  Since this was broken with cross compilers,
26164  # most powerpc-linux boxes support dynamic linking these days and
26165  # people can always --disable-shared, the test was removed, and we
26166  # assume the GNU/Linux dynamic linker is in use.
26167  dynamic_linker='GNU/Linux ld.so'
26168  ;;
26169
26170knetbsd*-gnu)
26171  version_type=linux
26172  need_lib_prefix=no
26173  need_version=no
26174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26175  soname_spec='${libname}${release}${shared_ext}$major'
26176  shlibpath_var=LD_LIBRARY_PATH
26177  shlibpath_overrides_runpath=no
26178  hardcode_into_libs=yes
26179  dynamic_linker='GNU ld.so'
26180  ;;
26181
26182netbsd*)
26183  version_type=sunos
26184  need_lib_prefix=no
26185  need_version=no
26186  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26187    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26188    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26189    dynamic_linker='NetBSD (a.out) ld.so'
26190  else
26191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26192    soname_spec='${libname}${release}${shared_ext}$major'
26193    dynamic_linker='NetBSD ld.elf_so'
26194  fi
26195  shlibpath_var=LD_LIBRARY_PATH
26196  shlibpath_overrides_runpath=yes
26197  hardcode_into_libs=yes
26198  ;;
26199
26200newsos6)
26201  version_type=linux
26202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203  shlibpath_var=LD_LIBRARY_PATH
26204  shlibpath_overrides_runpath=yes
26205  ;;
26206
26207nto-qnx*)
26208  version_type=linux
26209  need_lib_prefix=no
26210  need_version=no
26211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26212  soname_spec='${libname}${release}${shared_ext}$major'
26213  shlibpath_var=LD_LIBRARY_PATH
26214  shlibpath_overrides_runpath=yes
26215  ;;
26216
26217openbsd*)
26218  version_type=sunos
26219  sys_lib_dlsearch_path_spec="/usr/lib"
26220  need_lib_prefix=no
26221  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26222  case $host_os in
26223    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26224    *)                         need_version=no  ;;
26225  esac
26226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26227  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26228  shlibpath_var=LD_LIBRARY_PATH
26229  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26230    case $host_os in
26231      openbsd2.[89] | openbsd2.[89].*)
26232	shlibpath_overrides_runpath=no
26233	;;
26234      *)
26235	shlibpath_overrides_runpath=yes
26236	;;
26237      esac
26238  else
26239    shlibpath_overrides_runpath=yes
26240  fi
26241  ;;
26242
26243os2*)
26244  libname_spec='$name'
26245  shrext_cmds=".dll"
26246  need_lib_prefix=no
26247  library_names_spec='$libname${shared_ext} $libname.a'
26248  dynamic_linker='OS/2 ld.exe'
26249  shlibpath_var=LIBPATH
26250  ;;
26251
26252osf3* | osf4* | osf5*)
26253  version_type=osf
26254  need_lib_prefix=no
26255  need_version=no
26256  soname_spec='${libname}${release}${shared_ext}$major'
26257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26258  shlibpath_var=LD_LIBRARY_PATH
26259  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26260  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26261  ;;
26262
26263solaris*)
26264  version_type=linux
26265  need_lib_prefix=no
26266  need_version=no
26267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26268  soname_spec='${libname}${release}${shared_ext}$major'
26269  shlibpath_var=LD_LIBRARY_PATH
26270  shlibpath_overrides_runpath=yes
26271  hardcode_into_libs=yes
26272  # ldd complains unless libraries are executable
26273  postinstall_cmds='chmod +x $lib'
26274  ;;
26275
26276sunos4*)
26277  version_type=sunos
26278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26279  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26280  shlibpath_var=LD_LIBRARY_PATH
26281  shlibpath_overrides_runpath=yes
26282  if test "$with_gnu_ld" = yes; then
26283    need_lib_prefix=no
26284  fi
26285  need_version=yes
26286  ;;
26287
26288sysv4 | sysv4.3*)
26289  version_type=linux
26290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26291  soname_spec='${libname}${release}${shared_ext}$major'
26292  shlibpath_var=LD_LIBRARY_PATH
26293  case $host_vendor in
26294    sni)
26295      shlibpath_overrides_runpath=no
26296      need_lib_prefix=no
26297      export_dynamic_flag_spec='${wl}-Blargedynsym'
26298      runpath_var=LD_RUN_PATH
26299      ;;
26300    siemens)
26301      need_lib_prefix=no
26302      ;;
26303    motorola)
26304      need_lib_prefix=no
26305      need_version=no
26306      shlibpath_overrides_runpath=no
26307      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26308      ;;
26309  esac
26310  ;;
26311
26312sysv4*MP*)
26313  if test -d /usr/nec ;then
26314    version_type=linux
26315    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26316    soname_spec='$libname${shared_ext}.$major'
26317    shlibpath_var=LD_LIBRARY_PATH
26318  fi
26319  ;;
26320
26321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26322  version_type=freebsd-elf
26323  need_lib_prefix=no
26324  need_version=no
26325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26326  soname_spec='${libname}${release}${shared_ext}$major'
26327  shlibpath_var=LD_LIBRARY_PATH
26328  hardcode_into_libs=yes
26329  if test "$with_gnu_ld" = yes; then
26330    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26331    shlibpath_overrides_runpath=no
26332  else
26333    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26334    shlibpath_overrides_runpath=yes
26335    case $host_os in
26336      sco3.2v5*)
26337        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26338	;;
26339    esac
26340  fi
26341  sys_lib_dlsearch_path_spec='/usr/lib'
26342  ;;
26343
26344uts4*)
26345  version_type=linux
26346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26347  soname_spec='${libname}${release}${shared_ext}$major'
26348  shlibpath_var=LD_LIBRARY_PATH
26349  ;;
26350
26351*)
26352  dynamic_linker=no
26353  ;;
26354esac
26355{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26356echo "${ECHO_T}$dynamic_linker" >&6; }
26357test "$dynamic_linker" = no && can_build_shared=no
26358
26359variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26360if test "$GCC" = yes; then
26361  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26362fi
26363
26364{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26365echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26366hardcode_action_GCJ=
26367if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26368   test -n "$runpath_var_GCJ" || \
26369   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26370
26371  # We can hardcode non-existant directories.
26372  if test "$hardcode_direct_GCJ" != no &&
26373     # If the only mechanism to avoid hardcoding is shlibpath_var, we
26374     # have to relink, otherwise we might link with an installed library
26375     # when we should be linking with a yet-to-be-installed one
26376     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26377     test "$hardcode_minus_L_GCJ" != no; then
26378    # Linking always hardcodes the temporary library directory.
26379    hardcode_action_GCJ=relink
26380  else
26381    # We can link without hardcoding, and we can hardcode nonexisting dirs.
26382    hardcode_action_GCJ=immediate
26383  fi
26384else
26385  # We cannot hardcode anything, or else we can only hardcode existing
26386  # directories.
26387  hardcode_action_GCJ=unsupported
26388fi
26389{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26390echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26391
26392if test "$hardcode_action_GCJ" = relink; then
26393  # Fast installation is not supported
26394  enable_fast_install=no
26395elif test "$shlibpath_overrides_runpath" = yes ||
26396     test "$enable_shared" = no; then
26397  # Fast installation is not necessary
26398  enable_fast_install=needless
26399fi
26400
26401
26402# The else clause should only fire when bootstrapping the
26403# libtool distribution, otherwise you forgot to ship ltmain.sh
26404# with your package, and you will get complaints that there are
26405# no rules to generate ltmain.sh.
26406if test -f "$ltmain"; then
26407  # See if we are running on zsh, and set the options which allow our commands through
26408  # without removal of \ escapes.
26409  if test -n "${ZSH_VERSION+set}" ; then
26410    setopt NO_GLOB_SUBST
26411  fi
26412  # Now quote all the things that may contain metacharacters while being
26413  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26414  # variables and quote the copies for generation of the libtool script.
26415  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26416    SED SHELL STRIP \
26417    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26418    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26419    deplibs_check_method reload_flag reload_cmds need_locks \
26420    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26421    lt_cv_sys_global_symbol_to_c_name_address \
26422    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26423    old_postinstall_cmds old_postuninstall_cmds \
26424    compiler_GCJ \
26425    CC_GCJ \
26426    LD_GCJ \
26427    lt_prog_compiler_wl_GCJ \
26428    lt_prog_compiler_pic_GCJ \
26429    lt_prog_compiler_static_GCJ \
26430    lt_prog_compiler_no_builtin_flag_GCJ \
26431    export_dynamic_flag_spec_GCJ \
26432    thread_safe_flag_spec_GCJ \
26433    whole_archive_flag_spec_GCJ \
26434    enable_shared_with_static_runtimes_GCJ \
26435    old_archive_cmds_GCJ \
26436    old_archive_from_new_cmds_GCJ \
26437    predep_objects_GCJ \
26438    postdep_objects_GCJ \
26439    predeps_GCJ \
26440    postdeps_GCJ \
26441    compiler_lib_search_path_GCJ \
26442    archive_cmds_GCJ \
26443    archive_expsym_cmds_GCJ \
26444    postinstall_cmds_GCJ \
26445    postuninstall_cmds_GCJ \
26446    old_archive_from_expsyms_cmds_GCJ \
26447    allow_undefined_flag_GCJ \
26448    no_undefined_flag_GCJ \
26449    export_symbols_cmds_GCJ \
26450    hardcode_libdir_flag_spec_GCJ \
26451    hardcode_libdir_flag_spec_ld_GCJ \
26452    hardcode_libdir_separator_GCJ \
26453    hardcode_automatic_GCJ \
26454    module_cmds_GCJ \
26455    module_expsym_cmds_GCJ \
26456    lt_cv_prog_compiler_c_o_GCJ \
26457    exclude_expsyms_GCJ \
26458    include_expsyms_GCJ; do
26459
26460    case $var in
26461    old_archive_cmds_GCJ | \
26462    old_archive_from_new_cmds_GCJ | \
26463    archive_cmds_GCJ | \
26464    archive_expsym_cmds_GCJ | \
26465    module_cmds_GCJ | \
26466    module_expsym_cmds_GCJ | \
26467    old_archive_from_expsyms_cmds_GCJ | \
26468    export_symbols_cmds_GCJ | \
26469    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26470    postinstall_cmds | postuninstall_cmds | \
26471    old_postinstall_cmds | old_postuninstall_cmds | \
26472    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26473      # Double-quote double-evaled strings.
26474      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26475      ;;
26476    *)
26477      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26478      ;;
26479    esac
26480  done
26481
26482  case $lt_echo in
26483  *'\$0 --fallback-echo"')
26484    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26485    ;;
26486  esac
26487
26488cfgfile="$ofile"
26489
26490  cat <<__EOF__ >> "$cfgfile"
26491# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26492
26493# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26494
26495# Shell to use when invoking shell scripts.
26496SHELL=$lt_SHELL
26497
26498# Whether or not to build shared libraries.
26499build_libtool_libs=$enable_shared
26500
26501# Whether or not to build static libraries.
26502build_old_libs=$enable_static
26503
26504# Whether or not to add -lc for building shared libraries.
26505build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26506
26507# Whether or not to disallow shared libs when runtime libs are static
26508allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26509
26510# Whether or not to optimize for fast installation.
26511fast_install=$enable_fast_install
26512
26513# The host system.
26514host_alias=$host_alias
26515host=$host
26516host_os=$host_os
26517
26518# The build system.
26519build_alias=$build_alias
26520build=$build
26521build_os=$build_os
26522
26523# An echo program that does not interpret backslashes.
26524echo=$lt_echo
26525
26526# The archiver.
26527AR=$lt_AR
26528AR_FLAGS=$lt_AR_FLAGS
26529
26530# A C compiler.
26531LTCC=$lt_LTCC
26532
26533# LTCC compiler flags.
26534LTCFLAGS=$lt_LTCFLAGS
26535
26536# A language-specific compiler.
26537CC=$lt_compiler_GCJ
26538
26539# Is the compiler the GNU C compiler?
26540with_gcc=$GCC_GCJ
26541
26542# An ERE matcher.
26543EGREP=$lt_EGREP
26544
26545# The linker used to build libraries.
26546LD=$lt_LD_GCJ
26547
26548# Whether we need hard or soft links.
26549LN_S=$lt_LN_S
26550
26551# A BSD-compatible nm program.
26552NM=$lt_NM
26553
26554# A symbol stripping program
26555STRIP=$lt_STRIP
26556
26557# Used to examine libraries when file_magic_cmd begins "file"
26558MAGIC_CMD=$MAGIC_CMD
26559
26560# Used on cygwin: DLL creation program.
26561DLLTOOL="$DLLTOOL"
26562
26563# Used on cygwin: object dumper.
26564OBJDUMP="$OBJDUMP"
26565
26566# Used on cygwin: assembler.
26567AS="$AS"
26568
26569# The name of the directory that contains temporary libtool files.
26570objdir=$objdir
26571
26572# How to create reloadable object files.
26573reload_flag=$lt_reload_flag
26574reload_cmds=$lt_reload_cmds
26575
26576# How to pass a linker flag through the compiler.
26577wl=$lt_lt_prog_compiler_wl_GCJ
26578
26579# Object file suffix (normally "o").
26580objext="$ac_objext"
26581
26582# Old archive suffix (normally "a").
26583libext="$libext"
26584
26585# Shared library suffix (normally ".so").
26586shrext_cmds='$shrext_cmds'
26587
26588# Executable file suffix (normally "").
26589exeext="$exeext"
26590
26591# Additional compiler flags for building library objects.
26592pic_flag=$lt_lt_prog_compiler_pic_GCJ
26593pic_mode=$pic_mode
26594
26595# What is the maximum length of a command?
26596max_cmd_len=$lt_cv_sys_max_cmd_len
26597
26598# Does compiler simultaneously support -c and -o options?
26599compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26600
26601# Must we lock files when doing compilation?
26602need_locks=$lt_need_locks
26603
26604# Do we need the lib prefix for modules?
26605need_lib_prefix=$need_lib_prefix
26606
26607# Do we need a version for libraries?
26608need_version=$need_version
26609
26610# Whether dlopen is supported.
26611dlopen_support=$enable_dlopen
26612
26613# Whether dlopen of programs is supported.
26614dlopen_self=$enable_dlopen_self
26615
26616# Whether dlopen of statically linked programs is supported.
26617dlopen_self_static=$enable_dlopen_self_static
26618
26619# Compiler flag to prevent dynamic linking.
26620link_static_flag=$lt_lt_prog_compiler_static_GCJ
26621
26622# Compiler flag to turn off builtin functions.
26623no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26624
26625# Compiler flag to allow reflexive dlopens.
26626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26627
26628# Compiler flag to generate shared objects directly from archives.
26629whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26630
26631# Compiler flag to generate thread-safe objects.
26632thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26633
26634# Library versioning type.
26635version_type=$version_type
26636
26637# Format of library name prefix.
26638libname_spec=$lt_libname_spec
26639
26640# List of archive names.  First name is the real one, the rest are links.
26641# The last name is the one that the linker finds with -lNAME.
26642library_names_spec=$lt_library_names_spec
26643
26644# The coded name of the library, if different from the real name.
26645soname_spec=$lt_soname_spec
26646
26647# Commands used to build and install an old-style archive.
26648RANLIB=$lt_RANLIB
26649old_archive_cmds=$lt_old_archive_cmds_GCJ
26650old_postinstall_cmds=$lt_old_postinstall_cmds
26651old_postuninstall_cmds=$lt_old_postuninstall_cmds
26652
26653# Create an old-style archive from a shared archive.
26654old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26655
26656# Create a temporary old-style archive to link instead of a shared archive.
26657old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26658
26659# Commands used to build and install a shared archive.
26660archive_cmds=$lt_archive_cmds_GCJ
26661archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26662postinstall_cmds=$lt_postinstall_cmds
26663postuninstall_cmds=$lt_postuninstall_cmds
26664
26665# Commands used to build a loadable module (assumed same as above if empty)
26666module_cmds=$lt_module_cmds_GCJ
26667module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26668
26669# Commands to strip libraries.
26670old_striplib=$lt_old_striplib
26671striplib=$lt_striplib
26672
26673# Dependencies to place before the objects being linked to create a
26674# shared library.
26675predep_objects=$lt_predep_objects_GCJ
26676
26677# Dependencies to place after the objects being linked to create a
26678# shared library.
26679postdep_objects=$lt_postdep_objects_GCJ
26680
26681# Dependencies to place before the objects being linked to create a
26682# shared library.
26683predeps=$lt_predeps_GCJ
26684
26685# Dependencies to place after the objects being linked to create a
26686# shared library.
26687postdeps=$lt_postdeps_GCJ
26688
26689# The library search path used internally by the compiler when linking
26690# a shared library.
26691compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26692
26693# Method to check whether dependent libraries are shared objects.
26694deplibs_check_method=$lt_deplibs_check_method
26695
26696# Command to use when deplibs_check_method == file_magic.
26697file_magic_cmd=$lt_file_magic_cmd
26698
26699# Flag that allows shared libraries with undefined symbols to be built.
26700allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26701
26702# Flag that forces no undefined symbols.
26703no_undefined_flag=$lt_no_undefined_flag_GCJ
26704
26705# Commands used to finish a libtool library installation in a directory.
26706finish_cmds=$lt_finish_cmds
26707
26708# Same as above, but a single script fragment to be evaled but not shown.
26709finish_eval=$lt_finish_eval
26710
26711# Take the output of nm and produce a listing of raw symbols and C names.
26712global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26713
26714# Transform the output of nm in a proper C declaration
26715global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26716
26717# Transform the output of nm in a C name address pair
26718global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26719
26720# This is the shared library runtime path variable.
26721runpath_var=$runpath_var
26722
26723# This is the shared library path variable.
26724shlibpath_var=$shlibpath_var
26725
26726# Is shlibpath searched before the hard-coded library search path?
26727shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26728
26729# How to hardcode a shared library path into an executable.
26730hardcode_action=$hardcode_action_GCJ
26731
26732# Whether we should hardcode library paths into libraries.
26733hardcode_into_libs=$hardcode_into_libs
26734
26735# Flag to hardcode \$libdir into a binary during linking.
26736# This must work even if \$libdir does not exist.
26737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26738
26739# If ld is used when linking, flag to hardcode \$libdir into
26740# a binary during linking. This must work even if \$libdir does
26741# not exist.
26742hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26743
26744# Whether we need a single -rpath flag with a separated argument.
26745hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26746
26747# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26748# resulting binary.
26749hardcode_direct=$hardcode_direct_GCJ
26750
26751# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26752# resulting binary.
26753hardcode_minus_L=$hardcode_minus_L_GCJ
26754
26755# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26756# the resulting binary.
26757hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26758
26759# Set to yes if building a shared library automatically hardcodes DIR into the library
26760# and all subsequent libraries and executables linked against it.
26761hardcode_automatic=$hardcode_automatic_GCJ
26762
26763# Variables whose values should be saved in libtool wrapper scripts and
26764# restored at relink time.
26765variables_saved_for_relink="$variables_saved_for_relink"
26766
26767# Whether libtool must link a program against all its dependency libraries.
26768link_all_deplibs=$link_all_deplibs_GCJ
26769
26770# Compile-time system search path for libraries
26771sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26772
26773# Run-time system search path for libraries
26774sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26775
26776# Fix the shell variable \$srcfile for the compiler.
26777fix_srcfile_path="$fix_srcfile_path_GCJ"
26778
26779# Set to yes if exported symbols are required.
26780always_export_symbols=$always_export_symbols_GCJ
26781
26782# The commands to list exported symbols.
26783export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26784
26785# The commands to extract the exported symbol list from a shared archive.
26786extract_expsyms_cmds=$lt_extract_expsyms_cmds
26787
26788# Symbols that should not be listed in the preloaded symbols.
26789exclude_expsyms=$lt_exclude_expsyms_GCJ
26790
26791# Symbols that must always be exported.
26792include_expsyms=$lt_include_expsyms_GCJ
26793
26794# ### END LIBTOOL TAG CONFIG: $tagname
26795
26796__EOF__
26797
26798
26799else
26800  # If there is no Makefile yet, we rely on a make rule to execute
26801  # `config.status --recheck' to rerun these tests and create the
26802  # libtool script then.
26803  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26804  if test -f "$ltmain_in"; then
26805    test -f Makefile && make "$ltmain"
26806  fi
26807fi
26808
26809
26810ac_ext=c
26811ac_cpp='$CPP $CPPFLAGS'
26812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814ac_compiler_gnu=$ac_cv_c_compiler_gnu
26815
26816CC="$lt_save_CC"
26817
26818	else
26819	  tagname=""
26820	fi
26821	;;
26822
26823      RC)
26824	ac_ext=c
26825ac_cpp='$CPP $CPPFLAGS'
26826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26828ac_compiler_gnu=$ac_cv_c_compiler_gnu
26829
26830
26831# Source file extension for RC test sources.
26832ac_ext=rc
26833
26834# Object file extension for compiled RC test sources.
26835objext=o
26836objext_RC=$objext
26837
26838# Code to be used in simple compile tests
26839lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26840
26841# Code to be used in simple link tests
26842lt_simple_link_test_code="$lt_simple_compile_test_code"
26843
26844# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26845
26846# If no C compiler was specified, use CC.
26847LTCC=${LTCC-"$CC"}
26848
26849# If no C compiler flags were specified, use CFLAGS.
26850LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26851
26852# Allow CC to be a program name with arguments.
26853compiler=$CC
26854
26855
26856# save warnings/boilerplate of simple test code
26857ac_outfile=conftest.$ac_objext
26858printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26860_lt_compiler_boilerplate=`cat conftest.err`
26861$rm conftest*
26862
26863ac_outfile=conftest.$ac_objext
26864printf "$lt_simple_link_test_code" >conftest.$ac_ext
26865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26866_lt_linker_boilerplate=`cat conftest.err`
26867$rm conftest*
26868
26869
26870# Allow CC to be a program name with arguments.
26871lt_save_CC="$CC"
26872CC=${RC-"windres"}
26873compiler=$CC
26874compiler_RC=$CC
26875for cc_temp in $compiler""; do
26876  case $cc_temp in
26877    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26878    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26879    \-*) ;;
26880    *) break;;
26881  esac
26882done
26883cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26884
26885lt_cv_prog_compiler_c_o_RC=yes
26886
26887# The else clause should only fire when bootstrapping the
26888# libtool distribution, otherwise you forgot to ship ltmain.sh
26889# with your package, and you will get complaints that there are
26890# no rules to generate ltmain.sh.
26891if test -f "$ltmain"; then
26892  # See if we are running on zsh, and set the options which allow our commands through
26893  # without removal of \ escapes.
26894  if test -n "${ZSH_VERSION+set}" ; then
26895    setopt NO_GLOB_SUBST
26896  fi
26897  # Now quote all the things that may contain metacharacters while being
26898  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26899  # variables and quote the copies for generation of the libtool script.
26900  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26901    SED SHELL STRIP \
26902    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26903    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26904    deplibs_check_method reload_flag reload_cmds need_locks \
26905    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26906    lt_cv_sys_global_symbol_to_c_name_address \
26907    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26908    old_postinstall_cmds old_postuninstall_cmds \
26909    compiler_RC \
26910    CC_RC \
26911    LD_RC \
26912    lt_prog_compiler_wl_RC \
26913    lt_prog_compiler_pic_RC \
26914    lt_prog_compiler_static_RC \
26915    lt_prog_compiler_no_builtin_flag_RC \
26916    export_dynamic_flag_spec_RC \
26917    thread_safe_flag_spec_RC \
26918    whole_archive_flag_spec_RC \
26919    enable_shared_with_static_runtimes_RC \
26920    old_archive_cmds_RC \
26921    old_archive_from_new_cmds_RC \
26922    predep_objects_RC \
26923    postdep_objects_RC \
26924    predeps_RC \
26925    postdeps_RC \
26926    compiler_lib_search_path_RC \
26927    archive_cmds_RC \
26928    archive_expsym_cmds_RC \
26929    postinstall_cmds_RC \
26930    postuninstall_cmds_RC \
26931    old_archive_from_expsyms_cmds_RC \
26932    allow_undefined_flag_RC \
26933    no_undefined_flag_RC \
26934    export_symbols_cmds_RC \
26935    hardcode_libdir_flag_spec_RC \
26936    hardcode_libdir_flag_spec_ld_RC \
26937    hardcode_libdir_separator_RC \
26938    hardcode_automatic_RC \
26939    module_cmds_RC \
26940    module_expsym_cmds_RC \
26941    lt_cv_prog_compiler_c_o_RC \
26942    exclude_expsyms_RC \
26943    include_expsyms_RC; do
26944
26945    case $var in
26946    old_archive_cmds_RC | \
26947    old_archive_from_new_cmds_RC | \
26948    archive_cmds_RC | \
26949    archive_expsym_cmds_RC | \
26950    module_cmds_RC | \
26951    module_expsym_cmds_RC | \
26952    old_archive_from_expsyms_cmds_RC | \
26953    export_symbols_cmds_RC | \
26954    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26955    postinstall_cmds | postuninstall_cmds | \
26956    old_postinstall_cmds | old_postuninstall_cmds | \
26957    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26958      # Double-quote double-evaled strings.
26959      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26960      ;;
26961    *)
26962      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26963      ;;
26964    esac
26965  done
26966
26967  case $lt_echo in
26968  *'\$0 --fallback-echo"')
26969    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26970    ;;
26971  esac
26972
26973cfgfile="$ofile"
26974
26975  cat <<__EOF__ >> "$cfgfile"
26976# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26977
26978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26979
26980# Shell to use when invoking shell scripts.
26981SHELL=$lt_SHELL
26982
26983# Whether or not to build shared libraries.
26984build_libtool_libs=$enable_shared
26985
26986# Whether or not to build static libraries.
26987build_old_libs=$enable_static
26988
26989# Whether or not to add -lc for building shared libraries.
26990build_libtool_need_lc=$archive_cmds_need_lc_RC
26991
26992# Whether or not to disallow shared libs when runtime libs are static
26993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26994
26995# Whether or not to optimize for fast installation.
26996fast_install=$enable_fast_install
26997
26998# The host system.
26999host_alias=$host_alias
27000host=$host
27001host_os=$host_os
27002
27003# The build system.
27004build_alias=$build_alias
27005build=$build
27006build_os=$build_os
27007
27008# An echo program that does not interpret backslashes.
27009echo=$lt_echo
27010
27011# The archiver.
27012AR=$lt_AR
27013AR_FLAGS=$lt_AR_FLAGS
27014
27015# A C compiler.
27016LTCC=$lt_LTCC
27017
27018# LTCC compiler flags.
27019LTCFLAGS=$lt_LTCFLAGS
27020
27021# A language-specific compiler.
27022CC=$lt_compiler_RC
27023
27024# Is the compiler the GNU C compiler?
27025with_gcc=$GCC_RC
27026
27027# An ERE matcher.
27028EGREP=$lt_EGREP
27029
27030# The linker used to build libraries.
27031LD=$lt_LD_RC
27032
27033# Whether we need hard or soft links.
27034LN_S=$lt_LN_S
27035
27036# A BSD-compatible nm program.
27037NM=$lt_NM
27038
27039# A symbol stripping program
27040STRIP=$lt_STRIP
27041
27042# Used to examine libraries when file_magic_cmd begins "file"
27043MAGIC_CMD=$MAGIC_CMD
27044
27045# Used on cygwin: DLL creation program.
27046DLLTOOL="$DLLTOOL"
27047
27048# Used on cygwin: object dumper.
27049OBJDUMP="$OBJDUMP"
27050
27051# Used on cygwin: assembler.
27052AS="$AS"
27053
27054# The name of the directory that contains temporary libtool files.
27055objdir=$objdir
27056
27057# How to create reloadable object files.
27058reload_flag=$lt_reload_flag
27059reload_cmds=$lt_reload_cmds
27060
27061# How to pass a linker flag through the compiler.
27062wl=$lt_lt_prog_compiler_wl_RC
27063
27064# Object file suffix (normally "o").
27065objext="$ac_objext"
27066
27067# Old archive suffix (normally "a").
27068libext="$libext"
27069
27070# Shared library suffix (normally ".so").
27071shrext_cmds='$shrext_cmds'
27072
27073# Executable file suffix (normally "").
27074exeext="$exeext"
27075
27076# Additional compiler flags for building library objects.
27077pic_flag=$lt_lt_prog_compiler_pic_RC
27078pic_mode=$pic_mode
27079
27080# What is the maximum length of a command?
27081max_cmd_len=$lt_cv_sys_max_cmd_len
27082
27083# Does compiler simultaneously support -c and -o options?
27084compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27085
27086# Must we lock files when doing compilation?
27087need_locks=$lt_need_locks
27088
27089# Do we need the lib prefix for modules?
27090need_lib_prefix=$need_lib_prefix
27091
27092# Do we need a version for libraries?
27093need_version=$need_version
27094
27095# Whether dlopen is supported.
27096dlopen_support=$enable_dlopen
27097
27098# Whether dlopen of programs is supported.
27099dlopen_self=$enable_dlopen_self
27100
27101# Whether dlopen of statically linked programs is supported.
27102dlopen_self_static=$enable_dlopen_self_static
27103
27104# Compiler flag to prevent dynamic linking.
27105link_static_flag=$lt_lt_prog_compiler_static_RC
27106
27107# Compiler flag to turn off builtin functions.
27108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27109
27110# Compiler flag to allow reflexive dlopens.
27111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27112
27113# Compiler flag to generate shared objects directly from archives.
27114whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27115
27116# Compiler flag to generate thread-safe objects.
27117thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27118
27119# Library versioning type.
27120version_type=$version_type
27121
27122# Format of library name prefix.
27123libname_spec=$lt_libname_spec
27124
27125# List of archive names.  First name is the real one, the rest are links.
27126# The last name is the one that the linker finds with -lNAME.
27127library_names_spec=$lt_library_names_spec
27128
27129# The coded name of the library, if different from the real name.
27130soname_spec=$lt_soname_spec
27131
27132# Commands used to build and install an old-style archive.
27133RANLIB=$lt_RANLIB
27134old_archive_cmds=$lt_old_archive_cmds_RC
27135old_postinstall_cmds=$lt_old_postinstall_cmds
27136old_postuninstall_cmds=$lt_old_postuninstall_cmds
27137
27138# Create an old-style archive from a shared archive.
27139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27140
27141# Create a temporary old-style archive to link instead of a shared archive.
27142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27143
27144# Commands used to build and install a shared archive.
27145archive_cmds=$lt_archive_cmds_RC
27146archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27147postinstall_cmds=$lt_postinstall_cmds
27148postuninstall_cmds=$lt_postuninstall_cmds
27149
27150# Commands used to build a loadable module (assumed same as above if empty)
27151module_cmds=$lt_module_cmds_RC
27152module_expsym_cmds=$lt_module_expsym_cmds_RC
27153
27154# Commands to strip libraries.
27155old_striplib=$lt_old_striplib
27156striplib=$lt_striplib
27157
27158# Dependencies to place before the objects being linked to create a
27159# shared library.
27160predep_objects=$lt_predep_objects_RC
27161
27162# Dependencies to place after the objects being linked to create a
27163# shared library.
27164postdep_objects=$lt_postdep_objects_RC
27165
27166# Dependencies to place before the objects being linked to create a
27167# shared library.
27168predeps=$lt_predeps_RC
27169
27170# Dependencies to place after the objects being linked to create a
27171# shared library.
27172postdeps=$lt_postdeps_RC
27173
27174# The library search path used internally by the compiler when linking
27175# a shared library.
27176compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27177
27178# Method to check whether dependent libraries are shared objects.
27179deplibs_check_method=$lt_deplibs_check_method
27180
27181# Command to use when deplibs_check_method == file_magic.
27182file_magic_cmd=$lt_file_magic_cmd
27183
27184# Flag that allows shared libraries with undefined symbols to be built.
27185allow_undefined_flag=$lt_allow_undefined_flag_RC
27186
27187# Flag that forces no undefined symbols.
27188no_undefined_flag=$lt_no_undefined_flag_RC
27189
27190# Commands used to finish a libtool library installation in a directory.
27191finish_cmds=$lt_finish_cmds
27192
27193# Same as above, but a single script fragment to be evaled but not shown.
27194finish_eval=$lt_finish_eval
27195
27196# Take the output of nm and produce a listing of raw symbols and C names.
27197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27198
27199# Transform the output of nm in a proper C declaration
27200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27201
27202# Transform the output of nm in a C name address pair
27203global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27204
27205# This is the shared library runtime path variable.
27206runpath_var=$runpath_var
27207
27208# This is the shared library path variable.
27209shlibpath_var=$shlibpath_var
27210
27211# Is shlibpath searched before the hard-coded library search path?
27212shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27213
27214# How to hardcode a shared library path into an executable.
27215hardcode_action=$hardcode_action_RC
27216
27217# Whether we should hardcode library paths into libraries.
27218hardcode_into_libs=$hardcode_into_libs
27219
27220# Flag to hardcode \$libdir into a binary during linking.
27221# This must work even if \$libdir does not exist.
27222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27223
27224# If ld is used when linking, flag to hardcode \$libdir into
27225# a binary during linking. This must work even if \$libdir does
27226# not exist.
27227hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27228
27229# Whether we need a single -rpath flag with a separated argument.
27230hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27231
27232# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27233# resulting binary.
27234hardcode_direct=$hardcode_direct_RC
27235
27236# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27237# resulting binary.
27238hardcode_minus_L=$hardcode_minus_L_RC
27239
27240# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27241# the resulting binary.
27242hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27243
27244# Set to yes if building a shared library automatically hardcodes DIR into the library
27245# and all subsequent libraries and executables linked against it.
27246hardcode_automatic=$hardcode_automatic_RC
27247
27248# Variables whose values should be saved in libtool wrapper scripts and
27249# restored at relink time.
27250variables_saved_for_relink="$variables_saved_for_relink"
27251
27252# Whether libtool must link a program against all its dependency libraries.
27253link_all_deplibs=$link_all_deplibs_RC
27254
27255# Compile-time system search path for libraries
27256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27257
27258# Run-time system search path for libraries
27259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27260
27261# Fix the shell variable \$srcfile for the compiler.
27262fix_srcfile_path="$fix_srcfile_path_RC"
27263
27264# Set to yes if exported symbols are required.
27265always_export_symbols=$always_export_symbols_RC
27266
27267# The commands to list exported symbols.
27268export_symbols_cmds=$lt_export_symbols_cmds_RC
27269
27270# The commands to extract the exported symbol list from a shared archive.
27271extract_expsyms_cmds=$lt_extract_expsyms_cmds
27272
27273# Symbols that should not be listed in the preloaded symbols.
27274exclude_expsyms=$lt_exclude_expsyms_RC
27275
27276# Symbols that must always be exported.
27277include_expsyms=$lt_include_expsyms_RC
27278
27279# ### END LIBTOOL TAG CONFIG: $tagname
27280
27281__EOF__
27282
27283
27284else
27285  # If there is no Makefile yet, we rely on a make rule to execute
27286  # `config.status --recheck' to rerun these tests and create the
27287  # libtool script then.
27288  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27289  if test -f "$ltmain_in"; then
27290    test -f Makefile && make "$ltmain"
27291  fi
27292fi
27293
27294
27295ac_ext=c
27296ac_cpp='$CPP $CPPFLAGS'
27297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27299ac_compiler_gnu=$ac_cv_c_compiler_gnu
27300
27301CC="$lt_save_CC"
27302
27303	;;
27304
27305      *)
27306	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27307echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27308   { (exit 1); exit 1; }; }
27309	;;
27310      esac
27311
27312      # Append the new tag name to the list of available tags.
27313      if test -n "$tagname" ; then
27314      available_tags="$available_tags $tagname"
27315    fi
27316    fi
27317  done
27318  IFS="$lt_save_ifs"
27319
27320  # Now substitute the updated list of available tags.
27321  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27322    mv "${ofile}T" "$ofile"
27323    chmod +x "$ofile"
27324  else
27325    rm -f "${ofile}T"
27326    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27327echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27328   { (exit 1); exit 1; }; }
27329  fi
27330fi
27331
27332
27333
27334# This can be used to rebuild libtool when needed
27335LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27336
27337# Always use our own libtool.
27338LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27339
27340# Prevent multiple expansion
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362if test "$lt_cv_dlopen_self" = "yes" ; then
27363
27364cat >>confdefs.h <<\_ACEOF
27365#define CAN_DLOPEN_SELF 1
27366_ACEOF
27367
27368fi
27369
27370
27371if test "$WITH_LLVMGCCDIR" = "default" ; then
27372  LLVMGCC="llvm-gcc${EXEEXT}"
27373  LLVMGXX="llvm-g++${EXEEXT}"
27374  LLVMGCCCOMMAND="$LLVMGCC"
27375  LLVMGXXCOMMAND="$LLVMGXX"
27376  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27377
27378  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27379
27380  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27381set dummy $LLVMGCC; ac_word=$2
27382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27384if test "${ac_cv_path_LLVMGCC+set}" = set; then
27385  echo $ECHO_N "(cached) $ECHO_C" >&6
27386else
27387  case $LLVMGCC in
27388  [\\/]* | ?:[\\/]*)
27389  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27390  ;;
27391  *)
27392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27393for as_dir in $PATH
27394do
27395  IFS=$as_save_IFS
27396  test -z "$as_dir" && as_dir=.
27397  for ac_exec_ext in '' $ac_executable_extensions; do
27398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27399    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27401    break 2
27402  fi
27403done
27404done
27405IFS=$as_save_IFS
27406
27407  ;;
27408esac
27409fi
27410LLVMGCC=$ac_cv_path_LLVMGCC
27411if test -n "$LLVMGCC"; then
27412  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27413echo "${ECHO_T}$LLVMGCC" >&6; }
27414else
27415  { echo "$as_me:$LINENO: result: no" >&5
27416echo "${ECHO_T}no" >&6; }
27417fi
27418
27419
27420  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27421set dummy $LLVMGXX; ac_word=$2
27422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27424if test "${ac_cv_path_LLVMGXX+set}" = set; then
27425  echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427  case $LLVMGXX in
27428  [\\/]* | ?:[\\/]*)
27429  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27430  ;;
27431  *)
27432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27433for as_dir in $PATH
27434do
27435  IFS=$as_save_IFS
27436  test -z "$as_dir" && as_dir=.
27437  for ac_exec_ext in '' $ac_executable_extensions; do
27438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27439    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27441    break 2
27442  fi
27443done
27444done
27445IFS=$as_save_IFS
27446
27447  ;;
27448esac
27449fi
27450LLVMGXX=$ac_cv_path_LLVMGXX
27451if test -n "$LLVMGXX"; then
27452  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27453echo "${ECHO_T}$LLVMGXX" >&6; }
27454else
27455  { echo "$as_me:$LINENO: result: no" >&5
27456echo "${ECHO_T}no" >&6; }
27457fi
27458
27459
27460else
27461  if test -z "$LLVMGCC"; then
27462    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27463    LLVMGCCCOMMAND="$LLVMGCC"
27464  fi
27465  if test -z "$LLVMGXX"; then
27466    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27467    LLVMGXXCOMMAND="$LLVMGXX"
27468  fi
27469
27470  LLVMGCC=$LLVMGCC
27471
27472  LLVMGXX=$LLVMGXX
27473
27474  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27475
27476  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27477
27478fi
27479
27480
27481{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27482echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27483
27484ICC=no
27485IXX=no
27486case $CC in
27487  icc*|icpc*)
27488    ICC=yes
27489    IXX=yes
27490    ;;
27491   *)
27492    ;;
27493esac
27494
27495if test "$GCC" != "yes" && test "$ICC" != "yes"
27496then
27497  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27498echo "$as_me: error: gcc|icc required but not found" >&2;}
27499   { (exit 1); exit 1; }; }
27500fi
27501
27502if test "$GXX" != "yes" && test "$IXX" != "yes"
27503then
27504  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27505echo "$as_me: error: g++|icc required but not found" >&2;}
27506   { (exit 1); exit 1; }; }
27507fi
27508
27509if test "$GCC" = "yes"
27510then
27511  cat >conftest.$ac_ext <<_ACEOF
27512#if !defined(__GNUC__) || __GNUC__ < 3
27513#error Unsupported GCC version
27514#endif
27515
27516_ACEOF
27517rm -f conftest.$ac_objext
27518if { (ac_try="$ac_compile"
27519case "(($ac_try" in
27520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521  *) ac_try_echo=$ac_try;;
27522esac
27523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524  (eval "$ac_compile") 2>conftest.er1
27525  ac_status=$?
27526  grep -v '^ *+' conftest.er1 >conftest.err
27527  rm -f conftest.er1
27528  cat conftest.err >&5
27529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530  (exit $ac_status); } &&
27531	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27532  { (case "(($ac_try" in
27533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534  *) ac_try_echo=$ac_try;;
27535esac
27536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537  (eval "$ac_try") 2>&5
27538  ac_status=$?
27539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540  (exit $ac_status); }; } &&
27541	 { ac_try='test -s conftest.$ac_objext'
27542  { (case "(($ac_try" in
27543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544  *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547  (eval "$ac_try") 2>&5
27548  ac_status=$?
27549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550  (exit $ac_status); }; }; then
27551  :
27552else
27553  echo "$as_me: failed program was:" >&5
27554sed 's/^/| /' conftest.$ac_ext >&5
27555
27556	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27557echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27558   { (exit 1); exit 1; }; }
27559fi
27560
27561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27562fi
27563
27564if test -z "$llvm_cv_gnu_make_command"
27565then
27566  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27567echo "$as_me: error: GNU Make required but not found" >&2;}
27568   { (exit 1); exit 1; }; }
27569fi
27570
27571{ echo "$as_me:$LINENO: result: ok" >&5
27572echo "${ECHO_T}ok" >&6; }
27573
27574{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
27575echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27576NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27577
27578NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27579
27580{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27581echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27582
27583
27584
27585{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27586echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27587if test "${ac_cv_lib_m_sin+set}" = set; then
27588  echo $ECHO_N "(cached) $ECHO_C" >&6
27589else
27590  ac_check_lib_save_LIBS=$LIBS
27591LIBS="-lm  $LIBS"
27592cat >conftest.$ac_ext <<_ACEOF
27593/* confdefs.h.  */
27594_ACEOF
27595cat confdefs.h >>conftest.$ac_ext
27596cat >>conftest.$ac_ext <<_ACEOF
27597/* end confdefs.h.  */
27598
27599/* Override any GCC internal prototype to avoid an error.
27600   Use char because int might match the return type of a GCC
27601   builtin and then its argument prototype would still apply.  */
27602#ifdef __cplusplus
27603extern "C"
27604#endif
27605char sin ();
27606int
27607main ()
27608{
27609return sin ();
27610  ;
27611  return 0;
27612}
27613_ACEOF
27614rm -f conftest.$ac_objext conftest$ac_exeext
27615if { (ac_try="$ac_link"
27616case "(($ac_try" in
27617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618  *) ac_try_echo=$ac_try;;
27619esac
27620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621  (eval "$ac_link") 2>conftest.er1
27622  ac_status=$?
27623  grep -v '^ *+' conftest.er1 >conftest.err
27624  rm -f conftest.er1
27625  cat conftest.err >&5
27626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627  (exit $ac_status); } &&
27628	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27629  { (case "(($ac_try" in
27630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631  *) ac_try_echo=$ac_try;;
27632esac
27633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634  (eval "$ac_try") 2>&5
27635  ac_status=$?
27636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637  (exit $ac_status); }; } &&
27638	 { ac_try='test -s conftest$ac_exeext'
27639  { (case "(($ac_try" in
27640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641  *) ac_try_echo=$ac_try;;
27642esac
27643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644  (eval "$ac_try") 2>&5
27645  ac_status=$?
27646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647  (exit $ac_status); }; }; then
27648  ac_cv_lib_m_sin=yes
27649else
27650  echo "$as_me: failed program was:" >&5
27651sed 's/^/| /' conftest.$ac_ext >&5
27652
27653	ac_cv_lib_m_sin=no
27654fi
27655
27656rm -f core conftest.err conftest.$ac_objext \
27657      conftest$ac_exeext conftest.$ac_ext
27658LIBS=$ac_check_lib_save_LIBS
27659fi
27660{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27661echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27662if test $ac_cv_lib_m_sin = yes; then
27663  cat >>confdefs.h <<_ACEOF
27664#define HAVE_LIBM 1
27665_ACEOF
27666
27667  LIBS="-lm $LIBS"
27668
27669fi
27670
27671if test "$llvm_cv_os_type" = "MingW" ; then
27672
27673{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27674echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27675if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27676  echo $ECHO_N "(cached) $ECHO_C" >&6
27677else
27678  ac_check_lib_save_LIBS=$LIBS
27679LIBS="-limagehlp  $LIBS"
27680cat >conftest.$ac_ext <<_ACEOF
27681/* confdefs.h.  */
27682_ACEOF
27683cat confdefs.h >>conftest.$ac_ext
27684cat >>conftest.$ac_ext <<_ACEOF
27685/* end confdefs.h.  */
27686
27687
27688int
27689main ()
27690{
27691return main ();
27692  ;
27693  return 0;
27694}
27695_ACEOF
27696rm -f conftest.$ac_objext conftest$ac_exeext
27697if { (ac_try="$ac_link"
27698case "(($ac_try" in
27699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700  *) ac_try_echo=$ac_try;;
27701esac
27702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703  (eval "$ac_link") 2>conftest.er1
27704  ac_status=$?
27705  grep -v '^ *+' conftest.er1 >conftest.err
27706  rm -f conftest.er1
27707  cat conftest.err >&5
27708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709  (exit $ac_status); } &&
27710	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27711  { (case "(($ac_try" in
27712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713  *) ac_try_echo=$ac_try;;
27714esac
27715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716  (eval "$ac_try") 2>&5
27717  ac_status=$?
27718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719  (exit $ac_status); }; } &&
27720	 { ac_try='test -s conftest$ac_exeext'
27721  { (case "(($ac_try" in
27722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723  *) ac_try_echo=$ac_try;;
27724esac
27725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726  (eval "$ac_try") 2>&5
27727  ac_status=$?
27728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729  (exit $ac_status); }; }; then
27730  ac_cv_lib_imagehlp_main=yes
27731else
27732  echo "$as_me: failed program was:" >&5
27733sed 's/^/| /' conftest.$ac_ext >&5
27734
27735	ac_cv_lib_imagehlp_main=no
27736fi
27737
27738rm -f core conftest.err conftest.$ac_objext \
27739      conftest$ac_exeext conftest.$ac_ext
27740LIBS=$ac_check_lib_save_LIBS
27741fi
27742{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27743echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27744if test $ac_cv_lib_imagehlp_main = yes; then
27745  cat >>confdefs.h <<_ACEOF
27746#define HAVE_LIBIMAGEHLP 1
27747_ACEOF
27748
27749  LIBS="-limagehlp $LIBS"
27750
27751fi
27752
27753
27754{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27755echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27756if test "${ac_cv_lib_psapi_main+set}" = set; then
27757  echo $ECHO_N "(cached) $ECHO_C" >&6
27758else
27759  ac_check_lib_save_LIBS=$LIBS
27760LIBS="-lpsapi  $LIBS"
27761cat >conftest.$ac_ext <<_ACEOF
27762/* confdefs.h.  */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h.  */
27767
27768
27769int
27770main ()
27771{
27772return main ();
27773  ;
27774  return 0;
27775}
27776_ACEOF
27777rm -f conftest.$ac_objext conftest$ac_exeext
27778if { (ac_try="$ac_link"
27779case "(($ac_try" in
27780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781  *) ac_try_echo=$ac_try;;
27782esac
27783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784  (eval "$ac_link") 2>conftest.er1
27785  ac_status=$?
27786  grep -v '^ *+' conftest.er1 >conftest.err
27787  rm -f conftest.er1
27788  cat conftest.err >&5
27789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790  (exit $ac_status); } &&
27791	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792  { (case "(($ac_try" in
27793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794  *) ac_try_echo=$ac_try;;
27795esac
27796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797  (eval "$ac_try") 2>&5
27798  ac_status=$?
27799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800  (exit $ac_status); }; } &&
27801	 { ac_try='test -s conftest$ac_exeext'
27802  { (case "(($ac_try" in
27803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804  *) ac_try_echo=$ac_try;;
27805esac
27806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807  (eval "$ac_try") 2>&5
27808  ac_status=$?
27809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810  (exit $ac_status); }; }; then
27811  ac_cv_lib_psapi_main=yes
27812else
27813  echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816	ac_cv_lib_psapi_main=no
27817fi
27818
27819rm -f core conftest.err conftest.$ac_objext \
27820      conftest$ac_exeext conftest.$ac_ext
27821LIBS=$ac_check_lib_save_LIBS
27822fi
27823{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27824echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27825if test $ac_cv_lib_psapi_main = yes; then
27826  cat >>confdefs.h <<_ACEOF
27827#define HAVE_LIBPSAPI 1
27828_ACEOF
27829
27830  LIBS="-lpsapi $LIBS"
27831
27832fi
27833
27834fi
27835
27836{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27837echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27838if test "${ac_cv_search_dlopen+set}" = set; then
27839  echo $ECHO_N "(cached) $ECHO_C" >&6
27840else
27841  ac_func_search_save_LIBS=$LIBS
27842cat >conftest.$ac_ext <<_ACEOF
27843/* confdefs.h.  */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h.  */
27848
27849/* Override any GCC internal prototype to avoid an error.
27850   Use char because int might match the return type of a GCC
27851   builtin and then its argument prototype would still apply.  */
27852#ifdef __cplusplus
27853extern "C"
27854#endif
27855char dlopen ();
27856int
27857main ()
27858{
27859return dlopen ();
27860  ;
27861  return 0;
27862}
27863_ACEOF
27864for ac_lib in '' dl; do
27865  if test -z "$ac_lib"; then
27866    ac_res="none required"
27867  else
27868    ac_res=-l$ac_lib
27869    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27870  fi
27871  rm -f conftest.$ac_objext conftest$ac_exeext
27872if { (ac_try="$ac_link"
27873case "(($ac_try" in
27874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875  *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878  (eval "$ac_link") 2>conftest.er1
27879  ac_status=$?
27880  grep -v '^ *+' conftest.er1 >conftest.err
27881  rm -f conftest.er1
27882  cat conftest.err >&5
27883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884  (exit $ac_status); } &&
27885	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886  { (case "(($ac_try" in
27887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888  *) ac_try_echo=$ac_try;;
27889esac
27890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891  (eval "$ac_try") 2>&5
27892  ac_status=$?
27893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894  (exit $ac_status); }; } &&
27895	 { ac_try='test -s conftest$ac_exeext'
27896  { (case "(($ac_try" in
27897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898  *) ac_try_echo=$ac_try;;
27899esac
27900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901  (eval "$ac_try") 2>&5
27902  ac_status=$?
27903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904  (exit $ac_status); }; }; then
27905  ac_cv_search_dlopen=$ac_res
27906else
27907  echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
27910
27911fi
27912
27913rm -f core conftest.err conftest.$ac_objext \
27914      conftest$ac_exeext
27915  if test "${ac_cv_search_dlopen+set}" = set; then
27916  break
27917fi
27918done
27919if test "${ac_cv_search_dlopen+set}" = set; then
27920  :
27921else
27922  ac_cv_search_dlopen=no
27923fi
27924rm conftest.$ac_ext
27925LIBS=$ac_func_search_save_LIBS
27926fi
27927{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27928echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27929ac_res=$ac_cv_search_dlopen
27930if test "$ac_res" != no; then
27931  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27932
27933cat >>confdefs.h <<\_ACEOF
27934#define HAVE_DLOPEN 1
27935_ACEOF
27936
27937else
27938  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27939echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27940fi
27941
27942
27943if test "$llvm_cv_enable_libffi" = "yes" ; then
27944  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27945echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27946if test "${ac_cv_search_ffi_call+set}" = set; then
27947  echo $ECHO_N "(cached) $ECHO_C" >&6
27948else
27949  ac_func_search_save_LIBS=$LIBS
27950cat >conftest.$ac_ext <<_ACEOF
27951/* confdefs.h.  */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h.  */
27956
27957/* Override any GCC internal prototype to avoid an error.
27958   Use char because int might match the return type of a GCC
27959   builtin and then its argument prototype would still apply.  */
27960#ifdef __cplusplus
27961extern "C"
27962#endif
27963char ffi_call ();
27964int
27965main ()
27966{
27967return ffi_call ();
27968  ;
27969  return 0;
27970}
27971_ACEOF
27972for ac_lib in '' ffi; do
27973  if test -z "$ac_lib"; then
27974    ac_res="none required"
27975  else
27976    ac_res=-l$ac_lib
27977    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27978  fi
27979  rm -f conftest.$ac_objext conftest$ac_exeext
27980if { (ac_try="$ac_link"
27981case "(($ac_try" in
27982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983  *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986  (eval "$ac_link") 2>conftest.er1
27987  ac_status=$?
27988  grep -v '^ *+' conftest.er1 >conftest.err
27989  rm -f conftest.er1
27990  cat conftest.err >&5
27991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992  (exit $ac_status); } &&
27993	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994  { (case "(($ac_try" in
27995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996  *) ac_try_echo=$ac_try;;
27997esac
27998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999  (eval "$ac_try") 2>&5
28000  ac_status=$?
28001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002  (exit $ac_status); }; } &&
28003	 { ac_try='test -s conftest$ac_exeext'
28004  { (case "(($ac_try" in
28005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006  *) ac_try_echo=$ac_try;;
28007esac
28008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009  (eval "$ac_try") 2>&5
28010  ac_status=$?
28011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012  (exit $ac_status); }; }; then
28013  ac_cv_search_ffi_call=$ac_res
28014else
28015  echo "$as_me: failed program was:" >&5
28016sed 's/^/| /' conftest.$ac_ext >&5
28017
28018
28019fi
28020
28021rm -f core conftest.err conftest.$ac_objext \
28022      conftest$ac_exeext
28023  if test "${ac_cv_search_ffi_call+set}" = set; then
28024  break
28025fi
28026done
28027if test "${ac_cv_search_ffi_call+set}" = set; then
28028  :
28029else
28030  ac_cv_search_ffi_call=no
28031fi
28032rm conftest.$ac_ext
28033LIBS=$ac_func_search_save_LIBS
28034fi
28035{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
28036echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
28037ac_res=$ac_cv_search_ffi_call
28038if test "$ac_res" != no; then
28039  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28040
28041cat >>confdefs.h <<\_ACEOF
28042#define HAVE_FFI_CALL 1
28043_ACEOF
28044
28045else
28046  { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28047echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28048fi
28049
28050fi
28051
28052{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28053echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28054if test "${ac_cv_search_mallinfo+set}" = set; then
28055  echo $ECHO_N "(cached) $ECHO_C" >&6
28056else
28057  ac_func_search_save_LIBS=$LIBS
28058cat >conftest.$ac_ext <<_ACEOF
28059/* confdefs.h.  */
28060_ACEOF
28061cat confdefs.h >>conftest.$ac_ext
28062cat >>conftest.$ac_ext <<_ACEOF
28063/* end confdefs.h.  */
28064
28065/* Override any GCC internal prototype to avoid an error.
28066   Use char because int might match the return type of a GCC
28067   builtin and then its argument prototype would still apply.  */
28068#ifdef __cplusplus
28069extern "C"
28070#endif
28071char mallinfo ();
28072int
28073main ()
28074{
28075return mallinfo ();
28076  ;
28077  return 0;
28078}
28079_ACEOF
28080for ac_lib in '' malloc; do
28081  if test -z "$ac_lib"; then
28082    ac_res="none required"
28083  else
28084    ac_res=-l$ac_lib
28085    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28086  fi
28087  rm -f conftest.$ac_objext conftest$ac_exeext
28088if { (ac_try="$ac_link"
28089case "(($ac_try" in
28090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091  *) ac_try_echo=$ac_try;;
28092esac
28093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094  (eval "$ac_link") 2>conftest.er1
28095  ac_status=$?
28096  grep -v '^ *+' conftest.er1 >conftest.err
28097  rm -f conftest.er1
28098  cat conftest.err >&5
28099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100  (exit $ac_status); } &&
28101	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28102  { (case "(($ac_try" in
28103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104  *) ac_try_echo=$ac_try;;
28105esac
28106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107  (eval "$ac_try") 2>&5
28108  ac_status=$?
28109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110  (exit $ac_status); }; } &&
28111	 { ac_try='test -s conftest$ac_exeext'
28112  { (case "(($ac_try" in
28113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114  *) ac_try_echo=$ac_try;;
28115esac
28116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117  (eval "$ac_try") 2>&5
28118  ac_status=$?
28119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120  (exit $ac_status); }; }; then
28121  ac_cv_search_mallinfo=$ac_res
28122else
28123  echo "$as_me: failed program was:" >&5
28124sed 's/^/| /' conftest.$ac_ext >&5
28125
28126
28127fi
28128
28129rm -f core conftest.err conftest.$ac_objext \
28130      conftest$ac_exeext
28131  if test "${ac_cv_search_mallinfo+set}" = set; then
28132  break
28133fi
28134done
28135if test "${ac_cv_search_mallinfo+set}" = set; then
28136  :
28137else
28138  ac_cv_search_mallinfo=no
28139fi
28140rm conftest.$ac_ext
28141LIBS=$ac_func_search_save_LIBS
28142fi
28143{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28144echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28145ac_res=$ac_cv_search_mallinfo
28146if test "$ac_res" != no; then
28147  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28148
28149cat >>confdefs.h <<\_ACEOF
28150#define HAVE_MALLINFO 1
28151_ACEOF
28152
28153fi
28154
28155
28156if test "$ENABLE_THREADS" -eq 1 ; then
28157
28158{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28159echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28160if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28161  echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
28163  ac_check_lib_save_LIBS=$LIBS
28164LIBS="-lpthread  $LIBS"
28165cat >conftest.$ac_ext <<_ACEOF
28166/* confdefs.h.  */
28167_ACEOF
28168cat confdefs.h >>conftest.$ac_ext
28169cat >>conftest.$ac_ext <<_ACEOF
28170/* end confdefs.h.  */
28171
28172/* Override any GCC internal prototype to avoid an error.
28173   Use char because int might match the return type of a GCC
28174   builtin and then its argument prototype would still apply.  */
28175#ifdef __cplusplus
28176extern "C"
28177#endif
28178char pthread_mutex_init ();
28179int
28180main ()
28181{
28182return pthread_mutex_init ();
28183  ;
28184  return 0;
28185}
28186_ACEOF
28187rm -f conftest.$ac_objext conftest$ac_exeext
28188if { (ac_try="$ac_link"
28189case "(($ac_try" in
28190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191  *) ac_try_echo=$ac_try;;
28192esac
28193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194  (eval "$ac_link") 2>conftest.er1
28195  ac_status=$?
28196  grep -v '^ *+' conftest.er1 >conftest.err
28197  rm -f conftest.er1
28198  cat conftest.err >&5
28199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200  (exit $ac_status); } &&
28201	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28202  { (case "(($ac_try" in
28203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204  *) ac_try_echo=$ac_try;;
28205esac
28206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207  (eval "$ac_try") 2>&5
28208  ac_status=$?
28209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210  (exit $ac_status); }; } &&
28211	 { ac_try='test -s conftest$ac_exeext'
28212  { (case "(($ac_try" in
28213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214  *) ac_try_echo=$ac_try;;
28215esac
28216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217  (eval "$ac_try") 2>&5
28218  ac_status=$?
28219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220  (exit $ac_status); }; }; then
28221  ac_cv_lib_pthread_pthread_mutex_init=yes
28222else
28223  echo "$as_me: failed program was:" >&5
28224sed 's/^/| /' conftest.$ac_ext >&5
28225
28226	ac_cv_lib_pthread_pthread_mutex_init=no
28227fi
28228
28229rm -f core conftest.err conftest.$ac_objext \
28230      conftest$ac_exeext conftest.$ac_ext
28231LIBS=$ac_check_lib_save_LIBS
28232fi
28233{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28234echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28235if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28236  cat >>confdefs.h <<_ACEOF
28237#define HAVE_LIBPTHREAD 1
28238_ACEOF
28239
28240  LIBS="-lpthread $LIBS"
28241
28242fi
28243
28244  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28245echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28246if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28247  echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249  ac_func_search_save_LIBS=$LIBS
28250cat >conftest.$ac_ext <<_ACEOF
28251/* confdefs.h.  */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h.  */
28256
28257/* Override any GCC internal prototype to avoid an error.
28258   Use char because int might match the return type of a GCC
28259   builtin and then its argument prototype would still apply.  */
28260#ifdef __cplusplus
28261extern "C"
28262#endif
28263char pthread_mutex_lock ();
28264int
28265main ()
28266{
28267return pthread_mutex_lock ();
28268  ;
28269  return 0;
28270}
28271_ACEOF
28272for ac_lib in '' pthread; do
28273  if test -z "$ac_lib"; then
28274    ac_res="none required"
28275  else
28276    ac_res=-l$ac_lib
28277    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28278  fi
28279  rm -f conftest.$ac_objext conftest$ac_exeext
28280if { (ac_try="$ac_link"
28281case "(($ac_try" in
28282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283  *) ac_try_echo=$ac_try;;
28284esac
28285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286  (eval "$ac_link") 2>conftest.er1
28287  ac_status=$?
28288  grep -v '^ *+' conftest.er1 >conftest.err
28289  rm -f conftest.er1
28290  cat conftest.err >&5
28291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292  (exit $ac_status); } &&
28293	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28294  { (case "(($ac_try" in
28295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296  *) ac_try_echo=$ac_try;;
28297esac
28298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299  (eval "$ac_try") 2>&5
28300  ac_status=$?
28301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302  (exit $ac_status); }; } &&
28303	 { ac_try='test -s conftest$ac_exeext'
28304  { (case "(($ac_try" in
28305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306  *) ac_try_echo=$ac_try;;
28307esac
28308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309  (eval "$ac_try") 2>&5
28310  ac_status=$?
28311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312  (exit $ac_status); }; }; then
28313  ac_cv_search_pthread_mutex_lock=$ac_res
28314else
28315  echo "$as_me: failed program was:" >&5
28316sed 's/^/| /' conftest.$ac_ext >&5
28317
28318
28319fi
28320
28321rm -f core conftest.err conftest.$ac_objext \
28322      conftest$ac_exeext
28323  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28324  break
28325fi
28326done
28327if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28328  :
28329else
28330  ac_cv_search_pthread_mutex_lock=no
28331fi
28332rm conftest.$ac_ext
28333LIBS=$ac_func_search_save_LIBS
28334fi
28335{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28336echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28337ac_res=$ac_cv_search_pthread_mutex_lock
28338if test "$ac_res" != no; then
28339  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28340
28341cat >>confdefs.h <<\_ACEOF
28342#define HAVE_PTHREAD_MUTEX_LOCK 1
28343_ACEOF
28344
28345fi
28346
28347  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28348echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28349if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28350  echo $ECHO_N "(cached) $ECHO_C" >&6
28351else
28352  ac_func_search_save_LIBS=$LIBS
28353cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h.  */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h.  */
28359
28360/* Override any GCC internal prototype to avoid an error.
28361   Use char because int might match the return type of a GCC
28362   builtin and then its argument prototype would still apply.  */
28363#ifdef __cplusplus
28364extern "C"
28365#endif
28366char pthread_rwlock_init ();
28367int
28368main ()
28369{
28370return pthread_rwlock_init ();
28371  ;
28372  return 0;
28373}
28374_ACEOF
28375for ac_lib in '' pthread; do
28376  if test -z "$ac_lib"; then
28377    ac_res="none required"
28378  else
28379    ac_res=-l$ac_lib
28380    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28381  fi
28382  rm -f conftest.$ac_objext conftest$ac_exeext
28383if { (ac_try="$ac_link"
28384case "(($ac_try" in
28385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386  *) ac_try_echo=$ac_try;;
28387esac
28388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389  (eval "$ac_link") 2>conftest.er1
28390  ac_status=$?
28391  grep -v '^ *+' conftest.er1 >conftest.err
28392  rm -f conftest.er1
28393  cat conftest.err >&5
28394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395  (exit $ac_status); } &&
28396	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28397  { (case "(($ac_try" in
28398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399  *) ac_try_echo=$ac_try;;
28400esac
28401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402  (eval "$ac_try") 2>&5
28403  ac_status=$?
28404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405  (exit $ac_status); }; } &&
28406	 { ac_try='test -s conftest$ac_exeext'
28407  { (case "(($ac_try" in
28408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409  *) ac_try_echo=$ac_try;;
28410esac
28411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412  (eval "$ac_try") 2>&5
28413  ac_status=$?
28414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415  (exit $ac_status); }; }; then
28416  ac_cv_search_pthread_rwlock_init=$ac_res
28417else
28418  echo "$as_me: failed program was:" >&5
28419sed 's/^/| /' conftest.$ac_ext >&5
28420
28421
28422fi
28423
28424rm -f core conftest.err conftest.$ac_objext \
28425      conftest$ac_exeext
28426  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28427  break
28428fi
28429done
28430if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28431  :
28432else
28433  ac_cv_search_pthread_rwlock_init=no
28434fi
28435rm conftest.$ac_ext
28436LIBS=$ac_func_search_save_LIBS
28437fi
28438{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28439echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28440ac_res=$ac_cv_search_pthread_rwlock_init
28441if test "$ac_res" != no; then
28442  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28443
28444cat >>confdefs.h <<\_ACEOF
28445#define HAVE_PTHREAD_RWLOCK_INIT 1
28446_ACEOF
28447
28448fi
28449
28450  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28451echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28452if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28453  echo $ECHO_N "(cached) $ECHO_C" >&6
28454else
28455  ac_func_search_save_LIBS=$LIBS
28456cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h.  */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h.  */
28462
28463/* Override any GCC internal prototype to avoid an error.
28464   Use char because int might match the return type of a GCC
28465   builtin and then its argument prototype would still apply.  */
28466#ifdef __cplusplus
28467extern "C"
28468#endif
28469char pthread_getspecific ();
28470int
28471main ()
28472{
28473return pthread_getspecific ();
28474  ;
28475  return 0;
28476}
28477_ACEOF
28478for ac_lib in '' pthread; do
28479  if test -z "$ac_lib"; then
28480    ac_res="none required"
28481  else
28482    ac_res=-l$ac_lib
28483    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28484  fi
28485  rm -f conftest.$ac_objext conftest$ac_exeext
28486if { (ac_try="$ac_link"
28487case "(($ac_try" in
28488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489  *) ac_try_echo=$ac_try;;
28490esac
28491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492  (eval "$ac_link") 2>conftest.er1
28493  ac_status=$?
28494  grep -v '^ *+' conftest.er1 >conftest.err
28495  rm -f conftest.er1
28496  cat conftest.err >&5
28497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498  (exit $ac_status); } &&
28499	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28500  { (case "(($ac_try" in
28501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502  *) ac_try_echo=$ac_try;;
28503esac
28504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505  (eval "$ac_try") 2>&5
28506  ac_status=$?
28507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508  (exit $ac_status); }; } &&
28509	 { ac_try='test -s conftest$ac_exeext'
28510  { (case "(($ac_try" in
28511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512  *) ac_try_echo=$ac_try;;
28513esac
28514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515  (eval "$ac_try") 2>&5
28516  ac_status=$?
28517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518  (exit $ac_status); }; }; then
28519  ac_cv_search_pthread_getspecific=$ac_res
28520else
28521  echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524
28525fi
28526
28527rm -f core conftest.err conftest.$ac_objext \
28528      conftest$ac_exeext
28529  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28530  break
28531fi
28532done
28533if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28534  :
28535else
28536  ac_cv_search_pthread_getspecific=no
28537fi
28538rm conftest.$ac_ext
28539LIBS=$ac_func_search_save_LIBS
28540fi
28541{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28542echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28543ac_res=$ac_cv_search_pthread_getspecific
28544if test "$ac_res" != no; then
28545  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28546
28547cat >>confdefs.h <<\_ACEOF
28548#define HAVE_PTHREAD_GETSPECIFIC 1
28549_ACEOF
28550
28551fi
28552
28553fi
28554
28555
28556# Check whether --with-udis86 was given.
28557if test "${with_udis86+set}" = set; then
28558  withval=$with_udis86;
28559      USE_UDIS86=1
28560
28561      case "$withval" in
28562        /usr/lib|yes) ;;
28563        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28564      esac
28565
28566{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28567echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28568if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28569  echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571  ac_check_lib_save_LIBS=$LIBS
28572LIBS="-ludis86  $LIBS"
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h.  */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h.  */
28579
28580/* Override any GCC internal prototype to avoid an error.
28581   Use char because int might match the return type of a GCC
28582   builtin and then its argument prototype would still apply.  */
28583#ifdef __cplusplus
28584extern "C"
28585#endif
28586char ud_init ();
28587int
28588main ()
28589{
28590return ud_init ();
28591  ;
28592  return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext conftest$ac_exeext
28596if { (ac_try="$ac_link"
28597case "(($ac_try" in
28598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599  *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602  (eval "$ac_link") 2>conftest.er1
28603  ac_status=$?
28604  grep -v '^ *+' conftest.er1 >conftest.err
28605  rm -f conftest.er1
28606  cat conftest.err >&5
28607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608  (exit $ac_status); } &&
28609	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610  { (case "(($ac_try" in
28611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612  *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615  (eval "$ac_try") 2>&5
28616  ac_status=$?
28617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618  (exit $ac_status); }; } &&
28619	 { ac_try='test -s conftest$ac_exeext'
28620  { (case "(($ac_try" in
28621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622  *) ac_try_echo=$ac_try;;
28623esac
28624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625  (eval "$ac_try") 2>&5
28626  ac_status=$?
28627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628  (exit $ac_status); }; }; then
28629  ac_cv_lib_udis86_ud_init=yes
28630else
28631  echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634	ac_cv_lib_udis86_ud_init=no
28635fi
28636
28637rm -f core conftest.err conftest.$ac_objext \
28638      conftest$ac_exeext conftest.$ac_ext
28639LIBS=$ac_check_lib_save_LIBS
28640fi
28641{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28642echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28643if test $ac_cv_lib_udis86_ud_init = yes; then
28644  cat >>confdefs.h <<_ACEOF
28645#define HAVE_LIBUDIS86 1
28646_ACEOF
28647
28648  LIBS="-ludis86 $LIBS"
28649
28650else
28651
28652        echo "Error! You need to have libudis86 around."
28653        exit -1
28654
28655fi
28656
28657
28658else
28659  USE_UDIS86=0
28660
28661fi
28662
28663
28664cat >>confdefs.h <<_ACEOF
28665#define USE_UDIS86 $USE_UDIS86
28666_ACEOF
28667
28668
28669
28670# Check whether --with-oprofile was given.
28671if test "${with_oprofile+set}" = set; then
28672  withval=$with_oprofile;
28673      USE_OPROFILE=1
28674
28675      case "$withval" in
28676        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28677        no) llvm_cv_oppath=
28678            USE_OPROFILE=0
28679 ;;
28680        *) llvm_cv_oppath="${withval}/lib/oprofile"
28681           CPPFLAGS="-I${withval}/include";;
28682      esac
28683      if test -n "$llvm_cv_oppath" ; then
28684        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28685                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28686echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28687if test "${ac_cv_search_bfd_init+set}" = set; then
28688  echo $ECHO_N "(cached) $ECHO_C" >&6
28689else
28690  ac_func_search_save_LIBS=$LIBS
28691cat >conftest.$ac_ext <<_ACEOF
28692/* confdefs.h.  */
28693_ACEOF
28694cat confdefs.h >>conftest.$ac_ext
28695cat >>conftest.$ac_ext <<_ACEOF
28696/* end confdefs.h.  */
28697
28698/* Override any GCC internal prototype to avoid an error.
28699   Use char because int might match the return type of a GCC
28700   builtin and then its argument prototype would still apply.  */
28701#ifdef __cplusplus
28702extern "C"
28703#endif
28704char bfd_init ();
28705int
28706main ()
28707{
28708return bfd_init ();
28709  ;
28710  return 0;
28711}
28712_ACEOF
28713for ac_lib in '' bfd; do
28714  if test -z "$ac_lib"; then
28715    ac_res="none required"
28716  else
28717    ac_res=-l$ac_lib
28718    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28719  fi
28720  rm -f conftest.$ac_objext conftest$ac_exeext
28721if { (ac_try="$ac_link"
28722case "(($ac_try" in
28723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724  *) ac_try_echo=$ac_try;;
28725esac
28726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727  (eval "$ac_link") 2>conftest.er1
28728  ac_status=$?
28729  grep -v '^ *+' conftest.er1 >conftest.err
28730  rm -f conftest.er1
28731  cat conftest.err >&5
28732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733  (exit $ac_status); } &&
28734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28735  { (case "(($ac_try" in
28736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737  *) ac_try_echo=$ac_try;;
28738esac
28739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740  (eval "$ac_try") 2>&5
28741  ac_status=$?
28742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743  (exit $ac_status); }; } &&
28744	 { ac_try='test -s conftest$ac_exeext'
28745  { (case "(($ac_try" in
28746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747  *) ac_try_echo=$ac_try;;
28748esac
28749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750  (eval "$ac_try") 2>&5
28751  ac_status=$?
28752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753  (exit $ac_status); }; }; then
28754  ac_cv_search_bfd_init=$ac_res
28755else
28756  echo "$as_me: failed program was:" >&5
28757sed 's/^/| /' conftest.$ac_ext >&5
28758
28759
28760fi
28761
28762rm -f core conftest.err conftest.$ac_objext \
28763      conftest$ac_exeext
28764  if test "${ac_cv_search_bfd_init+set}" = set; then
28765  break
28766fi
28767done
28768if test "${ac_cv_search_bfd_init+set}" = set; then
28769  :
28770else
28771  ac_cv_search_bfd_init=no
28772fi
28773rm conftest.$ac_ext
28774LIBS=$ac_func_search_save_LIBS
28775fi
28776{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28777echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28778ac_res=$ac_cv_search_bfd_init
28779if test "$ac_res" != no; then
28780  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28781
28782fi
28783
28784        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28785echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28786if test "${ac_cv_search_op_open_agent+set}" = set; then
28787  echo $ECHO_N "(cached) $ECHO_C" >&6
28788else
28789  ac_func_search_save_LIBS=$LIBS
28790cat >conftest.$ac_ext <<_ACEOF
28791/* confdefs.h.  */
28792_ACEOF
28793cat confdefs.h >>conftest.$ac_ext
28794cat >>conftest.$ac_ext <<_ACEOF
28795/* end confdefs.h.  */
28796
28797/* Override any GCC internal prototype to avoid an error.
28798   Use char because int might match the return type of a GCC
28799   builtin and then its argument prototype would still apply.  */
28800#ifdef __cplusplus
28801extern "C"
28802#endif
28803char op_open_agent ();
28804int
28805main ()
28806{
28807return op_open_agent ();
28808  ;
28809  return 0;
28810}
28811_ACEOF
28812for ac_lib in '' opagent; do
28813  if test -z "$ac_lib"; then
28814    ac_res="none required"
28815  else
28816    ac_res=-l$ac_lib
28817    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28818  fi
28819  rm -f conftest.$ac_objext conftest$ac_exeext
28820if { (ac_try="$ac_link"
28821case "(($ac_try" in
28822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823  *) ac_try_echo=$ac_try;;
28824esac
28825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826  (eval "$ac_link") 2>conftest.er1
28827  ac_status=$?
28828  grep -v '^ *+' conftest.er1 >conftest.err
28829  rm -f conftest.er1
28830  cat conftest.err >&5
28831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832  (exit $ac_status); } &&
28833	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28834  { (case "(($ac_try" in
28835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836  *) ac_try_echo=$ac_try;;
28837esac
28838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839  (eval "$ac_try") 2>&5
28840  ac_status=$?
28841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842  (exit $ac_status); }; } &&
28843	 { ac_try='test -s conftest$ac_exeext'
28844  { (case "(($ac_try" in
28845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846  *) ac_try_echo=$ac_try;;
28847esac
28848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849  (eval "$ac_try") 2>&5
28850  ac_status=$?
28851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852  (exit $ac_status); }; }; then
28853  ac_cv_search_op_open_agent=$ac_res
28854else
28855  echo "$as_me: failed program was:" >&5
28856sed 's/^/| /' conftest.$ac_ext >&5
28857
28858
28859fi
28860
28861rm -f core conftest.err conftest.$ac_objext \
28862      conftest$ac_exeext
28863  if test "${ac_cv_search_op_open_agent+set}" = set; then
28864  break
28865fi
28866done
28867if test "${ac_cv_search_op_open_agent+set}" = set; then
28868  :
28869else
28870  ac_cv_search_op_open_agent=no
28871fi
28872rm conftest.$ac_ext
28873LIBS=$ac_func_search_save_LIBS
28874fi
28875{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28876echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28877ac_res=$ac_cv_search_op_open_agent
28878if test "$ac_res" != no; then
28879  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28880
28881else
28882
28883          echo "Error! You need to have libopagent around."
28884          exit -1
28885
28886fi
28887
28888        if test "${ac_cv_header_opagent_h+set}" = set; then
28889  { echo "$as_me:$LINENO: checking for opagent.h" >&5
28890echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28891if test "${ac_cv_header_opagent_h+set}" = set; then
28892  echo $ECHO_N "(cached) $ECHO_C" >&6
28893fi
28894{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28895echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28896else
28897  # Is the header compilable?
28898{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28899echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28900cat >conftest.$ac_ext <<_ACEOF
28901/* confdefs.h.  */
28902_ACEOF
28903cat confdefs.h >>conftest.$ac_ext
28904cat >>conftest.$ac_ext <<_ACEOF
28905/* end confdefs.h.  */
28906$ac_includes_default
28907#include <opagent.h>
28908_ACEOF
28909rm -f conftest.$ac_objext
28910if { (ac_try="$ac_compile"
28911case "(($ac_try" in
28912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913  *) ac_try_echo=$ac_try;;
28914esac
28915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916  (eval "$ac_compile") 2>conftest.er1
28917  ac_status=$?
28918  grep -v '^ *+' conftest.er1 >conftest.err
28919  rm -f conftest.er1
28920  cat conftest.err >&5
28921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922  (exit $ac_status); } &&
28923	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924  { (case "(($ac_try" in
28925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926  *) ac_try_echo=$ac_try;;
28927esac
28928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929  (eval "$ac_try") 2>&5
28930  ac_status=$?
28931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932  (exit $ac_status); }; } &&
28933	 { ac_try='test -s conftest.$ac_objext'
28934  { (case "(($ac_try" in
28935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936  *) ac_try_echo=$ac_try;;
28937esac
28938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939  (eval "$ac_try") 2>&5
28940  ac_status=$?
28941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942  (exit $ac_status); }; }; then
28943  ac_header_compiler=yes
28944else
28945  echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948	ac_header_compiler=no
28949fi
28950
28951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28952{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28953echo "${ECHO_T}$ac_header_compiler" >&6; }
28954
28955# Is the header present?
28956{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28957echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28958cat >conftest.$ac_ext <<_ACEOF
28959/* confdefs.h.  */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h.  */
28964#include <opagent.h>
28965_ACEOF
28966if { (ac_try="$ac_cpp conftest.$ac_ext"
28967case "(($ac_try" in
28968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969  *) ac_try_echo=$ac_try;;
28970esac
28971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28973  ac_status=$?
28974  grep -v '^ *+' conftest.er1 >conftest.err
28975  rm -f conftest.er1
28976  cat conftest.err >&5
28977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978  (exit $ac_status); } >/dev/null; then
28979  if test -s conftest.err; then
28980    ac_cpp_err=$ac_c_preproc_warn_flag
28981    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28982  else
28983    ac_cpp_err=
28984  fi
28985else
28986  ac_cpp_err=yes
28987fi
28988if test -z "$ac_cpp_err"; then
28989  ac_header_preproc=yes
28990else
28991  echo "$as_me: failed program was:" >&5
28992sed 's/^/| /' conftest.$ac_ext >&5
28993
28994  ac_header_preproc=no
28995fi
28996
28997rm -f conftest.err conftest.$ac_ext
28998{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28999echo "${ECHO_T}$ac_header_preproc" >&6; }
29000
29001# So?  What about this header?
29002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29003  yes:no: )
29004    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29005echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29006    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29007echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29008    ac_header_preproc=yes
29009    ;;
29010  no:yes:* )
29011    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29012echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29013    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
29014echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
29015    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29016echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29017    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
29018echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29019    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29020echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29021    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29022echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29023    ( cat <<\_ASBOX
29024## ----------------------------------- ##
29025## Report this to llvmbugs@cs.uiuc.edu ##
29026## ----------------------------------- ##
29027_ASBOX
29028     ) | sed "s/^/$as_me: WARNING:     /" >&2
29029    ;;
29030esac
29031{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29032echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29033if test "${ac_cv_header_opagent_h+set}" = set; then
29034  echo $ECHO_N "(cached) $ECHO_C" >&6
29035else
29036  ac_cv_header_opagent_h=$ac_header_preproc
29037fi
29038{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29039echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29040
29041fi
29042if test $ac_cv_header_opagent_h = yes; then
29043  :
29044else
29045
29046          echo "Error! You need to have opagent.h around."
29047          exit -1
29048
29049fi
29050
29051
29052      fi
29053
29054else
29055
29056      USE_OPROFILE=0
29057
29058
29059fi
29060
29061
29062cat >>confdefs.h <<_ACEOF
29063#define USE_OPROFILE $USE_OPROFILE
29064_ACEOF
29065
29066
29067
29068
29069
29070
29071
29072
29073ac_header_dirent=no
29074for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29075  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29076{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29077echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29079  echo $ECHO_N "(cached) $ECHO_C" >&6
29080else
29081  cat >conftest.$ac_ext <<_ACEOF
29082/* confdefs.h.  */
29083_ACEOF
29084cat confdefs.h >>conftest.$ac_ext
29085cat >>conftest.$ac_ext <<_ACEOF
29086/* end confdefs.h.  */
29087#include <sys/types.h>
29088#include <$ac_hdr>
29089
29090int
29091main ()
29092{
29093if ((DIR *) 0)
29094return 0;
29095  ;
29096  return 0;
29097}
29098_ACEOF
29099rm -f conftest.$ac_objext
29100if { (ac_try="$ac_compile"
29101case "(($ac_try" in
29102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103  *) ac_try_echo=$ac_try;;
29104esac
29105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106  (eval "$ac_compile") 2>conftest.er1
29107  ac_status=$?
29108  grep -v '^ *+' conftest.er1 >conftest.err
29109  rm -f conftest.er1
29110  cat conftest.err >&5
29111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112  (exit $ac_status); } &&
29113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114  { (case "(($ac_try" in
29115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116  *) ac_try_echo=$ac_try;;
29117esac
29118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119  (eval "$ac_try") 2>&5
29120  ac_status=$?
29121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122  (exit $ac_status); }; } &&
29123	 { ac_try='test -s conftest.$ac_objext'
29124  { (case "(($ac_try" in
29125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126  *) ac_try_echo=$ac_try;;
29127esac
29128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129  (eval "$ac_try") 2>&5
29130  ac_status=$?
29131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132  (exit $ac_status); }; }; then
29133  eval "$as_ac_Header=yes"
29134else
29135  echo "$as_me: failed program was:" >&5
29136sed 's/^/| /' conftest.$ac_ext >&5
29137
29138	eval "$as_ac_Header=no"
29139fi
29140
29141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29142fi
29143ac_res=`eval echo '${'$as_ac_Header'}'`
29144	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29145echo "${ECHO_T}$ac_res" >&6; }
29146if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147  cat >>confdefs.h <<_ACEOF
29148#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29149_ACEOF
29150
29151ac_header_dirent=$ac_hdr; break
29152fi
29153
29154done
29155# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29156if test $ac_header_dirent = dirent.h; then
29157  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29158echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29159if test "${ac_cv_search_opendir+set}" = set; then
29160  echo $ECHO_N "(cached) $ECHO_C" >&6
29161else
29162  ac_func_search_save_LIBS=$LIBS
29163cat >conftest.$ac_ext <<_ACEOF
29164/* confdefs.h.  */
29165_ACEOF
29166cat confdefs.h >>conftest.$ac_ext
29167cat >>conftest.$ac_ext <<_ACEOF
29168/* end confdefs.h.  */
29169
29170/* Override any GCC internal prototype to avoid an error.
29171   Use char because int might match the return type of a GCC
29172   builtin and then its argument prototype would still apply.  */
29173#ifdef __cplusplus
29174extern "C"
29175#endif
29176char opendir ();
29177int
29178main ()
29179{
29180return opendir ();
29181  ;
29182  return 0;
29183}
29184_ACEOF
29185for ac_lib in '' dir; do
29186  if test -z "$ac_lib"; then
29187    ac_res="none required"
29188  else
29189    ac_res=-l$ac_lib
29190    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29191  fi
29192  rm -f conftest.$ac_objext conftest$ac_exeext
29193if { (ac_try="$ac_link"
29194case "(($ac_try" in
29195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196  *) ac_try_echo=$ac_try;;
29197esac
29198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199  (eval "$ac_link") 2>conftest.er1
29200  ac_status=$?
29201  grep -v '^ *+' conftest.er1 >conftest.err
29202  rm -f conftest.er1
29203  cat conftest.err >&5
29204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205  (exit $ac_status); } &&
29206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29207  { (case "(($ac_try" in
29208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209  *) ac_try_echo=$ac_try;;
29210esac
29211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212  (eval "$ac_try") 2>&5
29213  ac_status=$?
29214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215  (exit $ac_status); }; } &&
29216	 { ac_try='test -s conftest$ac_exeext'
29217  { (case "(($ac_try" in
29218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219  *) ac_try_echo=$ac_try;;
29220esac
29221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222  (eval "$ac_try") 2>&5
29223  ac_status=$?
29224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225  (exit $ac_status); }; }; then
29226  ac_cv_search_opendir=$ac_res
29227else
29228  echo "$as_me: failed program was:" >&5
29229sed 's/^/| /' conftest.$ac_ext >&5
29230
29231
29232fi
29233
29234rm -f core conftest.err conftest.$ac_objext \
29235      conftest$ac_exeext
29236  if test "${ac_cv_search_opendir+set}" = set; then
29237  break
29238fi
29239done
29240if test "${ac_cv_search_opendir+set}" = set; then
29241  :
29242else
29243  ac_cv_search_opendir=no
29244fi
29245rm conftest.$ac_ext
29246LIBS=$ac_func_search_save_LIBS
29247fi
29248{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29249echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29250ac_res=$ac_cv_search_opendir
29251if test "$ac_res" != no; then
29252  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29253
29254fi
29255
29256else
29257  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29258echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29259if test "${ac_cv_search_opendir+set}" = set; then
29260  echo $ECHO_N "(cached) $ECHO_C" >&6
29261else
29262  ac_func_search_save_LIBS=$LIBS
29263cat >conftest.$ac_ext <<_ACEOF
29264/* confdefs.h.  */
29265_ACEOF
29266cat confdefs.h >>conftest.$ac_ext
29267cat >>conftest.$ac_ext <<_ACEOF
29268/* end confdefs.h.  */
29269
29270/* Override any GCC internal prototype to avoid an error.
29271   Use char because int might match the return type of a GCC
29272   builtin and then its argument prototype would still apply.  */
29273#ifdef __cplusplus
29274extern "C"
29275#endif
29276char opendir ();
29277int
29278main ()
29279{
29280return opendir ();
29281  ;
29282  return 0;
29283}
29284_ACEOF
29285for ac_lib in '' x; do
29286  if test -z "$ac_lib"; then
29287    ac_res="none required"
29288  else
29289    ac_res=-l$ac_lib
29290    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29291  fi
29292  rm -f conftest.$ac_objext conftest$ac_exeext
29293if { (ac_try="$ac_link"
29294case "(($ac_try" in
29295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296  *) ac_try_echo=$ac_try;;
29297esac
29298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299  (eval "$ac_link") 2>conftest.er1
29300  ac_status=$?
29301  grep -v '^ *+' conftest.er1 >conftest.err
29302  rm -f conftest.er1
29303  cat conftest.err >&5
29304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305  (exit $ac_status); } &&
29306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29307  { (case "(($ac_try" in
29308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309  *) ac_try_echo=$ac_try;;
29310esac
29311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312  (eval "$ac_try") 2>&5
29313  ac_status=$?
29314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315  (exit $ac_status); }; } &&
29316	 { ac_try='test -s conftest$ac_exeext'
29317  { (case "(($ac_try" in
29318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319  *) ac_try_echo=$ac_try;;
29320esac
29321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322  (eval "$ac_try") 2>&5
29323  ac_status=$?
29324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325  (exit $ac_status); }; }; then
29326  ac_cv_search_opendir=$ac_res
29327else
29328  echo "$as_me: failed program was:" >&5
29329sed 's/^/| /' conftest.$ac_ext >&5
29330
29331
29332fi
29333
29334rm -f core conftest.err conftest.$ac_objext \
29335      conftest$ac_exeext
29336  if test "${ac_cv_search_opendir+set}" = set; then
29337  break
29338fi
29339done
29340if test "${ac_cv_search_opendir+set}" = set; then
29341  :
29342else
29343  ac_cv_search_opendir=no
29344fi
29345rm conftest.$ac_ext
29346LIBS=$ac_func_search_save_LIBS
29347fi
29348{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29349echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29350ac_res=$ac_cv_search_opendir
29351if test "$ac_res" != no; then
29352  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29353
29354fi
29355
29356fi
29357
29358{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29359echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29360if test "${ac_cv_header_mmap_anon+set}" = set; then
29361  echo $ECHO_N "(cached) $ECHO_C" >&6
29362else
29363   ac_ext=c
29364ac_cpp='$CPP $CPPFLAGS'
29365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29367ac_compiler_gnu=$ac_cv_c_compiler_gnu
29368
29369  cat >conftest.$ac_ext <<_ACEOF
29370/* confdefs.h.  */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h.  */
29375#include <sys/mman.h>
29376#include <unistd.h>
29377#include <fcntl.h>
29378int
29379main ()
29380{
29381mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29382  ;
29383  return 0;
29384}
29385_ACEOF
29386rm -f conftest.$ac_objext
29387if { (ac_try="$ac_compile"
29388case "(($ac_try" in
29389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390  *) ac_try_echo=$ac_try;;
29391esac
29392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393  (eval "$ac_compile") 2>conftest.er1
29394  ac_status=$?
29395  grep -v '^ *+' conftest.er1 >conftest.err
29396  rm -f conftest.er1
29397  cat conftest.err >&5
29398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399  (exit $ac_status); } &&
29400	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401  { (case "(($ac_try" in
29402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403  *) ac_try_echo=$ac_try;;
29404esac
29405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406  (eval "$ac_try") 2>&5
29407  ac_status=$?
29408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409  (exit $ac_status); }; } &&
29410	 { ac_try='test -s conftest.$ac_objext'
29411  { (case "(($ac_try" in
29412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413  *) ac_try_echo=$ac_try;;
29414esac
29415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416  (eval "$ac_try") 2>&5
29417  ac_status=$?
29418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419  (exit $ac_status); }; }; then
29420  ac_cv_header_mmap_anon=yes
29421else
29422  echo "$as_me: failed program was:" >&5
29423sed 's/^/| /' conftest.$ac_ext >&5
29424
29425	ac_cv_header_mmap_anon=no
29426fi
29427
29428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29429  ac_ext=c
29430ac_cpp='$CPP $CPPFLAGS'
29431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434
29435
29436fi
29437{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29438echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29439if test "$ac_cv_header_mmap_anon" = yes; then
29440
29441cat >>confdefs.h <<\_ACEOF
29442#define HAVE_MMAP_ANONYMOUS 1
29443_ACEOF
29444
29445fi
29446
29447{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29448echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29449if test "${ac_cv_header_stat_broken+set}" = set; then
29450  echo $ECHO_N "(cached) $ECHO_C" >&6
29451else
29452  cat >conftest.$ac_ext <<_ACEOF
29453/* confdefs.h.  */
29454_ACEOF
29455cat confdefs.h >>conftest.$ac_ext
29456cat >>conftest.$ac_ext <<_ACEOF
29457/* end confdefs.h.  */
29458#include <sys/types.h>
29459#include <sys/stat.h>
29460
29461#if defined S_ISBLK && defined S_IFDIR
29462# if S_ISBLK (S_IFDIR)
29463You lose.
29464# endif
29465#endif
29466
29467#if defined S_ISBLK && defined S_IFCHR
29468# if S_ISBLK (S_IFCHR)
29469You lose.
29470# endif
29471#endif
29472
29473#if defined S_ISLNK && defined S_IFREG
29474# if S_ISLNK (S_IFREG)
29475You lose.
29476# endif
29477#endif
29478
29479#if defined S_ISSOCK && defined S_IFREG
29480# if S_ISSOCK (S_IFREG)
29481You lose.
29482# endif
29483#endif
29484
29485_ACEOF
29486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29487  $EGREP "You lose" >/dev/null 2>&1; then
29488  ac_cv_header_stat_broken=yes
29489else
29490  ac_cv_header_stat_broken=no
29491fi
29492rm -f conftest*
29493
29494fi
29495{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29496echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29497if test $ac_cv_header_stat_broken = yes; then
29498
29499cat >>confdefs.h <<\_ACEOF
29500#define STAT_MACROS_BROKEN 1
29501_ACEOF
29502
29503fi
29504
29505{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29506echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29507if test "${ac_cv_header_stdc+set}" = set; then
29508  echo $ECHO_N "(cached) $ECHO_C" >&6
29509else
29510  cat >conftest.$ac_ext <<_ACEOF
29511/* confdefs.h.  */
29512_ACEOF
29513cat confdefs.h >>conftest.$ac_ext
29514cat >>conftest.$ac_ext <<_ACEOF
29515/* end confdefs.h.  */
29516#include <stdlib.h>
29517#include <stdarg.h>
29518#include <string.h>
29519#include <float.h>
29520
29521int
29522main ()
29523{
29524
29525  ;
29526  return 0;
29527}
29528_ACEOF
29529rm -f conftest.$ac_objext
29530if { (ac_try="$ac_compile"
29531case "(($ac_try" in
29532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533  *) ac_try_echo=$ac_try;;
29534esac
29535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536  (eval "$ac_compile") 2>conftest.er1
29537  ac_status=$?
29538  grep -v '^ *+' conftest.er1 >conftest.err
29539  rm -f conftest.er1
29540  cat conftest.err >&5
29541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542  (exit $ac_status); } &&
29543	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29544  { (case "(($ac_try" in
29545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546  *) ac_try_echo=$ac_try;;
29547esac
29548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549  (eval "$ac_try") 2>&5
29550  ac_status=$?
29551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552  (exit $ac_status); }; } &&
29553	 { ac_try='test -s conftest.$ac_objext'
29554  { (case "(($ac_try" in
29555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556  *) ac_try_echo=$ac_try;;
29557esac
29558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559  (eval "$ac_try") 2>&5
29560  ac_status=$?
29561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562  (exit $ac_status); }; }; then
29563  ac_cv_header_stdc=yes
29564else
29565  echo "$as_me: failed program was:" >&5
29566sed 's/^/| /' conftest.$ac_ext >&5
29567
29568	ac_cv_header_stdc=no
29569fi
29570
29571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29572
29573if test $ac_cv_header_stdc = yes; then
29574  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29575  cat >conftest.$ac_ext <<_ACEOF
29576/* confdefs.h.  */
29577_ACEOF
29578cat confdefs.h >>conftest.$ac_ext
29579cat >>conftest.$ac_ext <<_ACEOF
29580/* end confdefs.h.  */
29581#include <string.h>
29582
29583_ACEOF
29584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29585  $EGREP "memchr" >/dev/null 2>&1; then
29586  :
29587else
29588  ac_cv_header_stdc=no
29589fi
29590rm -f conftest*
29591
29592fi
29593
29594if test $ac_cv_header_stdc = yes; then
29595  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29596  cat >conftest.$ac_ext <<_ACEOF
29597/* confdefs.h.  */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h.  */
29602#include <stdlib.h>
29603
29604_ACEOF
29605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29606  $EGREP "free" >/dev/null 2>&1; then
29607  :
29608else
29609  ac_cv_header_stdc=no
29610fi
29611rm -f conftest*
29612
29613fi
29614
29615if test $ac_cv_header_stdc = yes; then
29616  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29617  if test "$cross_compiling" = yes; then
29618  :
29619else
29620  cat >conftest.$ac_ext <<_ACEOF
29621/* confdefs.h.  */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h.  */
29626#include <ctype.h>
29627#include <stdlib.h>
29628#if ((' ' & 0x0FF) == 0x020)
29629# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29630# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29631#else
29632# define ISLOWER(c) \
29633		   (('a' <= (c) && (c) <= 'i') \
29634		     || ('j' <= (c) && (c) <= 'r') \
29635		     || ('s' <= (c) && (c) <= 'z'))
29636# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29637#endif
29638
29639#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29640int
29641main ()
29642{
29643  int i;
29644  for (i = 0; i < 256; i++)
29645    if (XOR (islower (i), ISLOWER (i))
29646	|| toupper (i) != TOUPPER (i))
29647      return 2;
29648  return 0;
29649}
29650_ACEOF
29651rm -f conftest$ac_exeext
29652if { (ac_try="$ac_link"
29653case "(($ac_try" in
29654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655  *) ac_try_echo=$ac_try;;
29656esac
29657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658  (eval "$ac_link") 2>&5
29659  ac_status=$?
29660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29662  { (case "(($ac_try" in
29663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664  *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667  (eval "$ac_try") 2>&5
29668  ac_status=$?
29669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670  (exit $ac_status); }; }; then
29671  :
29672else
29673  echo "$as_me: program exited with status $ac_status" >&5
29674echo "$as_me: failed program was:" >&5
29675sed 's/^/| /' conftest.$ac_ext >&5
29676
29677( exit $ac_status )
29678ac_cv_header_stdc=no
29679fi
29680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29681fi
29682
29683
29684fi
29685fi
29686{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29687echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29688if test $ac_cv_header_stdc = yes; then
29689
29690cat >>confdefs.h <<\_ACEOF
29691#define STDC_HEADERS 1
29692_ACEOF
29693
29694fi
29695
29696{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29697echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29698if test "${ac_cv_header_sys_wait_h+set}" = set; then
29699  echo $ECHO_N "(cached) $ECHO_C" >&6
29700else
29701  cat >conftest.$ac_ext <<_ACEOF
29702/* confdefs.h.  */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h.  */
29707#include <sys/types.h>
29708#include <sys/wait.h>
29709#ifndef WEXITSTATUS
29710# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29711#endif
29712#ifndef WIFEXITED
29713# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29714#endif
29715
29716int
29717main ()
29718{
29719  int s;
29720  wait (&s);
29721  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29722  ;
29723  return 0;
29724}
29725_ACEOF
29726rm -f conftest.$ac_objext
29727if { (ac_try="$ac_compile"
29728case "(($ac_try" in
29729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730  *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733  (eval "$ac_compile") 2>conftest.er1
29734  ac_status=$?
29735  grep -v '^ *+' conftest.er1 >conftest.err
29736  rm -f conftest.er1
29737  cat conftest.err >&5
29738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739  (exit $ac_status); } &&
29740	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29741  { (case "(($ac_try" in
29742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743  *) ac_try_echo=$ac_try;;
29744esac
29745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746  (eval "$ac_try") 2>&5
29747  ac_status=$?
29748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749  (exit $ac_status); }; } &&
29750	 { ac_try='test -s conftest.$ac_objext'
29751  { (case "(($ac_try" in
29752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753  *) ac_try_echo=$ac_try;;
29754esac
29755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756  (eval "$ac_try") 2>&5
29757  ac_status=$?
29758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759  (exit $ac_status); }; }; then
29760  ac_cv_header_sys_wait_h=yes
29761else
29762  echo "$as_me: failed program was:" >&5
29763sed 's/^/| /' conftest.$ac_ext >&5
29764
29765	ac_cv_header_sys_wait_h=no
29766fi
29767
29768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29769fi
29770{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29771echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29772if test $ac_cv_header_sys_wait_h = yes; then
29773
29774cat >>confdefs.h <<\_ACEOF
29775#define HAVE_SYS_WAIT_H 1
29776_ACEOF
29777
29778fi
29779
29780{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29781echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29782if test "${ac_cv_header_time+set}" = set; then
29783  echo $ECHO_N "(cached) $ECHO_C" >&6
29784else
29785  cat >conftest.$ac_ext <<_ACEOF
29786/* confdefs.h.  */
29787_ACEOF
29788cat confdefs.h >>conftest.$ac_ext
29789cat >>conftest.$ac_ext <<_ACEOF
29790/* end confdefs.h.  */
29791#include <sys/types.h>
29792#include <sys/time.h>
29793#include <time.h>
29794
29795int
29796main ()
29797{
29798if ((struct tm *) 0)
29799return 0;
29800  ;
29801  return 0;
29802}
29803_ACEOF
29804rm -f conftest.$ac_objext
29805if { (ac_try="$ac_compile"
29806case "(($ac_try" in
29807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808  *) ac_try_echo=$ac_try;;
29809esac
29810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811  (eval "$ac_compile") 2>conftest.er1
29812  ac_status=$?
29813  grep -v '^ *+' conftest.er1 >conftest.err
29814  rm -f conftest.er1
29815  cat conftest.err >&5
29816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817  (exit $ac_status); } &&
29818	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29819  { (case "(($ac_try" in
29820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821  *) ac_try_echo=$ac_try;;
29822esac
29823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824  (eval "$ac_try") 2>&5
29825  ac_status=$?
29826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827  (exit $ac_status); }; } &&
29828	 { ac_try='test -s conftest.$ac_objext'
29829  { (case "(($ac_try" in
29830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831  *) ac_try_echo=$ac_try;;
29832esac
29833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834  (eval "$ac_try") 2>&5
29835  ac_status=$?
29836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837  (exit $ac_status); }; }; then
29838  ac_cv_header_time=yes
29839else
29840  echo "$as_me: failed program was:" >&5
29841sed 's/^/| /' conftest.$ac_ext >&5
29842
29843	ac_cv_header_time=no
29844fi
29845
29846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29847fi
29848{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29849echo "${ECHO_T}$ac_cv_header_time" >&6; }
29850if test $ac_cv_header_time = yes; then
29851
29852cat >>confdefs.h <<\_ACEOF
29853#define TIME_WITH_SYS_TIME 1
29854_ACEOF
29855
29856fi
29857
29858
29859
29860
29861
29862
29863
29864
29865for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29866do
29867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29869  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29872  echo $ECHO_N "(cached) $ECHO_C" >&6
29873fi
29874ac_res=`eval echo '${'$as_ac_Header'}'`
29875	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29876echo "${ECHO_T}$ac_res" >&6; }
29877else
29878  # Is the header compilable?
29879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29881cat >conftest.$ac_ext <<_ACEOF
29882/* confdefs.h.  */
29883_ACEOF
29884cat confdefs.h >>conftest.$ac_ext
29885cat >>conftest.$ac_ext <<_ACEOF
29886/* end confdefs.h.  */
29887$ac_includes_default
29888#include <$ac_header>
29889_ACEOF
29890rm -f conftest.$ac_objext
29891if { (ac_try="$ac_compile"
29892case "(($ac_try" in
29893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894  *) ac_try_echo=$ac_try;;
29895esac
29896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897  (eval "$ac_compile") 2>conftest.er1
29898  ac_status=$?
29899  grep -v '^ *+' conftest.er1 >conftest.err
29900  rm -f conftest.er1
29901  cat conftest.err >&5
29902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903  (exit $ac_status); } &&
29904	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29905  { (case "(($ac_try" in
29906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907  *) ac_try_echo=$ac_try;;
29908esac
29909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910  (eval "$ac_try") 2>&5
29911  ac_status=$?
29912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913  (exit $ac_status); }; } &&
29914	 { ac_try='test -s conftest.$ac_objext'
29915  { (case "(($ac_try" in
29916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917  *) ac_try_echo=$ac_try;;
29918esac
29919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920  (eval "$ac_try") 2>&5
29921  ac_status=$?
29922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923  (exit $ac_status); }; }; then
29924  ac_header_compiler=yes
29925else
29926  echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928
29929	ac_header_compiler=no
29930fi
29931
29932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29934echo "${ECHO_T}$ac_header_compiler" >&6; }
29935
29936# Is the header present?
29937{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29939cat >conftest.$ac_ext <<_ACEOF
29940/* confdefs.h.  */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h.  */
29945#include <$ac_header>
29946_ACEOF
29947if { (ac_try="$ac_cpp conftest.$ac_ext"
29948case "(($ac_try" in
29949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950  *) ac_try_echo=$ac_try;;
29951esac
29952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29954  ac_status=$?
29955  grep -v '^ *+' conftest.er1 >conftest.err
29956  rm -f conftest.er1
29957  cat conftest.err >&5
29958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959  (exit $ac_status); } >/dev/null; then
29960  if test -s conftest.err; then
29961    ac_cpp_err=$ac_c_preproc_warn_flag
29962    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29963  else
29964    ac_cpp_err=
29965  fi
29966else
29967  ac_cpp_err=yes
29968fi
29969if test -z "$ac_cpp_err"; then
29970  ac_header_preproc=yes
29971else
29972  echo "$as_me: failed program was:" >&5
29973sed 's/^/| /' conftest.$ac_ext >&5
29974
29975  ac_header_preproc=no
29976fi
29977
29978rm -f conftest.err conftest.$ac_ext
29979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29980echo "${ECHO_T}$ac_header_preproc" >&6; }
29981
29982# So?  What about this header?
29983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29984  yes:no: )
29985    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29987    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29989    ac_header_preproc=yes
29990    ;;
29991  no:yes:* )
29992    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29994    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29995echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29996    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29998    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29999echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30000    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30002    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30004    ( cat <<\_ASBOX
30005## ----------------------------------- ##
30006## Report this to llvmbugs@cs.uiuc.edu ##
30007## ----------------------------------- ##
30008_ASBOX
30009     ) | sed "s/^/$as_me: WARNING:     /" >&2
30010    ;;
30011esac
30012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30015  echo $ECHO_N "(cached) $ECHO_C" >&6
30016else
30017  eval "$as_ac_Header=\$ac_header_preproc"
30018fi
30019ac_res=`eval echo '${'$as_ac_Header'}'`
30020	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30021echo "${ECHO_T}$ac_res" >&6; }
30022
30023fi
30024if test `eval echo '${'$as_ac_Header'}'` = yes; then
30025  cat >>confdefs.h <<_ACEOF
30026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30027_ACEOF
30028
30029fi
30030
30031done
30032
30033
30034
30035
30036
30037
30038
30039for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30040do
30041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30043  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30046  echo $ECHO_N "(cached) $ECHO_C" >&6
30047fi
30048ac_res=`eval echo '${'$as_ac_Header'}'`
30049	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30050echo "${ECHO_T}$ac_res" >&6; }
30051else
30052  # Is the header compilable?
30053{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30055cat >conftest.$ac_ext <<_ACEOF
30056/* confdefs.h.  */
30057_ACEOF
30058cat confdefs.h >>conftest.$ac_ext
30059cat >>conftest.$ac_ext <<_ACEOF
30060/* end confdefs.h.  */
30061$ac_includes_default
30062#include <$ac_header>
30063_ACEOF
30064rm -f conftest.$ac_objext
30065if { (ac_try="$ac_compile"
30066case "(($ac_try" in
30067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068  *) ac_try_echo=$ac_try;;
30069esac
30070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071  (eval "$ac_compile") 2>conftest.er1
30072  ac_status=$?
30073  grep -v '^ *+' conftest.er1 >conftest.err
30074  rm -f conftest.er1
30075  cat conftest.err >&5
30076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077  (exit $ac_status); } &&
30078	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30079  { (case "(($ac_try" in
30080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081  *) ac_try_echo=$ac_try;;
30082esac
30083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084  (eval "$ac_try") 2>&5
30085  ac_status=$?
30086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087  (exit $ac_status); }; } &&
30088	 { ac_try='test -s conftest.$ac_objext'
30089  { (case "(($ac_try" in
30090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30091  *) ac_try_echo=$ac_try;;
30092esac
30093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30094  (eval "$ac_try") 2>&5
30095  ac_status=$?
30096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097  (exit $ac_status); }; }; then
30098  ac_header_compiler=yes
30099else
30100  echo "$as_me: failed program was:" >&5
30101sed 's/^/| /' conftest.$ac_ext >&5
30102
30103	ac_header_compiler=no
30104fi
30105
30106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30108echo "${ECHO_T}$ac_header_compiler" >&6; }
30109
30110# Is the header present?
30111{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30113cat >conftest.$ac_ext <<_ACEOF
30114/* confdefs.h.  */
30115_ACEOF
30116cat confdefs.h >>conftest.$ac_ext
30117cat >>conftest.$ac_ext <<_ACEOF
30118/* end confdefs.h.  */
30119#include <$ac_header>
30120_ACEOF
30121if { (ac_try="$ac_cpp conftest.$ac_ext"
30122case "(($ac_try" in
30123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124  *) ac_try_echo=$ac_try;;
30125esac
30126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30128  ac_status=$?
30129  grep -v '^ *+' conftest.er1 >conftest.err
30130  rm -f conftest.er1
30131  cat conftest.err >&5
30132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133  (exit $ac_status); } >/dev/null; then
30134  if test -s conftest.err; then
30135    ac_cpp_err=$ac_c_preproc_warn_flag
30136    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30137  else
30138    ac_cpp_err=
30139  fi
30140else
30141  ac_cpp_err=yes
30142fi
30143if test -z "$ac_cpp_err"; then
30144  ac_header_preproc=yes
30145else
30146  echo "$as_me: failed program was:" >&5
30147sed 's/^/| /' conftest.$ac_ext >&5
30148
30149  ac_header_preproc=no
30150fi
30151
30152rm -f conftest.err conftest.$ac_ext
30153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30154echo "${ECHO_T}$ac_header_preproc" >&6; }
30155
30156# So?  What about this header?
30157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30158  yes:no: )
30159    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30161    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30163    ac_header_preproc=yes
30164    ;;
30165  no:yes:* )
30166    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30168    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30169echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30170    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30172    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30173echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30176    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30178    ( cat <<\_ASBOX
30179## ----------------------------------- ##
30180## Report this to llvmbugs@cs.uiuc.edu ##
30181## ----------------------------------- ##
30182_ASBOX
30183     ) | sed "s/^/$as_me: WARNING:     /" >&2
30184    ;;
30185esac
30186{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30189  echo $ECHO_N "(cached) $ECHO_C" >&6
30190else
30191  eval "$as_ac_Header=\$ac_header_preproc"
30192fi
30193ac_res=`eval echo '${'$as_ac_Header'}'`
30194	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30195echo "${ECHO_T}$ac_res" >&6; }
30196
30197fi
30198if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199  cat >>confdefs.h <<_ACEOF
30200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30201_ACEOF
30202
30203fi
30204
30205done
30206
30207
30208
30209for ac_header in utime.h windows.h
30210do
30211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30216  echo $ECHO_N "(cached) $ECHO_C" >&6
30217fi
30218ac_res=`eval echo '${'$as_ac_Header'}'`
30219	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30220echo "${ECHO_T}$ac_res" >&6; }
30221else
30222  # Is the header compilable?
30223{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30225cat >conftest.$ac_ext <<_ACEOF
30226/* confdefs.h.  */
30227_ACEOF
30228cat confdefs.h >>conftest.$ac_ext
30229cat >>conftest.$ac_ext <<_ACEOF
30230/* end confdefs.h.  */
30231$ac_includes_default
30232#include <$ac_header>
30233_ACEOF
30234rm -f conftest.$ac_objext
30235if { (ac_try="$ac_compile"
30236case "(($ac_try" in
30237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238  *) ac_try_echo=$ac_try;;
30239esac
30240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241  (eval "$ac_compile") 2>conftest.er1
30242  ac_status=$?
30243  grep -v '^ *+' conftest.er1 >conftest.err
30244  rm -f conftest.er1
30245  cat conftest.err >&5
30246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247  (exit $ac_status); } &&
30248	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30249  { (case "(($ac_try" in
30250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251  *) ac_try_echo=$ac_try;;
30252esac
30253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254  (eval "$ac_try") 2>&5
30255  ac_status=$?
30256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257  (exit $ac_status); }; } &&
30258	 { ac_try='test -s conftest.$ac_objext'
30259  { (case "(($ac_try" in
30260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261  *) ac_try_echo=$ac_try;;
30262esac
30263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264  (eval "$ac_try") 2>&5
30265  ac_status=$?
30266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267  (exit $ac_status); }; }; then
30268  ac_header_compiler=yes
30269else
30270  echo "$as_me: failed program was:" >&5
30271sed 's/^/| /' conftest.$ac_ext >&5
30272
30273	ac_header_compiler=no
30274fi
30275
30276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30278echo "${ECHO_T}$ac_header_compiler" >&6; }
30279
30280# Is the header present?
30281{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30283cat >conftest.$ac_ext <<_ACEOF
30284/* confdefs.h.  */
30285_ACEOF
30286cat confdefs.h >>conftest.$ac_ext
30287cat >>conftest.$ac_ext <<_ACEOF
30288/* end confdefs.h.  */
30289#include <$ac_header>
30290_ACEOF
30291if { (ac_try="$ac_cpp conftest.$ac_ext"
30292case "(($ac_try" in
30293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294  *) ac_try_echo=$ac_try;;
30295esac
30296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30298  ac_status=$?
30299  grep -v '^ *+' conftest.er1 >conftest.err
30300  rm -f conftest.er1
30301  cat conftest.err >&5
30302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303  (exit $ac_status); } >/dev/null; then
30304  if test -s conftest.err; then
30305    ac_cpp_err=$ac_c_preproc_warn_flag
30306    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30307  else
30308    ac_cpp_err=
30309  fi
30310else
30311  ac_cpp_err=yes
30312fi
30313if test -z "$ac_cpp_err"; then
30314  ac_header_preproc=yes
30315else
30316  echo "$as_me: failed program was:" >&5
30317sed 's/^/| /' conftest.$ac_ext >&5
30318
30319  ac_header_preproc=no
30320fi
30321
30322rm -f conftest.err conftest.$ac_ext
30323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30324echo "${ECHO_T}$ac_header_preproc" >&6; }
30325
30326# So?  What about this header?
30327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30328  yes:no: )
30329    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30331    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30333    ac_header_preproc=yes
30334    ;;
30335  no:yes:* )
30336    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30338    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30339echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30340    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30342    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30343echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30346    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30348    ( cat <<\_ASBOX
30349## ----------------------------------- ##
30350## Report this to llvmbugs@cs.uiuc.edu ##
30351## ----------------------------------- ##
30352_ASBOX
30353     ) | sed "s/^/$as_me: WARNING:     /" >&2
30354    ;;
30355esac
30356{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30359  echo $ECHO_N "(cached) $ECHO_C" >&6
30360else
30361  eval "$as_ac_Header=\$ac_header_preproc"
30362fi
30363ac_res=`eval echo '${'$as_ac_Header'}'`
30364	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30365echo "${ECHO_T}$ac_res" >&6; }
30366
30367fi
30368if test `eval echo '${'$as_ac_Header'}'` = yes; then
30369  cat >>confdefs.h <<_ACEOF
30370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30371_ACEOF
30372
30373fi
30374
30375done
30376
30377
30378
30379
30380
30381for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30382do
30383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30385  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30388  echo $ECHO_N "(cached) $ECHO_C" >&6
30389fi
30390ac_res=`eval echo '${'$as_ac_Header'}'`
30391	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30392echo "${ECHO_T}$ac_res" >&6; }
30393else
30394  # Is the header compilable?
30395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30397cat >conftest.$ac_ext <<_ACEOF
30398/* confdefs.h.  */
30399_ACEOF
30400cat confdefs.h >>conftest.$ac_ext
30401cat >>conftest.$ac_ext <<_ACEOF
30402/* end confdefs.h.  */
30403$ac_includes_default
30404#include <$ac_header>
30405_ACEOF
30406rm -f conftest.$ac_objext
30407if { (ac_try="$ac_compile"
30408case "(($ac_try" in
30409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410  *) ac_try_echo=$ac_try;;
30411esac
30412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413  (eval "$ac_compile") 2>conftest.er1
30414  ac_status=$?
30415  grep -v '^ *+' conftest.er1 >conftest.err
30416  rm -f conftest.er1
30417  cat conftest.err >&5
30418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419  (exit $ac_status); } &&
30420	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421  { (case "(($ac_try" in
30422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423  *) ac_try_echo=$ac_try;;
30424esac
30425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426  (eval "$ac_try") 2>&5
30427  ac_status=$?
30428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429  (exit $ac_status); }; } &&
30430	 { ac_try='test -s conftest.$ac_objext'
30431  { (case "(($ac_try" in
30432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433  *) ac_try_echo=$ac_try;;
30434esac
30435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436  (eval "$ac_try") 2>&5
30437  ac_status=$?
30438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439  (exit $ac_status); }; }; then
30440  ac_header_compiler=yes
30441else
30442  echo "$as_me: failed program was:" >&5
30443sed 's/^/| /' conftest.$ac_ext >&5
30444
30445	ac_header_compiler=no
30446fi
30447
30448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30450echo "${ECHO_T}$ac_header_compiler" >&6; }
30451
30452# Is the header present?
30453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30455cat >conftest.$ac_ext <<_ACEOF
30456/* confdefs.h.  */
30457_ACEOF
30458cat confdefs.h >>conftest.$ac_ext
30459cat >>conftest.$ac_ext <<_ACEOF
30460/* end confdefs.h.  */
30461#include <$ac_header>
30462_ACEOF
30463if { (ac_try="$ac_cpp conftest.$ac_ext"
30464case "(($ac_try" in
30465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466  *) ac_try_echo=$ac_try;;
30467esac
30468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30470  ac_status=$?
30471  grep -v '^ *+' conftest.er1 >conftest.err
30472  rm -f conftest.er1
30473  cat conftest.err >&5
30474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475  (exit $ac_status); } >/dev/null; then
30476  if test -s conftest.err; then
30477    ac_cpp_err=$ac_c_preproc_warn_flag
30478    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30479  else
30480    ac_cpp_err=
30481  fi
30482else
30483  ac_cpp_err=yes
30484fi
30485if test -z "$ac_cpp_err"; then
30486  ac_header_preproc=yes
30487else
30488  echo "$as_me: failed program was:" >&5
30489sed 's/^/| /' conftest.$ac_ext >&5
30490
30491  ac_header_preproc=no
30492fi
30493
30494rm -f conftest.err conftest.$ac_ext
30495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30496echo "${ECHO_T}$ac_header_preproc" >&6; }
30497
30498# So?  What about this header?
30499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30500  yes:no: )
30501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30505    ac_header_preproc=yes
30506    ;;
30507  no:yes:* )
30508    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30510    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30511echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30512    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30514    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30515echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30518    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30520    ( cat <<\_ASBOX
30521## ----------------------------------- ##
30522## Report this to llvmbugs@cs.uiuc.edu ##
30523## ----------------------------------- ##
30524_ASBOX
30525     ) | sed "s/^/$as_me: WARNING:     /" >&2
30526    ;;
30527esac
30528{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30531  echo $ECHO_N "(cached) $ECHO_C" >&6
30532else
30533  eval "$as_ac_Header=\$ac_header_preproc"
30534fi
30535ac_res=`eval echo '${'$as_ac_Header'}'`
30536	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30537echo "${ECHO_T}$ac_res" >&6; }
30538
30539fi
30540if test `eval echo '${'$as_ac_Header'}'` = yes; then
30541  cat >>confdefs.h <<_ACEOF
30542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30543_ACEOF
30544
30545fi
30546
30547done
30548
30549
30550
30551
30552
30553for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30554do
30555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30557  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30560  echo $ECHO_N "(cached) $ECHO_C" >&6
30561fi
30562ac_res=`eval echo '${'$as_ac_Header'}'`
30563	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30564echo "${ECHO_T}$ac_res" >&6; }
30565else
30566  # Is the header compilable?
30567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30569cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h.  */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h.  */
30575$ac_includes_default
30576#include <$ac_header>
30577_ACEOF
30578rm -f conftest.$ac_objext
30579if { (ac_try="$ac_compile"
30580case "(($ac_try" in
30581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582  *) ac_try_echo=$ac_try;;
30583esac
30584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585  (eval "$ac_compile") 2>conftest.er1
30586  ac_status=$?
30587  grep -v '^ *+' conftest.er1 >conftest.err
30588  rm -f conftest.er1
30589  cat conftest.err >&5
30590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591  (exit $ac_status); } &&
30592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30593  { (case "(($ac_try" in
30594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595  *) ac_try_echo=$ac_try;;
30596esac
30597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598  (eval "$ac_try") 2>&5
30599  ac_status=$?
30600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601  (exit $ac_status); }; } &&
30602	 { ac_try='test -s conftest.$ac_objext'
30603  { (case "(($ac_try" in
30604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605  *) ac_try_echo=$ac_try;;
30606esac
30607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30608  (eval "$ac_try") 2>&5
30609  ac_status=$?
30610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611  (exit $ac_status); }; }; then
30612  ac_header_compiler=yes
30613else
30614  echo "$as_me: failed program was:" >&5
30615sed 's/^/| /' conftest.$ac_ext >&5
30616
30617	ac_header_compiler=no
30618fi
30619
30620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30622echo "${ECHO_T}$ac_header_compiler" >&6; }
30623
30624# Is the header present?
30625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30627cat >conftest.$ac_ext <<_ACEOF
30628/* confdefs.h.  */
30629_ACEOF
30630cat confdefs.h >>conftest.$ac_ext
30631cat >>conftest.$ac_ext <<_ACEOF
30632/* end confdefs.h.  */
30633#include <$ac_header>
30634_ACEOF
30635if { (ac_try="$ac_cpp conftest.$ac_ext"
30636case "(($ac_try" in
30637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638  *) ac_try_echo=$ac_try;;
30639esac
30640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30642  ac_status=$?
30643  grep -v '^ *+' conftest.er1 >conftest.err
30644  rm -f conftest.er1
30645  cat conftest.err >&5
30646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647  (exit $ac_status); } >/dev/null; then
30648  if test -s conftest.err; then
30649    ac_cpp_err=$ac_c_preproc_warn_flag
30650    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30651  else
30652    ac_cpp_err=
30653  fi
30654else
30655  ac_cpp_err=yes
30656fi
30657if test -z "$ac_cpp_err"; then
30658  ac_header_preproc=yes
30659else
30660  echo "$as_me: failed program was:" >&5
30661sed 's/^/| /' conftest.$ac_ext >&5
30662
30663  ac_header_preproc=no
30664fi
30665
30666rm -f conftest.err conftest.$ac_ext
30667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30668echo "${ECHO_T}$ac_header_preproc" >&6; }
30669
30670# So?  What about this header?
30671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30672  yes:no: )
30673    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30677    ac_header_preproc=yes
30678    ;;
30679  no:yes:* )
30680    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30682    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30683echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30684    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30686    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30687echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30690    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30692    ( cat <<\_ASBOX
30693## ----------------------------------- ##
30694## Report this to llvmbugs@cs.uiuc.edu ##
30695## ----------------------------------- ##
30696_ASBOX
30697     ) | sed "s/^/$as_me: WARNING:     /" >&2
30698    ;;
30699esac
30700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30703  echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705  eval "$as_ac_Header=\$ac_header_preproc"
30706fi
30707ac_res=`eval echo '${'$as_ac_Header'}'`
30708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30709echo "${ECHO_T}$ac_res" >&6; }
30710
30711fi
30712if test `eval echo '${'$as_ac_Header'}'` = yes; then
30713  cat >>confdefs.h <<_ACEOF
30714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30715_ACEOF
30716
30717fi
30718
30719done
30720
30721if test "$ENABLE_THREADS" -eq 1 ; then
30722
30723for ac_header in pthread.h
30724do
30725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30730  echo $ECHO_N "(cached) $ECHO_C" >&6
30731fi
30732ac_res=`eval echo '${'$as_ac_Header'}'`
30733	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30734echo "${ECHO_T}$ac_res" >&6; }
30735else
30736  # Is the header compilable?
30737{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30739cat >conftest.$ac_ext <<_ACEOF
30740/* confdefs.h.  */
30741_ACEOF
30742cat confdefs.h >>conftest.$ac_ext
30743cat >>conftest.$ac_ext <<_ACEOF
30744/* end confdefs.h.  */
30745$ac_includes_default
30746#include <$ac_header>
30747_ACEOF
30748rm -f conftest.$ac_objext
30749if { (ac_try="$ac_compile"
30750case "(($ac_try" in
30751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752  *) ac_try_echo=$ac_try;;
30753esac
30754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755  (eval "$ac_compile") 2>conftest.er1
30756  ac_status=$?
30757  grep -v '^ *+' conftest.er1 >conftest.err
30758  rm -f conftest.er1
30759  cat conftest.err >&5
30760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761  (exit $ac_status); } &&
30762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763  { (case "(($ac_try" in
30764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765  *) ac_try_echo=$ac_try;;
30766esac
30767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768  (eval "$ac_try") 2>&5
30769  ac_status=$?
30770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771  (exit $ac_status); }; } &&
30772	 { ac_try='test -s conftest.$ac_objext'
30773  { (case "(($ac_try" in
30774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775  *) ac_try_echo=$ac_try;;
30776esac
30777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778  (eval "$ac_try") 2>&5
30779  ac_status=$?
30780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781  (exit $ac_status); }; }; then
30782  ac_header_compiler=yes
30783else
30784  echo "$as_me: failed program was:" >&5
30785sed 's/^/| /' conftest.$ac_ext >&5
30786
30787	ac_header_compiler=no
30788fi
30789
30790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30791{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30792echo "${ECHO_T}$ac_header_compiler" >&6; }
30793
30794# Is the header present?
30795{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30797cat >conftest.$ac_ext <<_ACEOF
30798/* confdefs.h.  */
30799_ACEOF
30800cat confdefs.h >>conftest.$ac_ext
30801cat >>conftest.$ac_ext <<_ACEOF
30802/* end confdefs.h.  */
30803#include <$ac_header>
30804_ACEOF
30805if { (ac_try="$ac_cpp conftest.$ac_ext"
30806case "(($ac_try" in
30807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808  *) ac_try_echo=$ac_try;;
30809esac
30810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30812  ac_status=$?
30813  grep -v '^ *+' conftest.er1 >conftest.err
30814  rm -f conftest.er1
30815  cat conftest.err >&5
30816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817  (exit $ac_status); } >/dev/null; then
30818  if test -s conftest.err; then
30819    ac_cpp_err=$ac_c_preproc_warn_flag
30820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30821  else
30822    ac_cpp_err=
30823  fi
30824else
30825  ac_cpp_err=yes
30826fi
30827if test -z "$ac_cpp_err"; then
30828  ac_header_preproc=yes
30829else
30830  echo "$as_me: failed program was:" >&5
30831sed 's/^/| /' conftest.$ac_ext >&5
30832
30833  ac_header_preproc=no
30834fi
30835
30836rm -f conftest.err conftest.$ac_ext
30837{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30838echo "${ECHO_T}$ac_header_preproc" >&6; }
30839
30840# So?  What about this header?
30841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30842  yes:no: )
30843    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30845    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30847    ac_header_preproc=yes
30848    ;;
30849  no:yes:* )
30850    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30852    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30853echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30854    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30856    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30857echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30860    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30862    ( cat <<\_ASBOX
30863## ----------------------------------- ##
30864## Report this to llvmbugs@cs.uiuc.edu ##
30865## ----------------------------------- ##
30866_ASBOX
30867     ) | sed "s/^/$as_me: WARNING:     /" >&2
30868    ;;
30869esac
30870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30873  echo $ECHO_N "(cached) $ECHO_C" >&6
30874else
30875  eval "$as_ac_Header=\$ac_header_preproc"
30876fi
30877ac_res=`eval echo '${'$as_ac_Header'}'`
30878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30879echo "${ECHO_T}$ac_res" >&6; }
30880
30881fi
30882if test `eval echo '${'$as_ac_Header'}'` = yes; then
30883  cat >>confdefs.h <<_ACEOF
30884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30885_ACEOF
30886 HAVE_PTHREAD=1
30887
30888else
30889  HAVE_PTHREAD=0
30890
30891fi
30892
30893done
30894
30895else
30896  HAVE_PTHREAD=0
30897
30898fi
30899
30900if test "$llvm_cv_enable_libffi" = "yes" ; then
30901
30902
30903for ac_header in ffi.h ffi/ffi.h
30904do
30905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30907  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30910  echo $ECHO_N "(cached) $ECHO_C" >&6
30911fi
30912ac_res=`eval echo '${'$as_ac_Header'}'`
30913	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30914echo "${ECHO_T}$ac_res" >&6; }
30915else
30916  # Is the header compilable?
30917{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30919cat >conftest.$ac_ext <<_ACEOF
30920/* confdefs.h.  */
30921_ACEOF
30922cat confdefs.h >>conftest.$ac_ext
30923cat >>conftest.$ac_ext <<_ACEOF
30924/* end confdefs.h.  */
30925$ac_includes_default
30926#include <$ac_header>
30927_ACEOF
30928rm -f conftest.$ac_objext
30929if { (ac_try="$ac_compile"
30930case "(($ac_try" in
30931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30932  *) ac_try_echo=$ac_try;;
30933esac
30934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935  (eval "$ac_compile") 2>conftest.er1
30936  ac_status=$?
30937  grep -v '^ *+' conftest.er1 >conftest.err
30938  rm -f conftest.er1
30939  cat conftest.err >&5
30940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941  (exit $ac_status); } &&
30942	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30943  { (case "(($ac_try" in
30944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945  *) ac_try_echo=$ac_try;;
30946esac
30947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948  (eval "$ac_try") 2>&5
30949  ac_status=$?
30950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951  (exit $ac_status); }; } &&
30952	 { ac_try='test -s conftest.$ac_objext'
30953  { (case "(($ac_try" in
30954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955  *) ac_try_echo=$ac_try;;
30956esac
30957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958  (eval "$ac_try") 2>&5
30959  ac_status=$?
30960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961  (exit $ac_status); }; }; then
30962  ac_header_compiler=yes
30963else
30964  echo "$as_me: failed program was:" >&5
30965sed 's/^/| /' conftest.$ac_ext >&5
30966
30967	ac_header_compiler=no
30968fi
30969
30970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30971{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30972echo "${ECHO_T}$ac_header_compiler" >&6; }
30973
30974# Is the header present?
30975{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30977cat >conftest.$ac_ext <<_ACEOF
30978/* confdefs.h.  */
30979_ACEOF
30980cat confdefs.h >>conftest.$ac_ext
30981cat >>conftest.$ac_ext <<_ACEOF
30982/* end confdefs.h.  */
30983#include <$ac_header>
30984_ACEOF
30985if { (ac_try="$ac_cpp conftest.$ac_ext"
30986case "(($ac_try" in
30987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988  *) ac_try_echo=$ac_try;;
30989esac
30990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30992  ac_status=$?
30993  grep -v '^ *+' conftest.er1 >conftest.err
30994  rm -f conftest.er1
30995  cat conftest.err >&5
30996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997  (exit $ac_status); } >/dev/null; then
30998  if test -s conftest.err; then
30999    ac_cpp_err=$ac_c_preproc_warn_flag
31000    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31001  else
31002    ac_cpp_err=
31003  fi
31004else
31005  ac_cpp_err=yes
31006fi
31007if test -z "$ac_cpp_err"; then
31008  ac_header_preproc=yes
31009else
31010  echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013  ac_header_preproc=no
31014fi
31015
31016rm -f conftest.err conftest.$ac_ext
31017{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31018echo "${ECHO_T}$ac_header_preproc" >&6; }
31019
31020# So?  What about this header?
31021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31022  yes:no: )
31023    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31025    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31027    ac_header_preproc=yes
31028    ;;
31029  no:yes:* )
31030    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31032    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31033echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31034    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31036    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31037echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31038    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31040    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31042    ( cat <<\_ASBOX
31043## ----------------------------------- ##
31044## Report this to llvmbugs@cs.uiuc.edu ##
31045## ----------------------------------- ##
31046_ASBOX
31047     ) | sed "s/^/$as_me: WARNING:     /" >&2
31048    ;;
31049esac
31050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31053  echo $ECHO_N "(cached) $ECHO_C" >&6
31054else
31055  eval "$as_ac_Header=\$ac_header_preproc"
31056fi
31057ac_res=`eval echo '${'$as_ac_Header'}'`
31058	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31059echo "${ECHO_T}$ac_res" >&6; }
31060
31061fi
31062if test `eval echo '${'$as_ac_Header'}'` = yes; then
31063  cat >>confdefs.h <<_ACEOF
31064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31065_ACEOF
31066
31067fi
31068
31069done
31070
31071fi
31072
31073
31074
31075  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31076echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31077if test "${ac_cv_huge_val_sanity+set}" = set; then
31078  echo $ECHO_N "(cached) $ECHO_C" >&6
31079else
31080
31081    ac_ext=cpp
31082ac_cpp='$CXXCPP $CPPFLAGS'
31083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31086
31087    CXXFLAGS=-pedantic
31088    if test "$cross_compiling" = yes; then
31089  ac_cv_huge_val_sanity=yes
31090else
31091  cat >conftest.$ac_ext <<_ACEOF
31092/* confdefs.h.  */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h.  */
31097#include <math.h>
31098int
31099main ()
31100{
31101double x = HUGE_VAL; return x != x;
31102  ;
31103  return 0;
31104}
31105_ACEOF
31106rm -f conftest$ac_exeext
31107if { (ac_try="$ac_link"
31108case "(($ac_try" in
31109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110  *) ac_try_echo=$ac_try;;
31111esac
31112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113  (eval "$ac_link") 2>&5
31114  ac_status=$?
31115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31117  { (case "(($ac_try" in
31118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119  *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122  (eval "$ac_try") 2>&5
31123  ac_status=$?
31124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125  (exit $ac_status); }; }; then
31126  ac_cv_huge_val_sanity=yes
31127else
31128  echo "$as_me: program exited with status $ac_status" >&5
31129echo "$as_me: failed program was:" >&5
31130sed 's/^/| /' conftest.$ac_ext >&5
31131
31132( exit $ac_status )
31133ac_cv_huge_val_sanity=no
31134fi
31135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31136fi
31137
31138
31139    ac_ext=c
31140ac_cpp='$CPP $CPPFLAGS'
31141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31143ac_compiler_gnu=$ac_cv_c_compiler_gnu
31144
31145
31146fi
31147{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31148echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31149  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31150
31151
31152{ echo "$as_me:$LINENO: checking for pid_t" >&5
31153echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31154if test "${ac_cv_type_pid_t+set}" = set; then
31155  echo $ECHO_N "(cached) $ECHO_C" >&6
31156else
31157  cat >conftest.$ac_ext <<_ACEOF
31158/* confdefs.h.  */
31159_ACEOF
31160cat confdefs.h >>conftest.$ac_ext
31161cat >>conftest.$ac_ext <<_ACEOF
31162/* end confdefs.h.  */
31163$ac_includes_default
31164typedef pid_t ac__type_new_;
31165int
31166main ()
31167{
31168if ((ac__type_new_ *) 0)
31169  return 0;
31170if (sizeof (ac__type_new_))
31171  return 0;
31172  ;
31173  return 0;
31174}
31175_ACEOF
31176rm -f conftest.$ac_objext
31177if { (ac_try="$ac_compile"
31178case "(($ac_try" in
31179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180  *) ac_try_echo=$ac_try;;
31181esac
31182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183  (eval "$ac_compile") 2>conftest.er1
31184  ac_status=$?
31185  grep -v '^ *+' conftest.er1 >conftest.err
31186  rm -f conftest.er1
31187  cat conftest.err >&5
31188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189  (exit $ac_status); } &&
31190	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31191  { (case "(($ac_try" in
31192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31193  *) ac_try_echo=$ac_try;;
31194esac
31195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31196  (eval "$ac_try") 2>&5
31197  ac_status=$?
31198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199  (exit $ac_status); }; } &&
31200	 { ac_try='test -s conftest.$ac_objext'
31201  { (case "(($ac_try" in
31202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203  *) ac_try_echo=$ac_try;;
31204esac
31205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206  (eval "$ac_try") 2>&5
31207  ac_status=$?
31208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209  (exit $ac_status); }; }; then
31210  ac_cv_type_pid_t=yes
31211else
31212  echo "$as_me: failed program was:" >&5
31213sed 's/^/| /' conftest.$ac_ext >&5
31214
31215	ac_cv_type_pid_t=no
31216fi
31217
31218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31219fi
31220{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31221echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31222if test $ac_cv_type_pid_t = yes; then
31223  :
31224else
31225
31226cat >>confdefs.h <<_ACEOF
31227#define pid_t int
31228_ACEOF
31229
31230fi
31231
31232{ echo "$as_me:$LINENO: checking for size_t" >&5
31233echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31234if test "${ac_cv_type_size_t+set}" = set; then
31235  echo $ECHO_N "(cached) $ECHO_C" >&6
31236else
31237  cat >conftest.$ac_ext <<_ACEOF
31238/* confdefs.h.  */
31239_ACEOF
31240cat confdefs.h >>conftest.$ac_ext
31241cat >>conftest.$ac_ext <<_ACEOF
31242/* end confdefs.h.  */
31243$ac_includes_default
31244typedef size_t ac__type_new_;
31245int
31246main ()
31247{
31248if ((ac__type_new_ *) 0)
31249  return 0;
31250if (sizeof (ac__type_new_))
31251  return 0;
31252  ;
31253  return 0;
31254}
31255_ACEOF
31256rm -f conftest.$ac_objext
31257if { (ac_try="$ac_compile"
31258case "(($ac_try" in
31259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260  *) ac_try_echo=$ac_try;;
31261esac
31262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263  (eval "$ac_compile") 2>conftest.er1
31264  ac_status=$?
31265  grep -v '^ *+' conftest.er1 >conftest.err
31266  rm -f conftest.er1
31267  cat conftest.err >&5
31268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269  (exit $ac_status); } &&
31270	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31271  { (case "(($ac_try" in
31272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273  *) ac_try_echo=$ac_try;;
31274esac
31275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276  (eval "$ac_try") 2>&5
31277  ac_status=$?
31278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279  (exit $ac_status); }; } &&
31280	 { ac_try='test -s conftest.$ac_objext'
31281  { (case "(($ac_try" in
31282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283  *) ac_try_echo=$ac_try;;
31284esac
31285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286  (eval "$ac_try") 2>&5
31287  ac_status=$?
31288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289  (exit $ac_status); }; }; then
31290  ac_cv_type_size_t=yes
31291else
31292  echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
31295	ac_cv_type_size_t=no
31296fi
31297
31298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31299fi
31300{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31301echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31302if test $ac_cv_type_size_t = yes; then
31303  :
31304else
31305
31306cat >>confdefs.h <<_ACEOF
31307#define size_t unsigned int
31308_ACEOF
31309
31310fi
31311
31312{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31313echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31314if test "${ac_cv_type_signal+set}" = set; then
31315  echo $ECHO_N "(cached) $ECHO_C" >&6
31316else
31317  cat >conftest.$ac_ext <<_ACEOF
31318/* confdefs.h.  */
31319_ACEOF
31320cat confdefs.h >>conftest.$ac_ext
31321cat >>conftest.$ac_ext <<_ACEOF
31322/* end confdefs.h.  */
31323#include <sys/types.h>
31324#include <signal.h>
31325
31326int
31327main ()
31328{
31329return *(signal (0, 0)) (0) == 1;
31330  ;
31331  return 0;
31332}
31333_ACEOF
31334rm -f conftest.$ac_objext
31335if { (ac_try="$ac_compile"
31336case "(($ac_try" in
31337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338  *) ac_try_echo=$ac_try;;
31339esac
31340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341  (eval "$ac_compile") 2>conftest.er1
31342  ac_status=$?
31343  grep -v '^ *+' conftest.er1 >conftest.err
31344  rm -f conftest.er1
31345  cat conftest.err >&5
31346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347  (exit $ac_status); } &&
31348	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31349  { (case "(($ac_try" in
31350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351  *) ac_try_echo=$ac_try;;
31352esac
31353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354  (eval "$ac_try") 2>&5
31355  ac_status=$?
31356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357  (exit $ac_status); }; } &&
31358	 { ac_try='test -s conftest.$ac_objext'
31359  { (case "(($ac_try" in
31360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361  *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364  (eval "$ac_try") 2>&5
31365  ac_status=$?
31366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367  (exit $ac_status); }; }; then
31368  ac_cv_type_signal=int
31369else
31370  echo "$as_me: failed program was:" >&5
31371sed 's/^/| /' conftest.$ac_ext >&5
31372
31373	ac_cv_type_signal=void
31374fi
31375
31376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31377fi
31378{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31379echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31380
31381cat >>confdefs.h <<_ACEOF
31382#define RETSIGTYPE $ac_cv_type_signal
31383_ACEOF
31384
31385
31386{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31387echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31388if test "${ac_cv_struct_tm+set}" = set; then
31389  echo $ECHO_N "(cached) $ECHO_C" >&6
31390else
31391  cat >conftest.$ac_ext <<_ACEOF
31392/* confdefs.h.  */
31393_ACEOF
31394cat confdefs.h >>conftest.$ac_ext
31395cat >>conftest.$ac_ext <<_ACEOF
31396/* end confdefs.h.  */
31397#include <sys/types.h>
31398#include <time.h>
31399
31400int
31401main ()
31402{
31403struct tm *tp; tp->tm_sec;
31404  ;
31405  return 0;
31406}
31407_ACEOF
31408rm -f conftest.$ac_objext
31409if { (ac_try="$ac_compile"
31410case "(($ac_try" in
31411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412  *) ac_try_echo=$ac_try;;
31413esac
31414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415  (eval "$ac_compile") 2>conftest.er1
31416  ac_status=$?
31417  grep -v '^ *+' conftest.er1 >conftest.err
31418  rm -f conftest.er1
31419  cat conftest.err >&5
31420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421  (exit $ac_status); } &&
31422	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31423  { (case "(($ac_try" in
31424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425  *) ac_try_echo=$ac_try;;
31426esac
31427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428  (eval "$ac_try") 2>&5
31429  ac_status=$?
31430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431  (exit $ac_status); }; } &&
31432	 { ac_try='test -s conftest.$ac_objext'
31433  { (case "(($ac_try" in
31434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435  *) ac_try_echo=$ac_try;;
31436esac
31437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438  (eval "$ac_try") 2>&5
31439  ac_status=$?
31440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441  (exit $ac_status); }; }; then
31442  ac_cv_struct_tm=time.h
31443else
31444  echo "$as_me: failed program was:" >&5
31445sed 's/^/| /' conftest.$ac_ext >&5
31446
31447	ac_cv_struct_tm=sys/time.h
31448fi
31449
31450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31451fi
31452{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31453echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31454if test $ac_cv_struct_tm = sys/time.h; then
31455
31456cat >>confdefs.h <<\_ACEOF
31457#define TM_IN_SYS_TIME 1
31458_ACEOF
31459
31460fi
31461
31462{ echo "$as_me:$LINENO: checking for int64_t" >&5
31463echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31464if test "${ac_cv_type_int64_t+set}" = set; then
31465  echo $ECHO_N "(cached) $ECHO_C" >&6
31466else
31467  cat >conftest.$ac_ext <<_ACEOF
31468/* confdefs.h.  */
31469_ACEOF
31470cat confdefs.h >>conftest.$ac_ext
31471cat >>conftest.$ac_ext <<_ACEOF
31472/* end confdefs.h.  */
31473$ac_includes_default
31474typedef int64_t ac__type_new_;
31475int
31476main ()
31477{
31478if ((ac__type_new_ *) 0)
31479  return 0;
31480if (sizeof (ac__type_new_))
31481  return 0;
31482  ;
31483  return 0;
31484}
31485_ACEOF
31486rm -f conftest.$ac_objext
31487if { (ac_try="$ac_compile"
31488case "(($ac_try" in
31489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490  *) ac_try_echo=$ac_try;;
31491esac
31492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493  (eval "$ac_compile") 2>conftest.er1
31494  ac_status=$?
31495  grep -v '^ *+' conftest.er1 >conftest.err
31496  rm -f conftest.er1
31497  cat conftest.err >&5
31498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499  (exit $ac_status); } &&
31500	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31501  { (case "(($ac_try" in
31502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31503  *) ac_try_echo=$ac_try;;
31504esac
31505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31506  (eval "$ac_try") 2>&5
31507  ac_status=$?
31508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509  (exit $ac_status); }; } &&
31510	 { ac_try='test -s conftest.$ac_objext'
31511  { (case "(($ac_try" in
31512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513  *) ac_try_echo=$ac_try;;
31514esac
31515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516  (eval "$ac_try") 2>&5
31517  ac_status=$?
31518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519  (exit $ac_status); }; }; then
31520  ac_cv_type_int64_t=yes
31521else
31522  echo "$as_me: failed program was:" >&5
31523sed 's/^/| /' conftest.$ac_ext >&5
31524
31525	ac_cv_type_int64_t=no
31526fi
31527
31528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31529fi
31530{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31531echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31532if test $ac_cv_type_int64_t = yes; then
31533
31534cat >>confdefs.h <<_ACEOF
31535#define HAVE_INT64_T 1
31536_ACEOF
31537
31538
31539else
31540  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31541echo "$as_me: error: Type int64_t required but not found" >&2;}
31542   { (exit 1); exit 1; }; }
31543fi
31544
31545{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31546echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31547if test "${ac_cv_type_uint64_t+set}" = set; then
31548  echo $ECHO_N "(cached) $ECHO_C" >&6
31549else
31550  cat >conftest.$ac_ext <<_ACEOF
31551/* confdefs.h.  */
31552_ACEOF
31553cat confdefs.h >>conftest.$ac_ext
31554cat >>conftest.$ac_ext <<_ACEOF
31555/* end confdefs.h.  */
31556$ac_includes_default
31557typedef uint64_t ac__type_new_;
31558int
31559main ()
31560{
31561if ((ac__type_new_ *) 0)
31562  return 0;
31563if (sizeof (ac__type_new_))
31564  return 0;
31565  ;
31566  return 0;
31567}
31568_ACEOF
31569rm -f conftest.$ac_objext
31570if { (ac_try="$ac_compile"
31571case "(($ac_try" in
31572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573  *) ac_try_echo=$ac_try;;
31574esac
31575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576  (eval "$ac_compile") 2>conftest.er1
31577  ac_status=$?
31578  grep -v '^ *+' conftest.er1 >conftest.err
31579  rm -f conftest.er1
31580  cat conftest.err >&5
31581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582  (exit $ac_status); } &&
31583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31584  { (case "(($ac_try" in
31585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586  *) ac_try_echo=$ac_try;;
31587esac
31588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589  (eval "$ac_try") 2>&5
31590  ac_status=$?
31591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592  (exit $ac_status); }; } &&
31593	 { ac_try='test -s conftest.$ac_objext'
31594  { (case "(($ac_try" in
31595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596  *) ac_try_echo=$ac_try;;
31597esac
31598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599  (eval "$ac_try") 2>&5
31600  ac_status=$?
31601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602  (exit $ac_status); }; }; then
31603  ac_cv_type_uint64_t=yes
31604else
31605  echo "$as_me: failed program was:" >&5
31606sed 's/^/| /' conftest.$ac_ext >&5
31607
31608	ac_cv_type_uint64_t=no
31609fi
31610
31611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31612fi
31613{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31614echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31615if test $ac_cv_type_uint64_t = yes; then
31616
31617cat >>confdefs.h <<_ACEOF
31618#define HAVE_UINT64_T 1
31619_ACEOF
31620
31621
31622else
31623  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31624echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31625if test "${ac_cv_type_u_int64_t+set}" = set; then
31626  echo $ECHO_N "(cached) $ECHO_C" >&6
31627else
31628  cat >conftest.$ac_ext <<_ACEOF
31629/* confdefs.h.  */
31630_ACEOF
31631cat confdefs.h >>conftest.$ac_ext
31632cat >>conftest.$ac_ext <<_ACEOF
31633/* end confdefs.h.  */
31634$ac_includes_default
31635typedef u_int64_t ac__type_new_;
31636int
31637main ()
31638{
31639if ((ac__type_new_ *) 0)
31640  return 0;
31641if (sizeof (ac__type_new_))
31642  return 0;
31643  ;
31644  return 0;
31645}
31646_ACEOF
31647rm -f conftest.$ac_objext
31648if { (ac_try="$ac_compile"
31649case "(($ac_try" in
31650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651  *) ac_try_echo=$ac_try;;
31652esac
31653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654  (eval "$ac_compile") 2>conftest.er1
31655  ac_status=$?
31656  grep -v '^ *+' conftest.er1 >conftest.err
31657  rm -f conftest.er1
31658  cat conftest.err >&5
31659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660  (exit $ac_status); } &&
31661	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31662  { (case "(($ac_try" in
31663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664  *) ac_try_echo=$ac_try;;
31665esac
31666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667  (eval "$ac_try") 2>&5
31668  ac_status=$?
31669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670  (exit $ac_status); }; } &&
31671	 { ac_try='test -s conftest.$ac_objext'
31672  { (case "(($ac_try" in
31673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674  *) ac_try_echo=$ac_try;;
31675esac
31676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677  (eval "$ac_try") 2>&5
31678  ac_status=$?
31679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680  (exit $ac_status); }; }; then
31681  ac_cv_type_u_int64_t=yes
31682else
31683  echo "$as_me: failed program was:" >&5
31684sed 's/^/| /' conftest.$ac_ext >&5
31685
31686	ac_cv_type_u_int64_t=no
31687fi
31688
31689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31690fi
31691{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31692echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31693if test $ac_cv_type_u_int64_t = yes; then
31694
31695cat >>confdefs.h <<_ACEOF
31696#define HAVE_U_INT64_T 1
31697_ACEOF
31698
31699
31700else
31701  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31702echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31703   { (exit 1); exit 1; }; }
31704fi
31705
31706fi
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31718do
31719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31723  echo $ECHO_N "(cached) $ECHO_C" >&6
31724else
31725  cat >conftest.$ac_ext <<_ACEOF
31726/* confdefs.h.  */
31727_ACEOF
31728cat confdefs.h >>conftest.$ac_ext
31729cat >>conftest.$ac_ext <<_ACEOF
31730/* end confdefs.h.  */
31731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31733#define $ac_func innocuous_$ac_func
31734
31735/* System header to define __stub macros and hopefully few prototypes,
31736    which can conflict with char $ac_func (); below.
31737    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738    <limits.h> exists even on freestanding compilers.  */
31739
31740#ifdef __STDC__
31741# include <limits.h>
31742#else
31743# include <assert.h>
31744#endif
31745
31746#undef $ac_func
31747
31748/* Override any GCC internal prototype to avoid an error.
31749   Use char because int might match the return type of a GCC
31750   builtin and then its argument prototype would still apply.  */
31751#ifdef __cplusplus
31752extern "C"
31753#endif
31754char $ac_func ();
31755/* The GNU C library defines this for functions which it implements
31756    to always fail with ENOSYS.  Some functions are actually named
31757    something starting with __ and the normal name is an alias.  */
31758#if defined __stub_$ac_func || defined __stub___$ac_func
31759choke me
31760#endif
31761
31762int
31763main ()
31764{
31765return $ac_func ();
31766  ;
31767  return 0;
31768}
31769_ACEOF
31770rm -f conftest.$ac_objext conftest$ac_exeext
31771if { (ac_try="$ac_link"
31772case "(($ac_try" in
31773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774  *) ac_try_echo=$ac_try;;
31775esac
31776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777  (eval "$ac_link") 2>conftest.er1
31778  ac_status=$?
31779  grep -v '^ *+' conftest.er1 >conftest.err
31780  rm -f conftest.er1
31781  cat conftest.err >&5
31782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783  (exit $ac_status); } &&
31784	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31785  { (case "(($ac_try" in
31786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787  *) ac_try_echo=$ac_try;;
31788esac
31789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790  (eval "$ac_try") 2>&5
31791  ac_status=$?
31792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793  (exit $ac_status); }; } &&
31794	 { ac_try='test -s conftest$ac_exeext'
31795  { (case "(($ac_try" in
31796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797  *) ac_try_echo=$ac_try;;
31798esac
31799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31800  (eval "$ac_try") 2>&5
31801  ac_status=$?
31802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803  (exit $ac_status); }; }; then
31804  eval "$as_ac_var=yes"
31805else
31806  echo "$as_me: failed program was:" >&5
31807sed 's/^/| /' conftest.$ac_ext >&5
31808
31809	eval "$as_ac_var=no"
31810fi
31811
31812rm -f core conftest.err conftest.$ac_objext \
31813      conftest$ac_exeext conftest.$ac_ext
31814fi
31815ac_res=`eval echo '${'$as_ac_var'}'`
31816	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31817echo "${ECHO_T}$ac_res" >&6; }
31818if test `eval echo '${'$as_ac_var'}'` = yes; then
31819  cat >>confdefs.h <<_ACEOF
31820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31821_ACEOF
31822
31823fi
31824done
31825
31826
31827
31828
31829
31830for ac_func in powf fmodf strtof round
31831do
31832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31836  echo $ECHO_N "(cached) $ECHO_C" >&6
31837else
31838  cat >conftest.$ac_ext <<_ACEOF
31839/* confdefs.h.  */
31840_ACEOF
31841cat confdefs.h >>conftest.$ac_ext
31842cat >>conftest.$ac_ext <<_ACEOF
31843/* end confdefs.h.  */
31844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31846#define $ac_func innocuous_$ac_func
31847
31848/* System header to define __stub macros and hopefully few prototypes,
31849    which can conflict with char $ac_func (); below.
31850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31851    <limits.h> exists even on freestanding compilers.  */
31852
31853#ifdef __STDC__
31854# include <limits.h>
31855#else
31856# include <assert.h>
31857#endif
31858
31859#undef $ac_func
31860
31861/* Override any GCC internal prototype to avoid an error.
31862   Use char because int might match the return type of a GCC
31863   builtin and then its argument prototype would still apply.  */
31864#ifdef __cplusplus
31865extern "C"
31866#endif
31867char $ac_func ();
31868/* The GNU C library defines this for functions which it implements
31869    to always fail with ENOSYS.  Some functions are actually named
31870    something starting with __ and the normal name is an alias.  */
31871#if defined __stub_$ac_func || defined __stub___$ac_func
31872choke me
31873#endif
31874
31875int
31876main ()
31877{
31878return $ac_func ();
31879  ;
31880  return 0;
31881}
31882_ACEOF
31883rm -f conftest.$ac_objext conftest$ac_exeext
31884if { (ac_try="$ac_link"
31885case "(($ac_try" in
31886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887  *) ac_try_echo=$ac_try;;
31888esac
31889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890  (eval "$ac_link") 2>conftest.er1
31891  ac_status=$?
31892  grep -v '^ *+' conftest.er1 >conftest.err
31893  rm -f conftest.er1
31894  cat conftest.err >&5
31895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896  (exit $ac_status); } &&
31897	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31898  { (case "(($ac_try" in
31899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900  *) ac_try_echo=$ac_try;;
31901esac
31902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903  (eval "$ac_try") 2>&5
31904  ac_status=$?
31905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906  (exit $ac_status); }; } &&
31907	 { ac_try='test -s conftest$ac_exeext'
31908  { (case "(($ac_try" in
31909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910  *) ac_try_echo=$ac_try;;
31911esac
31912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913  (eval "$ac_try") 2>&5
31914  ac_status=$?
31915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916  (exit $ac_status); }; }; then
31917  eval "$as_ac_var=yes"
31918else
31919  echo "$as_me: failed program was:" >&5
31920sed 's/^/| /' conftest.$ac_ext >&5
31921
31922	eval "$as_ac_var=no"
31923fi
31924
31925rm -f core conftest.err conftest.$ac_objext \
31926      conftest$ac_exeext conftest.$ac_ext
31927fi
31928ac_res=`eval echo '${'$as_ac_var'}'`
31929	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31930echo "${ECHO_T}$ac_res" >&6; }
31931if test `eval echo '${'$as_ac_var'}'` = yes; then
31932  cat >>confdefs.h <<_ACEOF
31933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31934_ACEOF
31935
31936fi
31937done
31938
31939
31940
31941
31942
31943
31944for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31945do
31946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31950  echo $ECHO_N "(cached) $ECHO_C" >&6
31951else
31952  cat >conftest.$ac_ext <<_ACEOF
31953/* confdefs.h.  */
31954_ACEOF
31955cat confdefs.h >>conftest.$ac_ext
31956cat >>conftest.$ac_ext <<_ACEOF
31957/* end confdefs.h.  */
31958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31960#define $ac_func innocuous_$ac_func
31961
31962/* System header to define __stub macros and hopefully few prototypes,
31963    which can conflict with char $ac_func (); below.
31964    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965    <limits.h> exists even on freestanding compilers.  */
31966
31967#ifdef __STDC__
31968# include <limits.h>
31969#else
31970# include <assert.h>
31971#endif
31972
31973#undef $ac_func
31974
31975/* Override any GCC internal prototype to avoid an error.
31976   Use char because int might match the return type of a GCC
31977   builtin and then its argument prototype would still apply.  */
31978#ifdef __cplusplus
31979extern "C"
31980#endif
31981char $ac_func ();
31982/* The GNU C library defines this for functions which it implements
31983    to always fail with ENOSYS.  Some functions are actually named
31984    something starting with __ and the normal name is an alias.  */
31985#if defined __stub_$ac_func || defined __stub___$ac_func
31986choke me
31987#endif
31988
31989int
31990main ()
31991{
31992return $ac_func ();
31993  ;
31994  return 0;
31995}
31996_ACEOF
31997rm -f conftest.$ac_objext conftest$ac_exeext
31998if { (ac_try="$ac_link"
31999case "(($ac_try" in
32000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001  *) ac_try_echo=$ac_try;;
32002esac
32003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004  (eval "$ac_link") 2>conftest.er1
32005  ac_status=$?
32006  grep -v '^ *+' conftest.er1 >conftest.err
32007  rm -f conftest.er1
32008  cat conftest.err >&5
32009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010  (exit $ac_status); } &&
32011	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012  { (case "(($ac_try" in
32013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014  *) ac_try_echo=$ac_try;;
32015esac
32016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017  (eval "$ac_try") 2>&5
32018  ac_status=$?
32019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020  (exit $ac_status); }; } &&
32021	 { ac_try='test -s conftest$ac_exeext'
32022  { (case "(($ac_try" in
32023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024  *) ac_try_echo=$ac_try;;
32025esac
32026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027  (eval "$ac_try") 2>&5
32028  ac_status=$?
32029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030  (exit $ac_status); }; }; then
32031  eval "$as_ac_var=yes"
32032else
32033  echo "$as_me: failed program was:" >&5
32034sed 's/^/| /' conftest.$ac_ext >&5
32035
32036	eval "$as_ac_var=no"
32037fi
32038
32039rm -f core conftest.err conftest.$ac_objext \
32040      conftest$ac_exeext conftest.$ac_ext
32041fi
32042ac_res=`eval echo '${'$as_ac_var'}'`
32043	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32044echo "${ECHO_T}$ac_res" >&6; }
32045if test `eval echo '${'$as_ac_var'}'` = yes; then
32046  cat >>confdefs.h <<_ACEOF
32047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32048_ACEOF
32049
32050fi
32051done
32052
32053
32054
32055
32056for ac_func in isatty mkdtemp mkstemp
32057do
32058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32059{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32061if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32062  echo $ECHO_N "(cached) $ECHO_C" >&6
32063else
32064  cat >conftest.$ac_ext <<_ACEOF
32065/* confdefs.h.  */
32066_ACEOF
32067cat confdefs.h >>conftest.$ac_ext
32068cat >>conftest.$ac_ext <<_ACEOF
32069/* end confdefs.h.  */
32070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32071   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32072#define $ac_func innocuous_$ac_func
32073
32074/* System header to define __stub macros and hopefully few prototypes,
32075    which can conflict with char $ac_func (); below.
32076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32077    <limits.h> exists even on freestanding compilers.  */
32078
32079#ifdef __STDC__
32080# include <limits.h>
32081#else
32082# include <assert.h>
32083#endif
32084
32085#undef $ac_func
32086
32087/* Override any GCC internal prototype to avoid an error.
32088   Use char because int might match the return type of a GCC
32089   builtin and then its argument prototype would still apply.  */
32090#ifdef __cplusplus
32091extern "C"
32092#endif
32093char $ac_func ();
32094/* The GNU C library defines this for functions which it implements
32095    to always fail with ENOSYS.  Some functions are actually named
32096    something starting with __ and the normal name is an alias.  */
32097#if defined __stub_$ac_func || defined __stub___$ac_func
32098choke me
32099#endif
32100
32101int
32102main ()
32103{
32104return $ac_func ();
32105  ;
32106  return 0;
32107}
32108_ACEOF
32109rm -f conftest.$ac_objext conftest$ac_exeext
32110if { (ac_try="$ac_link"
32111case "(($ac_try" in
32112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113  *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116  (eval "$ac_link") 2>conftest.er1
32117  ac_status=$?
32118  grep -v '^ *+' conftest.er1 >conftest.err
32119  rm -f conftest.er1
32120  cat conftest.err >&5
32121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122  (exit $ac_status); } &&
32123	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32124  { (case "(($ac_try" in
32125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126  *) ac_try_echo=$ac_try;;
32127esac
32128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129  (eval "$ac_try") 2>&5
32130  ac_status=$?
32131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132  (exit $ac_status); }; } &&
32133	 { ac_try='test -s conftest$ac_exeext'
32134  { (case "(($ac_try" in
32135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136  *) ac_try_echo=$ac_try;;
32137esac
32138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139  (eval "$ac_try") 2>&5
32140  ac_status=$?
32141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142  (exit $ac_status); }; }; then
32143  eval "$as_ac_var=yes"
32144else
32145  echo "$as_me: failed program was:" >&5
32146sed 's/^/| /' conftest.$ac_ext >&5
32147
32148	eval "$as_ac_var=no"
32149fi
32150
32151rm -f core conftest.err conftest.$ac_objext \
32152      conftest$ac_exeext conftest.$ac_ext
32153fi
32154ac_res=`eval echo '${'$as_ac_var'}'`
32155	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32156echo "${ECHO_T}$ac_res" >&6; }
32157if test `eval echo '${'$as_ac_var'}'` = yes; then
32158  cat >>confdefs.h <<_ACEOF
32159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32160_ACEOF
32161
32162fi
32163done
32164
32165
32166
32167
32168
32169
32170for ac_func in mktemp realpath sbrk setrlimit strdup
32171do
32172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32173{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32175if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32176  echo $ECHO_N "(cached) $ECHO_C" >&6
32177else
32178  cat >conftest.$ac_ext <<_ACEOF
32179/* confdefs.h.  */
32180_ACEOF
32181cat confdefs.h >>conftest.$ac_ext
32182cat >>conftest.$ac_ext <<_ACEOF
32183/* end confdefs.h.  */
32184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32186#define $ac_func innocuous_$ac_func
32187
32188/* System header to define __stub macros and hopefully few prototypes,
32189    which can conflict with char $ac_func (); below.
32190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32191    <limits.h> exists even on freestanding compilers.  */
32192
32193#ifdef __STDC__
32194# include <limits.h>
32195#else
32196# include <assert.h>
32197#endif
32198
32199#undef $ac_func
32200
32201/* Override any GCC internal prototype to avoid an error.
32202   Use char because int might match the return type of a GCC
32203   builtin and then its argument prototype would still apply.  */
32204#ifdef __cplusplus
32205extern "C"
32206#endif
32207char $ac_func ();
32208/* The GNU C library defines this for functions which it implements
32209    to always fail with ENOSYS.  Some functions are actually named
32210    something starting with __ and the normal name is an alias.  */
32211#if defined __stub_$ac_func || defined __stub___$ac_func
32212choke me
32213#endif
32214
32215int
32216main ()
32217{
32218return $ac_func ();
32219  ;
32220  return 0;
32221}
32222_ACEOF
32223rm -f conftest.$ac_objext conftest$ac_exeext
32224if { (ac_try="$ac_link"
32225case "(($ac_try" in
32226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227  *) ac_try_echo=$ac_try;;
32228esac
32229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230  (eval "$ac_link") 2>conftest.er1
32231  ac_status=$?
32232  grep -v '^ *+' conftest.er1 >conftest.err
32233  rm -f conftest.er1
32234  cat conftest.err >&5
32235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236  (exit $ac_status); } &&
32237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32238  { (case "(($ac_try" in
32239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240  *) ac_try_echo=$ac_try;;
32241esac
32242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243  (eval "$ac_try") 2>&5
32244  ac_status=$?
32245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246  (exit $ac_status); }; } &&
32247	 { ac_try='test -s conftest$ac_exeext'
32248  { (case "(($ac_try" in
32249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250  *) ac_try_echo=$ac_try;;
32251esac
32252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32253  (eval "$ac_try") 2>&5
32254  ac_status=$?
32255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256  (exit $ac_status); }; }; then
32257  eval "$as_ac_var=yes"
32258else
32259  echo "$as_me: failed program was:" >&5
32260sed 's/^/| /' conftest.$ac_ext >&5
32261
32262	eval "$as_ac_var=no"
32263fi
32264
32265rm -f core conftest.err conftest.$ac_objext \
32266      conftest$ac_exeext conftest.$ac_ext
32267fi
32268ac_res=`eval echo '${'$as_ac_var'}'`
32269	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32270echo "${ECHO_T}$ac_res" >&6; }
32271if test `eval echo '${'$as_ac_var'}'` = yes; then
32272  cat >>confdefs.h <<_ACEOF
32273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32274_ACEOF
32275
32276fi
32277done
32278
32279
32280
32281
32282
32283for ac_func in strerror strerror_r strerror_s setenv
32284do
32285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32289  echo $ECHO_N "(cached) $ECHO_C" >&6
32290else
32291  cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h.  */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h.  */
32297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32298   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32299#define $ac_func innocuous_$ac_func
32300
32301/* System header to define __stub macros and hopefully few prototypes,
32302    which can conflict with char $ac_func (); below.
32303    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32304    <limits.h> exists even on freestanding compilers.  */
32305
32306#ifdef __STDC__
32307# include <limits.h>
32308#else
32309# include <assert.h>
32310#endif
32311
32312#undef $ac_func
32313
32314/* Override any GCC internal prototype to avoid an error.
32315   Use char because int might match the return type of a GCC
32316   builtin and then its argument prototype would still apply.  */
32317#ifdef __cplusplus
32318extern "C"
32319#endif
32320char $ac_func ();
32321/* The GNU C library defines this for functions which it implements
32322    to always fail with ENOSYS.  Some functions are actually named
32323    something starting with __ and the normal name is an alias.  */
32324#if defined __stub_$ac_func || defined __stub___$ac_func
32325choke me
32326#endif
32327
32328int
32329main ()
32330{
32331return $ac_func ();
32332  ;
32333  return 0;
32334}
32335_ACEOF
32336rm -f conftest.$ac_objext conftest$ac_exeext
32337if { (ac_try="$ac_link"
32338case "(($ac_try" in
32339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340  *) ac_try_echo=$ac_try;;
32341esac
32342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343  (eval "$ac_link") 2>conftest.er1
32344  ac_status=$?
32345  grep -v '^ *+' conftest.er1 >conftest.err
32346  rm -f conftest.er1
32347  cat conftest.err >&5
32348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349  (exit $ac_status); } &&
32350	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32351  { (case "(($ac_try" in
32352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353  *) ac_try_echo=$ac_try;;
32354esac
32355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356  (eval "$ac_try") 2>&5
32357  ac_status=$?
32358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359  (exit $ac_status); }; } &&
32360	 { ac_try='test -s conftest$ac_exeext'
32361  { (case "(($ac_try" in
32362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363  *) ac_try_echo=$ac_try;;
32364esac
32365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366  (eval "$ac_try") 2>&5
32367  ac_status=$?
32368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369  (exit $ac_status); }; }; then
32370  eval "$as_ac_var=yes"
32371else
32372  echo "$as_me: failed program was:" >&5
32373sed 's/^/| /' conftest.$ac_ext >&5
32374
32375	eval "$as_ac_var=no"
32376fi
32377
32378rm -f core conftest.err conftest.$ac_objext \
32379      conftest$ac_exeext conftest.$ac_ext
32380fi
32381ac_res=`eval echo '${'$as_ac_var'}'`
32382	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32383echo "${ECHO_T}$ac_res" >&6; }
32384if test `eval echo '${'$as_ac_var'}'` = yes; then
32385  cat >>confdefs.h <<_ACEOF
32386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32387_ACEOF
32388
32389fi
32390done
32391
32392
32393
32394
32395
32396for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32397do
32398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32399{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32402  echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404  cat >conftest.$ac_ext <<_ACEOF
32405/* confdefs.h.  */
32406_ACEOF
32407cat confdefs.h >>conftest.$ac_ext
32408cat >>conftest.$ac_ext <<_ACEOF
32409/* end confdefs.h.  */
32410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32411   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32412#define $ac_func innocuous_$ac_func
32413
32414/* System header to define __stub macros and hopefully few prototypes,
32415    which can conflict with char $ac_func (); below.
32416    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417    <limits.h> exists even on freestanding compilers.  */
32418
32419#ifdef __STDC__
32420# include <limits.h>
32421#else
32422# include <assert.h>
32423#endif
32424
32425#undef $ac_func
32426
32427/* Override any GCC internal prototype to avoid an error.
32428   Use char because int might match the return type of a GCC
32429   builtin and then its argument prototype would still apply.  */
32430#ifdef __cplusplus
32431extern "C"
32432#endif
32433char $ac_func ();
32434/* The GNU C library defines this for functions which it implements
32435    to always fail with ENOSYS.  Some functions are actually named
32436    something starting with __ and the normal name is an alias.  */
32437#if defined __stub_$ac_func || defined __stub___$ac_func
32438choke me
32439#endif
32440
32441int
32442main ()
32443{
32444return $ac_func ();
32445  ;
32446  return 0;
32447}
32448_ACEOF
32449rm -f conftest.$ac_objext conftest$ac_exeext
32450if { (ac_try="$ac_link"
32451case "(($ac_try" in
32452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453  *) ac_try_echo=$ac_try;;
32454esac
32455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456  (eval "$ac_link") 2>conftest.er1
32457  ac_status=$?
32458  grep -v '^ *+' conftest.er1 >conftest.err
32459  rm -f conftest.er1
32460  cat conftest.err >&5
32461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462  (exit $ac_status); } &&
32463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32464  { (case "(($ac_try" in
32465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466  *) ac_try_echo=$ac_try;;
32467esac
32468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469  (eval "$ac_try") 2>&5
32470  ac_status=$?
32471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472  (exit $ac_status); }; } &&
32473	 { ac_try='test -s conftest$ac_exeext'
32474  { (case "(($ac_try" in
32475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476  *) ac_try_echo=$ac_try;;
32477esac
32478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479  (eval "$ac_try") 2>&5
32480  ac_status=$?
32481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482  (exit $ac_status); }; }; then
32483  eval "$as_ac_var=yes"
32484else
32485  echo "$as_me: failed program was:" >&5
32486sed 's/^/| /' conftest.$ac_ext >&5
32487
32488	eval "$as_ac_var=no"
32489fi
32490
32491rm -f core conftest.err conftest.$ac_objext \
32492      conftest$ac_exeext conftest.$ac_ext
32493fi
32494ac_res=`eval echo '${'$as_ac_var'}'`
32495	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32496echo "${ECHO_T}$ac_res" >&6; }
32497if test `eval echo '${'$as_ac_var'}'` = yes; then
32498  cat >>confdefs.h <<_ACEOF
32499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32500_ACEOF
32501
32502fi
32503done
32504
32505
32506
32507
32508
32509for ac_func in setjmp longjmp sigsetjmp siglongjmp
32510do
32511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32512{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32514if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32515  echo $ECHO_N "(cached) $ECHO_C" >&6
32516else
32517  cat >conftest.$ac_ext <<_ACEOF
32518/* confdefs.h.  */
32519_ACEOF
32520cat confdefs.h >>conftest.$ac_ext
32521cat >>conftest.$ac_ext <<_ACEOF
32522/* end confdefs.h.  */
32523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32524   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32525#define $ac_func innocuous_$ac_func
32526
32527/* System header to define __stub macros and hopefully few prototypes,
32528    which can conflict with char $ac_func (); below.
32529    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32530    <limits.h> exists even on freestanding compilers.  */
32531
32532#ifdef __STDC__
32533# include <limits.h>
32534#else
32535# include <assert.h>
32536#endif
32537
32538#undef $ac_func
32539
32540/* Override any GCC internal prototype to avoid an error.
32541   Use char because int might match the return type of a GCC
32542   builtin and then its argument prototype would still apply.  */
32543#ifdef __cplusplus
32544extern "C"
32545#endif
32546char $ac_func ();
32547/* The GNU C library defines this for functions which it implements
32548    to always fail with ENOSYS.  Some functions are actually named
32549    something starting with __ and the normal name is an alias.  */
32550#if defined __stub_$ac_func || defined __stub___$ac_func
32551choke me
32552#endif
32553
32554int
32555main ()
32556{
32557return $ac_func ();
32558  ;
32559  return 0;
32560}
32561_ACEOF
32562rm -f conftest.$ac_objext conftest$ac_exeext
32563if { (ac_try="$ac_link"
32564case "(($ac_try" in
32565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566  *) ac_try_echo=$ac_try;;
32567esac
32568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569  (eval "$ac_link") 2>conftest.er1
32570  ac_status=$?
32571  grep -v '^ *+' conftest.er1 >conftest.err
32572  rm -f conftest.er1
32573  cat conftest.err >&5
32574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575  (exit $ac_status); } &&
32576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32577  { (case "(($ac_try" in
32578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579  *) ac_try_echo=$ac_try;;
32580esac
32581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582  (eval "$ac_try") 2>&5
32583  ac_status=$?
32584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585  (exit $ac_status); }; } &&
32586	 { ac_try='test -s conftest$ac_exeext'
32587  { (case "(($ac_try" in
32588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589  *) ac_try_echo=$ac_try;;
32590esac
32591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592  (eval "$ac_try") 2>&5
32593  ac_status=$?
32594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595  (exit $ac_status); }; }; then
32596  eval "$as_ac_var=yes"
32597else
32598  echo "$as_me: failed program was:" >&5
32599sed 's/^/| /' conftest.$ac_ext >&5
32600
32601	eval "$as_ac_var=no"
32602fi
32603
32604rm -f core conftest.err conftest.$ac_objext \
32605      conftest$ac_exeext conftest.$ac_ext
32606fi
32607ac_res=`eval echo '${'$as_ac_var'}'`
32608	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32609echo "${ECHO_T}$ac_res" >&6; }
32610if test `eval echo '${'$as_ac_var'}'` = yes; then
32611  cat >>confdefs.h <<_ACEOF
32612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32613_ACEOF
32614
32615fi
32616done
32617
32618{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32619echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32620if test "${llvm_cv_c_printf_a+set}" = set; then
32621  echo $ECHO_N "(cached) $ECHO_C" >&6
32622else
32623  ac_ext=c
32624ac_cpp='$CPP $CPPFLAGS'
32625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_c_compiler_gnu
32628
32629 if test "$cross_compiling" = yes; then
32630  llvmac_cv_c_printf_a=no
32631else
32632  cat >conftest.$ac_ext <<_ACEOF
32633
32634  /* confdefs.h.  */
32635_ACEOF
32636cat confdefs.h >>conftest.$ac_ext
32637cat >>conftest.$ac_ext <<_ACEOF
32638/* end confdefs.h.  */
32639
32640#include <stdio.h>
32641#include <stdlib.h>
32642
32643int
32644main ()
32645{
32646
32647volatile double A, B;
32648char Buffer[100];
32649A = 1;
32650A /= 10.0;
32651sprintf(Buffer, "%a", A);
32652B = atof(Buffer);
32653if (A != B)
32654  return (1);
32655if (A != 0x1.999999999999ap-4)
32656  return (1);
32657return (0);
32658  ;
32659  return 0;
32660}
32661_ACEOF
32662rm -f conftest$ac_exeext
32663if { (ac_try="$ac_link"
32664case "(($ac_try" in
32665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666  *) ac_try_echo=$ac_try;;
32667esac
32668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32669  (eval "$ac_link") 2>&5
32670  ac_status=$?
32671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32673  { (case "(($ac_try" in
32674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675  *) ac_try_echo=$ac_try;;
32676esac
32677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678  (eval "$ac_try") 2>&5
32679  ac_status=$?
32680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681  (exit $ac_status); }; }; then
32682  llvm_cv_c_printf_a=yes
32683else
32684  echo "$as_me: program exited with status $ac_status" >&5
32685echo "$as_me: failed program was:" >&5
32686sed 's/^/| /' conftest.$ac_ext >&5
32687
32688( exit $ac_status )
32689llvmac_cv_c_printf_a=no
32690fi
32691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32692fi
32693
32694
32695 ac_ext=c
32696ac_cpp='$CPP $CPPFLAGS'
32697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699ac_compiler_gnu=$ac_cv_c_compiler_gnu
32700
32701fi
32702{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32703echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32704 if test "$llvm_cv_c_printf_a" = "yes"; then
32705
32706cat >>confdefs.h <<\_ACEOF
32707#define HAVE_PRINTF_A 1
32708_ACEOF
32709
32710 fi
32711
32712# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32713# for constant arguments.  Useless!
32714{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32715echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32716if test "${ac_cv_working_alloca_h+set}" = set; then
32717  echo $ECHO_N "(cached) $ECHO_C" >&6
32718else
32719  cat >conftest.$ac_ext <<_ACEOF
32720/* confdefs.h.  */
32721_ACEOF
32722cat confdefs.h >>conftest.$ac_ext
32723cat >>conftest.$ac_ext <<_ACEOF
32724/* end confdefs.h.  */
32725#include <alloca.h>
32726int
32727main ()
32728{
32729char *p = (char *) alloca (2 * sizeof (int));
32730			  if (p) return 0;
32731  ;
32732  return 0;
32733}
32734_ACEOF
32735rm -f conftest.$ac_objext conftest$ac_exeext
32736if { (ac_try="$ac_link"
32737case "(($ac_try" in
32738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739  *) ac_try_echo=$ac_try;;
32740esac
32741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742  (eval "$ac_link") 2>conftest.er1
32743  ac_status=$?
32744  grep -v '^ *+' conftest.er1 >conftest.err
32745  rm -f conftest.er1
32746  cat conftest.err >&5
32747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748  (exit $ac_status); } &&
32749	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32750  { (case "(($ac_try" in
32751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752  *) ac_try_echo=$ac_try;;
32753esac
32754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755  (eval "$ac_try") 2>&5
32756  ac_status=$?
32757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758  (exit $ac_status); }; } &&
32759	 { ac_try='test -s conftest$ac_exeext'
32760  { (case "(($ac_try" in
32761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762  *) ac_try_echo=$ac_try;;
32763esac
32764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765  (eval "$ac_try") 2>&5
32766  ac_status=$?
32767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768  (exit $ac_status); }; }; then
32769  ac_cv_working_alloca_h=yes
32770else
32771  echo "$as_me: failed program was:" >&5
32772sed 's/^/| /' conftest.$ac_ext >&5
32773
32774	ac_cv_working_alloca_h=no
32775fi
32776
32777rm -f core conftest.err conftest.$ac_objext \
32778      conftest$ac_exeext conftest.$ac_ext
32779fi
32780{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32781echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32782if test $ac_cv_working_alloca_h = yes; then
32783
32784cat >>confdefs.h <<\_ACEOF
32785#define HAVE_ALLOCA_H 1
32786_ACEOF
32787
32788fi
32789
32790{ echo "$as_me:$LINENO: checking for alloca" >&5
32791echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32792if test "${ac_cv_func_alloca_works+set}" = set; then
32793  echo $ECHO_N "(cached) $ECHO_C" >&6
32794else
32795  cat >conftest.$ac_ext <<_ACEOF
32796/* confdefs.h.  */
32797_ACEOF
32798cat confdefs.h >>conftest.$ac_ext
32799cat >>conftest.$ac_ext <<_ACEOF
32800/* end confdefs.h.  */
32801#ifdef __GNUC__
32802# define alloca __builtin_alloca
32803#else
32804# ifdef _MSC_VER
32805#  include <malloc.h>
32806#  define alloca _alloca
32807# else
32808#  if HAVE_ALLOCA_H
32809#   include <alloca.h>
32810#  else
32811#   ifdef _AIX
32812 #pragma alloca
32813#   else
32814#    ifndef alloca /* predefined by HP cc +Olibcalls */
32815char *alloca ();
32816#    endif
32817#   endif
32818#  endif
32819# endif
32820#endif
32821
32822int
32823main ()
32824{
32825char *p = (char *) alloca (1);
32826				    if (p) return 0;
32827  ;
32828  return 0;
32829}
32830_ACEOF
32831rm -f conftest.$ac_objext conftest$ac_exeext
32832if { (ac_try="$ac_link"
32833case "(($ac_try" in
32834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835  *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838  (eval "$ac_link") 2>conftest.er1
32839  ac_status=$?
32840  grep -v '^ *+' conftest.er1 >conftest.err
32841  rm -f conftest.er1
32842  cat conftest.err >&5
32843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844  (exit $ac_status); } &&
32845	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32846  { (case "(($ac_try" in
32847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848  *) ac_try_echo=$ac_try;;
32849esac
32850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851  (eval "$ac_try") 2>&5
32852  ac_status=$?
32853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854  (exit $ac_status); }; } &&
32855	 { ac_try='test -s conftest$ac_exeext'
32856  { (case "(($ac_try" in
32857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858  *) ac_try_echo=$ac_try;;
32859esac
32860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861  (eval "$ac_try") 2>&5
32862  ac_status=$?
32863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864  (exit $ac_status); }; }; then
32865  ac_cv_func_alloca_works=yes
32866else
32867  echo "$as_me: failed program was:" >&5
32868sed 's/^/| /' conftest.$ac_ext >&5
32869
32870	ac_cv_func_alloca_works=no
32871fi
32872
32873rm -f core conftest.err conftest.$ac_objext \
32874      conftest$ac_exeext conftest.$ac_ext
32875fi
32876{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32877echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32878
32879if test $ac_cv_func_alloca_works = yes; then
32880
32881cat >>confdefs.h <<\_ACEOF
32882#define HAVE_ALLOCA 1
32883_ACEOF
32884
32885else
32886  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32887# that cause trouble.  Some versions do not even contain alloca or
32888# contain a buggy version.  If you still want to use their alloca,
32889# use ar to extract alloca.o from them instead of compiling alloca.c.
32890
32891ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32892
32893cat >>confdefs.h <<\_ACEOF
32894#define C_ALLOCA 1
32895_ACEOF
32896
32897
32898{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32899echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32900if test "${ac_cv_os_cray+set}" = set; then
32901  echo $ECHO_N "(cached) $ECHO_C" >&6
32902else
32903  cat >conftest.$ac_ext <<_ACEOF
32904/* confdefs.h.  */
32905_ACEOF
32906cat confdefs.h >>conftest.$ac_ext
32907cat >>conftest.$ac_ext <<_ACEOF
32908/* end confdefs.h.  */
32909#if defined CRAY && ! defined CRAY2
32910webecray
32911#else
32912wenotbecray
32913#endif
32914
32915_ACEOF
32916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32917  $EGREP "webecray" >/dev/null 2>&1; then
32918  ac_cv_os_cray=yes
32919else
32920  ac_cv_os_cray=no
32921fi
32922rm -f conftest*
32923
32924fi
32925{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32926echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32927if test $ac_cv_os_cray = yes; then
32928  for ac_func in _getb67 GETB67 getb67; do
32929    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32933  echo $ECHO_N "(cached) $ECHO_C" >&6
32934else
32935  cat >conftest.$ac_ext <<_ACEOF
32936/* confdefs.h.  */
32937_ACEOF
32938cat confdefs.h >>conftest.$ac_ext
32939cat >>conftest.$ac_ext <<_ACEOF
32940/* end confdefs.h.  */
32941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32943#define $ac_func innocuous_$ac_func
32944
32945/* System header to define __stub macros and hopefully few prototypes,
32946    which can conflict with char $ac_func (); below.
32947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32948    <limits.h> exists even on freestanding compilers.  */
32949
32950#ifdef __STDC__
32951# include <limits.h>
32952#else
32953# include <assert.h>
32954#endif
32955
32956#undef $ac_func
32957
32958/* Override any GCC internal prototype to avoid an error.
32959   Use char because int might match the return type of a GCC
32960   builtin and then its argument prototype would still apply.  */
32961#ifdef __cplusplus
32962extern "C"
32963#endif
32964char $ac_func ();
32965/* The GNU C library defines this for functions which it implements
32966    to always fail with ENOSYS.  Some functions are actually named
32967    something starting with __ and the normal name is an alias.  */
32968#if defined __stub_$ac_func || defined __stub___$ac_func
32969choke me
32970#endif
32971
32972int
32973main ()
32974{
32975return $ac_func ();
32976  ;
32977  return 0;
32978}
32979_ACEOF
32980rm -f conftest.$ac_objext conftest$ac_exeext
32981if { (ac_try="$ac_link"
32982case "(($ac_try" in
32983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984  *) ac_try_echo=$ac_try;;
32985esac
32986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987  (eval "$ac_link") 2>conftest.er1
32988  ac_status=$?
32989  grep -v '^ *+' conftest.er1 >conftest.err
32990  rm -f conftest.er1
32991  cat conftest.err >&5
32992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993  (exit $ac_status); } &&
32994	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32995  { (case "(($ac_try" in
32996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997  *) ac_try_echo=$ac_try;;
32998esac
32999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000  (eval "$ac_try") 2>&5
33001  ac_status=$?
33002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003  (exit $ac_status); }; } &&
33004	 { ac_try='test -s conftest$ac_exeext'
33005  { (case "(($ac_try" in
33006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007  *) ac_try_echo=$ac_try;;
33008esac
33009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010  (eval "$ac_try") 2>&5
33011  ac_status=$?
33012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013  (exit $ac_status); }; }; then
33014  eval "$as_ac_var=yes"
33015else
33016  echo "$as_me: failed program was:" >&5
33017sed 's/^/| /' conftest.$ac_ext >&5
33018
33019	eval "$as_ac_var=no"
33020fi
33021
33022rm -f core conftest.err conftest.$ac_objext \
33023      conftest$ac_exeext conftest.$ac_ext
33024fi
33025ac_res=`eval echo '${'$as_ac_var'}'`
33026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33027echo "${ECHO_T}$ac_res" >&6; }
33028if test `eval echo '${'$as_ac_var'}'` = yes; then
33029
33030cat >>confdefs.h <<_ACEOF
33031#define CRAY_STACKSEG_END $ac_func
33032_ACEOF
33033
33034    break
33035fi
33036
33037  done
33038fi
33039
33040{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33041echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33042if test "${ac_cv_c_stack_direction+set}" = set; then
33043  echo $ECHO_N "(cached) $ECHO_C" >&6
33044else
33045  if test "$cross_compiling" = yes; then
33046  ac_cv_c_stack_direction=0
33047else
33048  cat >conftest.$ac_ext <<_ACEOF
33049/* confdefs.h.  */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h.  */
33054$ac_includes_default
33055int
33056find_stack_direction ()
33057{
33058  static char *addr = 0;
33059  auto char dummy;
33060  if (addr == 0)
33061    {
33062      addr = &dummy;
33063      return find_stack_direction ();
33064    }
33065  else
33066    return (&dummy > addr) ? 1 : -1;
33067}
33068
33069int
33070main ()
33071{
33072  return find_stack_direction () < 0;
33073}
33074_ACEOF
33075rm -f conftest$ac_exeext
33076if { (ac_try="$ac_link"
33077case "(($ac_try" in
33078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079  *) ac_try_echo=$ac_try;;
33080esac
33081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082  (eval "$ac_link") 2>&5
33083  ac_status=$?
33084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33086  { (case "(($ac_try" in
33087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33088  *) ac_try_echo=$ac_try;;
33089esac
33090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33091  (eval "$ac_try") 2>&5
33092  ac_status=$?
33093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094  (exit $ac_status); }; }; then
33095  ac_cv_c_stack_direction=1
33096else
33097  echo "$as_me: program exited with status $ac_status" >&5
33098echo "$as_me: failed program was:" >&5
33099sed 's/^/| /' conftest.$ac_ext >&5
33100
33101( exit $ac_status )
33102ac_cv_c_stack_direction=-1
33103fi
33104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33105fi
33106
33107
33108fi
33109{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33110echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33111
33112cat >>confdefs.h <<_ACEOF
33113#define STACK_DIRECTION $ac_cv_c_stack_direction
33114_ACEOF
33115
33116
33117fi
33118
33119
33120{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33121echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33122if test "${ac_cv_func_rand48+set}" = set; then
33123  echo $ECHO_N "(cached) $ECHO_C" >&6
33124else
33125  ac_ext=cpp
33126ac_cpp='$CXXCPP $CPPFLAGS'
33127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33130
33131   cat >conftest.$ac_ext <<_ACEOF
33132/* confdefs.h.  */
33133_ACEOF
33134cat confdefs.h >>conftest.$ac_ext
33135cat >>conftest.$ac_ext <<_ACEOF
33136/* end confdefs.h.  */
33137#include <stdlib.h>
33138int
33139main ()
33140{
33141srand48(0);lrand48();drand48();
33142  ;
33143  return 0;
33144}
33145_ACEOF
33146rm -f conftest.$ac_objext
33147if { (ac_try="$ac_compile"
33148case "(($ac_try" in
33149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150  *) ac_try_echo=$ac_try;;
33151esac
33152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153  (eval "$ac_compile") 2>conftest.er1
33154  ac_status=$?
33155  grep -v '^ *+' conftest.er1 >conftest.err
33156  rm -f conftest.er1
33157  cat conftest.err >&5
33158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159  (exit $ac_status); } &&
33160	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33161  { (case "(($ac_try" in
33162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33163  *) ac_try_echo=$ac_try;;
33164esac
33165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33166  (eval "$ac_try") 2>&5
33167  ac_status=$?
33168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169  (exit $ac_status); }; } &&
33170	 { ac_try='test -s conftest.$ac_objext'
33171  { (case "(($ac_try" in
33172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173  *) ac_try_echo=$ac_try;;
33174esac
33175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176  (eval "$ac_try") 2>&5
33177  ac_status=$?
33178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179  (exit $ac_status); }; }; then
33180  ac_cv_func_rand48=yes
33181else
33182  echo "$as_me: failed program was:" >&5
33183sed 's/^/| /' conftest.$ac_ext >&5
33184
33185	ac_cv_func_rand48=no
33186fi
33187
33188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33189  ac_ext=c
33190ac_cpp='$CPP $CPPFLAGS'
33191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193ac_compiler_gnu=$ac_cv_c_compiler_gnu
33194
33195fi
33196{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33197echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33198
33199if test "$ac_cv_func_rand48" = "yes" ; then
33200
33201cat >>confdefs.h <<\_ACEOF
33202#define HAVE_RAND48 1
33203_ACEOF
33204
33205fi
33206
33207
33208{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33209echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33210if test "${ac_cv_cxx_namespaces+set}" = set; then
33211  echo $ECHO_N "(cached) $ECHO_C" >&6
33212else
33213  ac_ext=cpp
33214ac_cpp='$CXXCPP $CPPFLAGS'
33215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33218
33219 cat >conftest.$ac_ext <<_ACEOF
33220/* confdefs.h.  */
33221_ACEOF
33222cat confdefs.h >>conftest.$ac_ext
33223cat >>conftest.$ac_ext <<_ACEOF
33224/* end confdefs.h.  */
33225namespace Outer { namespace Inner { int i = 0; }}
33226int
33227main ()
33228{
33229using namespace Outer::Inner; return i;
33230  ;
33231  return 0;
33232}
33233_ACEOF
33234rm -f conftest.$ac_objext
33235if { (ac_try="$ac_compile"
33236case "(($ac_try" in
33237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33238  *) ac_try_echo=$ac_try;;
33239esac
33240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33241  (eval "$ac_compile") 2>conftest.er1
33242  ac_status=$?
33243  grep -v '^ *+' conftest.er1 >conftest.err
33244  rm -f conftest.er1
33245  cat conftest.err >&5
33246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247  (exit $ac_status); } &&
33248	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33249  { (case "(($ac_try" in
33250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251  *) ac_try_echo=$ac_try;;
33252esac
33253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254  (eval "$ac_try") 2>&5
33255  ac_status=$?
33256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257  (exit $ac_status); }; } &&
33258	 { ac_try='test -s conftest.$ac_objext'
33259  { (case "(($ac_try" in
33260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261  *) ac_try_echo=$ac_try;;
33262esac
33263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264  (eval "$ac_try") 2>&5
33265  ac_status=$?
33266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267  (exit $ac_status); }; }; then
33268  ac_cv_cxx_namespaces=yes
33269else
33270  echo "$as_me: failed program was:" >&5
33271sed 's/^/| /' conftest.$ac_ext >&5
33272
33273	ac_cv_cxx_namespaces=no
33274fi
33275
33276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33277 ac_ext=c
33278ac_cpp='$CPP $CPPFLAGS'
33279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33281ac_compiler_gnu=$ac_cv_c_compiler_gnu
33282
33283
33284fi
33285{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33286echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33287if test "$ac_cv_cxx_namespaces" = yes; then
33288
33289cat >>confdefs.h <<\_ACEOF
33290#define HAVE_NAMESPACES
33291_ACEOF
33292
33293fi
33294
33295{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33296echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33297if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33298  echo $ECHO_N "(cached) $ECHO_C" >&6
33299else
33300
33301  ac_ext=cpp
33302ac_cpp='$CXXCPP $CPPFLAGS'
33303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33306
33307  cat >conftest.$ac_ext <<_ACEOF
33308/* confdefs.h.  */
33309_ACEOF
33310cat confdefs.h >>conftest.$ac_ext
33311cat >>conftest.$ac_ext <<_ACEOF
33312/* end confdefs.h.  */
33313#include <iterator>
33314#ifdef HAVE_NAMESPACES
33315using namespace std;
33316#endif
33317int
33318main ()
33319{
33320iterator<int,int,int> t; return 0;
33321  ;
33322  return 0;
33323}
33324_ACEOF
33325rm -f conftest.$ac_objext
33326if { (ac_try="$ac_compile"
33327case "(($ac_try" in
33328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329  *) ac_try_echo=$ac_try;;
33330esac
33331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332  (eval "$ac_compile") 2>conftest.er1
33333  ac_status=$?
33334  grep -v '^ *+' conftest.er1 >conftest.err
33335  rm -f conftest.er1
33336  cat conftest.err >&5
33337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338  (exit $ac_status); } &&
33339	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33340  { (case "(($ac_try" in
33341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342  *) ac_try_echo=$ac_try;;
33343esac
33344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345  (eval "$ac_try") 2>&5
33346  ac_status=$?
33347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348  (exit $ac_status); }; } &&
33349	 { ac_try='test -s conftest.$ac_objext'
33350  { (case "(($ac_try" in
33351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352  *) ac_try_echo=$ac_try;;
33353esac
33354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355  (eval "$ac_try") 2>&5
33356  ac_status=$?
33357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358  (exit $ac_status); }; }; then
33359  ac_cv_cxx_have_std_iterator=yes
33360else
33361  echo "$as_me: failed program was:" >&5
33362sed 's/^/| /' conftest.$ac_ext >&5
33363
33364	ac_cv_cxx_have_std_iterator=no
33365fi
33366
33367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33368  ac_ext=c
33369ac_cpp='$CPP $CPPFLAGS'
33370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33372ac_compiler_gnu=$ac_cv_c_compiler_gnu
33373
33374
33375fi
33376{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33377echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33378if test "$ac_cv_cxx_have_std_iterator" = yes
33379then
33380
33381cat >>confdefs.h <<\_ACEOF
33382#define HAVE_STD_ITERATOR 1
33383_ACEOF
33384
33385else
33386
33387cat >>confdefs.h <<\_ACEOF
33388#define HAVE_STD_ITERATOR 0
33389_ACEOF
33390
33391fi
33392
33393{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33394echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33395if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33396  echo $ECHO_N "(cached) $ECHO_C" >&6
33397else
33398
33399  ac_ext=cpp
33400ac_cpp='$CXXCPP $CPPFLAGS'
33401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33404
33405  cat >conftest.$ac_ext <<_ACEOF
33406/* confdefs.h.  */
33407_ACEOF
33408cat confdefs.h >>conftest.$ac_ext
33409cat >>conftest.$ac_ext <<_ACEOF
33410/* end confdefs.h.  */
33411#include <iterator>
33412#ifdef HAVE_NAMESPACES
33413using namespace std;
33414#endif
33415int
33416main ()
33417{
33418bidirectional_iterator<int,int> t; return 0;
33419  ;
33420  return 0;
33421}
33422_ACEOF
33423rm -f conftest.$ac_objext
33424if { (ac_try="$ac_compile"
33425case "(($ac_try" in
33426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427  *) ac_try_echo=$ac_try;;
33428esac
33429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430  (eval "$ac_compile") 2>conftest.er1
33431  ac_status=$?
33432  grep -v '^ *+' conftest.er1 >conftest.err
33433  rm -f conftest.er1
33434  cat conftest.err >&5
33435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436  (exit $ac_status); } &&
33437	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33438  { (case "(($ac_try" in
33439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440  *) ac_try_echo=$ac_try;;
33441esac
33442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443  (eval "$ac_try") 2>&5
33444  ac_status=$?
33445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446  (exit $ac_status); }; } &&
33447	 { ac_try='test -s conftest.$ac_objext'
33448  { (case "(($ac_try" in
33449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450  *) ac_try_echo=$ac_try;;
33451esac
33452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453  (eval "$ac_try") 2>&5
33454  ac_status=$?
33455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456  (exit $ac_status); }; }; then
33457  ac_cv_cxx_have_bi_iterator=yes
33458else
33459  echo "$as_me: failed program was:" >&5
33460sed 's/^/| /' conftest.$ac_ext >&5
33461
33462	ac_cv_cxx_have_bi_iterator=no
33463fi
33464
33465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33466  ac_ext=c
33467ac_cpp='$CPP $CPPFLAGS'
33468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470ac_compiler_gnu=$ac_cv_c_compiler_gnu
33471
33472
33473fi
33474{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33475echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33476if test "$ac_cv_cxx_have_bi_iterator" = yes
33477then
33478
33479cat >>confdefs.h <<\_ACEOF
33480#define HAVE_BI_ITERATOR 1
33481_ACEOF
33482
33483else
33484
33485cat >>confdefs.h <<\_ACEOF
33486#define HAVE_BI_ITERATOR 0
33487_ACEOF
33488
33489fi
33490
33491{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33492echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33493if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33494  echo $ECHO_N "(cached) $ECHO_C" >&6
33495else
33496
33497  ac_ext=cpp
33498ac_cpp='$CXXCPP $CPPFLAGS'
33499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33502
33503  cat >conftest.$ac_ext <<_ACEOF
33504/* confdefs.h.  */
33505_ACEOF
33506cat confdefs.h >>conftest.$ac_ext
33507cat >>conftest.$ac_ext <<_ACEOF
33508/* end confdefs.h.  */
33509#include <iterator>
33510#ifdef HAVE_NAMESPACES
33511using namespace std;
33512#endif
33513int
33514main ()
33515{
33516forward_iterator<int,int> t; return 0;
33517  ;
33518  return 0;
33519}
33520_ACEOF
33521rm -f conftest.$ac_objext
33522if { (ac_try="$ac_compile"
33523case "(($ac_try" in
33524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525  *) ac_try_echo=$ac_try;;
33526esac
33527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528  (eval "$ac_compile") 2>conftest.er1
33529  ac_status=$?
33530  grep -v '^ *+' conftest.er1 >conftest.err
33531  rm -f conftest.er1
33532  cat conftest.err >&5
33533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534  (exit $ac_status); } &&
33535	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536  { (case "(($ac_try" in
33537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538  *) ac_try_echo=$ac_try;;
33539esac
33540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541  (eval "$ac_try") 2>&5
33542  ac_status=$?
33543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544  (exit $ac_status); }; } &&
33545	 { ac_try='test -s conftest.$ac_objext'
33546  { (case "(($ac_try" in
33547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548  *) ac_try_echo=$ac_try;;
33549esac
33550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551  (eval "$ac_try") 2>&5
33552  ac_status=$?
33553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554  (exit $ac_status); }; }; then
33555  ac_cv_cxx_have_fwd_iterator=yes
33556else
33557  echo "$as_me: failed program was:" >&5
33558sed 's/^/| /' conftest.$ac_ext >&5
33559
33560	ac_cv_cxx_have_fwd_iterator=no
33561fi
33562
33563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33564  ac_ext=c
33565ac_cpp='$CPP $CPPFLAGS'
33566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568ac_compiler_gnu=$ac_cv_c_compiler_gnu
33569
33570
33571fi
33572{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33573echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33574if test "$ac_cv_cxx_have_fwd_iterator" = yes
33575then
33576
33577cat >>confdefs.h <<\_ACEOF
33578#define HAVE_FWD_ITERATOR 1
33579_ACEOF
33580
33581else
33582
33583cat >>confdefs.h <<\_ACEOF
33584#define HAVE_FWD_ITERATOR 0
33585_ACEOF
33586
33587fi
33588
33589
33590{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33591echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33592if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33593  echo $ECHO_N "(cached) $ECHO_C" >&6
33594else
33595  ac_ext=cpp
33596ac_cpp='$CXXCPP $CPPFLAGS'
33597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33600
33601   cat >conftest.$ac_ext <<_ACEOF
33602/* confdefs.h.  */
33603_ACEOF
33604cat confdefs.h >>conftest.$ac_ext
33605cat >>conftest.$ac_ext <<_ACEOF
33606/* end confdefs.h.  */
33607#include <math.h>
33608int
33609main ()
33610{
33611float f; isnan(f);
33612  ;
33613  return 0;
33614}
33615_ACEOF
33616rm -f conftest.$ac_objext
33617if { (ac_try="$ac_compile"
33618case "(($ac_try" in
33619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620  *) ac_try_echo=$ac_try;;
33621esac
33622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623  (eval "$ac_compile") 2>conftest.er1
33624  ac_status=$?
33625  grep -v '^ *+' conftest.er1 >conftest.err
33626  rm -f conftest.er1
33627  cat conftest.err >&5
33628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629  (exit $ac_status); } &&
33630	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33631  { (case "(($ac_try" in
33632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633  *) ac_try_echo=$ac_try;;
33634esac
33635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636  (eval "$ac_try") 2>&5
33637  ac_status=$?
33638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639  (exit $ac_status); }; } &&
33640	 { ac_try='test -s conftest.$ac_objext'
33641  { (case "(($ac_try" in
33642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643  *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646  (eval "$ac_try") 2>&5
33647  ac_status=$?
33648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649  (exit $ac_status); }; }; then
33650  ac_cv_func_isnan_in_math_h=yes
33651else
33652  echo "$as_me: failed program was:" >&5
33653sed 's/^/| /' conftest.$ac_ext >&5
33654
33655	ac_cv_func_isnan_in_math_h=no
33656fi
33657
33658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33659  ac_ext=c
33660ac_cpp='$CPP $CPPFLAGS'
33661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33663ac_compiler_gnu=$ac_cv_c_compiler_gnu
33664
33665fi
33666{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33667echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33668
33669
33670if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33671
33672cat >>confdefs.h <<\_ACEOF
33673#define HAVE_ISNAN_IN_MATH_H 1
33674_ACEOF
33675
33676fi
33677
33678{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33679echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33680if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33681  echo $ECHO_N "(cached) $ECHO_C" >&6
33682else
33683  ac_ext=cpp
33684ac_cpp='$CXXCPP $CPPFLAGS'
33685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33688
33689   cat >conftest.$ac_ext <<_ACEOF
33690/* confdefs.h.  */
33691_ACEOF
33692cat confdefs.h >>conftest.$ac_ext
33693cat >>conftest.$ac_ext <<_ACEOF
33694/* end confdefs.h.  */
33695#include <cmath>
33696int
33697main ()
33698{
33699float f; isnan(f);
33700  ;
33701  return 0;
33702}
33703_ACEOF
33704rm -f conftest.$ac_objext
33705if { (ac_try="$ac_compile"
33706case "(($ac_try" in
33707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708  *) ac_try_echo=$ac_try;;
33709esac
33710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711  (eval "$ac_compile") 2>conftest.er1
33712  ac_status=$?
33713  grep -v '^ *+' conftest.er1 >conftest.err
33714  rm -f conftest.er1
33715  cat conftest.err >&5
33716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717  (exit $ac_status); } &&
33718	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33719  { (case "(($ac_try" in
33720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721  *) ac_try_echo=$ac_try;;
33722esac
33723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724  (eval "$ac_try") 2>&5
33725  ac_status=$?
33726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727  (exit $ac_status); }; } &&
33728	 { ac_try='test -s conftest.$ac_objext'
33729  { (case "(($ac_try" in
33730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731  *) ac_try_echo=$ac_try;;
33732esac
33733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734  (eval "$ac_try") 2>&5
33735  ac_status=$?
33736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737  (exit $ac_status); }; }; then
33738  ac_cv_func_isnan_in_cmath=yes
33739else
33740  echo "$as_me: failed program was:" >&5
33741sed 's/^/| /' conftest.$ac_ext >&5
33742
33743	ac_cv_func_isnan_in_cmath=no
33744fi
33745
33746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747  ac_ext=c
33748ac_cpp='$CPP $CPPFLAGS'
33749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33751ac_compiler_gnu=$ac_cv_c_compiler_gnu
33752
33753fi
33754{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33755echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33756
33757if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33758
33759cat >>confdefs.h <<\_ACEOF
33760#define HAVE_ISNAN_IN_CMATH 1
33761_ACEOF
33762
33763fi
33764
33765{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33766echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33767if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33768  echo $ECHO_N "(cached) $ECHO_C" >&6
33769else
33770  ac_ext=cpp
33771ac_cpp='$CXXCPP $CPPFLAGS'
33772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33775
33776   cat >conftest.$ac_ext <<_ACEOF
33777/* confdefs.h.  */
33778_ACEOF
33779cat confdefs.h >>conftest.$ac_ext
33780cat >>conftest.$ac_ext <<_ACEOF
33781/* end confdefs.h.  */
33782#include <cmath>
33783int
33784main ()
33785{
33786float f; std::isnan(f);
33787  ;
33788  return 0;
33789}
33790_ACEOF
33791rm -f conftest.$ac_objext
33792if { (ac_try="$ac_compile"
33793case "(($ac_try" in
33794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795  *) ac_try_echo=$ac_try;;
33796esac
33797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798  (eval "$ac_compile") 2>conftest.er1
33799  ac_status=$?
33800  grep -v '^ *+' conftest.er1 >conftest.err
33801  rm -f conftest.er1
33802  cat conftest.err >&5
33803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804  (exit $ac_status); } &&
33805	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33806  { (case "(($ac_try" in
33807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808  *) ac_try_echo=$ac_try;;
33809esac
33810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811  (eval "$ac_try") 2>&5
33812  ac_status=$?
33813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814  (exit $ac_status); }; } &&
33815	 { ac_try='test -s conftest.$ac_objext'
33816  { (case "(($ac_try" in
33817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818  *) ac_try_echo=$ac_try;;
33819esac
33820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821  (eval "$ac_try") 2>&5
33822  ac_status=$?
33823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824  (exit $ac_status); }; }; then
33825  ac_cv_func_std_isnan_in_cmath=yes
33826else
33827  echo "$as_me: failed program was:" >&5
33828sed 's/^/| /' conftest.$ac_ext >&5
33829
33830	ac_cv_func_std_isnan_in_cmath=no
33831fi
33832
33833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33834  ac_ext=c
33835ac_cpp='$CPP $CPPFLAGS'
33836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838ac_compiler_gnu=$ac_cv_c_compiler_gnu
33839
33840fi
33841{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33842echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33843
33844if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33845
33846cat >>confdefs.h <<\_ACEOF
33847#define HAVE_STD_ISNAN_IN_CMATH 1
33848_ACEOF
33849
33850fi
33851
33852
33853{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33854echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33855if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33856  echo $ECHO_N "(cached) $ECHO_C" >&6
33857else
33858  ac_ext=cpp
33859ac_cpp='$CXXCPP $CPPFLAGS'
33860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33863
33864   cat >conftest.$ac_ext <<_ACEOF
33865/* confdefs.h.  */
33866_ACEOF
33867cat confdefs.h >>conftest.$ac_ext
33868cat >>conftest.$ac_ext <<_ACEOF
33869/* end confdefs.h.  */
33870#include <math.h>
33871int
33872main ()
33873{
33874float f; isinf(f);
33875  ;
33876  return 0;
33877}
33878_ACEOF
33879rm -f conftest.$ac_objext
33880if { (ac_try="$ac_compile"
33881case "(($ac_try" in
33882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883  *) ac_try_echo=$ac_try;;
33884esac
33885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886  (eval "$ac_compile") 2>conftest.er1
33887  ac_status=$?
33888  grep -v '^ *+' conftest.er1 >conftest.err
33889  rm -f conftest.er1
33890  cat conftest.err >&5
33891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892  (exit $ac_status); } &&
33893	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33894  { (case "(($ac_try" in
33895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33896  *) ac_try_echo=$ac_try;;
33897esac
33898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33899  (eval "$ac_try") 2>&5
33900  ac_status=$?
33901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902  (exit $ac_status); }; } &&
33903	 { ac_try='test -s conftest.$ac_objext'
33904  { (case "(($ac_try" in
33905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906  *) ac_try_echo=$ac_try;;
33907esac
33908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909  (eval "$ac_try") 2>&5
33910  ac_status=$?
33911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912  (exit $ac_status); }; }; then
33913  ac_cv_func_isinf_in_math_h=yes
33914else
33915  echo "$as_me: failed program was:" >&5
33916sed 's/^/| /' conftest.$ac_ext >&5
33917
33918	ac_cv_func_isinf_in_math_h=no
33919fi
33920
33921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33922  ac_ext=c
33923ac_cpp='$CPP $CPPFLAGS'
33924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33926ac_compiler_gnu=$ac_cv_c_compiler_gnu
33927
33928fi
33929{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33930echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33931
33932if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33933
33934cat >>confdefs.h <<\_ACEOF
33935#define HAVE_ISINF_IN_MATH_H 1
33936_ACEOF
33937
33938fi
33939
33940{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33941echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33942if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33943  echo $ECHO_N "(cached) $ECHO_C" >&6
33944else
33945  ac_ext=cpp
33946ac_cpp='$CXXCPP $CPPFLAGS'
33947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33950
33951   cat >conftest.$ac_ext <<_ACEOF
33952/* confdefs.h.  */
33953_ACEOF
33954cat confdefs.h >>conftest.$ac_ext
33955cat >>conftest.$ac_ext <<_ACEOF
33956/* end confdefs.h.  */
33957#include <cmath>
33958int
33959main ()
33960{
33961float f; isinf(f);
33962  ;
33963  return 0;
33964}
33965_ACEOF
33966rm -f conftest.$ac_objext
33967if { (ac_try="$ac_compile"
33968case "(($ac_try" in
33969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970  *) ac_try_echo=$ac_try;;
33971esac
33972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973  (eval "$ac_compile") 2>conftest.er1
33974  ac_status=$?
33975  grep -v '^ *+' conftest.er1 >conftest.err
33976  rm -f conftest.er1
33977  cat conftest.err >&5
33978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979  (exit $ac_status); } &&
33980	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981  { (case "(($ac_try" in
33982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983  *) ac_try_echo=$ac_try;;
33984esac
33985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986  (eval "$ac_try") 2>&5
33987  ac_status=$?
33988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989  (exit $ac_status); }; } &&
33990	 { ac_try='test -s conftest.$ac_objext'
33991  { (case "(($ac_try" in
33992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993  *) ac_try_echo=$ac_try;;
33994esac
33995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996  (eval "$ac_try") 2>&5
33997  ac_status=$?
33998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999  (exit $ac_status); }; }; then
34000  ac_cv_func_isinf_in_cmath=yes
34001else
34002  echo "$as_me: failed program was:" >&5
34003sed 's/^/| /' conftest.$ac_ext >&5
34004
34005	ac_cv_func_isinf_in_cmath=no
34006fi
34007
34008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009  ac_ext=c
34010ac_cpp='$CPP $CPPFLAGS'
34011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34013ac_compiler_gnu=$ac_cv_c_compiler_gnu
34014
34015fi
34016{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34017echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34018
34019if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34020
34021cat >>confdefs.h <<\_ACEOF
34022#define HAVE_ISINF_IN_CMATH 1
34023_ACEOF
34024
34025fi
34026
34027{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34028echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34029if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34030  echo $ECHO_N "(cached) $ECHO_C" >&6
34031else
34032  ac_ext=cpp
34033ac_cpp='$CXXCPP $CPPFLAGS'
34034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34037
34038   cat >conftest.$ac_ext <<_ACEOF
34039/* confdefs.h.  */
34040_ACEOF
34041cat confdefs.h >>conftest.$ac_ext
34042cat >>conftest.$ac_ext <<_ACEOF
34043/* end confdefs.h.  */
34044#include <cmath>
34045int
34046main ()
34047{
34048float f; std::isinf(f)}
34049  ;
34050  return 0;
34051}
34052_ACEOF
34053rm -f conftest.$ac_objext
34054if { (ac_try="$ac_compile"
34055case "(($ac_try" in
34056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057  *) ac_try_echo=$ac_try;;
34058esac
34059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060  (eval "$ac_compile") 2>conftest.er1
34061  ac_status=$?
34062  grep -v '^ *+' conftest.er1 >conftest.err
34063  rm -f conftest.er1
34064  cat conftest.err >&5
34065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066  (exit $ac_status); } &&
34067	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34068  { (case "(($ac_try" in
34069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34070  *) ac_try_echo=$ac_try;;
34071esac
34072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34073  (eval "$ac_try") 2>&5
34074  ac_status=$?
34075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076  (exit $ac_status); }; } &&
34077	 { ac_try='test -s conftest.$ac_objext'
34078  { (case "(($ac_try" in
34079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080  *) ac_try_echo=$ac_try;;
34081esac
34082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083  (eval "$ac_try") 2>&5
34084  ac_status=$?
34085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086  (exit $ac_status); }; }; then
34087  ac_cv_func_std_isinf_in_cmath=yes
34088else
34089  echo "$as_me: failed program was:" >&5
34090sed 's/^/| /' conftest.$ac_ext >&5
34091
34092	ac_cv_func_std_isinf_in_cmath=no
34093fi
34094
34095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096  ac_ext=c
34097ac_cpp='$CPP $CPPFLAGS'
34098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100ac_compiler_gnu=$ac_cv_c_compiler_gnu
34101
34102fi
34103{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34104echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34105
34106if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34107
34108cat >>confdefs.h <<\_ACEOF
34109#define HAVE_STD_ISINF_IN_CMATH 1
34110_ACEOF
34111
34112fi
34113
34114{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34115echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34116if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34117  echo $ECHO_N "(cached) $ECHO_C" >&6
34118else
34119  ac_ext=cpp
34120ac_cpp='$CXXCPP $CPPFLAGS'
34121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34124
34125   cat >conftest.$ac_ext <<_ACEOF
34126/* confdefs.h.  */
34127_ACEOF
34128cat confdefs.h >>conftest.$ac_ext
34129cat >>conftest.$ac_ext <<_ACEOF
34130/* end confdefs.h.  */
34131#include <ieeefp.h>
34132int
34133main ()
34134{
34135float f; finite(f);
34136  ;
34137  return 0;
34138}
34139_ACEOF
34140rm -f conftest.$ac_objext
34141if { (ac_try="$ac_compile"
34142case "(($ac_try" in
34143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144  *) ac_try_echo=$ac_try;;
34145esac
34146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147  (eval "$ac_compile") 2>conftest.er1
34148  ac_status=$?
34149  grep -v '^ *+' conftest.er1 >conftest.err
34150  rm -f conftest.er1
34151  cat conftest.err >&5
34152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153  (exit $ac_status); } &&
34154	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34155  { (case "(($ac_try" in
34156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34157  *) ac_try_echo=$ac_try;;
34158esac
34159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34160  (eval "$ac_try") 2>&5
34161  ac_status=$?
34162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163  (exit $ac_status); }; } &&
34164	 { ac_try='test -s conftest.$ac_objext'
34165  { (case "(($ac_try" in
34166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167  *) ac_try_echo=$ac_try;;
34168esac
34169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170  (eval "$ac_try") 2>&5
34171  ac_status=$?
34172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173  (exit $ac_status); }; }; then
34174  ac_cv_func_finite_in_ieeefp_h=yes
34175else
34176  echo "$as_me: failed program was:" >&5
34177sed 's/^/| /' conftest.$ac_ext >&5
34178
34179	ac_cv_func_finite_in_ieeefp_h=no
34180fi
34181
34182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34183  ac_ext=c
34184ac_cpp='$CPP $CPPFLAGS'
34185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34187ac_compiler_gnu=$ac_cv_c_compiler_gnu
34188
34189fi
34190{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34191echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34192
34193if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34194
34195cat >>confdefs.h <<\_ACEOF
34196#define HAVE_FINITE_IN_IEEEFP_H 1
34197_ACEOF
34198
34199fi
34200
34201
34202
34203if test "$llvm_cv_platform_type" = "Unix" ; then
34204
34205
34206for ac_header in stdlib.h unistd.h
34207do
34208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34210  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34213  echo $ECHO_N "(cached) $ECHO_C" >&6
34214fi
34215ac_res=`eval echo '${'$as_ac_Header'}'`
34216	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34217echo "${ECHO_T}$ac_res" >&6; }
34218else
34219  # Is the header compilable?
34220{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34222cat >conftest.$ac_ext <<_ACEOF
34223/* confdefs.h.  */
34224_ACEOF
34225cat confdefs.h >>conftest.$ac_ext
34226cat >>conftest.$ac_ext <<_ACEOF
34227/* end confdefs.h.  */
34228$ac_includes_default
34229#include <$ac_header>
34230_ACEOF
34231rm -f conftest.$ac_objext
34232if { (ac_try="$ac_compile"
34233case "(($ac_try" in
34234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34235  *) ac_try_echo=$ac_try;;
34236esac
34237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34238  (eval "$ac_compile") 2>conftest.er1
34239  ac_status=$?
34240  grep -v '^ *+' conftest.er1 >conftest.err
34241  rm -f conftest.er1
34242  cat conftest.err >&5
34243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244  (exit $ac_status); } &&
34245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34246  { (case "(($ac_try" in
34247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248  *) ac_try_echo=$ac_try;;
34249esac
34250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251  (eval "$ac_try") 2>&5
34252  ac_status=$?
34253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254  (exit $ac_status); }; } &&
34255	 { ac_try='test -s conftest.$ac_objext'
34256  { (case "(($ac_try" in
34257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258  *) ac_try_echo=$ac_try;;
34259esac
34260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261  (eval "$ac_try") 2>&5
34262  ac_status=$?
34263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264  (exit $ac_status); }; }; then
34265  ac_header_compiler=yes
34266else
34267  echo "$as_me: failed program was:" >&5
34268sed 's/^/| /' conftest.$ac_ext >&5
34269
34270	ac_header_compiler=no
34271fi
34272
34273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34275echo "${ECHO_T}$ac_header_compiler" >&6; }
34276
34277# Is the header present?
34278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34280cat >conftest.$ac_ext <<_ACEOF
34281/* confdefs.h.  */
34282_ACEOF
34283cat confdefs.h >>conftest.$ac_ext
34284cat >>conftest.$ac_ext <<_ACEOF
34285/* end confdefs.h.  */
34286#include <$ac_header>
34287_ACEOF
34288if { (ac_try="$ac_cpp conftest.$ac_ext"
34289case "(($ac_try" in
34290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291  *) ac_try_echo=$ac_try;;
34292esac
34293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34295  ac_status=$?
34296  grep -v '^ *+' conftest.er1 >conftest.err
34297  rm -f conftest.er1
34298  cat conftest.err >&5
34299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300  (exit $ac_status); } >/dev/null; then
34301  if test -s conftest.err; then
34302    ac_cpp_err=$ac_c_preproc_warn_flag
34303    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34304  else
34305    ac_cpp_err=
34306  fi
34307else
34308  ac_cpp_err=yes
34309fi
34310if test -z "$ac_cpp_err"; then
34311  ac_header_preproc=yes
34312else
34313  echo "$as_me: failed program was:" >&5
34314sed 's/^/| /' conftest.$ac_ext >&5
34315
34316  ac_header_preproc=no
34317fi
34318
34319rm -f conftest.err conftest.$ac_ext
34320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34321echo "${ECHO_T}$ac_header_preproc" >&6; }
34322
34323# So?  What about this header?
34324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34325  yes:no: )
34326    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34328    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34330    ac_header_preproc=yes
34331    ;;
34332  no:yes:* )
34333    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34335    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34336echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34337    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34339    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34340echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34341    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34343    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34345    ( cat <<\_ASBOX
34346## ----------------------------------- ##
34347## Report this to llvmbugs@cs.uiuc.edu ##
34348## ----------------------------------- ##
34349_ASBOX
34350     ) | sed "s/^/$as_me: WARNING:     /" >&2
34351    ;;
34352esac
34353{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34356  echo $ECHO_N "(cached) $ECHO_C" >&6
34357else
34358  eval "$as_ac_Header=\$ac_header_preproc"
34359fi
34360ac_res=`eval echo '${'$as_ac_Header'}'`
34361	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34362echo "${ECHO_T}$ac_res" >&6; }
34363
34364fi
34365if test `eval echo '${'$as_ac_Header'}'` = yes; then
34366  cat >>confdefs.h <<_ACEOF
34367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34368_ACEOF
34369
34370fi
34371
34372done
34373
34374
34375for ac_func in getpagesize
34376do
34377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34378{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34381  echo $ECHO_N "(cached) $ECHO_C" >&6
34382else
34383  cat >conftest.$ac_ext <<_ACEOF
34384/* confdefs.h.  */
34385_ACEOF
34386cat confdefs.h >>conftest.$ac_ext
34387cat >>conftest.$ac_ext <<_ACEOF
34388/* end confdefs.h.  */
34389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34390   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34391#define $ac_func innocuous_$ac_func
34392
34393/* System header to define __stub macros and hopefully few prototypes,
34394    which can conflict with char $ac_func (); below.
34395    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34396    <limits.h> exists even on freestanding compilers.  */
34397
34398#ifdef __STDC__
34399# include <limits.h>
34400#else
34401# include <assert.h>
34402#endif
34403
34404#undef $ac_func
34405
34406/* Override any GCC internal prototype to avoid an error.
34407   Use char because int might match the return type of a GCC
34408   builtin and then its argument prototype would still apply.  */
34409#ifdef __cplusplus
34410extern "C"
34411#endif
34412char $ac_func ();
34413/* The GNU C library defines this for functions which it implements
34414    to always fail with ENOSYS.  Some functions are actually named
34415    something starting with __ and the normal name is an alias.  */
34416#if defined __stub_$ac_func || defined __stub___$ac_func
34417choke me
34418#endif
34419
34420int
34421main ()
34422{
34423return $ac_func ();
34424  ;
34425  return 0;
34426}
34427_ACEOF
34428rm -f conftest.$ac_objext conftest$ac_exeext
34429if { (ac_try="$ac_link"
34430case "(($ac_try" in
34431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34432  *) ac_try_echo=$ac_try;;
34433esac
34434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34435  (eval "$ac_link") 2>conftest.er1
34436  ac_status=$?
34437  grep -v '^ *+' conftest.er1 >conftest.err
34438  rm -f conftest.er1
34439  cat conftest.err >&5
34440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441  (exit $ac_status); } &&
34442	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34443  { (case "(($ac_try" in
34444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34445  *) ac_try_echo=$ac_try;;
34446esac
34447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34448  (eval "$ac_try") 2>&5
34449  ac_status=$?
34450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451  (exit $ac_status); }; } &&
34452	 { ac_try='test -s conftest$ac_exeext'
34453  { (case "(($ac_try" in
34454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455  *) ac_try_echo=$ac_try;;
34456esac
34457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458  (eval "$ac_try") 2>&5
34459  ac_status=$?
34460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461  (exit $ac_status); }; }; then
34462  eval "$as_ac_var=yes"
34463else
34464  echo "$as_me: failed program was:" >&5
34465sed 's/^/| /' conftest.$ac_ext >&5
34466
34467	eval "$as_ac_var=no"
34468fi
34469
34470rm -f core conftest.err conftest.$ac_objext \
34471      conftest$ac_exeext conftest.$ac_ext
34472fi
34473ac_res=`eval echo '${'$as_ac_var'}'`
34474	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34475echo "${ECHO_T}$ac_res" >&6; }
34476if test `eval echo '${'$as_ac_var'}'` = yes; then
34477  cat >>confdefs.h <<_ACEOF
34478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34479_ACEOF
34480
34481fi
34482done
34483
34484{ echo "$as_me:$LINENO: checking for working mmap" >&5
34485echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34486if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34487  echo $ECHO_N "(cached) $ECHO_C" >&6
34488else
34489  if test "$cross_compiling" = yes; then
34490  ac_cv_func_mmap_fixed_mapped=no
34491else
34492  cat >conftest.$ac_ext <<_ACEOF
34493/* confdefs.h.  */
34494_ACEOF
34495cat confdefs.h >>conftest.$ac_ext
34496cat >>conftest.$ac_ext <<_ACEOF
34497/* end confdefs.h.  */
34498$ac_includes_default
34499/* malloc might have been renamed as rpl_malloc. */
34500#undef malloc
34501
34502/* Thanks to Mike Haertel and Jim Avera for this test.
34503   Here is a matrix of mmap possibilities:
34504	mmap private not fixed
34505	mmap private fixed at somewhere currently unmapped
34506	mmap private fixed at somewhere already mapped
34507	mmap shared not fixed
34508	mmap shared fixed at somewhere currently unmapped
34509	mmap shared fixed at somewhere already mapped
34510   For private mappings, we should verify that changes cannot be read()
34511   back from the file, nor mmap's back from the file at a different
34512   address.  (There have been systems where private was not correctly
34513   implemented like the infamous i386 svr4.0, and systems where the
34514   VM page cache was not coherent with the file system buffer cache
34515   like early versions of FreeBSD and possibly contemporary NetBSD.)
34516   For shared mappings, we should conversely verify that changes get
34517   propagated back to all the places they're supposed to be.
34518
34519   Grep wants private fixed already mapped.
34520   The main things grep needs to know about mmap are:
34521   * does it exist and is it safe to write into the mmap'd area
34522   * how to use it (BSD variants)  */
34523
34524#include <fcntl.h>
34525#include <sys/mman.h>
34526
34527#if !STDC_HEADERS && !HAVE_STDLIB_H
34528char *malloc ();
34529#endif
34530
34531/* This mess was copied from the GNU getpagesize.h.  */
34532#if !HAVE_GETPAGESIZE
34533/* Assume that all systems that can run configure have sys/param.h.  */
34534# if !HAVE_SYS_PARAM_H
34535#  define HAVE_SYS_PARAM_H 1
34536# endif
34537
34538# ifdef _SC_PAGESIZE
34539#  define getpagesize() sysconf(_SC_PAGESIZE)
34540# else /* no _SC_PAGESIZE */
34541#  if HAVE_SYS_PARAM_H
34542#   include <sys/param.h>
34543#   ifdef EXEC_PAGESIZE
34544#    define getpagesize() EXEC_PAGESIZE
34545#   else /* no EXEC_PAGESIZE */
34546#    ifdef NBPG
34547#     define getpagesize() NBPG * CLSIZE
34548#     ifndef CLSIZE
34549#      define CLSIZE 1
34550#     endif /* no CLSIZE */
34551#    else /* no NBPG */
34552#     ifdef NBPC
34553#      define getpagesize() NBPC
34554#     else /* no NBPC */
34555#      ifdef PAGESIZE
34556#       define getpagesize() PAGESIZE
34557#      endif /* PAGESIZE */
34558#     endif /* no NBPC */
34559#    endif /* no NBPG */
34560#   endif /* no EXEC_PAGESIZE */
34561#  else /* no HAVE_SYS_PARAM_H */
34562#   define getpagesize() 8192	/* punt totally */
34563#  endif /* no HAVE_SYS_PARAM_H */
34564# endif /* no _SC_PAGESIZE */
34565
34566#endif /* no HAVE_GETPAGESIZE */
34567
34568int
34569main ()
34570{
34571  char *data, *data2, *data3;
34572  int i, pagesize;
34573  int fd;
34574
34575  pagesize = getpagesize ();
34576
34577  /* First, make a file with some known garbage in it. */
34578  data = (char *) malloc (pagesize);
34579  if (!data)
34580    return 1;
34581  for (i = 0; i < pagesize; ++i)
34582    *(data + i) = rand ();
34583  umask (0);
34584  fd = creat ("conftest.mmap", 0600);
34585  if (fd < 0)
34586    return 1;
34587  if (write (fd, data, pagesize) != pagesize)
34588    return 1;
34589  close (fd);
34590
34591  /* Next, try to mmap the file at a fixed address which already has
34592     something else allocated at it.  If we can, also make sure that
34593     we see the same garbage.  */
34594  fd = open ("conftest.mmap", O_RDWR);
34595  if (fd < 0)
34596    return 1;
34597  data2 = (char *) malloc (2 * pagesize);
34598  if (!data2)
34599    return 1;
34600  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34601  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34602		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
34603    return 1;
34604  for (i = 0; i < pagesize; ++i)
34605    if (*(data + i) != *(data2 + i))
34606      return 1;
34607
34608  /* Finally, make sure that changes to the mapped area do not
34609     percolate back to the file as seen by read().  (This is a bug on
34610     some variants of i386 svr4.0.)  */
34611  for (i = 0; i < pagesize; ++i)
34612    *(data2 + i) = *(data2 + i) + 1;
34613  data3 = (char *) malloc (pagesize);
34614  if (!data3)
34615    return 1;
34616  if (read (fd, data3, pagesize) != pagesize)
34617    return 1;
34618  for (i = 0; i < pagesize; ++i)
34619    if (*(data + i) != *(data3 + i))
34620      return 1;
34621  close (fd);
34622  return 0;
34623}
34624_ACEOF
34625rm -f conftest$ac_exeext
34626if { (ac_try="$ac_link"
34627case "(($ac_try" in
34628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629  *) ac_try_echo=$ac_try;;
34630esac
34631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632  (eval "$ac_link") 2>&5
34633  ac_status=$?
34634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34636  { (case "(($ac_try" in
34637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34638  *) ac_try_echo=$ac_try;;
34639esac
34640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34641  (eval "$ac_try") 2>&5
34642  ac_status=$?
34643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644  (exit $ac_status); }; }; then
34645  ac_cv_func_mmap_fixed_mapped=yes
34646else
34647  echo "$as_me: program exited with status $ac_status" >&5
34648echo "$as_me: failed program was:" >&5
34649sed 's/^/| /' conftest.$ac_ext >&5
34650
34651( exit $ac_status )
34652ac_cv_func_mmap_fixed_mapped=no
34653fi
34654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34655fi
34656
34657
34658fi
34659{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34660echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34661if test $ac_cv_func_mmap_fixed_mapped = yes; then
34662
34663cat >>confdefs.h <<\_ACEOF
34664#define HAVE_MMAP 1
34665_ACEOF
34666
34667fi
34668rm -f conftest.mmap
34669
34670  { echo "$as_me:$LINENO: checking for mmap of files" >&5
34671echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34672if test "${ac_cv_func_mmap_file+set}" = set; then
34673  echo $ECHO_N "(cached) $ECHO_C" >&6
34674else
34675   ac_ext=c
34676ac_cpp='$CPP $CPPFLAGS'
34677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679ac_compiler_gnu=$ac_cv_c_compiler_gnu
34680
34681  if test "$cross_compiling" = yes; then
34682  ac_cv_func_mmap_file=no
34683else
34684  cat >conftest.$ac_ext <<_ACEOF
34685
34686    /* confdefs.h.  */
34687_ACEOF
34688cat confdefs.h >>conftest.$ac_ext
34689cat >>conftest.$ac_ext <<_ACEOF
34690/* end confdefs.h.  */
34691
34692#include <sys/types.h>
34693#include <sys/mman.h>
34694#include <fcntl.h>
34695
34696int
34697main ()
34698{
34699
34700  int fd;
34701  fd = creat ("foo",0777);
34702  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34703  unlink ("foo");
34704  return (fd != (int) MAP_FAILED);
34705  ;
34706  return 0;
34707}
34708_ACEOF
34709rm -f conftest$ac_exeext
34710if { (ac_try="$ac_link"
34711case "(($ac_try" in
34712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713  *) ac_try_echo=$ac_try;;
34714esac
34715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716  (eval "$ac_link") 2>&5
34717  ac_status=$?
34718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34720  { (case "(($ac_try" in
34721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34722  *) ac_try_echo=$ac_try;;
34723esac
34724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34725  (eval "$ac_try") 2>&5
34726  ac_status=$?
34727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728  (exit $ac_status); }; }; then
34729  ac_cv_func_mmap_file=yes
34730else
34731  echo "$as_me: program exited with status $ac_status" >&5
34732echo "$as_me: failed program was:" >&5
34733sed 's/^/| /' conftest.$ac_ext >&5
34734
34735( exit $ac_status )
34736ac_cv_func_mmap_file=no
34737fi
34738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34739fi
34740
34741
34742  ac_ext=c
34743ac_cpp='$CPP $CPPFLAGS'
34744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34746ac_compiler_gnu=$ac_cv_c_compiler_gnu
34747
34748
34749fi
34750{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34751echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34752if test "$ac_cv_func_mmap_file" = yes; then
34753
34754cat >>confdefs.h <<\_ACEOF
34755#define HAVE_MMAP_FILE
34756_ACEOF
34757
34758   MMAP_FILE=yes
34759
34760fi
34761
34762  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34763echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34764if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34765  echo $ECHO_N "(cached) $ECHO_C" >&6
34766else
34767  if test "$llvm_cv_os_type" = "Interix" ; then
34768   ac_cv_need_dev_zero_for_mmap=yes
34769 else
34770   ac_cv_need_dev_zero_for_mmap=no
34771 fi
34772
34773fi
34774{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34775echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34776if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34777
34778cat >>confdefs.h <<\_ACEOF
34779#define NEED_DEV_ZERO_FOR_MMAP 1
34780_ACEOF
34781
34782fi
34783
34784  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34785  then
34786    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34787echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34788  fi
34789  if test "$ac_cv_func_mmap_file" = "no"
34790  then
34791    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34792echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34793  fi
34794fi
34795
34796{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34797echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34798cat >conftest.$ac_ext <<_ACEOF
34799/* confdefs.h.  */
34800_ACEOF
34801cat confdefs.h >>conftest.$ac_ext
34802cat >>conftest.$ac_ext <<_ACEOF
34803/* end confdefs.h.  */
34804int main() {
34805        volatile unsigned long val = 1;
34806        __sync_synchronize();
34807        __sync_val_compare_and_swap(&val, 1, 0);
34808        __sync_add_and_fetch(&val, 1);
34809        __sync_sub_and_fetch(&val, 1);
34810        return 0;
34811      }
34812
34813_ACEOF
34814rm -f conftest.$ac_objext conftest$ac_exeext
34815if { (ac_try="$ac_link"
34816case "(($ac_try" in
34817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34818  *) ac_try_echo=$ac_try;;
34819esac
34820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821  (eval "$ac_link") 2>conftest.er1
34822  ac_status=$?
34823  grep -v '^ *+' conftest.er1 >conftest.err
34824  rm -f conftest.er1
34825  cat conftest.err >&5
34826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827  (exit $ac_status); } &&
34828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34829  { (case "(($ac_try" in
34830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34831  *) ac_try_echo=$ac_try;;
34832esac
34833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34834  (eval "$ac_try") 2>&5
34835  ac_status=$?
34836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837  (exit $ac_status); }; } &&
34838	 { ac_try='test -s conftest$ac_exeext'
34839  { (case "(($ac_try" in
34840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841  *) ac_try_echo=$ac_try;;
34842esac
34843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844  (eval "$ac_try") 2>&5
34845  ac_status=$?
34846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847  (exit $ac_status); }; }; then
34848  { echo "$as_me:$LINENO: result: yes" >&5
34849echo "${ECHO_T}yes" >&6; }
34850
34851cat >>confdefs.h <<\_ACEOF
34852#define LLVM_MULTITHREADED 1
34853_ACEOF
34854
34855else
34856  echo "$as_me: failed program was:" >&5
34857sed 's/^/| /' conftest.$ac_ext >&5
34858
34859	{ echo "$as_me:$LINENO: result: no" >&5
34860echo "${ECHO_T}no" >&6; }
34861
34862cat >>confdefs.h <<\_ACEOF
34863#define LLVM_MULTITHREADED 0
34864_ACEOF
34865
34866  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34867echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34868fi
34869
34870rm -f core conftest.err conftest.$ac_objext \
34871      conftest$ac_exeext conftest.$ac_ext
34872
34873
34874
34875if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34876  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34877echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34878if test "${llvm_cv_linux_mixed+set}" = set; then
34879  echo $ECHO_N "(cached) $ECHO_C" >&6
34880else
34881   ac_ext=c
34882ac_cpp='$CPP $CPPFLAGS'
34883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34885ac_compiler_gnu=$ac_cv_c_compiler_gnu
34886
34887  cat >conftest.$ac_ext <<_ACEOF
34888/* confdefs.h.  */
34889_ACEOF
34890cat confdefs.h >>conftest.$ac_ext
34891cat >>conftest.$ac_ext <<_ACEOF
34892/* end confdefs.h.  */
34893#ifndef __x86_64__
34894       error: Not x86-64 even if uname says so!
34895      #endif
34896
34897int
34898main ()
34899{
34900
34901  ;
34902  return 0;
34903}
34904_ACEOF
34905rm -f conftest.$ac_objext
34906if { (ac_try="$ac_compile"
34907case "(($ac_try" in
34908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34909  *) ac_try_echo=$ac_try;;
34910esac
34911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34912  (eval "$ac_compile") 2>conftest.er1
34913  ac_status=$?
34914  grep -v '^ *+' conftest.er1 >conftest.err
34915  rm -f conftest.er1
34916  cat conftest.err >&5
34917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918  (exit $ac_status); } &&
34919	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34920  { (case "(($ac_try" in
34921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922  *) ac_try_echo=$ac_try;;
34923esac
34924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925  (eval "$ac_try") 2>&5
34926  ac_status=$?
34927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928  (exit $ac_status); }; } &&
34929	 { ac_try='test -s conftest.$ac_objext'
34930  { (case "(($ac_try" in
34931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932  *) ac_try_echo=$ac_try;;
34933esac
34934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935  (eval "$ac_try") 2>&5
34936  ac_status=$?
34937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938  (exit $ac_status); }; }; then
34939  llvm_cv_linux_mixed=no
34940else
34941  echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944	llvm_cv_linux_mixed=yes
34945fi
34946
34947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34948  ac_ext=c
34949ac_cpp='$CPP $CPPFLAGS'
34950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34952ac_compiler_gnu=$ac_cv_c_compiler_gnu
34953
34954
34955fi
34956{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34957echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34958
34959  if test "$llvm_cv_linux_mixed" = "yes"; then
34960    llvm_cv_target_arch="x86"
34961    ARCH="x86"
34962  fi
34963fi
34964
34965
34966for ac_func in __dso_handle
34967do
34968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34972  echo $ECHO_N "(cached) $ECHO_C" >&6
34973else
34974  cat >conftest.$ac_ext <<_ACEOF
34975/* confdefs.h.  */
34976_ACEOF
34977cat confdefs.h >>conftest.$ac_ext
34978cat >>conftest.$ac_ext <<_ACEOF
34979/* end confdefs.h.  */
34980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34981   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34982#define $ac_func innocuous_$ac_func
34983
34984/* System header to define __stub macros and hopefully few prototypes,
34985    which can conflict with char $ac_func (); below.
34986    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987    <limits.h> exists even on freestanding compilers.  */
34988
34989#ifdef __STDC__
34990# include <limits.h>
34991#else
34992# include <assert.h>
34993#endif
34994
34995#undef $ac_func
34996
34997/* Override any GCC internal prototype to avoid an error.
34998   Use char because int might match the return type of a GCC
34999   builtin and then its argument prototype would still apply.  */
35000#ifdef __cplusplus
35001extern "C"
35002#endif
35003char $ac_func ();
35004/* The GNU C library defines this for functions which it implements
35005    to always fail with ENOSYS.  Some functions are actually named
35006    something starting with __ and the normal name is an alias.  */
35007#if defined __stub_$ac_func || defined __stub___$ac_func
35008choke me
35009#endif
35010
35011int
35012main ()
35013{
35014return $ac_func ();
35015  ;
35016  return 0;
35017}
35018_ACEOF
35019rm -f conftest.$ac_objext conftest$ac_exeext
35020if { (ac_try="$ac_link"
35021case "(($ac_try" in
35022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023  *) ac_try_echo=$ac_try;;
35024esac
35025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026  (eval "$ac_link") 2>conftest.er1
35027  ac_status=$?
35028  grep -v '^ *+' conftest.er1 >conftest.err
35029  rm -f conftest.er1
35030  cat conftest.err >&5
35031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032  (exit $ac_status); } &&
35033	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35034  { (case "(($ac_try" in
35035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036  *) ac_try_echo=$ac_try;;
35037esac
35038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039  (eval "$ac_try") 2>&5
35040  ac_status=$?
35041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042  (exit $ac_status); }; } &&
35043	 { ac_try='test -s conftest$ac_exeext'
35044  { (case "(($ac_try" in
35045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046  *) ac_try_echo=$ac_try;;
35047esac
35048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049  (eval "$ac_try") 2>&5
35050  ac_status=$?
35051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052  (exit $ac_status); }; }; then
35053  eval "$as_ac_var=yes"
35054else
35055  echo "$as_me: failed program was:" >&5
35056sed 's/^/| /' conftest.$ac_ext >&5
35057
35058	eval "$as_ac_var=no"
35059fi
35060
35061rm -f core conftest.err conftest.$ac_objext \
35062      conftest$ac_exeext conftest.$ac_ext
35063fi
35064ac_res=`eval echo '${'$as_ac_var'}'`
35065	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35066echo "${ECHO_T}$ac_res" >&6; }
35067if test `eval echo '${'$as_ac_var'}'` = yes; then
35068  cat >>confdefs.h <<_ACEOF
35069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070_ACEOF
35071
35072fi
35073done
35074
35075
35076{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35077echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35078if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35079  echo $ECHO_N "(cached) $ECHO_C" >&6
35080else
35081  llvm_cv_llvmgcc_sanity="no"
35082if test -x "$LLVMGCC" ; then
35083  cp /dev/null conftest.c
35084  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35085      grep 'target datalayout =' > /dev/null 2>&1
35086  if test $? -eq 0 ; then
35087    llvm_cv_llvmgcc_sanity="yes"
35088  fi
35089  rm conftest.c
35090fi
35091fi
35092{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35093echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35094
35095if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35096  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35097echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35098  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35099  LLVMCC1=$llvmcc1path
35100
35101  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35102  LLVMCC1PLUS=$llvmcc1pluspath
35103
35104  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35105  LLVMGCCDIR=$llvmgccdir
35106
35107  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35108  LLVMGCCLIBEXEC=$llvmgcclibexec
35109
35110  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35111  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35112  LLVMGCC_VERSION=$llvmgccversion
35113
35114  LLVMGCC_MAJVERS=$llvmgccmajvers
35115
35116  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35117  LLVMGCC_LANGS=$llvmgcclangs
35118
35119  { echo "$as_me:$LINENO: result: ok" >&5
35120echo "${ECHO_T}ok" >&6; }
35121fi
35122
35123SHLIBEXT=$libltdl_cv_shlibext
35124
35125
35126# Translate the various configuration directories and other basic
35127# information into substitutions that will end up in Makefile.config.in
35128# that these configured values can be used by the makefiles
35129if test "${prefix}" = "NONE" ; then
35130  prefix="/usr/local"
35131fi
35132eval LLVM_PREFIX="${prefix}";
35133eval LLVM_BINDIR="${prefix}/bin";
35134eval LLVM_LIBDIR="${prefix}/lib";
35135eval LLVM_DATADIR="${prefix}/share/llvm";
35136eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35137eval LLVM_ETCDIR="${prefix}/etc/llvm";
35138eval LLVM_INCLUDEDIR="${prefix}/include";
35139eval LLVM_INFODIR="${prefix}/info";
35140eval LLVM_MANDIR="${prefix}/man";
35141LLVM_CONFIGTIME=`date`
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153# Place the various directores into the config.h file as #defines so that we
35154# can know about the installation paths within LLVM.
35155
35156cat >>confdefs.h <<_ACEOF
35157#define LLVM_PREFIX "$LLVM_PREFIX"
35158_ACEOF
35159
35160
35161cat >>confdefs.h <<_ACEOF
35162#define LLVM_BINDIR "$LLVM_BINDIR"
35163_ACEOF
35164
35165
35166cat >>confdefs.h <<_ACEOF
35167#define LLVM_LIBDIR "$LLVM_LIBDIR"
35168_ACEOF
35169
35170
35171cat >>confdefs.h <<_ACEOF
35172#define LLVM_DATADIR "$LLVM_DATADIR"
35173_ACEOF
35174
35175
35176cat >>confdefs.h <<_ACEOF
35177#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35178_ACEOF
35179
35180
35181cat >>confdefs.h <<_ACEOF
35182#define LLVM_ETCDIR "$LLVM_ETCDIR"
35183_ACEOF
35184
35185
35186cat >>confdefs.h <<_ACEOF
35187#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35188_ACEOF
35189
35190
35191cat >>confdefs.h <<_ACEOF
35192#define LLVM_INFODIR "$LLVM_INFODIR"
35193_ACEOF
35194
35195
35196cat >>confdefs.h <<_ACEOF
35197#define LLVM_MANDIR "$LLVM_MANDIR"
35198_ACEOF
35199
35200
35201cat >>confdefs.h <<_ACEOF
35202#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35203_ACEOF
35204
35205
35206cat >>confdefs.h <<_ACEOF
35207#define LLVM_HOSTTRIPLE "$host"
35208_ACEOF
35209
35210
35211# Determine which bindings to build.
35212if test "$BINDINGS_TO_BUILD" = auto ; then
35213  BINDINGS_TO_BUILD=""
35214  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35215    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35216  fi
35217fi
35218BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35219
35220
35221# This isn't really configurey, but it avoids having to repeat the list in
35222# other files.
35223ALL_BINDINGS=ocaml
35224
35225
35226# Do any work necessary to ensure that bindings have what they need.
35227binding_prereqs_failed=0
35228for a_binding in $BINDINGS_TO_BUILD ; do
35229  case "$a_binding" in
35230  ocaml)
35231    if test "x$OCAMLC" = x ; then
35232      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35233echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35234      binding_prereqs_failed=1
35235    fi
35236    if test "x$OCAMLDEP" = x ; then
35237      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35238echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35239      binding_prereqs_failed=1
35240    fi
35241    if test "x$OCAMLOPT" = x ; then
35242      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35243echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35244          fi
35245    if test "x$with_ocaml_libdir" != xauto ; then
35246      OCAML_LIBDIR=$with_ocaml_libdir
35247
35248    else
35249      ocaml_stdlib="`"$OCAMLC" -where`"
35250      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35251      then
35252        # ocaml stdlib is beneath our prefix; use stdlib
35253        OCAML_LIBDIR=$ocaml_stdlib
35254
35255      else
35256        # ocaml stdlib is outside our prefix; use libdir/ocaml
35257        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35258
35259      fi
35260    fi
35261    ;;
35262  esac
35263done
35264if test "$binding_prereqs_failed" = 1 ; then
35265  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35266echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35267   { (exit 1); exit 1; }; }
35268fi
35269
35270{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35271echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35272if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35273  echo $ECHO_N "(cached) $ECHO_C" >&6
35274else
35275   ac_ext=cpp
35276ac_cpp='$CXXCPP $CPPFLAGS'
35277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35280
35281  oldcxxflags="$CXXFLAGS"
35282  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35283  cat >conftest.$ac_ext <<_ACEOF
35284/* confdefs.h.  */
35285_ACEOF
35286cat confdefs.h >>conftest.$ac_ext
35287cat >>conftest.$ac_ext <<_ACEOF
35288/* end confdefs.h.  */
35289
35290int
35291main ()
35292{
35293
35294  ;
35295  return 0;
35296}
35297_ACEOF
35298rm -f conftest.$ac_objext
35299if { (ac_try="$ac_compile"
35300case "(($ac_try" in
35301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35302  *) ac_try_echo=$ac_try;;
35303esac
35304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35305  (eval "$ac_compile") 2>conftest.er1
35306  ac_status=$?
35307  grep -v '^ *+' conftest.er1 >conftest.err
35308  rm -f conftest.er1
35309  cat conftest.err >&5
35310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311  (exit $ac_status); } &&
35312	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35313  { (case "(($ac_try" in
35314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315  *) ac_try_echo=$ac_try;;
35316esac
35317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35318  (eval "$ac_try") 2>&5
35319  ac_status=$?
35320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321  (exit $ac_status); }; } &&
35322	 { ac_try='test -s conftest.$ac_objext'
35323  { (case "(($ac_try" in
35324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325  *) ac_try_echo=$ac_try;;
35326esac
35327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328  (eval "$ac_try") 2>&5
35329  ac_status=$?
35330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331  (exit $ac_status); }; }; then
35332  llvm_cv_cxx_visibility_inlines_hidden=yes
35333else
35334  echo "$as_me: failed program was:" >&5
35335sed 's/^/| /' conftest.$ac_ext >&5
35336
35337	llvm_cv_cxx_visibility_inlines_hidden=no
35338fi
35339
35340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35341  CXXFLAGS="$oldcxxflags"
35342  ac_ext=c
35343ac_cpp='$CPP $CPPFLAGS'
35344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35346ac_compiler_gnu=$ac_cv_c_compiler_gnu
35347
35348
35349fi
35350{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35351echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35352if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35353  ENABLE_VISIBILITY_INLINES_HIDDEN=1
35354
35355else
35356  ENABLE_VISIBILITY_INLINES_HIDDEN=0
35357
35358fi
35359
35360
35361if test "$llvm_cv_link_use_r" = "yes" ; then
35362  RPATH="-Wl,-R"
35363else
35364  RPATH="-Wl,-rpath"
35365fi
35366
35367
35368if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35369  RDYNAMIC="-Wl,-export-dynamic"
35370else
35371  RDYNAMIC=""
35372fi
35373
35374
35375
35376ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35377
35378ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35379
35380ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35381
35382ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35383
35384ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
35385
35386ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35387
35388
35389ac_config_files="$ac_config_files Makefile.config"
35390
35391
35392ac_config_files="$ac_config_files llvm.spec"
35393
35394
35395ac_config_files="$ac_config_files docs/doxygen.cfg"
35396
35397
35398ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35399
35400
35401ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35402
35403
35404ac_config_commands="$ac_config_commands setup"
35405
35406ac_config_commands="$ac_config_commands Makefile"
35407
35408
35409ac_config_commands="$ac_config_commands Makefile.common"
35410
35411
35412ac_config_commands="$ac_config_commands examples/Makefile"
35413
35414
35415ac_config_commands="$ac_config_commands lib/Makefile"
35416
35417
35418ac_config_commands="$ac_config_commands runtime/Makefile"
35419
35420
35421ac_config_commands="$ac_config_commands test/Makefile"
35422
35423
35424ac_config_commands="$ac_config_commands test/Makefile.tests"
35425
35426
35427ac_config_commands="$ac_config_commands unittests/Makefile"
35428
35429
35430ac_config_commands="$ac_config_commands tools/Makefile"
35431
35432
35433ac_config_commands="$ac_config_commands utils/Makefile"
35434
35435
35436ac_config_commands="$ac_config_commands projects/Makefile"
35437
35438
35439ac_config_commands="$ac_config_commands bindings/Makefile"
35440
35441
35442ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35443
35444
35445
35446cat >confcache <<\_ACEOF
35447# This file is a shell script that caches the results of configure
35448# tests run on this system so they can be shared between configure
35449# scripts and configure runs, see configure's option --config-cache.
35450# It is not useful on other systems.  If it contains results you don't
35451# want to keep, you may remove or edit it.
35452#
35453# config.status only pays attention to the cache file if you give it
35454# the --recheck option to rerun configure.
35455#
35456# `ac_cv_env_foo' variables (set or unset) will be overridden when
35457# loading this file, other *unset* `ac_cv_foo' will be assigned the
35458# following values.
35459
35460_ACEOF
35461
35462# The following way of writing the cache mishandles newlines in values,
35463# but we know of no workaround that is simple, portable, and efficient.
35464# So, we kill variables containing newlines.
35465# Ultrix sh set writes to stderr and can't be redirected directly,
35466# and sets the high bit in the cache file unless we assign to the vars.
35467(
35468  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35469    eval ac_val=\$$ac_var
35470    case $ac_val in #(
35471    *${as_nl}*)
35472      case $ac_var in #(
35473      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35474echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35475      esac
35476      case $ac_var in #(
35477      _ | IFS | as_nl) ;; #(
35478      *) $as_unset $ac_var ;;
35479      esac ;;
35480    esac
35481  done
35482
35483  (set) 2>&1 |
35484    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35485    *${as_nl}ac_space=\ *)
35486      # `set' does not quote correctly, so add quotes (double-quote
35487      # substitution turns \\\\ into \\, and sed turns \\ into \).
35488      sed -n \
35489	"s/'/'\\\\''/g;
35490	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35491      ;; #(
35492    *)
35493      # `set' quotes correctly as required by POSIX, so do not add quotes.
35494      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35495      ;;
35496    esac |
35497    sort
35498) |
35499  sed '
35500     /^ac_cv_env_/b end
35501     t clear
35502     :clear
35503     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35504     t end
35505     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35506     :end' >>confcache
35507if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35508  if test -w "$cache_file"; then
35509    test "x$cache_file" != "x/dev/null" &&
35510      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35511echo "$as_me: updating cache $cache_file" >&6;}
35512    cat confcache >$cache_file
35513  else
35514    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35515echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35516  fi
35517fi
35518rm -f confcache
35519
35520test "x$prefix" = xNONE && prefix=$ac_default_prefix
35521# Let make expand exec_prefix.
35522test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35523
35524DEFS=-DHAVE_CONFIG_H
35525
35526ac_libobjs=
35527ac_ltlibobjs=
35528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35529  # 1. Remove the extension, and $U if already installed.
35530  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35531  ac_i=`echo "$ac_i" | sed "$ac_script"`
35532  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35533  #    will be set to the directory where LIBOBJS objects are built.
35534  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35535  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35536done
35537LIBOBJS=$ac_libobjs
35538
35539LTLIBOBJS=$ac_ltlibobjs
35540
35541
35542if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35543  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35544Usually this means the macro was only invoked conditionally." >&5
35545echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35546Usually this means the macro was only invoked conditionally." >&2;}
35547   { (exit 1); exit 1; }; }
35548fi
35549if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35550  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35551Usually this means the macro was only invoked conditionally." >&5
35552echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35553Usually this means the macro was only invoked conditionally." >&2;}
35554   { (exit 1); exit 1; }; }
35555fi
35556
35557: ${CONFIG_STATUS=./config.status}
35558ac_clean_files_save=$ac_clean_files
35559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35560{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35561echo "$as_me: creating $CONFIG_STATUS" >&6;}
35562cat >$CONFIG_STATUS <<_ACEOF
35563#! $SHELL
35564# Generated by $as_me.
35565# Run this file to recreate the current configuration.
35566# Compiler output produced by configure, useful for debugging
35567# configure, is in config.log if it exists.
35568
35569debug=false
35570ac_cs_recheck=false
35571ac_cs_silent=false
35572SHELL=\${CONFIG_SHELL-$SHELL}
35573_ACEOF
35574
35575cat >>$CONFIG_STATUS <<\_ACEOF
35576## --------------------- ##
35577## M4sh Initialization.  ##
35578## --------------------- ##
35579
35580# Be Bourne compatible
35581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35582  emulate sh
35583  NULLCMD=:
35584  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35585  # is contrary to our usage.  Disable this feature.
35586  alias -g '${1+"$@"}'='"$@"'
35587  setopt NO_GLOB_SUBST
35588else
35589  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35590fi
35591BIN_SH=xpg4; export BIN_SH # for Tru64
35592DUALCASE=1; export DUALCASE # for MKS sh
35593
35594
35595# PATH needs CR
35596# Avoid depending upon Character Ranges.
35597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35600as_cr_digits='0123456789'
35601as_cr_alnum=$as_cr_Letters$as_cr_digits
35602
35603# The user is always right.
35604if test "${PATH_SEPARATOR+set}" != set; then
35605  echo "#! /bin/sh" >conf$$.sh
35606  echo  "exit 0"   >>conf$$.sh
35607  chmod +x conf$$.sh
35608  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35609    PATH_SEPARATOR=';'
35610  else
35611    PATH_SEPARATOR=:
35612  fi
35613  rm -f conf$$.sh
35614fi
35615
35616# Support unset when possible.
35617if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35618  as_unset=unset
35619else
35620  as_unset=false
35621fi
35622
35623
35624# IFS
35625# We need space, tab and new line, in precisely that order.  Quoting is
35626# there to prevent editors from complaining about space-tab.
35627# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35628# splitting by setting IFS to empty value.)
35629as_nl='
35630'
35631IFS=" ""	$as_nl"
35632
35633# Find who we are.  Look in the path if we contain no directory separator.
35634case $0 in
35635  *[\\/]* ) as_myself=$0 ;;
35636  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35637for as_dir in $PATH
35638do
35639  IFS=$as_save_IFS
35640  test -z "$as_dir" && as_dir=.
35641  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35642done
35643IFS=$as_save_IFS
35644
35645     ;;
35646esac
35647# We did not find ourselves, most probably we were run as `sh COMMAND'
35648# in which case we are not to be found in the path.
35649if test "x$as_myself" = x; then
35650  as_myself=$0
35651fi
35652if test ! -f "$as_myself"; then
35653  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35654  { (exit 1); exit 1; }
35655fi
35656
35657# Work around bugs in pre-3.0 UWIN ksh.
35658for as_var in ENV MAIL MAILPATH
35659do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35660done
35661PS1='$ '
35662PS2='> '
35663PS4='+ '
35664
35665# NLS nuisances.
35666for as_var in \
35667  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35668  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35669  LC_TELEPHONE LC_TIME
35670do
35671  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35672    eval $as_var=C; export $as_var
35673  else
35674    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35675  fi
35676done
35677
35678# Required to use basename.
35679if expr a : '\(a\)' >/dev/null 2>&1 &&
35680   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35681  as_expr=expr
35682else
35683  as_expr=false
35684fi
35685
35686if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35687  as_basename=basename
35688else
35689  as_basename=false
35690fi
35691
35692
35693# Name of the executable.
35694as_me=`$as_basename -- "$0" ||
35695$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35696	 X"$0" : 'X\(//\)$' \| \
35697	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35698echo X/"$0" |
35699    sed '/^.*\/\([^/][^/]*\)\/*$/{
35700	    s//\1/
35701	    q
35702	  }
35703	  /^X\/\(\/\/\)$/{
35704	    s//\1/
35705	    q
35706	  }
35707	  /^X\/\(\/\).*/{
35708	    s//\1/
35709	    q
35710	  }
35711	  s/.*/./; q'`
35712
35713# CDPATH.
35714$as_unset CDPATH
35715
35716
35717
35718  as_lineno_1=$LINENO
35719  as_lineno_2=$LINENO
35720  test "x$as_lineno_1" != "x$as_lineno_2" &&
35721  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35722
35723  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35724  # uniformly replaced by the line number.  The first 'sed' inserts a
35725  # line-number line after each line using $LINENO; the second 'sed'
35726  # does the real work.  The second script uses 'N' to pair each
35727  # line-number line with the line containing $LINENO, and appends
35728  # trailing '-' during substitution so that $LINENO is not a special
35729  # case at line end.
35730  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35731  # scripts with optimization help from Paolo Bonzini.  Blame Lee
35732  # E. McMahon (1931-1989) for sed's syntax.  :-)
35733  sed -n '
35734    p
35735    /[$]LINENO/=
35736  ' <$as_myself |
35737    sed '
35738      s/[$]LINENO.*/&-/
35739      t lineno
35740      b
35741      :lineno
35742      N
35743      :loop
35744      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35745      t loop
35746      s/-\n.*//
35747    ' >$as_me.lineno &&
35748  chmod +x "$as_me.lineno" ||
35749    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35750   { (exit 1); exit 1; }; }
35751
35752  # Don't try to exec as it changes $[0], causing all sort of problems
35753  # (the dirname of $[0] is not the place where we might find the
35754  # original and so on.  Autoconf is especially sensitive to this).
35755  . "./$as_me.lineno"
35756  # Exit status is that of the last command.
35757  exit
35758}
35759
35760
35761if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35762  as_dirname=dirname
35763else
35764  as_dirname=false
35765fi
35766
35767ECHO_C= ECHO_N= ECHO_T=
35768case `echo -n x` in
35769-n*)
35770  case `echo 'x\c'` in
35771  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35772  *)   ECHO_C='\c';;
35773  esac;;
35774*)
35775  ECHO_N='-n';;
35776esac
35777
35778if expr a : '\(a\)' >/dev/null 2>&1 &&
35779   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35780  as_expr=expr
35781else
35782  as_expr=false
35783fi
35784
35785rm -f conf$$ conf$$.exe conf$$.file
35786if test -d conf$$.dir; then
35787  rm -f conf$$.dir/conf$$.file
35788else
35789  rm -f conf$$.dir
35790  mkdir conf$$.dir
35791fi
35792echo >conf$$.file
35793if ln -s conf$$.file conf$$ 2>/dev/null; then
35794  as_ln_s='ln -s'
35795  # ... but there are two gotchas:
35796  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35797  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35798  # In both cases, we have to default to `cp -p'.
35799  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35800    as_ln_s='cp -p'
35801elif ln conf$$.file conf$$ 2>/dev/null; then
35802  as_ln_s=ln
35803else
35804  as_ln_s='cp -p'
35805fi
35806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35807rmdir conf$$.dir 2>/dev/null
35808
35809if mkdir -p . 2>/dev/null; then
35810  as_mkdir_p=:
35811else
35812  test -d ./-p && rmdir ./-p
35813  as_mkdir_p=false
35814fi
35815
35816# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35817# systems may use methods other than mode bits to determine executability.
35818cat >conf$$.file <<_ASEOF
35819#! /bin/sh
35820exit 0
35821_ASEOF
35822chmod +x conf$$.file
35823if test -x conf$$.file >/dev/null 2>&1; then
35824  as_executable_p="test -x"
35825else
35826  as_executable_p=:
35827fi
35828rm -f conf$$.file
35829
35830# Sed expression to map a string onto a valid CPP name.
35831as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35832
35833# Sed expression to map a string onto a valid variable name.
35834as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35835
35836
35837exec 6>&1
35838
35839# Save the log message, to keep $[0] and so on meaningful, and to
35840# report actual input values of CONFIG_FILES etc. instead of their
35841# values after options handling.
35842ac_log="
35843This file was extended by llvm $as_me 2.7svn, which was
35844generated by GNU Autoconf 2.60.  Invocation command line was
35845
35846  CONFIG_FILES    = $CONFIG_FILES
35847  CONFIG_HEADERS  = $CONFIG_HEADERS
35848  CONFIG_LINKS    = $CONFIG_LINKS
35849  CONFIG_COMMANDS = $CONFIG_COMMANDS
35850  $ $0 $@
35851
35852on `(hostname || uname -n) 2>/dev/null | sed 1q`
35853"
35854
35855_ACEOF
35856
35857cat >>$CONFIG_STATUS <<_ACEOF
35858# Files that config.status was made for.
35859config_files="$ac_config_files"
35860config_headers="$ac_config_headers"
35861config_commands="$ac_config_commands"
35862
35863_ACEOF
35864
35865cat >>$CONFIG_STATUS <<\_ACEOF
35866ac_cs_usage="\
35867\`$as_me' instantiates files from templates according to the
35868current configuration.
35869
35870Usage: $0 [OPTIONS] [FILE]...
35871
35872  -h, --help       print this help, then exit
35873  -V, --version    print version number, then exit
35874  -q, --quiet      do not print progress messages
35875  -d, --debug      don't remove temporary files
35876      --recheck    update $as_me by reconfiguring in the same conditions
35877  --file=FILE[:TEMPLATE]
35878		   instantiate the configuration file FILE
35879  --header=FILE[:TEMPLATE]
35880		   instantiate the configuration header FILE
35881
35882Configuration files:
35883$config_files
35884
35885Configuration headers:
35886$config_headers
35887
35888Configuration commands:
35889$config_commands
35890
35891Report bugs to <bug-autoconf@gnu.org>."
35892
35893_ACEOF
35894cat >>$CONFIG_STATUS <<_ACEOF
35895ac_cs_version="\\
35896llvm config.status 2.7svn
35897configured by $0, generated by GNU Autoconf 2.60,
35898  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35899
35900Copyright (C) 2006 Free Software Foundation, Inc.
35901This config.status script is free software; the Free Software Foundation
35902gives unlimited permission to copy, distribute and modify it."
35903
35904ac_pwd='$ac_pwd'
35905srcdir='$srcdir'
35906INSTALL='$INSTALL'
35907_ACEOF
35908
35909cat >>$CONFIG_STATUS <<\_ACEOF
35910# If no file are specified by the user, then we need to provide default
35911# value.  By we need to know if files were specified by the user.
35912ac_need_defaults=:
35913while test $# != 0
35914do
35915  case $1 in
35916  --*=*)
35917    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35918    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35919    ac_shift=:
35920    ;;
35921  *)
35922    ac_option=$1
35923    ac_optarg=$2
35924    ac_shift=shift
35925    ;;
35926  esac
35927
35928  case $ac_option in
35929  # Handling of the options.
35930  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35931    ac_cs_recheck=: ;;
35932  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35933    echo "$ac_cs_version"; exit ;;
35934  --debug | --debu | --deb | --de | --d | -d )
35935    debug=: ;;
35936  --file | --fil | --fi | --f )
35937    $ac_shift
35938    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35939    ac_need_defaults=false;;
35940  --header | --heade | --head | --hea )
35941    $ac_shift
35942    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35943    ac_need_defaults=false;;
35944  --he | --h)
35945    # Conflict between --help and --header
35946    { echo "$as_me: error: ambiguous option: $1
35947Try \`$0 --help' for more information." >&2
35948   { (exit 1); exit 1; }; };;
35949  --help | --hel | -h )
35950    echo "$ac_cs_usage"; exit ;;
35951  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35952  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35953    ac_cs_silent=: ;;
35954
35955  # This is an error.
35956  -*) { echo "$as_me: error: unrecognized option: $1
35957Try \`$0 --help' for more information." >&2
35958   { (exit 1); exit 1; }; } ;;
35959
35960  *) ac_config_targets="$ac_config_targets $1"
35961     ac_need_defaults=false ;;
35962
35963  esac
35964  shift
35965done
35966
35967ac_configure_extra_args=
35968
35969if $ac_cs_silent; then
35970  exec 6>/dev/null
35971  ac_configure_extra_args="$ac_configure_extra_args --silent"
35972fi
35973
35974_ACEOF
35975cat >>$CONFIG_STATUS <<_ACEOF
35976if \$ac_cs_recheck; then
35977  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35978  CONFIG_SHELL=$SHELL
35979  export CONFIG_SHELL
35980  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35981fi
35982
35983_ACEOF
35984cat >>$CONFIG_STATUS <<\_ACEOF
35985exec 5>>config.log
35986{
35987  echo
35988  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35989## Running $as_me. ##
35990_ASBOX
35991  echo "$ac_log"
35992} >&5
35993
35994_ACEOF
35995cat >>$CONFIG_STATUS <<_ACEOF
35996#
35997# INIT-COMMANDS
35998#
35999llvm_src="${srcdir}"
36000
36001_ACEOF
36002
36003cat >>$CONFIG_STATUS <<\_ACEOF
36004
36005# Handling of arguments.
36006for ac_config_target in $ac_config_targets
36007do
36008  case $ac_config_target in
36009    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36010    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36011    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36012    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36013    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
36014    "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
36015    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36016    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36017    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36018    "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36019    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36020    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36021    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36022    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36023    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36024    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36025    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36026    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36027    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36028    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36029    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36030    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36031    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36032    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36033    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36034
36035  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36036echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36037   { (exit 1); exit 1; }; };;
36038  esac
36039done
36040
36041
36042# If the user did not use the arguments to specify the items to instantiate,
36043# then the envvar interface is used.  Set only those that are not.
36044# We use the long form for the default assignment because of an extremely
36045# bizarre bug on SunOS 4.1.3.
36046if $ac_need_defaults; then
36047  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36048  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36049  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36050fi
36051
36052# Have a temporary directory for convenience.  Make it in the build tree
36053# simply because there is no reason against having it here, and in addition,
36054# creating and moving files from /tmp can sometimes cause problems.
36055# Hook for its removal unless debugging.
36056# Note that there is a small window in which the directory will not be cleaned:
36057# after its creation but before its name has been assigned to `$tmp'.
36058$debug ||
36059{
36060  tmp=
36061  trap 'exit_status=$?
36062  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36063' 0
36064  trap '{ (exit 1); exit 1; }' 1 2 13 15
36065}
36066# Create a (secure) tmp directory for tmp files.
36067
36068{
36069  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36070  test -n "$tmp" && test -d "$tmp"
36071}  ||
36072{
36073  tmp=./conf$$-$RANDOM
36074  (umask 077 && mkdir "$tmp")
36075} ||
36076{
36077   echo "$me: cannot create a temporary directory in ." >&2
36078   { (exit 1); exit 1; }
36079}
36080
36081#
36082# Set up the sed scripts for CONFIG_FILES section.
36083#
36084
36085# No need to generate the scripts if there are no CONFIG_FILES.
36086# This happens for instance when ./config.status config.h
36087if test -n "$CONFIG_FILES"; then
36088
36089_ACEOF
36090
36091
36092
36093ac_delim='%!_!# '
36094for ac_last_try in false false false false false :; do
36095  cat >conf$$subs.sed <<_ACEOF
36096SHELL!$SHELL$ac_delim
36097PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36098PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36099PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36100PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36101PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36102PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36103exec_prefix!$exec_prefix$ac_delim
36104prefix!$prefix$ac_delim
36105program_transform_name!$program_transform_name$ac_delim
36106bindir!$bindir$ac_delim
36107sbindir!$sbindir$ac_delim
36108libexecdir!$libexecdir$ac_delim
36109datarootdir!$datarootdir$ac_delim
36110datadir!$datadir$ac_delim
36111sysconfdir!$sysconfdir$ac_delim
36112sharedstatedir!$sharedstatedir$ac_delim
36113localstatedir!$localstatedir$ac_delim
36114includedir!$includedir$ac_delim
36115oldincludedir!$oldincludedir$ac_delim
36116docdir!$docdir$ac_delim
36117infodir!$infodir$ac_delim
36118htmldir!$htmldir$ac_delim
36119dvidir!$dvidir$ac_delim
36120pdfdir!$pdfdir$ac_delim
36121psdir!$psdir$ac_delim
36122libdir!$libdir$ac_delim
36123localedir!$localedir$ac_delim
36124mandir!$mandir$ac_delim
36125DEFS!$DEFS$ac_delim
36126ECHO_C!$ECHO_C$ac_delim
36127ECHO_N!$ECHO_N$ac_delim
36128ECHO_T!$ECHO_T$ac_delim
36129LIBS!$LIBS$ac_delim
36130build_alias!$build_alias$ac_delim
36131host_alias!$host_alias$ac_delim
36132target_alias!$target_alias$ac_delim
36133LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36134subdirs!$subdirs$ac_delim
36135build!$build$ac_delim
36136build_cpu!$build_cpu$ac_delim
36137build_vendor!$build_vendor$ac_delim
36138build_os!$build_os$ac_delim
36139host!$host$ac_delim
36140host_cpu!$host_cpu$ac_delim
36141host_vendor!$host_vendor$ac_delim
36142host_os!$host_os$ac_delim
36143target!$target$ac_delim
36144target_cpu!$target_cpu$ac_delim
36145target_vendor!$target_vendor$ac_delim
36146target_os!$target_os$ac_delim
36147OS!$OS$ac_delim
36148HOST_OS!$HOST_OS$ac_delim
36149TARGET_OS!$TARGET_OS$ac_delim
36150LINKALL!$LINKALL$ac_delim
36151NOLINKALL!$NOLINKALL$ac_delim
36152LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36153LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36154ARCH!$ARCH$ac_delim
36155ENDIAN!$ENDIAN$ac_delim
36156CC!$CC$ac_delim
36157CFLAGS!$CFLAGS$ac_delim
36158LDFLAGS!$LDFLAGS$ac_delim
36159CPPFLAGS!$CPPFLAGS$ac_delim
36160ac_ct_CC!$ac_ct_CC$ac_delim
36161EXEEXT!$EXEEXT$ac_delim
36162OBJEXT!$OBJEXT$ac_delim
36163CPP!$CPP$ac_delim
36164GREP!$GREP$ac_delim
36165EGREP!$EGREP$ac_delim
36166LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36167BUILD_CC!$BUILD_CC$ac_delim
36168BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36169BUILD_CXX!$BUILD_CXX$ac_delim
36170CVSBUILD!$CVSBUILD$ac_delim
36171ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36172ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36173DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36174ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36175EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36176DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36177DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36178JIT!$JIT$ac_delim
36179TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36180ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36181ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36182ENABLE_PIC!$ENABLE_PIC$ac_delim
36183TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36184LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36185LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36186LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36187LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
36188ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36189OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36190EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36191BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36192ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36193_ACEOF
36194
36195  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36196    break
36197  elif $ac_last_try; then
36198    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36199echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36200   { (exit 1); exit 1; }; }
36201  else
36202    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36203  fi
36204done
36205
36206ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36207if test -n "$ac_eof"; then
36208  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36209  ac_eof=`expr $ac_eof + 1`
36210fi
36211
36212cat >>$CONFIG_STATUS <<_ACEOF
36213cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36215_ACEOF
36216sed '
36217s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36218s/^/s,@/; s/!/@,|#_!!_#|/
36219:n
36220t n
36221s/'"$ac_delim"'$/,g/; t
36222s/$/\\/; p
36223N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36224' >>$CONFIG_STATUS <conf$$subs.sed
36225rm -f conf$$subs.sed
36226cat >>$CONFIG_STATUS <<_ACEOF
36227CEOF$ac_eof
36228_ACEOF
36229
36230
36231ac_delim='%!_!# '
36232for ac_last_try in false false false false false :; do
36233  cat >conf$$subs.sed <<_ACEOF
36234ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36235CXX!$CXX$ac_delim
36236CXXFLAGS!$CXXFLAGS$ac_delim
36237ac_ct_CXX!$ac_ct_CXX$ac_delim
36238NM!$NM$ac_delim
36239ifGNUmake!$ifGNUmake$ac_delim
36240LN_S!$LN_S$ac_delim
36241CMP!$CMP$ac_delim
36242CP!$CP$ac_delim
36243DATE!$DATE$ac_delim
36244FIND!$FIND$ac_delim
36245MKDIR!$MKDIR$ac_delim
36246MV!$MV$ac_delim
36247RANLIB!$RANLIB$ac_delim
36248RM!$RM$ac_delim
36249SED!$SED$ac_delim
36250TAR!$TAR$ac_delim
36251BINPWD!$BINPWD$ac_delim
36252GRAPHVIZ!$GRAPHVIZ$ac_delim
36253DOT!$DOT$ac_delim
36254FDP!$FDP$ac_delim
36255NEATO!$NEATO$ac_delim
36256TWOPI!$TWOPI$ac_delim
36257CIRCO!$CIRCO$ac_delim
36258GV!$GV$ac_delim
36259DOTTY!$DOTTY$ac_delim
36260PERL!$PERL$ac_delim
36261HAVE_PERL!$HAVE_PERL$ac_delim
36262INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36263INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36264INSTALL_DATA!$INSTALL_DATA$ac_delim
36265BZIP2!$BZIP2$ac_delim
36266DOXYGEN!$DOXYGEN$ac_delim
36267GROFF!$GROFF$ac_delim
36268GZIP!$GZIP$ac_delim
36269POD2HTML!$POD2HTML$ac_delim
36270POD2MAN!$POD2MAN$ac_delim
36271RUNTEST!$RUNTEST$ac_delim
36272TCLSH!$TCLSH$ac_delim
36273ZIP!$ZIP$ac_delim
36274OCAMLC!$OCAMLC$ac_delim
36275OCAMLOPT!$OCAMLOPT$ac_delim
36276OCAMLDEP!$OCAMLDEP$ac_delim
36277OCAMLDOC!$OCAMLDOC$ac_delim
36278GAS!$GAS$ac_delim
36279INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36280INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36281CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36282CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36283LIBADD_DL!$LIBADD_DL$ac_delim
36284ECHO!$ECHO$ac_delim
36285AR!$AR$ac_delim
36286STRIP!$STRIP$ac_delim
36287CXXCPP!$CXXCPP$ac_delim
36288F77!$F77$ac_delim
36289FFLAGS!$FFLAGS$ac_delim
36290ac_ct_F77!$ac_ct_F77$ac_delim
36291LIBTOOL!$LIBTOOL$ac_delim
36292LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36293LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36294LLVMGCC!$LLVMGCC$ac_delim
36295LLVMGXX!$LLVMGXX$ac_delim
36296NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36297NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36298USE_UDIS86!$USE_UDIS86$ac_delim
36299USE_OPROFILE!$USE_OPROFILE$ac_delim
36300HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36301HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36302ALLOCA!$ALLOCA$ac_delim
36303MMAP_FILE!$MMAP_FILE$ac_delim
36304LLVMCC1!$LLVMCC1$ac_delim
36305LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36306LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36307LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36308LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36309LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36310LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36311SHLIBEXT!$SHLIBEXT$ac_delim
36312LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36313LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36314LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36315LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36316LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36317LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36318LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36319LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36320LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36321LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36322BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36323ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36324OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36325ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36326RPATH!$RPATH$ac_delim
36327RDYNAMIC!$RDYNAMIC$ac_delim
36328LIBOBJS!$LIBOBJS$ac_delim
36329LTLIBOBJS!$LTLIBOBJS$ac_delim
36330_ACEOF
36331
36332  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
36333    break
36334  elif $ac_last_try; then
36335    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36336echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36337   { (exit 1); exit 1; }; }
36338  else
36339    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36340  fi
36341done
36342
36343ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36344if test -n "$ac_eof"; then
36345  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36346  ac_eof=`expr $ac_eof + 1`
36347fi
36348
36349cat >>$CONFIG_STATUS <<_ACEOF
36350cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36352_ACEOF
36353sed '
36354s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36355s/^/s,@/; s/!/@,|#_!!_#|/
36356:n
36357t n
36358s/'"$ac_delim"'$/,g/; t
36359s/$/\\/; p
36360N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36361' >>$CONFIG_STATUS <conf$$subs.sed
36362rm -f conf$$subs.sed
36363cat >>$CONFIG_STATUS <<_ACEOF
36364CEOF$ac_eof
36365_ACEOF
36366
36367
36368# VPATH may cause trouble with some makes, so we remove $(srcdir),
36369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36370# trailing colons and then remove the whole line if VPATH becomes empty
36371# (actually we leave an empty line to preserve line numbers).
36372if test "x$srcdir" = x.; then
36373  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
36374s/:*\$(srcdir):*/:/
36375s/:*\${srcdir}:*/:/
36376s/:*@srcdir@:*/:/
36377s/^\([^=]*=[	 ]*\):*/\1/
36378s/:*$//
36379s/^[^=]*=[	 ]*$//
36380}'
36381fi
36382
36383cat >>$CONFIG_STATUS <<\_ACEOF
36384fi # test -n "$CONFIG_FILES"
36385
36386
36387for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36388do
36389  case $ac_tag in
36390  :[FHLC]) ac_mode=$ac_tag; continue;;
36391  esac
36392  case $ac_mode$ac_tag in
36393  :[FHL]*:*);;
36394  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36395echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36396   { (exit 1); exit 1; }; };;
36397  :[FH]-) ac_tag=-:-;;
36398  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36399  esac
36400  ac_save_IFS=$IFS
36401  IFS=:
36402  set x $ac_tag
36403  IFS=$ac_save_IFS
36404  shift
36405  ac_file=$1
36406  shift
36407
36408  case $ac_mode in
36409  :L) ac_source=$1;;
36410  :[FH])
36411    ac_file_inputs=
36412    for ac_f
36413    do
36414      case $ac_f in
36415      -) ac_f="$tmp/stdin";;
36416      *) # Look for the file first in the build tree, then in the source tree
36417	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
36418	 # because $ac_f cannot contain `:'.
36419	 test -f "$ac_f" ||
36420	   case $ac_f in
36421	   [\\/$]*) false;;
36422	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36423	   esac ||
36424	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36425echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36426   { (exit 1); exit 1; }; };;
36427      esac
36428      ac_file_inputs="$ac_file_inputs $ac_f"
36429    done
36430
36431    # Let's still pretend it is `configure' which instantiates (i.e., don't
36432    # use $as_me), people would be surprised to read:
36433    #    /* config.h.  Generated by config.status.  */
36434    configure_input="Generated from "`IFS=:
36435	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36436    if test x"$ac_file" != x-; then
36437      configure_input="$ac_file.  $configure_input"
36438      { echo "$as_me:$LINENO: creating $ac_file" >&5
36439echo "$as_me: creating $ac_file" >&6;}
36440    fi
36441
36442    case $ac_tag in
36443    *:-:* | *:-) cat >"$tmp/stdin";;
36444    esac
36445    ;;
36446  esac
36447
36448  ac_dir=`$as_dirname -- "$ac_file" ||
36449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36450	 X"$ac_file" : 'X\(//\)[^/]' \| \
36451	 X"$ac_file" : 'X\(//\)$' \| \
36452	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36453echo X"$ac_file" |
36454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36455	    s//\1/
36456	    q
36457	  }
36458	  /^X\(\/\/\)[^/].*/{
36459	    s//\1/
36460	    q
36461	  }
36462	  /^X\(\/\/\)$/{
36463	    s//\1/
36464	    q
36465	  }
36466	  /^X\(\/\).*/{
36467	    s//\1/
36468	    q
36469	  }
36470	  s/.*/./; q'`
36471  { as_dir="$ac_dir"
36472  case $as_dir in #(
36473  -*) as_dir=./$as_dir;;
36474  esac
36475  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36476    as_dirs=
36477    while :; do
36478      case $as_dir in #(
36479      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36480      *) as_qdir=$as_dir;;
36481      esac
36482      as_dirs="'$as_qdir' $as_dirs"
36483      as_dir=`$as_dirname -- "$as_dir" ||
36484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36485	 X"$as_dir" : 'X\(//\)[^/]' \| \
36486	 X"$as_dir" : 'X\(//\)$' \| \
36487	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36488echo X"$as_dir" |
36489    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36490	    s//\1/
36491	    q
36492	  }
36493	  /^X\(\/\/\)[^/].*/{
36494	    s//\1/
36495	    q
36496	  }
36497	  /^X\(\/\/\)$/{
36498	    s//\1/
36499	    q
36500	  }
36501	  /^X\(\/\).*/{
36502	    s//\1/
36503	    q
36504	  }
36505	  s/.*/./; q'`
36506      test -d "$as_dir" && break
36507    done
36508    test -z "$as_dirs" || eval "mkdir $as_dirs"
36509  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36510echo "$as_me: error: cannot create directory $as_dir" >&2;}
36511   { (exit 1); exit 1; }; }; }
36512  ac_builddir=.
36513
36514case "$ac_dir" in
36515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36516*)
36517  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36518  # A ".." for each directory in $ac_dir_suffix.
36519  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36520  case $ac_top_builddir_sub in
36521  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36522  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36523  esac ;;
36524esac
36525ac_abs_top_builddir=$ac_pwd
36526ac_abs_builddir=$ac_pwd$ac_dir_suffix
36527# for backward compatibility:
36528ac_top_builddir=$ac_top_build_prefix
36529
36530case $srcdir in
36531  .)  # We are building in place.
36532    ac_srcdir=.
36533    ac_top_srcdir=$ac_top_builddir_sub
36534    ac_abs_top_srcdir=$ac_pwd ;;
36535  [\\/]* | ?:[\\/]* )  # Absolute name.
36536    ac_srcdir=$srcdir$ac_dir_suffix;
36537    ac_top_srcdir=$srcdir
36538    ac_abs_top_srcdir=$srcdir ;;
36539  *) # Relative name.
36540    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36541    ac_top_srcdir=$ac_top_build_prefix$srcdir
36542    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36543esac
36544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36545
36546
36547  case $ac_mode in
36548  :F)
36549  #
36550  # CONFIG_FILE
36551  #
36552
36553  case $INSTALL in
36554  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36555  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36556  esac
36557_ACEOF
36558
36559cat >>$CONFIG_STATUS <<\_ACEOF
36560# If the template does not know about datarootdir, expand it.
36561# FIXME: This hack should be removed a few years after 2.60.
36562ac_datarootdir_hack=; ac_datarootdir_seen=
36563
36564case `sed -n '/datarootdir/ {
36565  p
36566  q
36567}
36568/@datadir@/p
36569/@docdir@/p
36570/@infodir@/p
36571/@localedir@/p
36572/@mandir@/p
36573' $ac_file_inputs` in
36574*datarootdir*) ac_datarootdir_seen=yes;;
36575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36576  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36577echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36578_ACEOF
36579cat >>$CONFIG_STATUS <<_ACEOF
36580  ac_datarootdir_hack='
36581  s&@datadir@&$datadir&g
36582  s&@docdir@&$docdir&g
36583  s&@infodir@&$infodir&g
36584  s&@localedir@&$localedir&g
36585  s&@mandir@&$mandir&g
36586    s&\\\${datarootdir}&$datarootdir&g' ;;
36587esac
36588_ACEOF
36589
36590# Neutralize VPATH when `$srcdir' = `.'.
36591# Shell code in configure.ac might set extrasub.
36592# FIXME: do we really want to maintain this feature?
36593cat >>$CONFIG_STATUS <<_ACEOF
36594  sed "$ac_vpsub
36595$extrasub
36596_ACEOF
36597cat >>$CONFIG_STATUS <<\_ACEOF
36598:t
36599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36600s&@configure_input@&$configure_input&;t t
36601s&@top_builddir@&$ac_top_builddir_sub&;t t
36602s&@srcdir@&$ac_srcdir&;t t
36603s&@abs_srcdir@&$ac_abs_srcdir&;t t
36604s&@top_srcdir@&$ac_top_srcdir&;t t
36605s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36606s&@builddir@&$ac_builddir&;t t
36607s&@abs_builddir@&$ac_abs_builddir&;t t
36608s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36609s&@INSTALL@&$ac_INSTALL&;t t
36610$ac_datarootdir_hack
36611" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
36612
36613test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36614  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36615  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36616  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36617which seems to be undefined.  Please make sure it is defined." >&5
36618echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36619which seems to be undefined.  Please make sure it is defined." >&2;}
36620
36621  rm -f "$tmp/stdin"
36622  case $ac_file in
36623  -) cat "$tmp/out"; rm -f "$tmp/out";;
36624  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36625  esac
36626 ;;
36627  :H)
36628  #
36629  # CONFIG_HEADER
36630  #
36631_ACEOF
36632
36633# Transform confdefs.h into a sed script `conftest.defines', that
36634# substitutes the proper values into config.h.in to produce config.h.
36635rm -f conftest.defines conftest.tail
36636# First, append a space to every undef/define line, to ease matching.
36637echo 's/$/ /' >conftest.defines
36638# Then, protect against being on the right side of a sed subst, or in
36639# an unquoted here document, in config.status.  If some macros were
36640# called several times there might be several #defines for the same
36641# symbol, which is useless.  But do not sort them, since the last
36642# AC_DEFINE must be honored.
36643ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36644# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36645# NAME is the cpp macro being defined, VALUE is the value it is being given.
36646# PARAMS is the parameter list in the macro definition--in most cases, it's
36647# just an empty string.
36648ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
36649ac_dB='\\)[	 (].*,\\1define\\2'
36650ac_dC=' '
36651ac_dD=' ,'
36652
36653uniq confdefs.h |
36654  sed -n '
36655	t rset
36656	:rset
36657	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
36658	t ok
36659	d
36660	:ok
36661	s/[\\&,]/\\&/g
36662	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36663	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36664  ' >>conftest.defines
36665
36666# Remove the space that was appended to ease matching.
36667# Then replace #undef with comments.  This is necessary, for
36668# example, in the case of _POSIX_SOURCE, which is predefined and required
36669# on some systems where configure will not decide to define it.
36670# (The regexp can be short, since the line contains either #define or #undef.)
36671echo 's/ $//
36672s,^[	 #]*u.*,/* & */,' >>conftest.defines
36673
36674# Break up conftest.defines:
36675ac_max_sed_lines=50
36676
36677# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36678# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36679# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36680# et cetera.
36681ac_in='$ac_file_inputs'
36682ac_out='"$tmp/out1"'
36683ac_nxt='"$tmp/out2"'
36684
36685while :
36686do
36687  # Write a here document:
36688    cat >>$CONFIG_STATUS <<_ACEOF
36689    # First, check the format of the line:
36690    cat >"\$tmp/defines.sed" <<\\CEOF
36691/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
36692/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
36693b
36694:def
36695_ACEOF
36696  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36697  echo 'CEOF
36698    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36699  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36700  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36701  grep . conftest.tail >/dev/null || break
36702  rm -f conftest.defines
36703  mv conftest.tail conftest.defines
36704done
36705rm -f conftest.defines conftest.tail
36706
36707echo "ac_result=$ac_in" >>$CONFIG_STATUS
36708cat >>$CONFIG_STATUS <<\_ACEOF
36709  if test x"$ac_file" != x-; then
36710    echo "/* $configure_input  */" >"$tmp/config.h"
36711    cat "$ac_result" >>"$tmp/config.h"
36712    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36713      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36714echo "$as_me: $ac_file is unchanged" >&6;}
36715    else
36716      rm -f $ac_file
36717      mv "$tmp/config.h" $ac_file
36718    fi
36719  else
36720    echo "/* $configure_input  */"
36721    cat "$ac_result"
36722  fi
36723  rm -f "$tmp/out12"
36724 ;;
36725
36726  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36727echo "$as_me: executing $ac_file commands" >&6;}
36728 ;;
36729  esac
36730
36731
36732  case $ac_file$ac_mode in
36733    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36734   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36735    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36736   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36737    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36738   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36739    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36740   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36741    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36742   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36743    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36744   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36745    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36746   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36747    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36748   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36749    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36750   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36751    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36752   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36753    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36754   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36755    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36756   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36757    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36758   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36759
36760  esac
36761done # for ac_tag
36762
36763
36764{ (exit 0); exit 0; }
36765_ACEOF
36766chmod +x $CONFIG_STATUS
36767ac_clean_files=$ac_clean_files_save
36768
36769
36770# configure is writing to config.log, and then calls config.status.
36771# config.status does its own redirection, appending to config.log.
36772# Unfortunately, on DOS this fails, as config.log is still kept open
36773# by configure, so config.status won't be able to write to it; its
36774# output is simply discarded.  So we exec the FD to /dev/null,
36775# effectively closing config.log, so it can be properly (re)opened and
36776# appended to by config.status.  When coming back to configure, we
36777# need to make the FD available again.
36778if test "$no_create" != yes; then
36779  ac_cs_success=:
36780  ac_config_status_args=
36781  test "$silent" = yes &&
36782    ac_config_status_args="$ac_config_status_args --quiet"
36783  exec 5>/dev/null
36784  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36785  exec 5>>config.log
36786  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36787  # would make configure fail if this is the last instruction.
36788  $ac_cs_success || { (exit 1); exit 1; }
36789fi
36790
36791#
36792# CONFIG_SUBDIRS section.
36793#
36794if test "$no_recursion" != yes; then
36795
36796  # Remove --cache-file and --srcdir arguments so they do not pile up.
36797  ac_sub_configure_args=
36798  ac_prev=
36799  eval "set x $ac_configure_args"
36800  shift
36801  for ac_arg
36802  do
36803    if test -n "$ac_prev"; then
36804      ac_prev=
36805      continue
36806    fi
36807    case $ac_arg in
36808    -cache-file | --cache-file | --cache-fil | --cache-fi \
36809    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36810      ac_prev=cache_file ;;
36811    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36812    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36813    | --c=*)
36814      ;;
36815    --config-cache | -C)
36816      ;;
36817    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36818      ac_prev=srcdir ;;
36819    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36820      ;;
36821    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36822      ac_prev=prefix ;;
36823    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36824      ;;
36825    *)
36826      case $ac_arg in
36827      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36828      esac
36829      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36830    esac
36831  done
36832
36833  # Always prepend --prefix to ensure using the same prefix
36834  # in subdir configurations.
36835  ac_arg="--prefix=$prefix"
36836  case $ac_arg in
36837  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36838  esac
36839  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36840
36841  ac_popdir=`pwd`
36842  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36843
36844    # Do not complain, so a configure script can configure whichever
36845    # parts of a large source tree are present.
36846    test -d "$srcdir/$ac_dir" || continue
36847
36848    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36849    echo "$as_me:$LINENO: $ac_msg" >&5
36850    echo "$ac_msg" >&6
36851    { as_dir="$ac_dir"
36852  case $as_dir in #(
36853  -*) as_dir=./$as_dir;;
36854  esac
36855  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36856    as_dirs=
36857    while :; do
36858      case $as_dir in #(
36859      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36860      *) as_qdir=$as_dir;;
36861      esac
36862      as_dirs="'$as_qdir' $as_dirs"
36863      as_dir=`$as_dirname -- "$as_dir" ||
36864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36865	 X"$as_dir" : 'X\(//\)[^/]' \| \
36866	 X"$as_dir" : 'X\(//\)$' \| \
36867	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36868echo X"$as_dir" |
36869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36870	    s//\1/
36871	    q
36872	  }
36873	  /^X\(\/\/\)[^/].*/{
36874	    s//\1/
36875	    q
36876	  }
36877	  /^X\(\/\/\)$/{
36878	    s//\1/
36879	    q
36880	  }
36881	  /^X\(\/\).*/{
36882	    s//\1/
36883	    q
36884	  }
36885	  s/.*/./; q'`
36886      test -d "$as_dir" && break
36887    done
36888    test -z "$as_dirs" || eval "mkdir $as_dirs"
36889  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36890echo "$as_me: error: cannot create directory $as_dir" >&2;}
36891   { (exit 1); exit 1; }; }; }
36892    ac_builddir=.
36893
36894case "$ac_dir" in
36895.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36896*)
36897  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36898  # A ".." for each directory in $ac_dir_suffix.
36899  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36900  case $ac_top_builddir_sub in
36901  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36902  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36903  esac ;;
36904esac
36905ac_abs_top_builddir=$ac_pwd
36906ac_abs_builddir=$ac_pwd$ac_dir_suffix
36907# for backward compatibility:
36908ac_top_builddir=$ac_top_build_prefix
36909
36910case $srcdir in
36911  .)  # We are building in place.
36912    ac_srcdir=.
36913    ac_top_srcdir=$ac_top_builddir_sub
36914    ac_abs_top_srcdir=$ac_pwd ;;
36915  [\\/]* | ?:[\\/]* )  # Absolute name.
36916    ac_srcdir=$srcdir$ac_dir_suffix;
36917    ac_top_srcdir=$srcdir
36918    ac_abs_top_srcdir=$srcdir ;;
36919  *) # Relative name.
36920    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36921    ac_top_srcdir=$ac_top_build_prefix$srcdir
36922    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36923esac
36924ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36925
36926
36927    cd "$ac_dir"
36928
36929    # Check for guested configure; otherwise get Cygnus style configure.
36930    if test -f "$ac_srcdir/configure.gnu"; then
36931      ac_sub_configure=$ac_srcdir/configure.gnu
36932    elif test -f "$ac_srcdir/configure"; then
36933      ac_sub_configure=$ac_srcdir/configure
36934    elif test -f "$ac_srcdir/configure.in"; then
36935      # This should be Cygnus configure.
36936      ac_sub_configure=$ac_aux_dir/configure
36937    else
36938      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36939echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36940      ac_sub_configure=
36941    fi
36942
36943    # The recursion is here.
36944    if test -n "$ac_sub_configure"; then
36945      # Make the cache file name correct relative to the subdirectory.
36946      case $cache_file in
36947      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36948      *) # Relative name.
36949	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36950      esac
36951
36952      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36953echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36954      # The eval makes quoting arguments work.
36955      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36956	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36957	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36958echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36959   { (exit 1); exit 1; }; }
36960    fi
36961
36962    cd "$ac_popdir"
36963  done
36964fi
36965
36966